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 RoleLogiclogic-
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.Responsecreate(RoleTO roleTO)Creates a new role.voiddelete(String key)Deletes the role matching the provided key.javax.ws.rs.core.ResponsegetAnyLayout(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.RoleTOread(String key)Returns role with matching key.voidremoveAnyLayout(String key)Removes the console layout information for the role with the given key, if available.voidsetAnyLayout(String key, InputStream anyLayoutIn)Sets the console layout information as JSON string for the role with the given key, if available.voidupdate(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:RoleServiceReturns a list of all roles.- Specified by:
listin interfaceRoleService- Returns:
- list of all roles.
-
read
public RoleTO read(String key)
Description copied from interface:RoleServiceReturns role with matching key.- Specified by:
readin 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:RoleServiceCreates a new role.- Specified by:
createin 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:RoleServiceUpdates the role matching the provided key.- Specified by:
updatein interfaceRoleService- Parameters:
roleTO- role to be stored
-
delete
public void delete(String key)
Description copied from interface:RoleServiceDeletes the role matching the provided key.- Specified by:
deletein interfaceRoleService- Parameters:
key- role key to be deleted
-
getAnyLayout
public javax.ws.rs.core.Response getAnyLayout(String key)
Description copied from interface:RoleServiceGets the console layout information as JSON string for the role with the given key, if available.- Specified by:
getAnyLayoutin 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:RoleServiceSets the console layout information as JSON string for the role with the given key, if available.- Specified by:
setAnyLayoutin interfaceRoleService- Parameters:
key- role keyanyLayoutIn- console layout information to be set
-
removeAnyLayout
public void removeAnyLayout(String key)
Description copied from interface:RoleServiceRemoves the console layout information for the role with the given key, if available.- Specified by:
removeAnyLayoutin interfaceRoleService- Parameters:
key- role key
-
-