Class NewsAccessControl

java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.NewsAccessControl
All Implemented Interfaces:
Serializable

public class NewsAccessControl extends AccessControl
An Access Controller for System News and NOTAMs.
Since:
1.0
Version:
7.0
Author:
Luke
See Also:
  • Constructor Details

    • NewsAccessControl

      public NewsAccessControl(SecurityContext ctx, News nws)
      Initializes the Access Controller.
      Parameters:
      ctx - the Command context
      nws - the System News/NOTAM entry
  • Method Details

    • validate

      public void validate()
      Calculates access rights.
      Specified by:
      validate in class AccessControl
    • 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