Class GalleryAccessControl

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

public class GalleryAccessControl extends AccessControl
An Access Controller to support Image Gallery operations.
Since:
1.0
Version:
7.0
Author:
Luke
See Also:
  • Constructor Details

    • GalleryAccessControl

      public GalleryAccessControl(SecurityContext ctx, Image img)
      Initializes the access controller.
      Parameters:
      ctx - the command context
      img - the Image Gallery image
  • Method Details

    • validate

      public void validate()
      Calculates access rights.
      Specified by:
      validate in class AccessControl
    • getCanCreate

      public boolean getCanCreate()
      Returns if a new Image Gallery entry can be created.
      Returns:
      TRUE if a new entry can be created, otherwise FALSE
    • getCanEdit

      public boolean getCanEdit()
      Returns if the Image Gallery entry can be edited.
      Returns:
      TRUE if the entry can be edited, otherwise FALSE
    • getCanLike

      public boolean getCanLike()
      Returns if this user can like this Image Gallery entry.
      Returns:
      TRUE if a like can be cast, otherwise FALSE
    • getCanDelete

      public boolean getCanDelete()
      Returns if the Image Gallery entry can be deleted.
      Returns:
      TRUE if the entry can be deleted, otherwise FALSE