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, ApplicationServiceImpl, AttrRepoServiceImpl, AuditServiceImpl, AuthModuleServiceImpl, 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, SAML2SPEntityServiceImpl, SchemaServiceImpl, SCIMConfServiceImpl, SecurityQuestionServiceImpl, SRARouteServiceImpl, SyncopeServiceImpl, UserRequestServiceImpl, UserSelfServiceImpl, UserWorkflowTaskServiceImpl, WAClientAppServiceImpl, WAConfigServiceImpl, WebAuthnRegistrationServiceImpl

public abstract class AbstractService extends Object implements JAXRSService
  • Field Details

    • LOG

      protected static final Logger LOG
    • OPTIONS_ALLOW

      protected static final String OPTIONS_ALLOW
      See Also:
    • uriInfo

      @Context protected UriInfo uriInfo
    • messageContext

      @Context protected org.apache.cxf.jaxrs.ext.MessageContext messageContext
    • searchContext

      @Context protected org.apache.cxf.jaxrs.ext.search.SearchContext searchContext
  • Constructor Details

    • AbstractService

      public AbstractService()
  • Method Details

    • sort

      protected static org.springframework.data.domain.Sort sort(String orderBy, org.springframework.data.domain.Sort defaultIfBlank)
    • pageable

      protected static org.springframework.data.domain.Pageable pageable(AbstractQuery query, org.springframework.data.domain.Sort defaultIfOrderByIsBlank)
    • pageable

      protected static org.springframework.data.domain.Pageable pageable(AbstractQuery query)
    • findActualKey

      protected String findActualKey(AnyDAO<?> dao, String pretendingKey)
    • isNullPriorityAsync

      protected boolean isNullPriorityAsync()
    • getPreference

      protected Preference getPreference()
      Reads Prefer header from request and parses into a Preference instance.
      Returns:
      a Preference instance matching the passed Prefer header, or Preference.NONE if missing.
    • applyPreference

      protected Response.ResponseBuilder applyPreference(ProvisioningResult<?> provisioningResult, Response.ResponseBuilder builder)
    • createResponse

      protected Response createResponse(ProvisioningResult<?> provisioningResult)
      Builds response to successful create request, taking into account any Prefer header.
      Parameters:
      provisioningResult - the entity just created
      Returns:
      response to successful create request
    • modificationResponse

      protected Response modificationResponse(Object entity)
      Builds response to successful modification request, taking into account any Prefer header.
      Parameters:
      entity - the entity just modified
      Returns:
      response to successful modification request
    • checkETag

      protected void checkETag(String etag)
    • buildPagedResult

      protected <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