Interface RealmService

All Superinterfaces:
JAXRSService

@Path("realms") public interface RealmService extends JAXRSService
REST operations for realms.
  • Method Details

    • search

      @GET @Produces({"application/json","application/yaml","application/xml"}) org.apache.syncope.common.lib.to.PagedResult<org.apache.syncope.common.lib.to.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"}) jakarta.ws.rs.core.Response create(@NotNull @PathParam("parentPath") @NotNull String parentPath, @NotNull @NotNull org.apache.syncope.common.lib.to.RealmTO realmTO)
      Creates a new realm under the given path.
      Parameters:
      parentPath - full path of the parent realm
      realmTO - 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"}) jakarta.ws.rs.core.Response update(@NotNull @NotNull org.apache.syncope.common.lib.to.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"}) jakarta.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