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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
granted
Permission granted
-
Constructor Summary
Constructors Constructor Description PermResponse()
Create an empty instancePermResponse(boolean granted)
Create success response with perm bits String.PermResponse(Message message, ResponseInfo responseInfo)
Create response with message and response info
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isGranted()
Flag whether the permission is grantedvoid
setGranted(boolean granted)
Flag whether the permission is granted-
Methods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
-
-
-
Constructor Detail
-
PermResponse
public PermResponse()
Create an empty instance
-
PermResponse
public PermResponse(Message message, ResponseInfo responseInfo)
Create response with message and response info- Parameters:
message
- messageresponseInfo
- 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
-
-