Class AbstractService
java.lang.Object
org.apache.syncope.core.rest.cxf.service.AbstractService
- All Implemented Interfaces:
- JAXRSService
- Direct Known Subclasses:
- AbstractExecutableService,- AbstractSearchService,- AccessTokenServiceImpl,- AnyTypeClassServiceImpl,- AnyTypeServiceImpl,- AttrRepoServiceImpl,- AuditServiceImpl,- AuthModuleServiceImpl,- AuthProfileSelfServiceImpl,- AuthProfileServiceImpl,- BpmnProcessServiceImpl,- ClientAppServiceImpl,- CommandServiceImpl,- ConnectorServiceImpl,- DelegationServiceImpl,- DynRealmServiceImpl,- FIQLQueryServiceImpl,- GoogleMfaAuthAccountServiceImpl,- GoogleMfaAuthTokenServiceImpl,- ImpersonationServiceImpl,- ImplementationServiceImpl,- MailTemplateServiceImpl,- MfaTrustStorageServiceImpl,- NotificationServiceImpl,- OIDCC4UIProviderServiceImpl,- OIDCC4UIServiceImpl,- OIDCJWKSServiceImpl,- PolicyServiceImpl,- RealmServiceImpl,- RelationshipTypeServiceImpl,- RemediationServiceImpl,- ResourceServiceImpl,- RoleServiceImpl,- SAML2IdPEntityServiceImpl,- SAML2SP4UIIdPServiceImpl,- SAML2SP4UIServiceImpl,- SchemaServiceImpl,- SCIMConfServiceImpl,- SecurityQuestionServiceImpl,- SRARouteServiceImpl,- SyncopeServiceImpl,- UserRequestServiceImpl,- UserSelfServiceImpl,- UserWorkflowTaskServiceImpl,- WAClientAppServiceImpl,- WAConfigServiceImpl,- WASAML2SPServiceImpl,- WebAuthnRegistrationServiceImpl
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final Loggerprotected org.apache.cxf.jaxrs.ext.MessageContextprotected static final Stringprotected org.apache.cxf.jaxrs.ext.search.SearchContextprotected UriInfoFields inherited from interface org.apache.syncope.common.rest.api.service.JAXRSServiceCRLF, 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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected Response.ResponseBuilderapplyPreference(ProvisioningResult<?> provisioningResult, Response.ResponseBuilder builder) protected <T extends BaseBean>
 PagedResult<T> buildPagedResult(org.springframework.data.domain.Page<T> page) Builds a paged result out of page.protected voidprotected ResponsecreateResponse(ProvisioningResult<?> provisioningResult) Builds response to successfulcreaterequest, taking into account anyPreferheader.protected StringfindActualKey(AnyDAO<?> dao, String pretendingKey) protected PreferenceReadsPreferheader from request and parses into aPreferenceinstance.protected booleanprotected ResponsemodificationResponse(Object entity) Builds response to successful modification request, taking into account anyPreferheader.protected static org.springframework.data.domain.Pageablepageable(AbstractQuery query) protected static org.springframework.data.domain.Pageablepageable(AbstractQuery query, org.springframework.data.domain.Sort defaultIfOrderByIsBlank) protected static org.springframework.data.domain.Sort
- 
Field Details- 
LOG
- 
OPTIONS_ALLOW- See Also:
 
- 
uriInfo
- 
messageContext
- 
searchContext
 
- 
- 
Constructor Details- 
AbstractServicepublic AbstractService()
 
- 
- 
Method Details- 
sortprotected static org.springframework.data.domain.Sort sort(String orderBy, org.springframework.data.domain.Sort defaultIfBlank) 
- 
pageableprotected static org.springframework.data.domain.Pageable pageable(AbstractQuery query, org.springframework.data.domain.Sort defaultIfOrderByIsBlank) 
- 
pageable
- 
findActualKey
- 
isNullPriorityAsyncprotected boolean isNullPriorityAsync()
- 
getPreferenceReadsPreferheader from request and parses into aPreferenceinstance.- Returns:
- a Preferenceinstance matching the passedPreferheader, orPreference.NONEif missing.
 
- 
applyPreferenceprotected Response.ResponseBuilder applyPreference(ProvisioningResult<?> provisioningResult, Response.ResponseBuilder builder) 
- 
createResponseBuilds response to successfulcreaterequest, taking into account anyPreferheader.- Parameters:
- provisioningResult- the entity just created
- Returns:
- response to successful createrequest
 
- 
modificationResponseBuilds response to successful modification request, taking into account anyPreferheader.- Parameters:
- entity- the entity just modified
- Returns:
- response to successful modification request
 
- 
checkETag
- 
buildPagedResultprotected <T extends BaseBean> PagedResult<T> buildPagedResult(org.springframework.data.domain.Page<T> page) Builds a paged result out of page.- Type Parameters:
- T- result type
- Parameters:
- page- page
- Returns:
- paged result
 
 
-