public class OntopolySession
extends org.apache.wicket.protocol.http.WebSession
Modifier and Type | Class and Description |
---|---|
static class |
OntopolySession.OntopolyAuthorizationStrategy |
Modifier | Constructor and Description |
---|---|
protected |
OntopolySession(org.apache.wicket.Request request,
org.apache.wicket.Response response,
OntopolyApplication ontopolyApplication) |
Modifier and Type | Method and 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) |
cleanupComponentFeedbackMessages, cleanupFeedbackMessages, isCurrentRequestValid
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
protected OntopolySession(org.apache.wicket.Request request, org.apache.wicket.Response response, OntopolyApplication ontopolyApplication)
public boolean isShortcutsEnabled()
public void setShortcutsEnabled(boolean shortcutsEnabled)
public boolean isAnnotationEnabled()
public void setAnnotationEnabled(boolean annotationEnabled)
public void setAdministrationEnabled(boolean administrationEnabled)
public boolean isAdministrationEnabled()
public String getUserName()
protected User getUser()
protected void setUser(User user)
public OntopolyAccessStrategy.Privilege getPrivilege(Topic topic)
public OntopolyAccessStrategy.Privilege getPrivilege(FieldInstance fieldInstance)
public LockManager.Lock lock(Topic topic, String lockerId)
public String getLockerId(org.apache.wicket.Request request)
public boolean isAccessStrategyEnabled()
public boolean isAuthenticated()
public boolean isAutoLogin()
public org.apache.wicket.authorization.IAuthorizationStrategy getAuthorizationStrategy()
getAuthorizationStrategy
in class org.apache.wicket.Session
public boolean authenticate(String username, String password)
username
- password
- public String getSignInMessage()