|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RuntimePermissions
RuntimePermissions present permissions that are changeable at runtime. While other permissions are bound to model elements in the process model RuntimePermissions can be set via the public API.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
Set<String> getAllPermissionIds()
GlobalPermissionConstantsSet<ModelParticipantInfo> getGrants(String permissionId)
permissionId - the id of the permission from GlobalPermissionConstants
GlobalPermissionConstants,
hasAllGrant(String)Set<ModelParticipantInfo> getDeniedGrants(String permissionId)
permissionId - the id of the permission from GlobalPermissionConstants
GlobalPermissionConstants,
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.GlobalPermissionConstants
void 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 GlobalPermissionConstants
true if the all-grant is set for the specified permissionId.GlobalPermissionConstantsboolean isDefaultGrant(String permissionId)
permissionId - the id of the permission from GlobalPermissionConstants
true if the specified permissionId currently has its default grant assigned.GlobalPermissionConstants
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||