Class NewsAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.NewsAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for System News and NOTAMs.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionNewsAccessControl
(SecurityContext ctx, News nws) Initializes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if a new System News entry can be created.boolean
Returns if a new Notice to Airmen (NOTAM) can be created.boolean
Returns if the System News/Notice entry can be deleted.boolean
Returns if the System News/Notice entry can be edited.boolean
Returns if the System News/Notice entry can be saved.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
NewsAccessControl
Initializes the Access Controller.- Parameters:
ctx
- the Command contextnws
- the System News/NOTAM entry
-
-
Method Details
-
validate
-
getCanCreateNews
public boolean getCanCreateNews()Returns if a new System News entry can be created.- Returns:
- TRUE if a News entry can be created, otherwise FALSE
-
getCanCreateNOTAM
public boolean getCanCreateNOTAM()Returns if a new Notice to Airmen (NOTAM) can be created.- Returns:
- TRUE if a NOTAM can be created, otherwise FALSE
-
getCanEdit
public boolean getCanEdit()Returns if the System News/Notice entry can be edited.- Returns:
- TRUE if the entry can be edited, otherwise FALSE
-
getCanSave
public boolean getCanSave()Returns if the System News/Notice entry can be saved.- Returns:
- TRUE if the entry can be saved, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns if the System News/Notice entry can be deleted.- Returns:
- TRUE if the entry can be deleted, otherwise FALSE
-