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
@Service public class RoleServiceImpl extends AbstractService implements RoleService
-
-
Field Summary
Fields Modifier and Type Field Description protected RoleLogic
logic
-
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
Constructors Constructor Description RoleServiceImpl(RoleLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
create(RoleTO roleTO)
Creates a new role.void
delete(String key)
Deletes the role matching the provided key.javax.ws.rs.core.Response
getAnyLayout(String key)
Gets the console layout information as JSON string for the role with the given key, if available.List<RoleTO>
list()
Returns a list of all roles.RoleTO
read(String key)
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
update(RoleTO roleTO)
Updates the role matching the provided key.-
Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getOrderByClauses, getPreference, isNullPriorityAsync, modificationResponse
-
-
-
-
Field Detail
-
logic
protected final RoleLogic logic
-
-
Constructor Detail
-
RoleServiceImpl
public RoleServiceImpl(RoleLogic logic)
-
-
Method Detail
-
list
public List<RoleTO> list()
Description copied from interface:RoleService
Returns a list of all roles.- Specified by:
list
in interfaceRoleService
- Returns:
- list of all roles.
-
read
public RoleTO read(String key)
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
public javax.ws.rs.core.Response create(RoleTO roleTO)
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
public void update(RoleTO roleTO)
Description copied from interface:RoleService
Updates the role matching the provided key.- Specified by:
update
in interfaceRoleService
- Parameters:
roleTO
- role to be stored
-
delete
public void delete(String key)
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
public javax.ws.rs.core.Response getAnyLayout(String key)
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
public void setAnyLayout(String key, InputStream anyLayoutIn)
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
public void removeAnyLayout(String key)
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
-
-