Class RealmServiceImpl
- java.lang.Object
-
- org.apache.syncope.core.rest.cxf.service.AbstractService
-
- org.apache.syncope.core.rest.cxf.service.RealmServiceImpl
-
- All Implemented Interfaces:
JAXRSService
,RealmService
@Service public class RealmServiceImpl extends AbstractService implements RealmService
-
-
Field Summary
Fields Modifier and Type Field Description protected RealmLogic
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 RealmServiceImpl(RealmLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
create(String parentPath, RealmTO realmTO)
Creates a new realm under the given path.javax.ws.rs.core.Response
delete(String fullPath)
Deletes the realm under the given path.PagedResult<RealmTO>
search(RealmQuery query)
Returns a paged list of existing realms matching the given query.javax.ws.rs.core.Response
update(RealmTO realmTO)
Updates the realm under the given path.-
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 RealmLogic logic
-
-
Constructor Detail
-
RealmServiceImpl
public RealmServiceImpl(RealmLogic logic)
-
-
Method Detail
-
search
public PagedResult<RealmTO> search(RealmQuery query)
Description copied from interface:RealmService
Returns a paged list of existing realms matching the given query.- Specified by:
search
in interfaceRealmService
- Parameters:
query
- query conditions- Returns:
- paged list of existing realms matching the given query
-
create
public javax.ws.rs.core.Response create(String parentPath, RealmTO realmTO)
Description copied from interface:RealmService
Creates a new realm under the given path.- Specified by:
create
in interfaceRealmService
- Parameters:
parentPath
- full path of the parent realmrealmTO
- new realm- Returns:
- Response object featuring Location header of created realm as well as the realm itself enriched with propagation status information
-
update
public javax.ws.rs.core.Response update(RealmTO realmTO)
Description copied from interface:RealmService
Updates the realm under the given path.- Specified by:
update
in interfaceRealmService
- Parameters:
realmTO
- realm to be stored- Returns:
- Response object featuring the updated realm enriched with propagation status information
-
delete
public javax.ws.rs.core.Response delete(String fullPath)
Description copied from interface:RealmService
Deletes the realm under the given path.- Specified by:
delete
in interfaceRealmService
- Parameters:
fullPath
- realm path- Returns:
- Response object featuring the deleted realm enriched with propagation status information
-
-