Class RoleServiceImpl
java.lang.Object
org.apache.syncope.core.rest.cxf.service.AbstractService
org.apache.syncope.core.rest.cxf.service.RoleServiceImpl
- All Implemented Interfaces:
JAXRSService
,RoleService
-
Field Summary
Fields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
LOG, messageContext, OPTIONS_ALLOW, searchContext, uriInfo
Fields inherited from interface org.apache.syncope.common.rest.api.service.JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_KEYWORD, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RECURSIVE, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new role.void
Deletes the role matching the provided key.getAnyLayout
(String key) Gets the console layout information as JSON string for the role with the given key, if available.list()
Returns a list of all roles.Returns role with matching key.void
removeAnyLayout
(String key) Removes the console layout information for the role with the given key, if available.void
setAnyLayout
(String key, InputStream anyLayoutIn) Sets the console layout information as JSON string for the role with the given key, if available.void
Updates the role matching the provided key.Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getPreference, isNullPriorityAsync, modificationResponse, pageable, pageable, sort
-
Field Details
-
logic
-
-
Constructor Details
-
RoleServiceImpl
-
-
Method Details
-
list
Description copied from interface:RoleService
Returns a list of all roles.- Specified by:
list
in interfaceRoleService
- Returns:
- list of all roles.
-
read
Description copied from interface:RoleService
Returns role with matching key.- Specified by:
read
in interfaceRoleService
- Parameters:
key
- role key to be read- Returns:
- role with matching key
-
create
Description copied from interface:RoleService
Creates a new role.- Specified by:
create
in interfaceRoleService
- Parameters:
roleTO
- role to be created- Returns:
- Response object featuring Location header of created role
-
update
Description copied from interface:RoleService
Updates the role matching the provided key.- Specified by:
update
in interfaceRoleService
- Parameters:
roleTO
- role to be stored
-
delete
Description copied from interface:RoleService
Deletes the role matching the provided key.- Specified by:
delete
in interfaceRoleService
- Parameters:
key
- role key to be deleted
-
getAnyLayout
Description copied from interface:RoleService
Gets the console layout information as JSON string for the role with the given key, if available.- Specified by:
getAnyLayout
in interfaceRoleService
- Parameters:
key
- role key- Returns:
- console layout information as JSON string for the role with the given key, if available
-
setAnyLayout
Description copied from interface:RoleService
Sets the console layout information as JSON string for the role with the given key, if available.- Specified by:
setAnyLayout
in interfaceRoleService
- Parameters:
key
- role keyanyLayoutIn
- console layout information to be set
-
removeAnyLayout
Description copied from interface:RoleService
Removes the console layout information for the role with the given key, if available.- Specified by:
removeAnyLayout
in interfaceRoleService
- Parameters:
key
- role key
-