@Service public class SyncopeServiceImpl extends Object implements SyncopeService
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
protected org.apache.cxf.jaxrs.ext.MessageContext |
messageContext |
protected static String |
OPTIONS_ALLOW |
protected SearchCondVisitor |
searchCondVisitor |
protected org.apache.cxf.jaxrs.ext.search.SearchContext |
searchContext |
protected javax.ws.rs.core.UriInfo |
uriInfo |
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER
Constructor and Description |
---|
SyncopeServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.core.Response.ResponseBuilder |
applyPreference(ProvisioningResult<?> provisioningResult,
javax.ws.rs.core.Response.ResponseBuilder builder) |
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.
|
protected <T extends BaseBean> |
buildPagedResult(List<T> list,
int page,
int size,
int totalCount)
Builds a paged result out of a list of items and additional information.
|
protected void |
checkETag(String etag) |
void |
clearEntityCache()
Evicts all entities from cache.
|
protected javax.ws.rs.core.Response |
createResponse(ProvisioningResult<?> provisioningResult)
Builds response to successful
create request, taking into account any Prefer header. |
protected String |
getActualKey(AnyDAO<?> dao,
String pretendingKey) |
protected List<OrderByClause> |
getOrderByClauses(String orderBy) |
protected Preference |
getPreference()
Reads
Prefer header from request and parses into a Preference instance. |
protected SearchCond |
getSearchCond(String fiql,
String realm) |
protected boolean |
isNullPriorityAsync() |
protected javax.ws.rs.core.Response |
modificationResponse(Object entity)
Builds response to successful modification request, taking into account any
Prefer header. |
NumbersInfo |
numbers()
Provides some numbers about the managed entities (users, groups, any objects...).
|
PlatformInfo |
platform()
Provides information summary about platform configuration (workflow adapters, provisioning managers, validators,
actions, correlation rules, reportlets, ...).
|
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.
|
Map<String,Object> |
statistics()
Provides entity cache statistics information.
|
javax.ws.rs.core.Response |
statistics(String operation)
Operates on entity cache statistics.
|
SystemInfo |
system()
Provides information about the underlying system (Operating System, CPU / memory usage, ...).
|
protected static final org.slf4j.Logger LOG
protected static final String OPTIONS_ALLOW
@Context protected javax.ws.rs.core.UriInfo uriInfo
@Context protected org.apache.cxf.jaxrs.ext.MessageContext messageContext
@Context protected org.apache.cxf.jaxrs.ext.search.SearchContext searchContext
@Autowired protected SearchCondVisitor searchCondVisitor
public PlatformInfo platform()
SyncopeService
platform
in interface SyncopeService
public SystemInfo system()
SyncopeService
system
in interface SyncopeService
public NumbersInfo numbers()
SyncopeService
numbers
in interface SyncopeService
public Map<String,Object> statistics()
SyncopeService
statistics
in interface SyncopeService
public javax.ws.rs.core.Response statistics(String operation)
SyncopeService
statistics
in interface SyncopeService
operation
- enable, disable or reset entity cache statisticspublic void clearEntityCache()
SyncopeService
clearEntityCache
in interface SyncopeService
public PagedResult<GroupTO> searchAssignableGroups(String realm, String term, int page, int size)
SyncopeService
searchAssignableGroups
in interface SyncopeService
realm
- of the User and Any Objects assignable to the returned Groupsterm
- groups search termpage
- search pagesize
- search page sizepublic TypeExtensionTO readUserTypeExtension(String groupName)
SyncopeService
readUserTypeExtension
in interface SyncopeService
groupName
- group namepublic javax.ws.rs.core.Response batch(InputStream input)
SyncopeService
batch
in interface SyncopeService
input
- batch requestpublic javax.ws.rs.core.Response batch()
SyncopeService
batch
in interface SyncopeService
protected boolean isNullPriorityAsync()
protected Preference getPreference()
Prefer
header from request and parses into a Preference
instance.Preference
instance matching the passed Prefer
header,
or Preference.NONE
if missing.protected javax.ws.rs.core.Response.ResponseBuilder applyPreference(ProvisioningResult<?> provisioningResult, javax.ws.rs.core.Response.ResponseBuilder builder)
protected javax.ws.rs.core.Response createResponse(ProvisioningResult<?> provisioningResult)
create
request, taking into account any Prefer
header.provisioningResult
- the entity just createdcreate
requestprotected javax.ws.rs.core.Response modificationResponse(Object entity)
Prefer
header.entity
- the entity just modifiedprotected void checkETag(String etag)
protected SearchCond getSearchCond(String fiql, String realm)
protected List<OrderByClause> getOrderByClauses(String orderBy)
protected <T extends BaseBean> PagedResult<T> buildPagedResult(List<T> list, int page, int size, int totalCount)
T
- result typelist
- bare list of items to be returnedpage
- current pagesize
- requested sizetotalCount
- total result size (not considering pagination)Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.