Class SyncopeServiceImpl
- java.lang.Object
-
- org.apache.syncope.core.rest.cxf.service.AbstractService
-
- org.apache.syncope.core.rest.cxf.service.SyncopeServiceImpl
-
- All Implemented Interfaces:
JAXRSService
,SyncopeService
@Service public class SyncopeServiceImpl extends AbstractService implements SyncopeService
-
-
Field Summary
Fields Modifier and Type Field Description protected BatchDAO
batchDAO
protected ThreadPoolTaskExecutor
batchExecutor
protected Bus
bus
protected EntityFactory
entityFactory
protected SyncopeLogic
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 SyncopeServiceImpl(SyncopeLogic logic, ThreadPoolTaskExecutor batchExecutor, Bus bus, BatchDAO batchDAO, EntityFactory entityFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
batch()
Gets batch results, in case asynchronous was requested.javax.ws.rs.core.Response
batch(InputStream input)
Requests for batch execution.javax.ws.rs.core.Response
exportInternalStorageContent(int tableThreshold)
Exports internal storage content as downloadable XML file.TypeExtensionTO
readUserTypeExtension(String groupName)
Extracts User type extension information, for the provided group.PagedResult<GroupTO>
searchAssignableGroups(String realm, String term, int page, int size)
Returns the list of Groups, according to provided paging instructions, assignable to Users and Any Objects of the provided Realm.-
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 SyncopeLogic logic
-
batchExecutor
protected final ThreadPoolTaskExecutor batchExecutor
-
bus
protected final Bus bus
-
batchDAO
protected final BatchDAO batchDAO
-
entityFactory
protected final EntityFactory entityFactory
-
-
Constructor Detail
-
SyncopeServiceImpl
public SyncopeServiceImpl(SyncopeLogic logic, ThreadPoolTaskExecutor batchExecutor, Bus bus, BatchDAO batchDAO, EntityFactory entityFactory)
-
-
Method Detail
-
searchAssignableGroups
public PagedResult<GroupTO> searchAssignableGroups(String realm, String term, int page, int size)
Description copied from interface:SyncopeService
Returns the list of Groups, according to provided paging instructions, assignable to Users and Any Objects of the provided Realm.- Specified by:
searchAssignableGroups
in interfaceSyncopeService
- Parameters:
realm
- of the User and Any Objects assignable to the returned Groupsterm
- groups search termpage
- search pagesize
- search page size- Returns:
- list of Groups, according to provided paging instructions, assignable to Users and Any Objects of the provided Realm
-
readUserTypeExtension
public TypeExtensionTO readUserTypeExtension(String groupName)
Description copied from interface:SyncopeService
Extracts User type extension information, for the provided group.- Specified by:
readUserTypeExtension
in interfaceSyncopeService
- Parameters:
groupName
- group name- Returns:
- User type extension information, for the provided group
-
batch
public javax.ws.rs.core.Response batch(InputStream input)
Description copied from interface:SyncopeService
Requests for batch execution.- Specified by:
batch
in interfaceSyncopeService
- Parameters:
input
- batch request- Returns:
- batch results returned as Response entity, in case no 'Prefer: respond-async' was specified
-
batch
public javax.ws.rs.core.Response batch()
Description copied from interface:SyncopeService
Gets batch results, in case asynchronous was requested.- Specified by:
batch
in interfaceSyncopeService
- Returns:
- batch results as Response entity
-
exportInternalStorageContent
public javax.ws.rs.core.Response exportInternalStorageContent(int tableThreshold)
Description copied from interface:SyncopeService
Exports internal storage content as downloadable XML file.- Specified by:
exportInternalStorageContent
in interfaceSyncopeService
- Parameters:
tableThreshold
- the maximum number of rows to take for each table of internal storage- Returns:
- internal storage content as downloadable XML file
-
-