public interface SessionPermissions
Modifier and Type | Method and Description |
---|---|
AccessPermission |
getAdaptationAccessPermission(Adaptation aDataSetOrRecord)
Returns the current user's access rights on the specified dataset or record.
|
AccessPermission |
getGlobalPermissionToAdministration()
Returns whether the user has permission to access the Administration area in the user interface.
|
AccessPermission |
getGlobalPermissionToDataModel()
Returns whether the user has permission to access the Data Models area in the user interface.
|
AccessPermission |
getGlobalPermissionToDataServices()
Returns whether the user has permission to access the Data Services area in the user interface.
|
AccessPermission |
getGlobalPermissionToDataSpace()
Returns whether the user has permission to access the Dataspaces area in the user interface.
|
AccessPermission |
getGlobalPermissionToWorkflowModel()
Returns whether the user has permission to access the Workflow Models area in the user interface.
|
AccessPermission |
getHomeAccessPermission(AdaptationHome aDataSpaceOrSnapshot)
Returns the current user's access rights on the dataspace or snapshot specified.
|
ActionPermission |
getHomeActionPermissionForService(ServiceKey serviceKey,
AdaptationHome aDataSpaceOrSnapshot)
Returns the current user's permissions for executing the dataspace or snapshot service specified.
|
ActionPermission |
getHomeActionPermissionToChangeOwner(AdaptationHome aDataSpaceOrSnapshot)
Returns the current user's permissions for changing the owner of the dataspace or snapshot specified.
|
ActionPermission |
getHomeActionPermissionToChangePermission(AdaptationHome aDataSpaceOrSnapshot)
Returns the current user's permissions for changing permissions of the dataspace or snapshot specified.
|
ActionPermission |
getHomeActionPermissionToCloseHome(AdaptationHome aDataSpaceOrSnapshot)
Returns the current user's permissions for closing the dataspace or snapshot specified.
|
ActionPermission |
getHomeActionPermissionToCreateChildBranch(AdaptationHome aDataSpace)
Returns the current user's permissions for creating child dataspaces from the dataspace specified.
|
ActionPermission |
getHomeActionPermissionToCreateChildVersion(AdaptationHome aDataSpace)
Returns the current user's permissions for creating child snapshots from the dataspace specified.
|
ActionPermission |
getHomeActionPermissionToCreateRootInstance(AdaptationHome aDataSpaceOrSnapshot)
Returns the current user's permissions for creating a root dataset.
|
ActionPermission |
getHomeActionPermissionToExportArchive(AdaptationHome aDataSpaceOrSnapshot)
Returns the current user's permission for performing an archive export of the dataspace or snapshot specified.
|
ActionPermission |
getHomeActionPermissionToImportArchive(AdaptationHome aDataSpace)
Returns the current user's permissions for performing an archive import into the dataspace specified.
|
ActionPermission |
getHomeActionPermissionToInitializeMerge(AdaptationHome aDataSpace)
Returns the current user's permissions for merging the dataspace specified.
|
ActionPermission |
getHomeActionPermissionToLockHome(LockSpec aSpec,
AdaptationHome aDataSpace)
Returns the current user's permissions for locking the dataspace specified.
|
ActionPermission |
getHomeActionPermissionToUnlockHome(LockSpec aSpec,
AdaptationHome aDataSpace)
Returns the current user's permissions for unlocking the dataspace specified.
|
ActionPermission |
getInstanceActionPermissionForService(ServiceKey serviceKey,
Adaptation aDataSet)
Returns the current user's permissions for executing the dataset service specified.
|
ActionPermission |
getInstanceActionPermissionToActivateInstance(Adaptation aDataSet)
Returns the current user's permissions for activating the dataset specified.
|
ActionPermission |
getInstanceActionPermissionToCreateChild(Adaptation aDataSet)
Returns the current user's permissions for creating child datasets from the dataset specified.
|
ActionPermission |
getInstanceActionPermissionToCreateDuplicate(Adaptation aDataSet)
Returns the current user's permissions for duplicating the dataset specified.
|
ActionPermission |
getInstanceActionPermissionToDeleteInstance(Adaptation aDataSet)
Returns the current user's permissions for deleting the dataset specified.
|
AccessPermission |
getNodeAccessPermission(SchemaNode aNode,
Adaptation aDataSetOrRecord)
Returns the current user's access rights on the specified node in an update/display context.
|
AccessPermission |
getNodeAccessPermissionForCreate(SchemaNode aNode,
AdaptationTable aTable)
Returns the current user's access rights on the specified node in a creation context.
|
AccessPermission |
getNodeAccessPermissionForForm(SchemaNode aNode,
Adaptation aDataSetOrRecord)
Returns the current user's access rights on the specified node when
displayed in a form.
|
ActionPermission |
getNodeActionPermissionForService(ServiceKey aServiceKey,
SchemaNode aNode,
Adaptation aDataSetOrRecord)
Returns the current user's permissions for executing the service on the specified node.
|
ActionPermission |
getOccurrenceActionPermissionToDelete(Adaptation aRecord,
AdaptationTable aTable)
Returns the current user's permissions for deleting the specified table record.
|
ActionPermission |
getOccurrenceActionPermissionToOccult(Adaptation aRecord,
AdaptationTable aTable)
Returns the current user's permissions for occulting the specified table record.
|
ActionPermission |
getOccurrenceActionPermissionToOverwrite(Adaptation aRecord,
AdaptationTable aTable)
Returns the current user's permissions for overwriting the specified table record.
|
Session |
getSession()
Deprecated.
Since 5.4.1, this method returns
null
if this instance has been created directly to evaluate user permissions. |
ActionPermission |
getTableActionPermissionForService(ServiceKey serviceKey,
AdaptationTable aTable)
Returns the current user's permissions for executing the service in the table specified.
|
ActionPermission |
getTableActionPermissionToCreateRootOccurrence(AdaptationTable aTable)
Returns the current user's permissions for creating a table record in the table specified.
|
boolean |
isHomeOwner(AdaptationHome aDataSpaceOrSnapshot)
Returns whether the current user is the owner of the dataspace or snapshot specified.
|
AccessPermission getGlobalPermissionToAdministration()
AccessPermission getGlobalPermissionToDataSpace()
AccessPermission getGlobalPermissionToDataModel()
AccessPermission getGlobalPermissionToWorkflowModel()
AccessPermission getGlobalPermissionToDataServices()
AccessPermission getHomeAccessPermission(AdaptationHome aDataSpaceOrSnapshot)
AccessPermission getAdaptationAccessPermission(Adaptation aDataSetOrRecord)
AccessPermission getNodeAccessPermission(SchemaNode aNode, Adaptation aDataSetOrRecord)
When the specified node is not terminal, the access permission returned by this method
is read-only
if at least one of its children is not hidden
,
returns hidden
otherwise.
Note: There can be additional permission rules applying while in a creation context,
in this case getNodeAccessPermissionForCreate(SchemaNode, AdaptationTable)
should be used instead.
AccessPermission getNodeAccessPermissionForCreate(SchemaNode aNode, AdaptationTable aTable)
When the specified node is not terminal, the access permission returned by this method
is read-only
if at least one of its children is not hidden
,
returns hidden
otherwise.
AccessPermission getNodeAccessPermissionForForm(SchemaNode aNode, Adaptation aDataSetOrRecord)
When the specified node is a table record node
and the specified adaptation is a dataset,
permissions are evaluated in the context of a record creation.
In such a case, there can be some additional permission rules applying (see AccessRuleForCreate
).
The access permission returned by this method is never less restrictive than the one returned by getNodeAccessPermission(SchemaNode, Adaptation).
ActionPermission getNodeActionPermissionForService(ServiceKey aServiceKey, SchemaNode aNode, Adaptation aDataSetOrRecord)
ActionPermission getHomeActionPermissionToCreateChildBranch(AdaptationHome aDataSpace)
ActionPermission getHomeActionPermissionToCreateChildVersion(AdaptationHome aDataSpace)
ActionPermission getHomeActionPermissionToInitializeMerge(AdaptationHome aDataSpace)
ActionPermission getHomeActionPermissionToExportArchive(AdaptationHome aDataSpaceOrSnapshot)
ActionPermission getHomeActionPermissionToImportArchive(AdaptationHome aDataSpace)
ActionPermission getHomeActionPermissionToCloseHome(AdaptationHome aDataSpaceOrSnapshot)
boolean isHomeOwner(AdaptationHome aDataSpaceOrSnapshot)
ActionPermission getHomeActionPermissionToLockHome(LockSpec aSpec, AdaptationHome aDataSpace)
LockSpec.lock(AdaptationHome, Session)
ActionPermission getHomeActionPermissionToUnlockHome(LockSpec aSpec, AdaptationHome aDataSpace)
LockSpec.unlock(AdaptationHome, Session)
ActionPermission getHomeActionPermissionToCreateRootInstance(AdaptationHome aDataSpaceOrSnapshot)
ActionPermission getHomeActionPermissionToChangeOwner(AdaptationHome aDataSpaceOrSnapshot)
ActionPermission getHomeActionPermissionToChangePermission(AdaptationHome aDataSpaceOrSnapshot)
ActionPermission getHomeActionPermissionForService(ServiceKey serviceKey, AdaptationHome aDataSpaceOrSnapshot)
ActionPermission getInstanceActionPermissionToCreateChild(Adaptation aDataSet)
ActionPermission getInstanceActionPermissionToCreateDuplicate(Adaptation aDataSet)
ActionPermission getInstanceActionPermissionToDeleteInstance(Adaptation aDataSet)
ActionPermission getInstanceActionPermissionToActivateInstance(Adaptation aDataSet)
ActionPermission getInstanceActionPermissionForService(ServiceKey serviceKey, Adaptation aDataSet)
ActionPermission getTableActionPermissionToCreateRootOccurrence(AdaptationTable aTable)
Access right on the table node for the current session is ignored when
calling this method. To perform this additional check, method
getNodeAccessPermission(SchemaNode, Adaptation)
should also be called on the table node.
ActionPermission getTableActionPermissionForService(ServiceKey serviceKey, AdaptationTable aTable)
ActionPermission getOccurrenceActionPermissionToOverwrite(Adaptation aRecord, AdaptationTable aTable)
Access right on the table node for the current session is ignored when
calling this method. To perform this additional check, method
getNodeAccessPermission(SchemaNode, Adaptation)
should also be called on the table node.
IllegalArgumentException
- if aRecord
is a dataset.ActionPermission getOccurrenceActionPermissionToOccult(Adaptation aRecord, AdaptationTable aTable)
Access right on the table node for the current session is ignored when
calling this method. To perform this additional check, method
getNodeAccessPermission(SchemaNode, Adaptation)
should also be called on the table node.
IllegalArgumentException
- if aRecord
is a dataset.ActionPermission getOccurrenceActionPermissionToDelete(Adaptation aRecord, AdaptationTable aTable)
Access right on the table node for the current session is ignored when
calling this method. To perform this additional check, method
getNodeAccessPermission(SchemaNode, Adaptation)
should also be called on the table node.
IllegalArgumentException
- if aRecord
is a dataset.Session getSession()
null
if this instance has been created directly to evaluate user permissions.null
if this instance has been created directly to evaluate user permissions.