Class AircraftAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.AircraftAccessControl
- All Implemented Interfaces:
Serializable
A Security Controller for Aircraft profiles.
- Since:
- 5.0
- Version:
- 5.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes the controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether the user can create a new Aircraft profile.boolean
Returns whether the user can delete this Aircraft profile.boolean
Returns whether the user can edit this Aircraft profile.boolean
Returns whether the user can read this Aircraft profile.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
AircraftAccessControl
Initializes the controller.- Parameters:
ctx
- the SecurityContexta
- the Aircraft profile
-
-
Method Details
-
validate
-
getCanCreate
public boolean getCanCreate()Returns whether the user can create a new Aircraft profile.- Returns:
- TRUE if a new profile can be created, otherwise FALSE
-
getCanRead
public boolean getCanRead()Returns whether the user can read this Aircraft profile.- Returns:
- TRUE if this profile can be read, otherwise FALSE
-
getCanEdit
public boolean getCanEdit()Returns whether the user can edit this Aircraft profile.- Returns:
- TRUE if this profile can be edited, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns whether the user can delete this Aircraft profile.- Returns:
- TRUE if this profile can be deleted, otherwise FALSE
-