Interface UIAccessRightService
- All Known Implementing Classes:
BundleUIAccessRightService,CMSCockpitUIAccessRightService,DefaultUIAccessRightService
public interface UIAccessRightService
A
UIAccessRightService provides a set of methods for dealing with users' read and write access
throughout a Cockpit application.-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether a specific user has read access to a specific Cockpit component or not.booleancanWrite(UserModel user, CatalogVersionModel catVersion) Returns whether a specific user has write access to a specific catalog version or not.booleanReturns whether a specific user has write access to a specific Cockpit component or not.booleanisReadable(ObjectType type) Returns whether the current user has read access to the specified type.booleanisReadable(ObjectType type, PropertyDescriptor propDescr, boolean creationMode) Returns whether the current user has read access to the specified property.booleanisWritable(ObjectType type) Returns whether the current user has write access to the specified type.booleanisWritable(ObjectType type, PropertyDescriptor propDescr, boolean creationMode) Returns whether the current user has write access to the specified item property.booleanisWritable(ObjectType type, TypedObject item) Returns whether the current user has write access to the specified item.booleanisWritable(ObjectType type, TypedObject item, PropertyDescriptor propDescr, boolean creationMode) Returns whether the current user has write access to the specified item property.
-
Method Details
-
canRead
Returns whether a specific user has read access to a specific Cockpit component or not.- Parameters:
user- the user to check access forcomponentCode- the unique code of the component- Returns:
trueif the user has read access to the specified component, otherwisefalse
-
canWrite
Returns whether a specific user has write access to a specific Cockpit component or not.- Parameters:
user- the user to check access forcomponentCode- the unique code of the component- Returns:
trueif the user has write access to the specified component, otherwisefalse
-
canWrite
Returns whether a specific user has write access to a specific catalog version or not.- Parameters:
user- the user to check access forcatVersion- the catalog version- Returns:
trueif the user has write access,falseotherwise
-
isReadable
Returns whether the current user has read access to the specified type.- Parameters:
type- the type to check access for- Returns:
trueif user has read access,falseotherwise
-
isReadable
Returns whether the current user has read access to the specified property.- Parameters:
type- item typepropDescr- item attribute to check access forcreationMode- creation mode or not- Returns:
trueif user has read access,falseotherwise
-
isWritable
Returns whether the current user has write access to the specified type.- Parameters:
type- the type to check access for- Returns:
trueif user has write access,falseotherwise
-
isWritable
Returns whether the current user has write access to the specified item.- Parameters:
type- item typeitem- the item instance to check access for- Returns:
trueif user has write access,falseotherwise
-
isWritable
Returns whether the current user has write access to the specified item property.- Parameters:
type- item typepropDescr- item attribute to check access forcreationMode- creation mode or not- Returns:
trueif user has write access,falseotherwise
-
isWritable
boolean isWritable(ObjectType type, TypedObject item, PropertyDescriptor propDescr, boolean creationMode) Returns whether the current user has write access to the specified item property.- Parameters:
type- item typeitem- item instancepropDescr- item attribute to check access forcreationMode- creation mode or not- Returns:
trueif user has write access,falseotherwise
-