@DeclareRoles(value="org.imixs.ACCESSLEVEL.MANAGERACCESS") @RunAs(value="org.imixs.ACCESSLEVEL.MANAGERACCESS") public class UserGroupService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCESSLEVEL_NOACCESS |
static String[] |
CORE_GROUPS |
static String |
DEFAULT_ACCOUNT |
static String |
DEFAULT_PASSWORD |
static String[] |
DEPRECATED_CORE_GROUPS |
| Constructor and Description |
|---|
UserGroupService() |
| Modifier and Type | Method and Description |
|---|---|
void |
changeUserId(String oldID,
String newID)
This method changes the userID of an existing user entry and updates the
userGroup table entries.
|
String |
getCoreGroupName(String deprecatedGroupName)
Returns the core group name for a given deprecated group name
|
String |
getDeprecatedGroupName(String newGroupName)
Returns the deprecated group name for a given core group name
IMIXS-WORKFLOW-Manager => org.imixs.ACCESSLEVEL.MANAGERACCESS
IMIXS-WORKFLOW-Editor => org.imixs.ACCESSLEVEL.EDITORACCESS
IMIXS-WORKFLOW-Author => org.imixs.ACCESSLEVEL.AUTHORACCESS
IMIXS-WORKFLOW-Reader => org.imixs.ACCESSLEVEL.READERACCESS
|
void |
initUserIDs()
This method verifies if a default user id already exists.
|
void |
migrateDeprecatedUserRoles()
This method migrates deprecated user roles
IMIXS-WORKFLOW-Manager => org.imixs.ACCESSLEVEL.MANAGERACCESS
IMIXS-WORKFLOW-Editor => org.imixs.ACCESSLEVEL.EDITORACCESS
IMIXS-WORKFLOW-Author => org.imixs.ACCESSLEVEL.AUTHORACCESS
IMIXS-WORKFLOW-Reader => org.imixs.ACCESSLEVEL.READERACCESS
First the method tests if a migration is necessary.
|
void |
removeUserId(String userID)
This method deletes the userID of an existing user entry and also the
userGroup table entries.
|
void |
updateUser(org.imixs.workflow.ItemCollection profile)
This method verifies the profile data and creates or update the corresponding
user entries in the user tables.
|
public static String ACCESSLEVEL_NOACCESS
public static String DEFAULT_ACCOUNT
public static String DEFAULT_PASSWORD
public static final String[] CORE_GROUPS
public static final String[] DEPRECATED_CORE_GROUPS
public void updateUser(org.imixs.workflow.ItemCollection profile)
NOTE: this method did not change a userid. To do this use the method changeUser!
The Method also verifies deprecated role names, fix it and prints out a warning in such a case.
If a new userId entity is generated but no password is provided, the method generates an encrypted random password
profile - public void changeUserId(String oldID, String newID)
oldID - - the existing userEntrynewID - - the name of the new idpublic void removeUserId(String userID)
userID - - the existing userEntrypublic void initUserIDs()
org.imixs.workflow.exceptions.AccessDeniedExceptionpublic void migrateDeprecatedUserRoles()
First the method tests if a migration is necessary. For that the method tests if the new roles already are existing in the system. Only if not the migration is started
This method can be removed in later versions (but it may need some time)
public String getDeprecatedGroupName(String newGroupName)
newGroupName - Copyright © 2011–2022 Imixs Software Solutions GmbH. All rights reserved.