Class PermResponse
java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.PermResponse
- All Implemented Interfaces:
Serializable
Response containing the permission flag for a specific permission request
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreate 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
Modifier and TypeMethodDescriptionboolean
Flag whether the permission is grantedvoid
setGranted
(boolean granted) Flag whether the permission is grantedMethods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
Field Details
-
granted
protected boolean grantedPermission granted
-
-
Constructor Details
-
PermResponse
public PermResponse()Create an empty instance -
PermResponse
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
-
-
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
-