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 org.deltava.security.command.FleetEntryAccessControl
_canCreate, _canEdit, _canView, _entry
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if a new File Library entry can be created.boolean
Returns if the File Library entry can be edited.Methods inherited from class org.deltava.security.command.FleetEntryAccessControl
getCanDelete, getCanView, setEntry, validate
Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
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:
getCanCreate
in 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:
getCanEdit
in classFleetEntryAccessControl
- Returns:
- TRUE if the entry can be edited, otherwise FALSE
-