|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.caleigo.core.DataAccessManager
org.caleigo.core.DataAccessManager.ConstantDataAccessManager
This simple DataAccessManager restricts access for all managed elements to a single access level. It can used as a default manager to allow full write access or view only access to any DataSource.
Nested Class Summary |
Nested classes inherited from class org.caleigo.core.DataAccessManager |
DataAccessManager.ConstantDataAccessManager, DataAccessManager.IContentAccessVerifier |
Field Summary |
Fields inherited from class org.caleigo.core.DataAccessManager |
CONTENT_BASED, NONE, READ, WRITE |
Constructor Summary | |
DataAccessManager.ConstantDataAccessManager(int defaultAccessLevel)
|
Method Summary | |
boolean |
acceptsReplacement(DataAccessManager newManager)
This method allows a current manager to reject replacement by another DataAccessManager. |
int |
getAccessLevel(IDataSourceDescriptor dataSourceDescriptor)
Returns the access level for the provided IDataSourceDescriptor defined as NONE, READ, WRITE or CONTENT_BASED. |
int |
getAccessLevel(IEntityAction entityAction)
Returns the access level for the provided IEntityAction defined as NONE, READ, WRITE or CONTENT_BASED. |
int |
getAccessLevel(IEntityDescriptor entityDescriptor)
Returns the access level for the provided IEntityDescriptor defined as NONE, READ, WRITE or CONTENT_BASED. |
int |
getAccessLevel(IFieldDescriptor fieldDescriptor)
Returns the access level for the provided IFieldDescriptor defined as NONE, READ, WRITE or CONTENT_BASED. |
int |
getDefaultAccessLevel()
Access method that returns the default accss level of the manager. |
boolean |
hasReadAccess(IDataSource dataSource)
Returns true if the user has read access to the provided IDataSource. |
boolean |
hasReadAccess(IEntity entity)
Returns true if the user has read access to the provided IEntity. |
boolean |
hasReadAccess(IEntityAction entityAction,
IEntity data)
Returns true if the user has read access to the provided IEntityAction object in the data content scope of the provided IEntity object. |
boolean |
hasReadAccess(IFieldDescriptor fieldDescriptor,
IEntity data)
Returns true if the user has read access to the provided fieldDescriptor in the data content scope of the provided IEntity object. |
boolean |
hasWriteAccess(IDataSource dataSource)
Returns true if the user has write access to the provided IDataSource. |
boolean |
hasWriteAccess(IEntity entity)
Returns true if the user has write access to the provided IEntity. |
boolean |
hasWriteAccess(IEntityAction entityAction,
IEntity data)
Returns true if the user has write access to the provided IEntityAction object in the data content scope of the provided IEntity object. |
boolean |
hasWriteAccess(IFieldDescriptor fieldDescriptor,
IEntity data)
Returns true if the user has write access to the provided fieldDescriptor in the data content scope of the provided IEntity object. |
Methods inherited from class org.caleigo.core.DataAccessManager |
getManager, setDefaultManager, setManager, setManagerReqursively |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataAccessManager.ConstantDataAccessManager(int defaultAccessLevel)
Method Detail |
public int getAccessLevel(IDataSourceDescriptor dataSourceDescriptor)
getAccessLevel
in class DataAccessManager
public int getAccessLevel(IEntityDescriptor entityDescriptor)
getAccessLevel
in class DataAccessManager
public int getAccessLevel(IFieldDescriptor fieldDescriptor)
getAccessLevel
in class DataAccessManager
public int getAccessLevel(IEntityAction entityAction)
getAccessLevel
in class DataAccessManager
public boolean hasReadAccess(IDataSource dataSource)
hasReadAccess
in class DataAccessManager
public boolean hasReadAccess(IEntity entity)
hasReadAccess
in class DataAccessManager
public boolean hasReadAccess(IFieldDescriptor fieldDescriptor, IEntity data)
hasReadAccess
in class DataAccessManager
public boolean hasReadAccess(IEntityAction entityAction, IEntity data)
hasReadAccess
in class DataAccessManager
public boolean hasWriteAccess(IDataSource dataSource)
hasWriteAccess
in class DataAccessManager
public boolean hasWriteAccess(IEntity entity)
hasWriteAccess
in class DataAccessManager
public boolean hasWriteAccess(IFieldDescriptor fieldDescriptor, IEntity data)
hasWriteAccess
in class DataAccessManager
public boolean hasWriteAccess(IEntityAction entityAction, IEntity data)
hasWriteAccess
in class DataAccessManager
public boolean acceptsReplacement(DataAccessManager newManager)
acceptsReplacement
in class DataAccessManager
public int getDefaultAccessLevel()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |