Package ontopoly
Class OntopolySession
- java.lang.Object
-
- org.apache.wicket.Session
-
- org.apache.wicket.protocol.http.WebSession
-
- ontopoly.OntopolySession
-
- All Implemented Interfaces:
Serializable,org.apache.wicket.IClusterable
public class OntopolySession extends org.apache.wicket.protocol.http.WebSession- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOntopolySession.OntopolyAuthorizationStrategy
-
Constructor Summary
Constructors Modifier Constructor Description protectedOntopolySession(org.apache.wicket.Request request, org.apache.wicket.Response response, OntopolyApplication ontopolyApplication)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthenticate(String username, String password)Authenticates a user given the username and password.org.apache.wicket.authorization.IAuthorizationStrategygetAuthorizationStrategy()StringgetLockerId(org.apache.wicket.Request request)protected StringgetLockKey(Topic topic)OntopolyAccessStrategy.PrivilegegetPrivilege(FieldInstance fieldInstance)OntopolyAccessStrategy.PrivilegegetPrivilege(Topic topic)StringgetSignInMessage()protected UsergetUser()StringgetUserName()booleanisAccessStrategyEnabled()booleanisAdministrationEnabled()booleanisAnnotationEnabled()booleanisAuthenticated()booleanisAutoLogin()booleanisShortcutsEnabled()LockManager.Locklock(Topic topic, String lockerId)voidsetAdministrationEnabled(boolean administrationEnabled)voidsetAnnotationEnabled(boolean annotationEnabled)voidsetShortcutsEnabled(boolean shortcutsEnabled)protected voidsetUser(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
-
-
-
-
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)
-
getPrivilege
public OntopolyAccessStrategy.Privilege getPrivilege(Topic topic)
-
getPrivilege
public OntopolyAccessStrategy.Privilege getPrivilege(FieldInstance fieldInstance)
-
lock
public LockManager.Lock lock(Topic topic, String lockerId)
-
getLockerId
public String getLockerId(org.apache.wicket.Request request)
-
isAccessStrategyEnabled
public boolean isAccessStrategyEnabled()
-
isAuthenticated
public boolean isAuthenticated()
-
isAutoLogin
public boolean isAutoLogin()
-
getAuthorizationStrategy
public org.apache.wicket.authorization.IAuthorizationStrategy getAuthorizationStrategy()
- Overrides:
getAuthorizationStrategyin classorg.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()
-
-