Class SyncopeEnduserSession

  • All Implemented Interfaces:
    Serializable, BaseSession, org.apache.wicket.event.IEventSink, org.apache.wicket.feedback.IFeedbackContributor, org.apache.wicket.IMetadataContext<Serializable,​org.apache.wicket.Session>, org.apache.wicket.util.io.IClusterable

    public class SyncopeEnduserSession
    extends org.apache.wicket.authroles.authentication.AuthenticatedWebSession
    implements BaseSession
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.apache.wicket.Session

        clientInfo, SESSION_ATTRIBUTE_NAME
    • Constructor Summary

      Constructors 
      Constructor Description
      SyncopeEnduserSession​(org.apache.wicket.request.Request request)  
    • Constructor Detail

      • SyncopeEnduserSession

        public SyncopeEnduserSession​(org.apache.wicket.request.Request request)
    • Method Detail

      • message

        protected String message​(org.apache.syncope.common.lib.SyncopeClientException sce)
      • onException

        public 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).
        Specified by:
        onException in interface BaseSession
        Parameters:
        e - raised exception
        See Also:
        RestClientExceptionMapper
      • getMediaType

        public javax.ws.rs.core.MediaType getMediaType()
      • getRoles

        public org.apache.wicket.authroles.authorization.strategies.role.Roles getRoles()
        Specified by:
        getRoles in class org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession
      • getPlatformInfo

        public org.apache.syncope.common.lib.info.PlatformInfo getPlatformInfo()
      • getSystemInfo

        public org.apache.syncope.common.lib.info.SystemInfo getSystemInfo()
      • authenticate

        public boolean authenticate​(String username,
                                    String password)
        Specified by:
        authenticate in class org.apache.wicket.authroles.authentication.AuthenticatedWebSession
      • authenticate

        public boolean authenticate​(String jwt)
      • isAuthenticated

        protected boolean isAuthenticated()
      • isMustChangePassword

        protected boolean isMustChangePassword()
      • cleanup

        public void cleanup()
      • invalidate

        public void invalidate()
        Overrides:
        invalidate in class org.apache.wicket.authroles.authentication.AuthenticatedWebSession
      • getSelfTO

        public org.apache.syncope.common.lib.to.UserTO getSelfTO()
      • getSelfTO

        public org.apache.syncope.common.lib.to.UserTO getSelfTO​(boolean reload)
      • getAnonymousClient

        public org.apache.syncope.client.lib.SyncopeClient getAnonymousClient()
        Specified by:
        getAnonymousClient in interface BaseSession