Class FileEntryAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.FleetEntryAccessControl
org.deltava.security.command.FileEntryAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for File Library entires.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class FleetEntryAccessControl
_canCreate, _canEdit, _canView, _entryModifier 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 File Library entry can be created.booleanReturns if the File Library entry can be edited.Methods inherited from class FleetEntryAccessControl
getCanDelete, getCanView, setEntry, validateModifier and TypeMethodDescriptionbooleanReturns if the Fleet/Document Library entry can be deleted.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.
-
Constructor Details
-
FileEntryAccessControl
Initializes the Access Controller.- Parameters:
ctx- the Security contexte- the File Library entry
-
-
Method Details
-
getCanCreate
public boolean getCanCreate()Returns if a new File Library entry can be created.- Overrides:
getCanCreatein classFleetEntryAccessControl- Returns:
- TRUE if a new entry can be created, otherwise FALSE
-
getCanEdit
public boolean getCanEdit()Returns if the File Library entry can be edited.- Overrides:
getCanEditin classFleetEntryAccessControl- Returns:
- TRUE if the entry can be edited, otherwise FALSE
-