kentico_zdenekc
-
1/14/2011 9:29:23 AM
RE:API - Owned by group
Hi,
There is no special method for this action, since the Group that owns some document(node) is determined by NodeGroupID property (column) of the TreeNode.
You can therefore just select appropriate Group either from CommunityContext or using GroupInfoProvider methods, e.g.:
public static GroupInfo GetGroupInfo( string groupCodeName, string siteName )
Then you can assign it like TreeNode.NodeGroupID = GroupInfo.GroupID;
Regards, Zdenek
|