Package org.apache.unomi.rest.endpoints
Class ScopeServiceEndPoint
java.lang.Object
org.apache.unomi.rest.endpoints.ScopeServiceEndPoint
@Produces("application/json")
@Consumes("application/json")
@Path("/scopes")
public class ScopeServiceEndPoint
extends Object
A JAX-RS endpoint to manage
Scopes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeletes a scope.Retrieves the scope identified by the specified identifier.Retrieves all known scopes.javax.ws.rs.core.ResponsePersists the specified scope.voidsetScopeService(ScopeService scopeService)
-
Constructor Details
-
ScopeServiceEndPoint
public ScopeServiceEndPoint()
-
-
Method Details
-
setScopeService
-
getScopes
Retrieves all known scopes.- Returns:
- a List of the scopes
-
save
Persists the specified scope.- Parameters:
scope- the scope to be persisted
-
getScope
Retrieves the scope identified by the specified identifier.- Parameters:
scopeId- the identifier of the scope we want to retrieve- Returns:
- the scope identified by the specified identifier or
nullif no such scope exists.
-
delete
Deletes a scope.- Parameters:
scopeId- the identifier of the scope
-