@UESService public interface UESPermission
| Modifier and Type | Method and Description |
|---|---|
UESPermissionAuthorizeResult |
authorize(UESURI entityUri,
The command checks whether the logged user is authorized to the specific use case over the specific entity.
|
UESStreamHandler |
getAuthorityData(UESURI entityUri,
This command returns a permission settings data for the specified artifact and authority.
|
UESResultList<UESPermissionGetAuthorityListItem,UESPermissionGetAuthorityList> |
getAuthorityList(UESURI entityUri,
This command returns a list of authorities who have permission on the specified artifact.
|
UESResultList<UESPermissionGetMaskAttributes,UESPermissionGetMaskList> |
getMaskList(UESURI artifactUri,
This command returns a list of permission mask that can be granted on the specified artifact.
|
UESResultList<UESPermissionGetSystemGroupAttributes,UESPermissionGetSystemGroupList> |
getSystemGroupList(UESURI artifactUri,
This command returns a list of system groups that are defined for the specified artifact.
|
void |
grant(UESURI entityUri,
The command grants permission for the specified artifact and its aggregated objects.
|
void |
revoke(UESURI entityUri,
The command revokes permissions for the specified artifact and its aggregated objects.
|
UESMetaPermission.getMaskList(cz.ues.core.commons.uri.UESURI, cz.ues.core.security.authz.dto.UESMetaPermissionGetMaskList)) or own settings data (see UESPermissionGrant.data) can be used for permission settings.entityUri - UESURI of the entity for that the permission is grantedpermission - DTO containing attributes of the permissionUESPermissionRTExceptionauthorityUri - UESURI of the entity (artifact, object) over which the logged user will be authorized. Never null.useCaseCode - Code of the specific use case according to will be logged user authorized.UESPermissionRTExceptionUESPermissionRevoke.all) or part (see
UESPermissionRevoke.data) of permission settings.entityUri - UESURI of the entity for that the permission is revokedpermission - DTO containing attributes of the permission to revokeUESPermissionRTExceptionentityUri - UESURI of the entity where permissions are appliedcriteria - DTO containing criteria for listing the permissionsUESPermissionRTExceptionUESPermission.grant(cz.ues.core.commons.uri.UESURI, cz.ues.core.security.authz.dto.UESPermissionGrant)) and from rest of actions that are defined in the system
catalog. entityUri - UESURI of the entity where permissions are appliedoptions - DTO containing options for getting permission settings dataUESPermissionRTExceptionartifactUri - UESURI of the artifactcriteria - DTO containing criteria for listing permission masksUESPermissionRTExceptionartifactUri - UESURI of the artifactUESPermissionRTException