public interface RuntimePermissions extends Serializable
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAllPermissionIds()
Retrieves a set of all permissionIds which can be used to set and retrieve grants
for.
|
Set<ModelParticipantInfo> |
getDeniedGrants(String permissionId)
Retrieves the currently set of denied grants for the Permission.
|
Set<ModelParticipantInfo> |
getGrants(String permissionId)
Retrieves the currently set grants for the Permission.
|
boolean |
hasAllGrant(String permissionId)
Allows to check if the all-grant is set for the
specified permissionId.
|
boolean |
isDefaultGrant(String permissionId)
Allows to check if the currently set grants are the default grants for the specified.
|
void |
setAllGrant(String permissionId)
Sets the all-grant to the specified Permission.
|
void |
setDeniedGrants(String permissionId,
Set<ModelParticipantInfo> grants)
Allows setting a set of
ModelParticipantInfo corresponding to a denied
grant to the specified Permission for certain Roles or Organizations. |
void |
setGrants(String permissionId,
Set<ModelParticipantInfo> grants)
Allows setting a set of
ModelParticipantInfo. |
Set<String> getAllPermissionIds()
GlobalPermissionConstantsSet<ModelParticipantInfo> getGrants(String permissionId)
permissionId - the id of the permission from GlobalPermissionConstantsGlobalPermissionConstants,
hasAllGrant(String)Set<ModelParticipantInfo> getDeniedGrants(String permissionId)
permissionId - the id of the permission from GlobalPermissionConstantsGlobalPermissionConstants,
hasAllGrant(String)void setGrants(String permissionId, Set<ModelParticipantInfo> grants)
ModelParticipantInfo. This can be used to
grant the specified Permission for certain Roles or Organizations.
The ModelParticipantInfo must not be scoped with a department.permissionId - the id of the permission from GlobalPermissionConstantsgrants - a set of grants which will replace the existing ones.IllegalArgumentException - If the ModelParticipantInfo is department scoped.GlobalPermissionConstantsvoid setDeniedGrants(String permissionId, Set<ModelParticipantInfo> grants)
ModelParticipantInfo corresponding to a denied
grant to the specified Permission for certain Roles or Organizations.
The ModelParticipantInfo must not be scoped with a department.permissionId - the id of the permission from GlobalPermissionConstantsgrants - a set of denied grants which will replace the existing ones.IllegalArgumentException - If the ModelParticipantInfo is department scoped.GlobalPermissionConstantsvoid setAllGrant(String permissionId)
permissionId - the id of the permission from GlobalPermissionConstantsGlobalPermissionConstantsboolean hasAllGrant(String permissionId)
permissionId - the id of the permission from GlobalPermissionConstantstrue if the all-grant is set for the specified permissionId.GlobalPermissionConstantsboolean isDefaultGrant(String permissionId)
permissionId - the id of the permission from GlobalPermissionConstantstrue if the specified permissionId currently has its default grant assigned.GlobalPermissionConstantsCopyright © 2016 Eclipse Stardust. All Rights Reserved.