ontopoly
Class OntopolySession

java.lang.Object
  extended by org.apache.wicket.Session
      extended by org.apache.wicket.protocol.http.WebSession
          extended by ontopoly.OntopolySession
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.IClusterable

public class OntopolySession
extends org.apache.wicket.protocol.http.WebSession

See Also:
Serialized Form

Nested Class Summary
static class OntopolySession.OntopolyAuthorizationStrategy
           
 
Nested classes/interfaces inherited from class org.apache.wicket.Session
org.apache.wicket.Session.IPageMapVisitor, org.apache.wicket.Session.PageMapAccessMetaData
 
Field Summary
 
Fields inherited from class org.apache.wicket.Session
PAGEMAP_ACCESS_MDK, SESSION_ATTRIBUTE_NAME
 
Constructor Summary
protected OntopolySession(org.apache.wicket.Request request, org.apache.wicket.Response response, OntopolyApplication ontopolyApplication)
           
 
Method Summary
 boolean authenticate(java.lang.String username, java.lang.String password)
          Authenticates a user given the username and password.
 org.apache.wicket.authorization.IAuthorizationStrategy getAuthorizationStrategy()
           
 java.lang.String getLockerId(org.apache.wicket.Request request)
           
protected  java.lang.String getLockKey(Topic topic)
           
 OntopolyAccessStrategy.Privilege getPrivilege(FieldInstance fieldInstance)
           
 OntopolyAccessStrategy.Privilege getPrivilege(Topic topic)
           
 java.lang.String getSignInMessage()
           
protected  User getUser()
           
 java.lang.String getUserName()
           
 boolean isAccessStrategyEnabled()
           
 boolean isAdministrationEnabled()
           
 boolean isAnnotationEnabled()
           
 boolean isAuthenticated()
           
 boolean isAutoLogin()
           
 boolean isShortcutsEnabled()
           
 LockManager.Lock lock(Topic topic, java.lang.String lockerId)
           
 void setAdministrationEnabled(boolean administrationEnabled)
           
 void setAnnotationEnabled(boolean annotationEnabled)
           
 void setShortcutsEnabled(boolean shortcutsEnabled)
           
protected  void setUser(User user)
           
 
Methods inherited from class org.apache.wicket.protocol.http.WebSession
cleanupComponentFeedbackMessages, cleanupFeedbackMessages, isCurrentRequestValid
 
Methods inherited from class org.apache.wicket.Session
attach, bind, clear, createAutoPageMap, createAutoPageMapName, currentCreateAutoPageMapCounter, detach, dirty, error, exists, findOrCreate, findOrCreate, get, getApplication, getAttribute, getAttributeNames, getAutoPageMapNamePrefix, getAutoPageMapNameSuffix, getClassResolver, getClientInfo, getDefaultPageMap, getFeedbackMessages, getId, getLocale, getMetaData, getPage, getPage, getPageFactory, getPageMaps, getSessionStore, getSizeInBytes, getStyle, incrementCreateAutoPageMapCounter, info, invalidate, invalidateNow, isSessionInvalidated, isTemporary, newPageMap, nextPageId, nextSequenceValue, pageMapForName, removeAttribute, removePageMap, replaceSession, set, setApplication, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, touch, unset, untouch, update, visitPageMaps, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 java.lang.String getUserName()

getUser

protected User getUser()

setUser

protected void setUser(User user)

getPrivilege

public OntopolyAccessStrategy.Privilege getPrivilege(Topic topic)

getPrivilege

public OntopolyAccessStrategy.Privilege getPrivilege(FieldInstance fieldInstance)

lock

public LockManager.Lock lock(Topic topic,
                             java.lang.String lockerId)

getLockerId

public java.lang.String getLockerId(org.apache.wicket.Request request)

getLockKey

protected java.lang.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(java.lang.String username,
                            java.lang.String password)
Authenticates a user given the username and password.

Parameters:
username -
password -
Returns:
true if the user was authenticated.

getSignInMessage

public java.lang.String getSignInMessage()


Copyright © 2000-2012 Ontopia.