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 BatchDAObatchDAOprotected ThreadPoolTaskExecutorbatchExecutorprotected Busbusprotected EntityFactoryentityFactoryprotected SyncopeLogiclogic-
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.Responsebatch()Gets batch results, in case asynchronous was requested.javax.ws.rs.core.Responsebatch(InputStream input)Requests for batch execution.javax.ws.rs.core.ResponseexportInternalStorageContent(int tableThreshold)Exports internal storage content as downloadable XML file.TypeExtensionTOreadUserTypeExtension(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:SyncopeServiceReturns the list of Groups, according to provided paging instructions, assignable to Users and Any Objects of the provided Realm.- Specified by:
searchAssignableGroupsin 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:SyncopeServiceExtracts User type extension information, for the provided group.- Specified by:
readUserTypeExtensionin 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:SyncopeServiceRequests for batch execution.- Specified by:
batchin 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:SyncopeServiceGets batch results, in case asynchronous was requested.- Specified by:
batchin interfaceSyncopeService- Returns:
- batch results as Response entity
-
exportInternalStorageContent
public javax.ws.rs.core.Response exportInternalStorageContent(int tableThreshold)
Description copied from interface:SyncopeServiceExports internal storage content as downloadable XML file.- Specified by:
exportInternalStorageContentin interfaceSyncopeService- Parameters:
tableThreshold- the maximum number of rows to take for each table of internal storage- Returns:
- internal storage content as downloadable XML file
-
-