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
Scope
s.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deletes a scope.Retrieves the scope identified by the specified identifier.Retrieves all known scopes.javax.ws.rs.core.Response
Persists the specified scope.void
setScopeService
(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
null
if no such scope exists.
-
delete
Deletes a scope.- Parameters:
scopeId
- the identifier of the scope
-