Class FleetEntryAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.FleetEntryAccessControl
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FileEntryAccessControl, ManualAccessControl
An Access Controller to support Fleet/File/Document Library entry operations.
- Since:
- 1.0
- Version:
- 10.2
- Author:
- Luke
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected LibraryEntryFields inherited from class AccessControl
_ctx -
Constructor Summary
ConstructorsConstructorDescriptionInitializes the access controller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if a new Fleet/Document Library entry can be created.booleanReturns if the Fleet/Document Library entry can be deleted.booleanReturns if the Fleet/Document Library entry can be edited.booleanReturns if the Fleet/Document Library entry can be viewed.voidUpdates the Fleet Entry to validate access to.voidvalidate()Calculates access control rightsMethods inherited from class AccessControl
validateContextModifier and TypeMethodDescriptionprotected voidValidates the command context for this access controller.
-
Field Details
-
_entry
-
_canView
protected boolean _canView -
_canEdit
protected boolean _canEdit -
_canCreate
protected boolean _canCreate
-
-
Constructor Details
-
FleetEntryAccessControl
Initializes the access controller.- Parameters:
ctx- the Command contexte- the LibraryEntry
-
-
Method Details
-
setEntry
Updates the Fleet Entry to validate access to.- Parameters:
e- the entry
-
validate
public void validate()Description copied from class:AccessControlCalculates access control rights- Specified by:
validatein classAccessControl
-
getCanEdit
public boolean getCanEdit()Returns if the Fleet/Document Library entry can be edited.- Returns:
- TRUE if the entry can be edited, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns if the Fleet/Document Library entry can be deleted.- Returns:
- TRUE if the entry can be deleted, otherwise FALSE
-
getCanView
public boolean getCanView()Returns if the Fleet/Document Library entry can be viewed.- Returns:
- TRUE if the entry can be viewed, otherwise FALSE
-
getCanCreate
public boolean getCanCreate()Returns if a new Fleet/Document Library entry can be created.- Returns:
- TRUE if a new entry can be created, otherwise FALSE
-