Method | Description | |
---|---|---|
Main ( string args ) : void |
Main method - Start of the program
|
Method | Description | |
---|---|---|
AddGroupToList ( string groupName, ClientContext clientContext, List list, RoleDefinition matterCenterContribute ) : void |
Add a SharePoint group into list
|
|
AssignFullControltoListItem ( ClientContext clientContext, List list ) : void |
Assign Full control permission to items of specified list
|
|
AssignPermissionLevelToGroup ( ClientContext clientContext, RoleDefinition matterCenterContribute, RoleAssignment group ) : void |
Assign existing permission level to group
|
|
CreateNewPermissionLevel ( ClientContext context, string permissionLevelName, string description ) : bool |
Creates a new permission level in specified web context
|
|
GetAuthor ( ClientContext clientContext, ListItem item ) : User |
Get author of list item
|
|
GetGroup ( ClientContext clientContext, string groupName ) : RoleAssignment |
Get user or group of specified name
|
|
GetListIfExists ( ClientContext clientContext, string listName ) : List |
Verifies and returns a list if exists
|
|
GetPermissionLevel ( ClientContext clientContext, string permissionLevelName ) : RoleDefinition |
Get permissions of specified permission level
|
|
RemovePermissionLevelIfExists ( ClientContext context, string permissionLevelName ) : void |
Removes Permission level if exists in web context
|
|
UpdateItems ( ClientContext clientContext, ListItemCollection listItems, RoleDefinition fullControl ) : void |
Method to update items
|
|
UpdateListPermissions ( string groupName, ClientContext clientContext ) : void |
Updates permissions on existing lists
|
public static Main ( string args ) : void | ||
args | string | Command line arguments |
return | void |