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

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

public class PermBitsResponse
extends GenericResponse

Response containing permission and role bits


Field Summary
protected  String perm
          Permission bits from groups
protected  String rolePerm
          Permission bits from roles
 
Constructor Summary
PermBitsResponse()
          Create an empty instance
PermBitsResponse(Message message, ResponseInfo responseInfo)
          Create response with message and response info
PermBitsResponse(String perm, String rolePerm)
          Create success response with perm bits String.
 
Method Summary
 String getPerm()
          Permission bits and roles
 String getRolePerm()
          Get the role permission bits
 void setPerm(String perm)
          Set the permission bits and roles
 void setRolePerm(String rolePerm)
          Set the role permission bits
 
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

perm

protected String perm
Permission bits from groups


rolePerm

protected String rolePerm
Permission bits from roles

Constructor Detail

PermBitsResponse

public PermBitsResponse()
Create an empty instance


PermBitsResponse

public PermBitsResponse(Message message,
                        ResponseInfo responseInfo)
Create response with message and response info

Parameters:
message - message
responseInfo - response info

PermBitsResponse

public PermBitsResponse(String perm,
                        String rolePerm)
Create success response with perm bits String. Will have the response info set to Success

Parameters:
perm - perm String
rolePerm - role permissions
Method Detail

getPerm

public String getPerm()
Permission bits and roles

Returns:
permission bits and roles

setPerm

public void setPerm(String perm)
Set the permission bits and roles

Parameters:
perm - permission bits and roles

getRolePerm

public String getRolePerm()
Get the role permission bits

Returns:
role permission bits

setRolePerm

public void setRolePerm(String rolePerm)
Set the role permission bits

Parameters:
rolePerm - role permission bits


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.