Ektron.Cms.Framework.Settings.PermissionManager

Framework API Class for managing permissions on content and folders.

Properties
ApiMode Gets or sets the current API access mode. If set to Admin, the API runs with the permissions of an administrator.
ContentLanguage Gets or sets the current content language.
InPreviewMode Gets or sets the current Preview Mode. Returns true if the site is in site preview mode.
PermissionManagerService returns an instance of the business objects PermissionManager service.
RequestInformation Gets the current Request Information.
SitePath Gets the site path.
UserId Gets or sets the currently logged in user ID.
Method Description
PermissionManager constructor
PermissionManager(ApiAccessMode) constructor
Add(UserPermissionData) Adds a new UserPermission, with details from the supplied UserPermissionData object.
Update(UserPermissionData) Updates a UserPermission, with details from the supplied UserPermissionData object.
Delete(Int64) Deletes an existing UserPermission.
GetItem(Int64) Returns details of a UserPermission.
GetList(PermissionCriteria) Returns a list of UserPermissions that fit the supplied criteria.
DeletePermissionsForUser(ItemType,Int64,Int64) Deletes a Permission for an object, with details from the supplied type and user.
DeletePermissionForGroup(ItemType,Int64,Int64) Deletes a Permission for an object, with details from the supplied type and group.