Class AccessPermission

java.lang.Object
io.goobi.viewer.model.security.AccessPermission
All Implemented Interfaces:
Serializable

public class AccessPermission extends Object implements Serializable
Access permission check outcome. Apart from access granted true/false status, additional attributes can be defined here.
See Also:
  • Constructor Details

    • AccessPermission

      public AccessPermission()
  • Method Details

    • denied

      public static AccessPermission denied()
      Returns:
      AccessPermission with denied status
    • granted

      public static AccessPermission granted()
      Returns:
      AccessPermission with granted status
    • isGranted

      public boolean isGranted()
      Returns:
      the granted
    • setGranted

      public AccessPermission setGranted(boolean granted)
      Parameters:
      granted - the granted to set
      Returns:
      this
    • isTicketRequired

      public boolean isTicketRequired()
      Returns:
      the ticketRequired
    • setTicketRequired

      public AccessPermission setTicketRequired(boolean ticketRequired)
      Parameters:
      ticketRequired - the ticketRequired to set
      Returns:
      this
    • isRedirect

      public boolean isRedirect()
      Returns:
      the redirect
    • setRedirect

      public AccessPermission setRedirect(boolean redirect)
      Parameters:
      redirect - the redirect to set
      Returns:
      this
    • getRedirectUrl

      public String getRedirectUrl()
      Returns:
      the redirectUrl
    • setRedirectUrl

      public AccessPermission setRedirectUrl(String redirectUrl)
      Parameters:
      redirectUrl - the redirectUrl to set
      Returns:
      this
    • toString

      public String toString()
      Overrides:
      toString in class Object