Package ontopoly

Class OntopolySession

  • All Implemented Interfaces:
    Serializable, org.apache.wicket.IClusterable

    public class OntopolySession
    extends org.apache.wicket.protocol.http.WebSession
    See Also:
    Serialized Form
    • Constructor Detail

      • OntopolySession

        protected OntopolySession​(org.apache.wicket.Request request,
                                  org.apache.wicket.Response response,
                                  OntopolyApplication ontopolyApplication)
    • Method Detail

      • isShortcutsEnabled

        public boolean isShortcutsEnabled()
      • setShortcutsEnabled

        public void setShortcutsEnabled​(boolean shortcutsEnabled)
      • isAnnotationEnabled

        public boolean isAnnotationEnabled()
      • setAnnotationEnabled

        public void setAnnotationEnabled​(boolean annotationEnabled)
      • setAdministrationEnabled

        public void setAdministrationEnabled​(boolean administrationEnabled)
      • isAdministrationEnabled

        public boolean isAdministrationEnabled()
      • getUserName

        public String getUserName()
      • getUser

        protected User getUser()
      • setUser

        protected void setUser​(User user)
      • getLockerId

        public String getLockerId​(org.apache.wicket.Request request)
      • getLockKey

        protected String getLockKey​(Topic topic)
      • isAccessStrategyEnabled

        public boolean isAccessStrategyEnabled()
      • isAuthenticated

        public boolean isAuthenticated()
      • isAutoLogin

        public boolean isAutoLogin()
      • getAuthorizationStrategy

        public org.apache.wicket.authorization.IAuthorizationStrategy getAuthorizationStrategy()
        Overrides:
        getAuthorizationStrategy in class org.apache.wicket.Session
      • authenticate

        public boolean authenticate​(String username,
                                    String password)
        Authenticates a user given the username and password.
        Parameters:
        username -
        password -
        Returns:
        true if the user was authenticated.
      • getSignInMessage

        public String getSignInMessage()