Class ApplicationServiceImpl
- java.lang.Object
-
- org.apache.syncope.core.rest.cxf.service.AbstractService
-
- org.apache.syncope.core.rest.cxf.service.ApplicationServiceImpl
-
- All Implemented Interfaces:
ApplicationService
,JAXRSService
@Service public class ApplicationServiceImpl extends AbstractService implements ApplicationService
-
-
Field Summary
Fields Modifier and Type Field Description protected ApplicationLogic
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 ApplicationServiceImpl(ApplicationLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
create(ApplicationTO applicationTO)
Creates a new application.void
delete(String key)
Deletes the application matching the provided key.List<ApplicationTO>
list()
Returns a list of all applications.ApplicationTO
read(String key)
Returns application with matching key.PrivilegeTO
readPrivilege(String key)
Returns privilege with matching key.void
update(ApplicationTO applicationTO)
Updates the application 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 ApplicationLogic logic
-
-
Constructor Detail
-
ApplicationServiceImpl
public ApplicationServiceImpl(ApplicationLogic logic)
-
-
Method Detail
-
list
public List<ApplicationTO> list()
Description copied from interface:ApplicationService
Returns a list of all applications.- Specified by:
list
in interfaceApplicationService
- Returns:
- list of all applications.
-
read
public ApplicationTO read(String key)
Description copied from interface:ApplicationService
Returns application with matching key.- Specified by:
read
in interfaceApplicationService
- Parameters:
key
- application key to be read- Returns:
- application with matching key
-
readPrivilege
public PrivilegeTO readPrivilege(String key)
Description copied from interface:ApplicationService
Returns privilege with matching key.- Specified by:
readPrivilege
in interfaceApplicationService
- Parameters:
key
- privilege key to be read- Returns:
- privilege with matching key
-
create
public javax.ws.rs.core.Response create(ApplicationTO applicationTO)
Description copied from interface:ApplicationService
Creates a new application.- Specified by:
create
in interfaceApplicationService
- Parameters:
applicationTO
- application to be created- Returns:
- Response object featuring Location header of created application
-
update
public void update(ApplicationTO applicationTO)
Description copied from interface:ApplicationService
Updates the application matching the provided key.- Specified by:
update
in interfaceApplicationService
- Parameters:
applicationTO
- application to be stored
-
delete
public void delete(String key)
Description copied from interface:ApplicationService
Deletes the application matching the provided key.- Specified by:
delete
in interfaceApplicationService
- Parameters:
key
- application key to be deleted
-
-