Class PartnerAccessControl

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

public class PartnerAccessControl extends AccessControl
An Access Controller for virtual airline Partner data.
Since:
10.3
Version:
10.3
Author:
Luke
See Also:
  • Constructor Details

    • PartnerAccessControl

      public PartnerAccessControl(SecurityContext ctx, PartnerInfo pi)
      Initializes the access controller.
      Parameters:
      ctx - the SecurityContext
      pi - the PartnerInfo bean, or null
  • Method Details

    • validate

      public void validate() throws AccessControlException
      Description copied from class: AccessControl
      Calculates access control rights
      Specified by:
      validate in class AccessControl
      Throws:
      AccessControlException - if no access at all is possible
    • getCanCreate

      public boolean getCanCreate()
      Returns if the user can create a new Partner Information entry.
      Returns:
      TRUE if an entry can be created, otherwise FALSE
    • getCanEdit

      public boolean getCanEdit()
      Returns if the user can edit the Partner Information entry.
      Returns:
      TRUE if the entry can be edited, otherwise FALSE
    • getCanDelete

      public boolean getCanDelete()
      Returns if the user can delete the Partner Information entry.
      Returns:
      TRUE if the entry can be deleted, otherwise FALSE