Package com.polarion.platform.security
Class UserManagementPolicy
java.lang.Object
com.polarion.platform.security.UserManagementPolicy
- All Implemented Interfaces:
IUserManagementPolicy
@Deprecated(since="3.24.10",
forRemoval=true)
public class UserManagementPolicy
extends Object
implements IUserManagementPolicy
Deprecated, for removal: This API element is subject to removal in a future version.
IUserManagementPolicy implementation.
Clients are free to instance it themselves.
- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh, Polarion Software
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUserManagementPolicy(ISecurityService securityService, IAuthenticationSource authSource) Deprecated, for removal: This API element is subject to removal in a future version.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAddContextRoleToUser(String userName, String roleId, IContextId ctx) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_USER.booleancanAddGlobalRoleToUser(String userName, String roleId) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_USER.booleancanChangePassword(String userName) Deprecated, for removal: This API element is subject to removal in a future version.Permission isChangePasswordPermission.booleancanCreateContextRole(String roleId, IContextId contextId) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_ROLE.booleancanCreateGlobalRole(String roleId) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_ROLE.booleancanCreateUser(String userName) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_USER.booleancanManageRoles(IContextId contextId) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_ROLE.booleancanManageUsers(IContextId contextId) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_USER.booleancanRemoveContextRole(String roleId, IContextId contextId) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_ROLE.booleancanRemoveContextRoleFromUser(String userName, String roleId, IContextId ctx) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_USER.booleancanRemoveGlobalRole(String roleId) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_ROLE.booleancanRemoveGlobalRoleFromUser(String userName, String roleId) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_USER.booleancanRemoveUser(String userName) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_USER.voidcheckCanAddContextRoleToUser(String userName, String roleId, IContextId ctx) Deprecated, for removal: This API element is subject to removal in a future version.voidcheckCanAddGlobalRoleToUser(String userName, String roleId) Deprecated, for removal: This API element is subject to removal in a future version.voidcheckCanChangePassword(String userName) Deprecated, for removal: This API element is subject to removal in a future version.voidcheckCanCreateContextRole(String roleId, IContextId contextId) Deprecated, for removal: This API element is subject to removal in a future version.voidcheckCanCreateGlobalRole(String roleId) Deprecated, for removal: This API element is subject to removal in a future version.voidcheckCanCreateUser(String userName) Deprecated, for removal: This API element is subject to removal in a future version.voidcheckCanRemoveContextRole(String roleId, IContextId contextId) Deprecated, for removal: This API element is subject to removal in a future version.voidcheckCanRemoveContextRoleFromUser(String userName, String roleId, IContextId ctx) Deprecated, for removal: This API element is subject to removal in a future version.voidcheckCanRemoveGlobalRole(String roleId) Deprecated, for removal: This API element is subject to removal in a future version.voidcheckCanRemoveGlobalRoleFromUser(String userName, String roleId) Deprecated, for removal: This API element is subject to removal in a future version.voidcheckCanRemoveUser(String userName) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
UserManagementPolicy
Deprecated, for removal: This API element is subject to removal in a future version.Constructor.- Parameters:
securityService- security service- Throws:
IllegalArgumentException- ifsecurityServiceisnull
-
-
Method Details
-
canAddContextRoleToUser
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IUserManagementPolicyPermission isUserManagementPermission.ACTION_MANAGE_USER.- Specified by:
canAddContextRoleToUserin interfaceIUserManagementPolicy- Parameters:
userName- user nameroleId- role idctx- The context ID- Returns:
trueIf the current user is allowed to do this operation
-
canAddGlobalRoleToUser
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IUserManagementPolicyPermission isUserManagementPermission.ACTION_MANAGE_USER.- Specified by:
canAddGlobalRoleToUserin interfaceIUserManagementPolicy- Parameters:
userName- user nameroleId- role id- Returns:
trueIf the current user is allowed to do this operation
-
canChangePassword
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IUserManagementPolicyPermission isChangePasswordPermission.- Specified by:
canChangePasswordin interfaceIUserManagementPolicy- Parameters:
userName- user name- Returns:
trueIf the current user is allowed to do this operation
-
checkCanChangePassword
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
checkCanChangePasswordin interfaceIUserManagementPolicy- Throws:
PermissionDeniedException
-
canCreateContextRole
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IUserManagementPolicyPermission isUserManagementPermission.ACTION_MANAGE_ROLE.- Specified by:
canCreateContextRolein interfaceIUserManagementPolicy- Parameters:
roleId- role idcontextId- The context ID- Returns:
trueIf the current user is allowed to do this operation
-
canCreateGlobalRole
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IUserManagementPolicyPermission isUserManagementPermission.ACTION_MANAGE_ROLE.- Specified by:
canCreateGlobalRolein interfaceIUserManagementPolicy- Parameters:
roleId- role id- Returns:
trueIf the current user is allowed to do this operation
-
canCreateUser
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IUserManagementPolicyPermission isUserManagementPermission.ACTION_MANAGE_USER.- Specified by:
canCreateUserin interfaceIUserManagementPolicy- Parameters:
userName- user name- Returns:
trueIf the current user is allowed to do this operation
-
canRemoveContextRole
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IUserManagementPolicyPermission isUserManagementPermission.ACTION_MANAGE_ROLE.- Specified by:
canRemoveContextRolein interfaceIUserManagementPolicy- Parameters:
roleId- role idcontextId- The context ID- Returns:
trueIf the current user is allowed to do this operation
-
canRemoveContextRoleFromUser
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IUserManagementPolicyPermission isUserManagementPermission.ACTION_MANAGE_USER.- Specified by:
canRemoveContextRoleFromUserin interfaceIUserManagementPolicy- Parameters:
userName- user nameroleId- role idctx- The context ID- Returns:
trueIf the current user is allowed to do this operation
-
canRemoveGlobalRole
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IUserManagementPolicyPermission isUserManagementPermission.ACTION_MANAGE_ROLE.- Specified by:
canRemoveGlobalRolein interfaceIUserManagementPolicy- Parameters:
roleId- role id- Returns:
trueIf the current user is allowed to do this operation
-
canRemoveGlobalRoleFromUser
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IUserManagementPolicyPermission isUserManagementPermission.ACTION_MANAGE_USER.- Specified by:
canRemoveGlobalRoleFromUserin interfaceIUserManagementPolicy- Parameters:
userName- user nameroleId- role id- Returns:
trueIf the current user is allowed to do this operation
-
canRemoveUser
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IUserManagementPolicyPermission isUserManagementPermission.ACTION_MANAGE_USER.- Specified by:
canRemoveUserin interfaceIUserManagementPolicy- Parameters:
userName- user name- Returns:
trueIf the current user is allowed to do this operation
-
checkCanAddContextRoleToUser
public void checkCanAddContextRoleToUser(String userName, String roleId, IContextId ctx) throws PermissionDeniedException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
checkCanAddContextRoleToUserin interfaceIUserManagementPolicy- Throws:
PermissionDeniedException
-
checkCanAddGlobalRoleToUser
public void checkCanAddGlobalRoleToUser(String userName, String roleId) throws PermissionDeniedException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
checkCanAddGlobalRoleToUserin interfaceIUserManagementPolicy- Throws:
PermissionDeniedException
-
checkCanCreateContextRole
public void checkCanCreateContextRole(String roleId, IContextId contextId) throws PermissionDeniedException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
checkCanCreateContextRolein interfaceIUserManagementPolicy- Throws:
PermissionDeniedException
-
checkCanCreateGlobalRole
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
checkCanCreateGlobalRolein interfaceIUserManagementPolicy- Throws:
PermissionDeniedException
-
checkCanCreateUser
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
checkCanCreateUserin interfaceIUserManagementPolicy- Throws:
PermissionDeniedException
-
checkCanRemoveContextRole
public void checkCanRemoveContextRole(String roleId, IContextId contextId) throws PermissionDeniedException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
checkCanRemoveContextRolein interfaceIUserManagementPolicy- Throws:
PermissionDeniedException
-
checkCanRemoveContextRoleFromUser
public void checkCanRemoveContextRoleFromUser(String userName, String roleId, IContextId ctx) throws PermissionDeniedException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
checkCanRemoveContextRoleFromUserin interfaceIUserManagementPolicy- Throws:
PermissionDeniedException
-
checkCanRemoveGlobalRole
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
checkCanRemoveGlobalRolein interfaceIUserManagementPolicy- Throws:
PermissionDeniedException
-
checkCanRemoveGlobalRoleFromUser
public void checkCanRemoveGlobalRoleFromUser(String userName, String roleId) throws PermissionDeniedException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
checkCanRemoveGlobalRoleFromUserin interfaceIUserManagementPolicy- Throws:
PermissionDeniedException
-
checkCanRemoveUser
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
checkCanRemoveUserin interfaceIUserManagementPolicy- Throws:
PermissionDeniedException
-
canManageUsers
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IUserManagementPolicyPermission isUserManagementPermission.ACTION_MANAGE_USER.- Specified by:
canManageUsersin interfaceIUserManagementPolicy- Parameters:
contextId- The context ID (can benullfor Global administration)- Returns:
trueIf the current user has permission to manage users in the given Context.
-
canManageRoles
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IUserManagementPolicyPermission isUserManagementPermission.ACTION_MANAGE_ROLE.- Specified by:
canManageRolesin interfaceIUserManagementPolicy- Parameters:
contextId- The context ID (can benullfor Global administration)- Returns:
trueIf the current user has permission to manage roles in the given Context.
-