Package step.core.deployment
Class AccessServices
- java.lang.Object
-
- step.core.deployment.AbstractServices
-
- step.core.deployment.AccessServices
-
@Singleton @Path("/access") public class AccessServices extends AbstractServices
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AccessServices.SessionResponse
-
Field Summary
-
Fields inherited from class step.core.deployment.AbstractServices
configuration, controller
-
-
Constructor Summary
Constructors Constructor Description AccessServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
authenticateUser(ch.commons.auth.Credentials credentials)
protected AccessServices.SessionResponse
buildSessionResponse(Session session)
AccessConfiguration
getAccessConfiguration()
AccessServices.SessionResponse
getCurrentSession()
void
init()
boolean
isDemo()
void
logout()
-
Methods inherited from class step.core.deployment.AbstractServices
getContext, getExecutionRunnable, getObjectEnricher, getScheduler, getSession, setSession
-
-
-
-
Method Detail
-
init
@PostConstruct public void init() throws java.lang.Exception
- Overrides:
init
in classAbstractServices
- Throws:
java.lang.Exception
-
authenticateUser
@POST @Path("/login") @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response authenticateUser(ch.commons.auth.Credentials credentials)
-
getCurrentSession
@GET @Path("/session") public AccessServices.SessionResponse getCurrentSession()
-
buildSessionResponse
protected AccessServices.SessionResponse buildSessionResponse(Session session)
-
getAccessConfiguration
@GET @Path("/conf") public AccessConfiguration getAccessConfiguration()
-
logout
@POST @Path("/logout") public void logout()
-
isDemo
public boolean isDemo()
-
-