Interface RealmService
-
- All Superinterfaces:
JAXRSService
- All Known Implementing Classes:
RealmServiceImpl
@Path("realms") public interface RealmService extends JAXRSService
REST operations for realms.
-
-
Field Summary
-
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.ws.rs.core.Response
create(@NotNull String parentPath, @NotNull RealmTO realmTO)
Creates a new realm under the given path.javax.ws.rs.core.Response
delete(@NotNull 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(@NotNull RealmTO realmTO)
Updates the realm under the given path.
-
-
-
Method Detail
-
search
@GET @Produces({"application/json","application/yaml","application/xml"}) PagedResult<RealmTO> search(@BeanParam RealmQuery query)
Returns a paged list of existing realms matching the given query.- Parameters:
query
- query conditions- Returns:
- paged list of existing realms matching the given query
-
create
@POST @Path("{parentPath:.*}") @Consumes({"application/json","application/yaml","application/xml"}) @Produces({"application/json","application/yaml","application/xml"}) javax.ws.rs.core.Response create(@NotNull @PathParam("parentPath") @NotNull String parentPath, @NotNull @NotNull RealmTO realmTO)
Creates a new realm under the given path.- 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
@PUT @Path("{fullPath:.*}") @Consumes({"application/json","application/yaml","application/xml"}) @Produces({"application/json","application/yaml","application/xml"}) javax.ws.rs.core.Response update(@NotNull @NotNull RealmTO realmTO)
Updates the realm under the given path.- Parameters:
realmTO
- realm to be stored- Returns:
- Response object featuring the updated realm enriched with propagation status information
-
delete
@DELETE @Path("{fullPath:.*}") @Produces({"application/json","application/yaml","application/xml"}) javax.ws.rs.core.Response delete(@NotNull @PathParam("fullPath") @NotNull String fullPath)
Deletes the realm under the given path.- Parameters:
fullPath
- realm path- Returns:
- Response object featuring the deleted realm enriched with propagation status information
-
-