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 boolean
protected boolean
protected boolean
protected LibraryEntry
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 Fleet/Document Library entry can be created.boolean
Returns if the Fleet/Document Library entry can be deleted.boolean
Returns if the Fleet/Document Library entry can be edited.boolean
Returns if the Fleet/Document Library entry can be viewed.void
Updates the Fleet Entry to validate access to.void
validate()
Calculates access control rightsMethods inherited from class org.deltava.security.command.AccessControl
validateContext
-
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:AccessControl
Calculates access control rights- Specified by:
validate
in 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
-