Class FleetEntryAccessControl

java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.FleetEntryAccessControl
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FileEntryAccessControl, ManualAccessControl

public class FleetEntryAccessControl extends AccessControl
An Access Controller to support Fleet/File/Document Library entry operations.
Since:
1.0
Version:
10.2
Author:
Luke
See Also:
  • Field Details

    • _entry

      protected LibraryEntry _entry
    • _canView

      protected boolean _canView
    • _canEdit

      protected boolean _canEdit
    • _canCreate

      protected boolean _canCreate
  • Constructor Details

    • FleetEntryAccessControl

      public FleetEntryAccessControl(SecurityContext ctx, LibraryEntry e)
      Initializes the access controller.
      Parameters:
      ctx - the Command context
      e - the LibraryEntry
  • Method Details

    • setEntry

      public void setEntry(LibraryEntry e)
      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 class AccessControl
    • 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