C# Class Glyma.SharePoint.Security.GlymaSecurityService

Inheritance: IGlymaSecurityService
Mostrar archivo Open project: chris-tomich/Glyma

Public Methods

Method Description
BreakRootMapInheritance ( string webUrl, GlymaSecurableObject securableObject ) : ResponseObject
GetAllSecurityGroups ( string webUrl ) : GetAllSecurityGroupsResponse
GetIsUserGlymaSecurityManager ( string webUrl ) : GetIsUserGlymaSecurityManagerResponse
GetPermissionLevelForObject ( string webUrl, GlymaSecurableObject securableObject ) : GetPermissionLevelResponse

Gets the highest permission (role) name that the current user has if they have access to the object

GetPermissionNameForObject ( string webUrl, GlymaSecurableObject securableObject ) : GetPermissionNameResponse

Gets the highest permission (role) name that the current user has if they have access to the object

GetSecurableContextId ( string webUrl ) : GetSecurableContextIdResponse

Gets the security context id from the URL of the current site

GetSecurityAssociations ( string webUrl, IEnumerable groups, GlymaSecurableObject securableObject ) : GetSecurityAssociationsResponse

Gets the current security associations for a list of groups against a particular securable object

GetUsersPermissionLevel ( string webUrl ) : GetPermissionLevelResponse

Gets the highest permission level that a user has

GetUsersPermissionLevelName ( string webUrl ) : GetPermissionNameResponse

Gets the highest permission level that a user has

GlymaSecurityService ( ) : System
RestoreRootMapInheritance ( string webUrl, GlymaSecurableObject securableObject ) : GetSecurityAssociationsResponse
SetProjectManagerGroupAssociations ( string webUrl, GlymaSecurableObject securableObject ) : ResponseObject

This method is called by a Glyma Project Manager when they create a new project, it will associate any Glyma Project Manager group the user belongs to with the newly created project.

UpdateSecurityAssociations ( string webUrl, IList securityAssociations ) : ResponseObject

Adds or Removes security associations for a batch of groups.

Method Details

BreakRootMapInheritance() public method

public BreakRootMapInheritance ( string webUrl, GlymaSecurableObject securableObject ) : ResponseObject
webUrl string
securableObject Glyma.Security.GlymaSecurableObject
return Glyma.Security.ResponseObject

GetAllSecurityGroups() public method

public GetAllSecurityGroups ( string webUrl ) : GetAllSecurityGroupsResponse
webUrl string
return Glyma.Security.GetAllSecurityGroupsResponse

GetIsUserGlymaSecurityManager() public method

public GetIsUserGlymaSecurityManager ( string webUrl ) : GetIsUserGlymaSecurityManagerResponse
webUrl string
return Glyma.Security.GetIsUserGlymaSecurityManagerResponse

GetPermissionLevelForObject() public method

Gets the highest permission (role) name that the current user has if they have access to the object
public GetPermissionLevelForObject ( string webUrl, GlymaSecurableObject securableObject ) : GetPermissionLevelResponse
webUrl string The URL for the SP site
securableObject Glyma.Security.GlymaSecurableObject An object that contains the Parent and Object ID's /// SecurableParentUid: The ID of the securable parent (Guid.Empty for projects), /// SecurableObjectUid: The ID of the securable object (root map UID or project UID if securing a project)
return Glyma.Security.GetPermissionLevelResponse

GetPermissionNameForObject() public method

Gets the highest permission (role) name that the current user has if they have access to the object
public GetPermissionNameForObject ( string webUrl, GlymaSecurableObject securableObject ) : GetPermissionNameResponse
webUrl string The URL for the SP site
securableObject Glyma.Security.GlymaSecurableObject An object that contains the Parent and Object ID's /// SecurableParentUid: The ID of the securable parent (Guid.Empty for projects), /// SecurableObjectUid: The ID of the securable object (root map UID or project UID if securing a project)
return Glyma.Security.GetPermissionNameResponse

GetSecurableContextId() public method

Gets the security context id from the URL of the current site
public GetSecurableContextId ( string webUrl ) : GetSecurableContextIdResponse
webUrl string The URL for the SP site
return Glyma.Security.GetSecurableContextIdResponse

GetSecurityAssociations() public method

Gets the current security associations for a list of groups against a particular securable object
public GetSecurityAssociations ( string webUrl, IEnumerable groups, GlymaSecurableObject securableObject ) : GetSecurityAssociationsResponse
webUrl string The URL for the SP site
groups IEnumerable A list of groups to get the security assocations for
securableObject Glyma.Security.GlymaSecurableObject An object that contains the Parent and Object ID's /// SecurableParentUid: The ID of the securable parent (Guid.Empty for projects), /// SecurableObjectUid: The ID of the securable object (root map UID or project UID if securing a project)
return Glyma.Security.GetSecurityAssociationsResponse

GetUsersPermissionLevel() public method

Gets the highest permission level that a user has
public GetUsersPermissionLevel ( string webUrl ) : GetPermissionLevelResponse
webUrl string
return Glyma.Security.GetPermissionLevelResponse

GetUsersPermissionLevelName() public method

Gets the highest permission level that a user has
public GetUsersPermissionLevelName ( string webUrl ) : GetPermissionNameResponse
webUrl string
return Glyma.Security.GetPermissionNameResponse

GlymaSecurityService() public method

public GlymaSecurityService ( ) : System
return System

RestoreRootMapInheritance() public method

public RestoreRootMapInheritance ( string webUrl, GlymaSecurableObject securableObject ) : GetSecurityAssociationsResponse
webUrl string
securableObject Glyma.Security.GlymaSecurableObject
return Glyma.Security.GetSecurityAssociationsResponse

SetProjectManagerGroupAssociations() public method

This method is called by a Glyma Project Manager when they create a new project, it will associate any Glyma Project Manager group the user belongs to with the newly created project.
public SetProjectManagerGroupAssociations ( string webUrl, GlymaSecurableObject securableObject ) : ResponseObject
webUrl string The URL for the SP site
securableObject Glyma.Security.GlymaSecurableObject Describes the project that was just added
return Glyma.Security.ResponseObject

UpdateSecurityAssociations() public method

Adds or Removes security associations for a batch of groups.
public UpdateSecurityAssociations ( string webUrl, IList securityAssociations ) : ResponseObject
webUrl string The URL for the SP site
securityAssociations IList The details of the group and the securable object and whether it's an add or remove operation
return Glyma.Security.ResponseObject