IUserManager Interface |
Namespace: Ingeniux.CMS
The IUserManager type exposes the following members.
Name | Description | |
---|---|---|
ContentStore |
Gets the Content Store.
(Inherited from ITransactionalEntity.) | |
CurrentUser |
Gets the Operating User for the Session .
(Inherited from ITransactionalEntity.) | |
DefaultTheme |
Retrieves the default User Theme | |
SendWorkFlowNotificationMail |
Gets and sets whether to send notification emails during Workflow Advance.
| |
Session |
Gets the User Session that this manager instance was initiated from.
(Inherited from ITransactionalEntity.) |
Name | Description | |
---|---|---|
AddOAuthIdentity |
Creates a new oAuth identity
| |
AddRole |
Creates a new Group Role with specified Permissions.
| |
AddTheme |
Creates a new User Theme with the configured name and draft state
| |
AddUser |
Creates a new User.
| |
AddUserGroup |
Creates a new User Group.
| |
Administrators |
Retrieves the Administrators Group.
The Administrators group always exists on any site instance.
No matter how the Permissions are assigned to this group, it always has all administrative privileges.
| |
DeepCloneT, TManager |
Duplicates an object instance, not including its unique ID.
(Inherited from ITransactionalEntity.) | |
GetAdminDefaultDashboardPreferences | ||
GetDashboardPreferencesForUser(String) | ||
GetDashboardPreferencesForUser(IUser) | ||
GetUserDefaultDashboardPreferences | ||
GroupsCount |
Gets the count of all Groups.
| |
InvokeUserCreatedHook |
Calls the UserCreated event.
| |
OAuthIdentities |
Retrieve the collection of OAuthIdentity objects
| |
OAuthIdentity |
Retrieves a OAuthIdentity by its client id
| |
QuickWrite |
Creates a temporary Write Session to quickly write something outside the current Session and transaction.
This is a way to bypass the transaction and quickly put something into the content store.
(Inherited from ITransactionalEntity.) | |
RemoveOAuthIdentity |
Remove a OAuthIdentity by its client id
| |
RemoveRole |
Removes a Group Role from the Content Store.
| |
RemoveTheme |
Removes the User Theme by theme Id
| |
RemoveUser |
Permanently removes a User.
| |
RemoveUserGroup |
Removes a User Group from the Content Store.
| |
Role | ||
Roles |
Retrieves, in a paginated fashion, the collection of Group Roles.
| |
RolesCount |
Gets the count of Group Roles.
| |
SetDefaultUserTheme |
Sets the default User Theme by theme id
| |
User | ||
UserGroup |
Retrieves a User Group by its unique ID.
| |
UserGroups(String) |
Retrieves the collection of Groups by their unique IDs.
| |
UserGroups(Int32, Int32, Int32) |
Retrieves, in a paginated fashion, the collection of Groups.
| |
Users(String) | ||
Users(Int32, Int32, Int32) |
Retrieves, in a paginated fashion, the collection of Users.
| |
UsersCount |
Gets the count of all Users.
| |
UserTheme |
Retrieves a User Theme bu its id.
| |
UserThemeCount |
Retrieves the total number of User Themes | |
UserThemes |
Retrieves a collection of User Themes in a paginated fashion
|
Name | Description | |
---|---|---|
AfterUserDelete |
This event is fired after a User is deleted.
(Inherited from IUserEvents.) | |
AfterUserGroupDelete |
This event is fired after a Group is deleted.
(Inherited from IUserGroupEvents.) | |
BeforeUserDelete |
This event is fired before a User is deleted.
(Inherited from IUserEvents.) | |
BeforeUserGroupDelete |
This event is fired before a Group is deleted.
(Inherited from IUserGroupEvents.) | |
UserCreated |
This event is fired when a User is created.
(Inherited from IUserEvents.) | |
UserGroupCreated |
This event is fired when a Group is created.
(Inherited from IUserGroupEvents.) |
Like all manager objects, instances of this manager are retrieved from an IUserSession object and only work within that session.
using (IUserSession session = store.OpenReadSession(currentUser))
{
IUserManager userManager = session.UserManager;
...
}
<?xml version="1.0"?> <UserManager nextID="4" NTDomain="ingeniux" SMTPDomain="mydomain.com" Version="9.0"> <Users> <User UserID="ingeniux\ashley" Name="Admin" Email="admin@mydomain.com" LastLogin="6/11/14 11:24 AM"/> <User UserID="ingeniux\someuser" Name="Some User" Email="someuser@mydomain.com" LastLogin="7/27/14 4:24 PM"/> </Users> <Groups> <Group Name="Editors" ID="UserGruops/3"> <Users/> <UserRights> <UserRight Name="CanAddWordsToDictionary"/> <UserRight Name="CanViewSearch"/> <UserRight Name="CanViewHistory"/> <UserRight Name="CanViewEditForm"/> <UserRight Name="ViewHiddenElements"/> <UserRight Name="ViewXmlTab"/> <UserRight Name="Categorize"/> <UserRight Name="EditSS;"/> <UserRight Name="ReorderAssignedOthers"/> <UserRight Name="Create"/> <UserRight Name="CheckinCheckOut"/> <UserRight Name="Tree"/> <UserRight Name="Transition"/> <UserRight Name="Rollback"/> <UserRight Name="Mark"/> <UserRight Name="Delete"/> <UserRight Name="CheckIn"/> <UserRight Name="Edit"/> <UserRight Name="Assignment"/> <UserRight Name="Reorder"/> </UserRights> </Group> <Group Name="Authors" ID="UserGroups/2"> <Users/> <UserRights> <UserRight Name="Categorize"/> <UserRight Name="Transition"/> <UserRight Name="Create"/> <UserRight Name="CheckinCheckOut"/> <UserRight Name="Edit"/> <UserRight Name="Assignment"/> </UserRights> </Group> <Group Name="Administrators" ID="UserGroup/1"> <Users> <User UserID="ingeniux\ashley"/> <User UserID="ingeniux\awang"/> </Users> <UserRights> <UserRight Name="EditSS;"/> <UserRight Name="EditPasswords"/> <UserRight Name="ReorderAssignedOthers"/> <UserRight Name="Create"/> <UserRight Name="PageTypes"/> <UserRight Name="ForcePCR"/> <UserRight Name="CheckinCheckOut"/> <UserRight Name="Main"/> <UserRight Name="Tree"/> <UserRight Name="Transition"/> <UserRight Name="Workflow"/> <UserRight Name="Rollback"/> <UserRight Name="Publish"/> <UserRight Name="IncrementalPublish"/> <UserRight Name="Mark"/> <UserRight Name="Delete"/> <UserRight Name="CheckIn"/> <UserRight Name="Edit"/> <UserRight Name="Admin"/> <UserRight Name="Assignment"/> <UserRight Name="Reorder"/> <UserRight Name="Categorize"/> <UserRight Name="ManageTaxonomy"/> <UserRight Name="ViewXmlTab"/> <UserRight Name="ViewHiddenElements"/> <UserRight Name="ManageAssetSecurity"/> <UserRight Name="DeleteAssetFiles"/> <UserRight Name="ManageAssetFolders"/> <UserRight Name="LocalizeSiteDefinitions"/> <UserRight Name="SetPageLocale"/> <UserRight Name="CanViewEditForm"/> <UserRight Name="CanViewHistory"/> <UserRight Name="CanViewSearch"/> <UserRight Name="CanViewApps"/> <UserRight Name="CanAddWordsToDictionary"/> <UserRight Name="CanPublishDuplicated"/> <UserRight Name="CanManageSchema"/> <UserRight Name="CanEditAssets"/> </UserRights> </Group> </Groups> </UserManager>