Interface NetworkServiceService

All Superinterfaces:
Serializable

@Path("networkServices") public interface NetworkServiceService extends Serializable
REST operations for Self Keymaster's service discovery.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    action(@NotNull org.apache.syncope.common.keymaster.client.api.model.NetworkService networkService, NetworkServiceService.Action action)
    (Un)registers the given service.
    org.apache.syncope.common.keymaster.client.api.model.NetworkService
    get(org.apache.syncope.common.keymaster.client.api.model.NetworkService.Type serviceType)
    Returns the service instance to invoke, for the given type.
    List<org.apache.syncope.common.keymaster.client.api.model.NetworkService>
    list(org.apache.syncope.common.keymaster.client.api.model.NetworkService.Type serviceType)
    Returns the list of registered services.
  • Method Details

    • list

      @GET @Path("{serviceType}") @Produces("application/json") List<org.apache.syncope.common.keymaster.client.api.model.NetworkService> list(@NotNull @PathParam("serviceType") org.apache.syncope.common.keymaster.client.api.model.NetworkService.Type serviceType)
      Returns the list of registered services.
      Parameters:
      serviceType - service type
      Returns:
      list of registered services
    • get

      @GET @Path("{serviceType}/get") @Produces("application/json") org.apache.syncope.common.keymaster.client.api.model.NetworkService get(@NotNull @PathParam("serviceType") org.apache.syncope.common.keymaster.client.api.model.NetworkService.Type serviceType)
      Returns the service instance to invoke, for the given type.
      Parameters:
      serviceType - service type
      Returns:
      service instance to invoke, for the given type
    • action

      @POST @Consumes("application/json") @Produces("application/json") void action(@NotNull @NotNull org.apache.syncope.common.keymaster.client.api.model.NetworkService networkService, @QueryParam("action") NetworkServiceService.Action action)
      (Un)registers the given service.
      Parameters:
      networkService - service instance
      action - action to perform on the given service