Interface DelegationService

  • All Superinterfaces:
    JAXRSService

    @Path("delegations")
    public interface DelegationService
    extends JAXRSService
    REST operations for delegations.
    • Method Detail

      • list

        @GET
        @Produces({"application/json","application/yaml","application/xml"})
        List<org.apache.syncope.common.lib.to.DelegationTO> list()
        Returns a list of all delegations.
        Returns:
        list of all delegations.
      • read

        @GET
        @Path("{key}")
        @Produces({"application/json","application/yaml","application/xml"})
        org.apache.syncope.common.lib.to.DelegationTO read​(@NotNull @PathParam("key")
                                                           @NotNull String key)
        Returns delegation with matching key.
        Parameters:
        key - delegation key to be read
        Returns:
        delegation with matching key
      • create

        @POST
        @Consumes({"application/json","application/yaml","application/xml"})
        @Produces({"application/json","application/yaml","application/xml"})
        javax.ws.rs.core.Response create​(@NotNull
                                         @NotNull org.apache.syncope.common.lib.to.DelegationTO delegationTO)
        Creates a new delegation.
        Parameters:
        delegationTO - delegation to be created
        Returns:
        Response object featuring Location header of created delegation
      • update

        @PUT
        @Path("{key}")
        @Consumes({"application/json","application/yaml","application/xml"})
        @Produces({"application/json","application/yaml","application/xml"})
        void update​(@NotNull
                    @NotNull org.apache.syncope.common.lib.to.DelegationTO delegationTO)
        Updates the delegation matching the provided key.
        Parameters:
        delegationTO - delegation to be stored
      • delete

        @DELETE
        @Path("{key}")
        @Produces({"application/json","application/yaml","application/xml"})
        void delete​(@NotNull @PathParam("key")
                    @NotNull String key)
        Deletes the delegation matching the provided key.
        Parameters:
        key - delegation key to be deleted