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 TypeMethodDescriptionboolean
canAddContextRoleToUser
(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
.boolean
canAddGlobalRoleToUser
(String userName, String roleId) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_USER
.boolean
canChangePassword
(String userName) Deprecated, for removal: This API element is subject to removal in a future version.Permission isChangePasswordPermission
.boolean
canCreateContextRole
(String roleId, IContextId contextId) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_ROLE
.boolean
canCreateGlobalRole
(String roleId) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_ROLE
.boolean
canCreateUser
(String userName) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_USER
.boolean
canManageRoles
(IContextId contextId) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_ROLE
.boolean
canManageUsers
(IContextId contextId) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_USER
.boolean
canRemoveContextRole
(String roleId, IContextId contextId) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_ROLE
.boolean
canRemoveContextRoleFromUser
(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
.boolean
canRemoveGlobalRole
(String roleId) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_ROLE
.boolean
canRemoveGlobalRoleFromUser
(String userName, String roleId) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_USER
.boolean
canRemoveUser
(String userName) Deprecated, for removal: This API element is subject to removal in a future version.Permission isUserManagementPermission.ACTION_MANAGE_USER
.void
checkCanAddContextRoleToUser
(String userName, String roleId, IContextId ctx) Deprecated, for removal: This API element is subject to removal in a future version.void
checkCanAddGlobalRoleToUser
(String userName, String roleId) Deprecated, for removal: This API element is subject to removal in a future version.void
checkCanChangePassword
(String userName) Deprecated, for removal: This API element is subject to removal in a future version.void
checkCanCreateContextRole
(String roleId, IContextId contextId) Deprecated, for removal: This API element is subject to removal in a future version.void
checkCanCreateGlobalRole
(String roleId) Deprecated, for removal: This API element is subject to removal in a future version.void
checkCanCreateUser
(String userName) Deprecated, for removal: This API element is subject to removal in a future version.void
checkCanRemoveContextRole
(String roleId, IContextId contextId) Deprecated, for removal: This API element is subject to removal in a future version.void
checkCanRemoveContextRoleFromUser
(String userName, String roleId, IContextId ctx) Deprecated, for removal: This API element is subject to removal in a future version.void
checkCanRemoveGlobalRole
(String roleId) Deprecated, for removal: This API element is subject to removal in a future version.void
checkCanRemoveGlobalRoleFromUser
(String userName, String roleId) Deprecated, for removal: This API element is subject to removal in a future version.void
checkCanRemoveUser
(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
- ifsecurityService
isnull
-
-
Method Details
-
canAddContextRoleToUser
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IUserManagementPolicy
Permission isUserManagementPermission.ACTION_MANAGE_USER
.- Specified by:
canAddContextRoleToUser
in interfaceIUserManagementPolicy
- Parameters:
userName
- user nameroleId
- role idctx
- The context ID- Returns:
true
If 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:IUserManagementPolicy
Permission isUserManagementPermission.ACTION_MANAGE_USER
.- Specified by:
canAddGlobalRoleToUser
in interfaceIUserManagementPolicy
- Parameters:
userName
- user nameroleId
- role id- Returns:
true
If 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:IUserManagementPolicy
Permission isChangePasswordPermission
.- Specified by:
canChangePassword
in interfaceIUserManagementPolicy
- Parameters:
userName
- user name- Returns:
true
If 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:
checkCanChangePassword
in interfaceIUserManagementPolicy
- Throws:
PermissionDeniedException
-
canCreateContextRole
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IUserManagementPolicy
Permission isUserManagementPermission.ACTION_MANAGE_ROLE
.- Specified by:
canCreateContextRole
in interfaceIUserManagementPolicy
- Parameters:
roleId
- role idcontextId
- The context ID- Returns:
true
If 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:IUserManagementPolicy
Permission isUserManagementPermission.ACTION_MANAGE_ROLE
.- Specified by:
canCreateGlobalRole
in interfaceIUserManagementPolicy
- Parameters:
roleId
- role id- Returns:
true
If 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:IUserManagementPolicy
Permission isUserManagementPermission.ACTION_MANAGE_USER
.- Specified by:
canCreateUser
in interfaceIUserManagementPolicy
- Parameters:
userName
- user name- Returns:
true
If 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:IUserManagementPolicy
Permission isUserManagementPermission.ACTION_MANAGE_ROLE
.- Specified by:
canRemoveContextRole
in interfaceIUserManagementPolicy
- Parameters:
roleId
- role idcontextId
- The context ID- Returns:
true
If 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:IUserManagementPolicy
Permission isUserManagementPermission.ACTION_MANAGE_USER
.- Specified by:
canRemoveContextRoleFromUser
in interfaceIUserManagementPolicy
- Parameters:
userName
- user nameroleId
- role idctx
- The context ID- Returns:
true
If 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:IUserManagementPolicy
Permission isUserManagementPermission.ACTION_MANAGE_ROLE
.- Specified by:
canRemoveGlobalRole
in interfaceIUserManagementPolicy
- Parameters:
roleId
- role id- Returns:
true
If 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:IUserManagementPolicy
Permission isUserManagementPermission.ACTION_MANAGE_USER
.- Specified by:
canRemoveGlobalRoleFromUser
in interfaceIUserManagementPolicy
- Parameters:
userName
- user nameroleId
- role id- Returns:
true
If 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:IUserManagementPolicy
Permission isUserManagementPermission.ACTION_MANAGE_USER
.- Specified by:
canRemoveUser
in interfaceIUserManagementPolicy
- Parameters:
userName
- user name- Returns:
true
If 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:
checkCanAddContextRoleToUser
in 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:
checkCanAddGlobalRoleToUser
in 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:
checkCanCreateContextRole
in interfaceIUserManagementPolicy
- Throws:
PermissionDeniedException
-
checkCanCreateGlobalRole
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
checkCanCreateGlobalRole
in interfaceIUserManagementPolicy
- Throws:
PermissionDeniedException
-
checkCanCreateUser
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
checkCanCreateUser
in 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:
checkCanRemoveContextRole
in 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:
checkCanRemoveContextRoleFromUser
in interfaceIUserManagementPolicy
- Throws:
PermissionDeniedException
-
checkCanRemoveGlobalRole
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
checkCanRemoveGlobalRole
in 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:
checkCanRemoveGlobalRoleFromUser
in interfaceIUserManagementPolicy
- Throws:
PermissionDeniedException
-
checkCanRemoveUser
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
checkCanRemoveUser
in interfaceIUserManagementPolicy
- Throws:
PermissionDeniedException
-
canManageUsers
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IUserManagementPolicy
Permission isUserManagementPermission.ACTION_MANAGE_USER
.- Specified by:
canManageUsers
in interfaceIUserManagementPolicy
- Parameters:
contextId
- The context ID (can benull
for Global administration)- Returns:
true
If 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:IUserManagementPolicy
Permission isUserManagementPermission.ACTION_MANAGE_ROLE
.- Specified by:
canManageRoles
in interfaceIUserManagementPolicy
- Parameters:
contextId
- The context ID (can benull
for Global administration)- Returns:
true
If the current user has permission to manage roles in the given Context.
-