public interface AuthorizationModelService
Modifier and Type | Method and Description |
---|---|
void |
addGroupsToUsersGroup(UsersGroupId usersGroupId,
Collection<UsersGroupId> groupIds)
Adds a collection of user groups identified by
groupIds to a users group
identified by usersGroupId |
void |
addUsersToUsersGroup(UsersGroupId usersGroupId,
Collection<UserId> userIds)
Adds a collection of users identified by
userIds to a users group
identified by usersGroupId . |
void |
assignRolesToUser(UserId userId,
Collection<RoleId> roleIds)
Assigns a collection of roles identified by
roleIds
to a user identified by userId . |
void |
assignRolesToUserForAllTenants(UserId userId,
Collection<RoleId> roleIds)
Assigns a collection of roles identified by
roleIds
to a user identified by userId in the context of all tenants. |
void |
assignRolesToUserForTenants(UserId userId,
Collection<RoleId> roleIds,
Collection<TenantId> tenantIds)
Assigns a collection of roles identified by
roleIds
to a user identified by userId in the context of tenants
identified by tenantIds . |
void |
assignRolesToUsersGroup(UsersGroupId usersGroupId,
Collection<RoleId> roleIds)
Assigns a collection of roles identified by
roleIds
to a users group identified by usersGroupId . |
void |
assignRolesToUsersGroupForAllTenants(UsersGroupId usersGroupId,
Collection<RoleId> roleIds)
Assigns a collection of roles identified by
roleIds
to a users group identified by usersGroupId in the context of all tenants. |
void |
assignRolesToUsersGroupForTenants(UsersGroupId usersGroupId,
Collection<RoleId> roleIds,
Collection<TenantId> tenantIds)
Assigns a collection of roles identified by
roleIds
to a users group identified by usersGroupId in the context of specific tenants
identified by tenantIds . |
User |
createUser(BasicUserData userData)
Creates a new user based on the user information in the UCMDB
|
UsersGroup |
createUsersGroup(BasicUsersGroupData usersGroupData)
Creates a new users group based on the users group information
|
void |
deleteUser(UserId userId)
Deletes a user identified by
userId from the UCMDB |
void |
deleteUsersGroup(UsersGroupId usersGroupId)
Deletes a users group identified by
usersGroupId from the UCMDB |
Collection<RoleId> |
getAllRoleIds()
Returns a collection of all the roles defined inside UCMDB.
|
AuthorizationDataFactory |
getAuthorizationDataFactory()
Retrieves the factory for creating client side representations of the authorization structures
|
BasicUserData |
getBasicUserData(UserId userId)
Returns the basic user information of the user identified by
userId |
BasicUsersGroupData |
getBasicUsersGroupData(UsersGroupId usersGroupId)
Returns the basic users group information of the users group identified by
usersGroupId |
Collection<UsersGroupId> |
getGroupsWithRole(RoleId roleId)
Returns a collection of user groups that have been assigned a specific role identified by
roleId |
Collection<RoleId> |
getRoleIdsForUser(UserId userId)
Returns a collection of roles which are assigned to a specific user identified by
userId . |
Collection<RoleId> |
getRoleIdsForUsersGroup(UsersGroupId usersGroupId)
Returns a collection of roles which are assigned to a specific users group identified by
usersGroupId . |
User |
getUser(UserId userId)
Returns a user identified by
userId from the UCMDB |
UsersGroup |
getUsersGroup(UsersGroupId usersGroupId)
Returns a users group identified by
usersGroupId |
Collection<UserId> |
getUsersWithRole(RoleId roleId)
Returns a collection of users that have been assigned a specific role identified by
roleId |
void |
removeGroupsFromUsersGroup(UsersGroupId usersGroupId,
Collection<UsersGroupId> groupIds)
Removes a collection of user groups identified by
groupIds , from a users group
identified by usersGroupId . |
void |
removeUsersFromUsersGroup(UsersGroupId usersGroupId,
Collection<UserId> userIds)
Removes a collection of users identified by
userIds from a users group
identified by usersGroupId |
void |
revokeRolesFromUser(UserId userId,
Collection<RoleId> roleIds)
Revokes a collection of roles identified by
roleIds from a user
identified by userId |
void |
revokeRolesFromUsersGroup(UsersGroupId usersGroupId,
Collection<RoleId> roleIds)
Revokes a collection of roles identified by
roleIds from a users group
identified by usersGroupId |
void |
updateUser(BasicUserData userData)
Updates a user based on the user information
|
void |
updateUsersGroup(BasicUsersGroupData usersGroupData)
Updates an existing users group based on the users group information
|
AuthorizationDataFactory getAuthorizationDataFactory()
User createUser(BasicUserData userData)
userData
- describes the User to createvoid updateUser(BasicUserData userData)
userData
- describes the updated user informationvoid deleteUser(UserId userId)
userId
from the UCMDBuserId
- the user to be deletedUser getUser(UserId userId)
userId
from the UCMDBBasicUserData getBasicUserData(UserId userId)
userId
void assignRolesToUser(UserId userId, Collection<RoleId> roleIds)
roleIds
to a user identified by userId
.
This method should not be used in a Multi Tenancy enabled UCMDB.void assignRolesToUserForTenants(UserId userId, Collection<RoleId> roleIds, Collection<TenantId> tenantIds)
roleIds
to a user identified by userId
in the context of tenants
identified by tenantIds
.
This method requires Multi Tenancy to be enabled.void assignRolesToUserForAllTenants(UserId userId, Collection<RoleId> roleIds)
roleIds
to a user identified by userId
in the context of all tenants.
This method requires Multi Tenancy to be enabled.void revokeRolesFromUser(UserId userId, Collection<RoleId> roleIds)
roleIds
from a user
identified by userId
UsersGroup createUsersGroup(BasicUsersGroupData usersGroupData)
usersGroupData
- describes the users group informationvoid updateUsersGroup(BasicUsersGroupData usersGroupData)
usersGroupData
- describes the updated users group informationvoid deleteUsersGroup(UsersGroupId usersGroupId)
usersGroupId
from the UCMDBUsersGroup getUsersGroup(UsersGroupId usersGroupId)
usersGroupId
BasicUsersGroupData getBasicUsersGroupData(UsersGroupId usersGroupId)
usersGroupId
void addUsersToUsersGroup(UsersGroupId usersGroupId, Collection<UserId> userIds)
userIds
to a users group
identified by usersGroupId
.void removeUsersFromUsersGroup(UsersGroupId usersGroupId, Collection<UserId> userIds)
userIds
from a users group
identified by usersGroupId
void addGroupsToUsersGroup(UsersGroupId usersGroupId, Collection<UsersGroupId> groupIds)
groupIds
to a users group
identified by usersGroupId
void removeGroupsFromUsersGroup(UsersGroupId usersGroupId, Collection<UsersGroupId> groupIds)
groupIds
, from a users group
identified by usersGroupId
.void assignRolesToUsersGroup(UsersGroupId usersGroupId, Collection<RoleId> roleIds)
roleIds
to a users group identified by usersGroupId
.
This method should not be used in a Multi Tenancy enabled UCMDB.void assignRolesToUsersGroupForTenants(UsersGroupId usersGroupId, Collection<RoleId> roleIds, Collection<TenantId> tenantIds)
roleIds
to a users group identified by usersGroupId
in the context of specific tenants
identified by tenantIds
.
This method requires Multi Tenancy to be enabled.void assignRolesToUsersGroupForAllTenants(UsersGroupId usersGroupId, Collection<RoleId> roleIds)
roleIds
to a users group identified by usersGroupId
in the context of all tenants.
This method requires Multi Tenancy to be enabled.void revokeRolesFromUsersGroup(UsersGroupId usersGroupId, Collection<RoleId> roleIds)
roleIds
from a users group
identified by usersGroupId
Collection<RoleId> getAllRoleIds()
Collection<RoleId> getRoleIdsForUser(UserId userId)
userId
.Collection<RoleId> getRoleIdsForUsersGroup(UsersGroupId usersGroupId)
usersGroupId
.Collection<UserId> getUsersWithRole(RoleId roleId)
roleId
roleId
- Collection<UsersGroupId> getGroupsWithRole(RoleId roleId)
roleId
roleId
- Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.