com.gentics.contentnode.rest.model.response
Class PermResponse

java.lang.Object
  extended by com.gentics.contentnode.rest.model.response.GenericResponse
      extended by com.gentics.contentnode.rest.model.response.PermResponse

public class PermResponse
extends GenericResponse

Response containing the permission flag for a specific permission request


Field Summary
protected  boolean granted
          Permission granted
 
Constructor Summary
PermResponse()
          Create an empty instance
PermResponse(boolean granted)
          Create success response with perm bits String.
PermResponse(Message message, ResponseInfo responseInfo)
          Create response with message and response info
 
Method Summary
 boolean isGranted()
          Flag whether the permission is granted
 void 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

granted

protected boolean granted
Permission granted

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 - 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 Detail

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


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.