Class PermBitsResponse
java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.PermBitsResponse
- All Implemented Interfaces:
Serializable
Response containing permission and role bits
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
Permission bits from groupsprotected PermissionsMap
Permissions Mapprotected PrivilegeMap
Privilege Mapprotected String
Permission bits from roles -
Constructor Summary
ConstructorDescriptionCreate an empty instancePermBitsResponse
(Message message, ResponseInfo responseInfo) Create response with message and response infoPermBitsResponse
(String perm, String rolePerm) Create success response with perm bits String. -
Method Summary
Modifier and TypeMethodDescriptiongetPerm()
Permission bits and rolesMap representation of all permissionsDeprecated.Get the role permission bitsvoid
Set the permission bits and rolesvoid
setPermissionsMap
(PermissionsMap permissionsMap) Set permissions mapvoid
setPrivilegeMap
(PrivilegeMap privilegeMap) Deprecated.void
setRolePerm
(String rolePerm) Set the role permission bitsMethods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
Field Details
-
perm
Permission bits from groups -
rolePerm
Permission bits from roles -
privilegeMap
Privilege Map -
permissionsMap
Permissions Map
-
-
Constructor Details
-
PermBitsResponse
public PermBitsResponse()Create an empty instance -
PermBitsResponse
Create response with message and response info- Parameters:
message
- messageresponseInfo
- response info
-
PermBitsResponse
Create success response with perm bits String. Will have the response info set to Success- Parameters:
perm
- perm StringrolePerm
- role permissions
-
-
Method Details
-
getPerm
Permission bits and roles- Returns:
- permission bits and roles
-
setPerm
Set the permission bits and roles- Parameters:
perm
- permission bits and roles
-
getRolePerm
Get the role permission bits- Returns:
- role permission bits
-
setRolePerm
Set the role permission bits- Parameters:
rolePerm
- role permission bits
-
getPrivilegeMap
Deprecated.usegetPermissionsMap()
insteadMap representation of all privileges- Returns:
- privilege map
-
setPrivilegeMap
Deprecated.Set the privilege map- Parameters:
privilegeMap
- privilege map
-
getPermissionsMap
Map representation of all permissions- Returns:
- permissions map
-
setPermissionsMap
Set permissions map- Parameters:
permissionsMap
- map
-
getPermissionsMap()
instead