Interface SessionPermissions
-
Method Summary
Modifier and TypeMethodDescriptiongetAdaptationAccessPermission
(Adaptation aDataSetOrRecord) Returns the current user's access rights on the specified dataset or record.Returns whether the user has permission to access the Administration area in the user interface.Returns whether the user has permission to access the Data Models area in the user interface.Returns whether the user has permission to access the Data Services area in the user interface.Returns whether the user has permission to access the Dataspaces area in the user interface.Returns whether the user has permission to access the IDE user interface.Returns whether the user has permission to access the Workflow Models area in the user interface.getHomeAccessPermission
(AdaptationHome aDataSpaceOrSnapshot) Returns the current user's access rights on the dataspace or snapshot specified.getHomeActionPermissionForService
(ServiceKey serviceKey, AdaptationHome aDataSpaceOrSnapshot) Returns the current user's permissions for executing the dataspace or snapshot service specified.getHomeActionPermissionToChangeOwner
(AdaptationHome aDataSpaceOrSnapshot) Returns the current user's permissions for changing the owner of the dataspace or snapshot specified.getHomeActionPermissionToChangePermission
(AdaptationHome aDataSpaceOrSnapshot) Returns the current user's permissions for changing permissions of the dataspace or snapshot specified.getHomeActionPermissionToCloseHome
(AdaptationHome aDataSpaceOrSnapshot) Returns the current user's permissions for closing the dataspace or snapshot specified.Returns the current user's permissions for creating child dataspaces from the dataspace specified.Returns the current user's permissions for creating child snapshots from the dataspace specified.getHomeActionPermissionToCreateRootInstance
(AdaptationHome aDataSpaceOrSnapshot) Returns the current user's permissions for creating a root dataset.getHomeActionPermissionToExportArchive
(AdaptationHome aDataSpaceOrSnapshot) Returns the current user's permission for performing an archive export of the dataspace or snapshot specified.getHomeActionPermissionToImportArchive
(AdaptationHome aDataSpace) Returns the current user's permissions for performing an archive import into the dataspace specified.Returns the current user's permissions for merging the dataspace specified.getHomeActionPermissionToLockHome
(LockSpec aSpec, AdaptationHome aDataSpace) Returns the current user's permissions for locking the dataspace specified.getHomeActionPermissionToUnlockHome
(LockSpec aSpec, AdaptationHome aDataSpace) Returns the current user's permissions for unlocking the dataspace specified.getInstanceActionPermissionForService
(ServiceKey serviceKey, Adaptation aDataSet) Returns the current user's permissions for executing the dataset service specified.Returns the current user's permissions for activating the dataset specified.Returns the current user's permissions for creating child datasets from the dataset specified.Returns the current user's permissions for duplicating the dataset specified.Returns the current user's permissions for deleting the dataset specified.getNodeAccessPermission
(SchemaNode aNode, Adaptation aDataSetOrRecord) Returns the current user's access rights on the specified node in an update/display context.getNodeAccessPermissionForCreate
(SchemaNode aNode, AdaptationTable aTable) Returns the current user's access rights on the specified node in a creation context.getNodeAccessPermissionForForm
(SchemaNode aNode, Adaptation aDataSetOrRecord) Returns the current user's access rights on the specified node when displayed in a form.getNodeActionPermissionForService
(ServiceKey aServiceKey, SchemaNode aNode, Adaptation aDataSetOrRecord) Returns the current user's permissions for executing the service on the specified node.getOccurrenceActionPermissionToDelete
(Adaptation aRecord, AdaptationTable aTable) Returns the current user's permissions for deleting the specified table record.getOccurrenceActionPermissionToOccult
(Adaptation aRecord, AdaptationTable aTable) Returns the current user's permissions for occulting the specified table record.getOccurrenceActionPermissionToOverwrite
(Adaptation aRecord, AdaptationTable aTable) Returns the current user's permissions for overwriting the specified table record.Deprecated.getTableActionPermissionForService
(ServiceKey serviceKey, AdaptationTable aTable) Returns the current user's permissions for executing the service in the table specified.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.
-
Method Details
-
getGlobalPermissionToAdministration
AccessPermission getGlobalPermissionToAdministration()Returns whether the user has permission to access the Administration area in the user interface. -
getGlobalPermissionToDataSpace
AccessPermission getGlobalPermissionToDataSpace()Returns whether the user has permission to access the Dataspaces area in the user interface. -
getGlobalPermissionToDataModel
AccessPermission getGlobalPermissionToDataModel()Returns whether the user has permission to access the Data Models area in the user interface. -
getGlobalPermissionToWorkflowModel
AccessPermission getGlobalPermissionToWorkflowModel()Returns whether the user has permission to access the Workflow Models area in the user interface. -
getGlobalPermissionToDataServices
AccessPermission getGlobalPermissionToDataServices()Returns whether the user has permission to access the Data Services area in the user interface. -
getGlobalPermissionToIde
AccessPermission getGlobalPermissionToIde()Returns whether the user has permission to access the IDE user interface.- Since:
- 6.2.0
-
getHomeAccessPermission
Returns the current user's access rights on the dataspace or snapshot specified. -
getAdaptationAccessPermission
Returns the current user's access rights on the specified dataset or record. -
getNodeAccessPermission
Returns the current user's access rights on the specified node in an update/display context.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 nothidden
, returnshidden
otherwise.Note: There can be additional permission rules applying while in a creation context, in this case
getNodeAccessPermissionForCreate(SchemaNode, AdaptationTable)
should be used instead. -
getNodeAccessPermissionForCreate
Returns the current user's access rights on the specified node in a creation context.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 nothidden
, returnshidden
otherwise.- Since:
- 5.9.0
-
getNodeAccessPermissionForForm
Returns the current user's access rights on the specified node when displayed in a form.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).
- Since:
- 5.8.0
-
getNodeActionPermissionForService
ActionPermission getNodeActionPermissionForService(ServiceKey aServiceKey, SchemaNode aNode, Adaptation aDataSetOrRecord) Returns the current user's permissions for executing the service on the specified node. If the specified service is not found,ActionPermission.getDisabled()
is returned.- Since:
- 5.4.2
-
getHomeActionPermissionToCreateChildBranch
Returns the current user's permissions for creating child dataspaces from the dataspace specified. -
getHomeActionPermissionToCreateChildVersion
Returns the current user's permissions for creating child snapshots from the dataspace specified. -
getHomeActionPermissionToInitializeMerge
Returns the current user's permissions for merging the dataspace specified. -
getHomeActionPermissionToExportArchive
Returns the current user's permission for performing an archive export of the dataspace or snapshot specified. -
getHomeActionPermissionToImportArchive
Returns the current user's permissions for performing an archive import into the dataspace specified. -
getHomeActionPermissionToCloseHome
Returns the current user's permissions for closing the dataspace or snapshot specified. -
isHomeOwner
Returns whether the current user is the owner of the dataspace or snapshot specified. -
getHomeActionPermissionToLockHome
Returns the current user's permissions for locking the dataspace specified.- See Also:
-
getHomeActionPermissionToUnlockHome
Returns the current user's permissions for unlocking the dataspace specified.- See Also:
-
getHomeActionPermissionToCreateRootInstance
Returns the current user's permissions for creating a root dataset. -
getHomeActionPermissionToChangeOwner
Returns the current user's permissions for changing the owner of the dataspace or snapshot specified. -
getHomeActionPermissionToChangePermission
Returns the current user's permissions for changing permissions of the dataspace or snapshot specified. -
getHomeActionPermissionForService
ActionPermission getHomeActionPermissionForService(ServiceKey serviceKey, AdaptationHome aDataSpaceOrSnapshot) Returns the current user's permissions for executing the dataspace or snapshot service specified. If the specified service is not found,ActionPermission.getDisabled()
is returned. -
getInstanceActionPermissionToCreateChild
Returns the current user's permissions for creating child datasets from the dataset specified. -
getInstanceActionPermissionToCreateDuplicate
Returns the current user's permissions for duplicating the dataset specified. -
getInstanceActionPermissionToDeleteInstance
Returns the current user's permissions for deleting the dataset specified. -
getInstanceActionPermissionToActivateInstance
Returns the current user's permissions for activating the dataset specified. -
getInstanceActionPermissionForService
Returns the current user's permissions for executing the dataset service specified. If the specified service is not found,ActionPermission.getDisabled()
is returned. -
getTableActionPermissionToCreateRootOccurrence
Returns the current user's permissions for creating a table record in the table specified.Warning
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. -
getTableActionPermissionForService
Returns the current user's permissions for executing the service in the table specified. If the specified service is not found,ActionPermission.getDisabled()
is returned.- Since:
- 5.4.2
-
getOccurrenceActionPermissionToOverwrite
ActionPermission getOccurrenceActionPermissionToOverwrite(Adaptation aRecord, AdaptationTable aTable) Returns the current user's permissions for overwriting the specified table record.Warning
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.- Throws:
IllegalArgumentException
- ifaRecord
is a dataset.
-
getOccurrenceActionPermissionToOccult
Returns the current user's permissions for occulting the specified table record.Warning
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.- Throws:
IllegalArgumentException
- ifaRecord
is a dataset.
-
getOccurrenceActionPermissionToDelete
Returns the current user's permissions for deleting the specified table record.Warning
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.- Throws:
IllegalArgumentException
- ifaRecord
is a dataset.
-
getSession
Deprecated.Since 5.4.1, this method returnsnull
if this instance has been created directly to evaluate user permissions.Returns the associated user session, ornull
if this instance has been created directly to evaluate user permissions.
-
null
if this instance has been created directly to evaluate user permissions.