Interface ApplicationService

  • All Superinterfaces:
    JAXRSService

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

      • list

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

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

        @GET
        @Path("privileges/{key}")
        @Produces({"application/json","application/yaml","application/xml"})
        org.apache.syncope.common.lib.to.PrivilegeTO readPrivilege​(@NotNull @PathParam("key")
                                                                   @NotNull String key)
        Returns privilege with matching key.
        Parameters:
        key - privilege key to be read
        Returns:
        privilege 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.ApplicationTO applicationTO)
        Creates a new application.
        Parameters:
        applicationTO - application to be created
        Returns:
        Response object featuring Location header of created application
      • 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.ApplicationTO applicationTO)
        Updates the application matching the provided key.
        Parameters:
        applicationTO - application to be stored
      • delete

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