C# Class Microsoft.Legal.MatterCenter.ProvisionWebDashboard.Program

Class will create Matter Center Pages (Matter Center Home, Document Details and Settings).
Mostra file Open project: Microsoft/mattercenter

Public Methods

Method Description
Main ( string args ) : void

Main method

Private Methods

Method Description
AssignItemPermission ( ClientContext clientContext, string listName, int listItemId ) : void

Assigns item level permission

AssignListPermissions ( ClientContext clientContext, List list, List userList ) : void

Assign permissions to the list

BreakItemPermission ( ClientContext clientContext, string listName, int listItemId ) : void

Used to break item level permissions

BreakPermission ( ClientContext clientContext, List list ) : bool

Break permissions of the list

CreateConfigList ( ClientContext clientContext, Web web ) : Web

Creates sharePoint list if not present

CreateHelperPage ( ClientContext clientContext, string fileName ) : Folder

Create helper page for web dashboard

CreateList ( ClientContext clientContext ) : void

Creates SharePoint list

CreateMatterCenterPage ( ClientContext clientContext, Folder destinationFolder, string fileName, string helperFileContent, bool hasUniquePermissions ) : void

Create matter center page

CreateProvisionPages ( string>.Dictionary configVal, string urlConstantName, string sourceFileTemplate, string pageUrlName, MatterCenterPage pageType ) : void

To create Provision matter pages

CreateWebPartPage ( ClientContext clientContext ) : byte[]

Create a Web Part page for web dashboard

DeleteList ( ClientContext clientContext ) : void

Deletes the list

DeletePages ( ClientContext clientContext, List files ) : void

Delete web dashboard page and helper file

DeleteSitePages ( string>.Dictionary configVal, MatterCenterPage pageType ) : void

Delete matter center home page, settings page and document details page

GetUsers ( ClientContext clientContext, List configurationList ) : List

Get the users who have permissions on the list

RoleAssignment ( ClientContext clientContext, List userList, RoleAssignmentCollection roleAssignments, string limitedAccessRole ) : void

Static method to assign the role

Method Details

Main() public static method

Main method
public static Main ( string args ) : void
args string Arguments from the command line
return void