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 class
OntopolySession.OntopolyAuthorizationStrategy
-
Constructor Summary
Constructors Modifier Constructor Description protected
OntopolySession(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 boolean
authenticate(String username, String password)
Authenticates a user given the username and password.org.apache.wicket.authorization.IAuthorizationStrategy
getAuthorizationStrategy()
String
getLockerId(org.apache.wicket.Request request)
protected String
getLockKey(Topic topic)
OntopolyAccessStrategy.Privilege
getPrivilege(FieldInstance fieldInstance)
OntopolyAccessStrategy.Privilege
getPrivilege(Topic topic)
String
getSignInMessage()
protected User
getUser()
String
getUserName()
boolean
isAccessStrategyEnabled()
boolean
isAdministrationEnabled()
boolean
isAnnotationEnabled()
boolean
isAuthenticated()
boolean
isAutoLogin()
boolean
isShortcutsEnabled()
LockManager.Lock
lock(Topic topic, 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
-
-
-
-
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:
getAuthorizationStrategy
in 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()
-
-