Class PermResponse

java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.PermResponse
All Implemented Interfaces:
Serializable

public class PermResponse extends GenericResponse
Response containing the permission flag for a specific permission request
See Also:
  • Field Details

    • granted

      protected boolean granted
      Permission granted
  • Constructor Details

    • PermResponse

      public PermResponse()
      Create an empty instance
    • PermResponse

      public PermResponse(Message message, ResponseInfo responseInfo)
      Create response with message and response info
      Parameters:
      message - message
      responseInfo - response info
    • PermResponse

      public PermResponse(boolean granted)
      Create success response with perm bits String. Will have the response info set to Success
      Parameters:
      granted - true if permission is granted, false if not
  • Method Details

    • setGranted

      public void setGranted(boolean granted)
      Flag whether the permission is granted
      Parameters:
      granted - true if granted, false if not
    • isGranted

      public boolean isGranted()
      Flag whether the permission is granted
      Returns:
      true if granted, false if not