public class SyncopeEnduserSession extends org.apache.wicket.authroles.authentication.AuthenticatedWebSession implements BaseSession
| Modifier and Type | Class and Description |
|---|---|
static class |
SyncopeEnduserSession.Error |
| Constructor and Description |
|---|
SyncopeEnduserSession(org.apache.wicket.request.Request request) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(String jwt) |
boolean |
authenticate(String username,
String password) |
void |
cleanup() |
<T> Future<T> |
execute(Callable<T> command) |
void |
execute(Runnable command) |
static SyncopeEnduserSession |
get() |
org.apache.syncope.client.lib.SyncopeClient |
getAnonymousClient() |
<T> T |
getAnonymousService(Class<T> serviceClass) |
org.apache.commons.lang3.time.FastDateFormat |
getDateFormat() |
String |
getDomain() |
String |
getJWT() |
javax.ws.rs.core.MediaType |
getMediaType() |
org.apache.syncope.common.lib.info.PlatformInfo |
getPlatformInfo() |
org.apache.wicket.authroles.authorization.strategies.role.Roles |
getRoles() |
org.apache.syncope.common.lib.to.UserTO |
getSelfTO() |
org.apache.syncope.common.lib.to.UserTO |
getSelfTO(boolean reload) |
<T> T |
getService(Class<T> serviceClass) |
<T> T |
getService(String etag,
Class<T> serviceClass) |
org.apache.syncope.common.lib.info.SystemInfo |
getSystemInfo() |
void |
invalidate() |
boolean |
isAuthenticated() |
protected String |
message(org.apache.syncope.common.lib.SyncopeClientException sce) |
void |
onException(Exception e)
Extract and localize (if translation available) the actual message from the given exception; then, report it
via
Session.error(java.io.Serializable). |
<T> void |
resetClient(Class<T> service) |
void |
setDomain(String domain) |
isSignedIn, signIn, signIn, signOutgenerateNewSessionId, getClientInfo, newBrowserInfoPagebind, changeSessionId, clear, debug, detach, dirty, dirty, endRequest, error, exists, fatal, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getClassResolver, getFeedbackMessages, getId, getLocale, getMetaData, getPageFactory, getPageManager, getSessionStore, getSizeInBytes, getStyle, info, internalDetach, invalidateNow, isSessionInvalidated, isTemporary, newPageAccessSynchronizer, nextPageId, nextSequenceValue, onEvent, onInvalidate, removeAttribute, replaceSession, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, success, warnpublic SyncopeEnduserSession(org.apache.wicket.request.Request request)
public static SyncopeEnduserSession get()
protected String message(org.apache.syncope.common.lib.SyncopeClientException sce)
public void onException(Exception e)
Session.error(java.io.Serializable).onException in interface BaseSessione - raised exceptionRestClientExceptionMapperpublic javax.ws.rs.core.MediaType getMediaType()
public org.apache.syncope.client.lib.SyncopeClient getAnonymousClient()
public void execute(Runnable command)
public void setDomain(String domain)
setDomain in interface BaseSessionpublic String getDomain()
getDomain in interface BaseSessionpublic String getJWT()
public org.apache.wicket.authroles.authorization.strategies.role.Roles getRoles()
getRoles in class org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSessionpublic org.apache.syncope.common.lib.info.PlatformInfo getPlatformInfo()
public org.apache.syncope.common.lib.info.SystemInfo getSystemInfo()
public boolean authenticate(String username, String password)
authenticate in class org.apache.wicket.authroles.authentication.AuthenticatedWebSessionpublic boolean authenticate(String jwt)
public boolean isAuthenticated()
isAuthenticated in interface BaseSessionpublic void cleanup()
public void invalidate()
invalidate in interface BaseSessioninvalidate in class org.apache.wicket.authroles.authentication.AuthenticatedWebSessionpublic org.apache.syncope.common.lib.to.UserTO getSelfTO()
getSelfTO in interface BaseSessionpublic org.apache.syncope.common.lib.to.UserTO getSelfTO(boolean reload)
public <T> T getService(Class<T> serviceClass)
getService in interface BaseSessionpublic <T> T getService(String etag, Class<T> serviceClass)
getService in interface BaseSessionpublic <T> void resetClient(Class<T> service)
resetClient in interface BaseSessionpublic org.apache.commons.lang3.time.FastDateFormat getDateFormat()
getDateFormat in interface BaseSessionpublic <T> T getAnonymousService(Class<T> serviceClass)
getAnonymousService in interface BaseSessionCopyright © 2020–2021. All rights reserved.