public abstract class AbstractCallerController extends java.lang.Object implements CallerController
CallerController.Type| Constructor and Description |
|---|
AbstractCallerController(CallerData callerData) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLockedContext(Context context) |
void |
addLogoutListener(LogoutListener logoutListener) |
void |
cache(java.lang.String path,
Context context) |
DataTable |
createLockedContextsTable() |
java.lang.String |
getAddress() |
CallerData |
getCallerData() |
static java.util.List<CallerController> |
getControllers() |
java.util.Date |
getCreationTime() |
java.lang.String |
getEffectiveUsername() |
java.lang.String |
getInheritedUsername() |
java.lang.String |
getLogin() |
PermissionCache |
getPermissionCache() |
Permissions |
getPermissions() |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
java.lang.String |
getSessionId() |
java.lang.Long |
getSessionIdCounter() |
java.lang.Long |
getTokenExpirationPeriod() |
CallerController.Type |
getType() |
java.lang.String |
getUsername() |
boolean |
isConnectionTerminatable() |
boolean |
isLoggedIn() |
boolean |
isPermissionCheckingEnabled() |
boolean |
isWeb() |
void |
login(java.lang.String username,
java.lang.String inheritedUsername,
Permissions permissons) |
void |
logout() |
protected void |
logoutInternal(boolean softly) |
void |
logoutSoftly()
Used for logout of the user without closing of the corresponded connections in ClientCallerControllers instances.
|
Context |
lookup(java.lang.String path) |
void |
removeLockedContext(Context context) |
void |
removeLogoutListener(LogoutListener logoutListener) |
void |
sendFeedback(int level,
java.lang.String message) |
void |
sendFeedback(int level,
java.lang.String message,
java.lang.Integer duration) |
void |
setAddress(java.lang.String address) |
void |
setInheritedUsername(java.lang.String inheritedUsername) |
protected void |
setLoggedIn(boolean loggedIn) |
void |
setLogin(java.lang.String login) |
void |
setSessionId(java.lang.String sessionId) |
void |
setTokenExpirationPeriod(java.lang.Long tokenExpirationPeriod) |
void |
setType(CallerController.Type type) |
protected void |
setUsername(java.lang.String username) |
java.lang.String |
toString() |
void |
unlockAllContexts() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetClientIP, getLoginType, isHeadlesspublic AbstractCallerController(CallerData callerData)
public boolean isLoggedIn()
isLoggedIn in interface CallerControllerprotected void setLoggedIn(boolean loggedIn)
public boolean isPermissionCheckingEnabled()
isPermissionCheckingEnabled in interface CallerControllerpublic PermissionCache getPermissionCache()
getPermissionCache in interface CallerControllerpublic CallerData getCallerData()
getCallerData in interface CallerControllerpublic java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties in interface CallerControllerpublic void sendFeedback(int level,
java.lang.String message)
sendFeedback in interface CallerControllerpublic void sendFeedback(int level,
java.lang.String message,
java.lang.Integer duration)
sendFeedback in interface CallerControllerpublic static java.util.List<CallerController> getControllers()
public java.lang.String toString()
toString in class java.lang.Objectpublic Permissions getPermissions()
getPermissions in interface CallerControllerpublic java.lang.String getUsername()
getUsername in interface CallerControllerprotected void setUsername(java.lang.String username)
public java.lang.String getLogin()
getLogin in interface CallerControllerpublic void setLogin(java.lang.String login)
public java.lang.String getInheritedUsername()
getInheritedUsername in interface CallerControllerpublic void setInheritedUsername(java.lang.String inheritedUsername)
public java.lang.String getEffectiveUsername()
getEffectiveUsername in interface CallerControllerpublic CallerController.Type getType()
getType in interface CallerControllerpublic void setType(CallerController.Type type)
public java.lang.String getAddress()
getAddress in interface CallerControllerpublic void setAddress(java.lang.String address)
public java.util.Date getCreationTime()
getCreationTime in interface CallerControllerpublic java.lang.String getSessionId()
getSessionId in interface CallerControllerpublic void setSessionId(java.lang.String sessionId)
public java.lang.Long getTokenExpirationPeriod()
getTokenExpirationPeriod in interface CallerControllerpublic void setTokenExpirationPeriod(java.lang.Long tokenExpirationPeriod)
public void login(java.lang.String username,
java.lang.String inheritedUsername,
Permissions permissons)
throws ContextException
login in interface CallerControllerContextExceptionpublic final void logoutSoftly()
CallerControllerlogoutSoftly in interface CallerControllerpublic final void logout()
logout in interface CallerControllerprotected void logoutInternal(boolean softly)
public void addLogoutListener(LogoutListener logoutListener)
public void removeLogoutListener(LogoutListener logoutListener)
public java.lang.Long getSessionIdCounter()
getSessionIdCounter in interface CallerControllerpublic Context lookup(java.lang.String path)
lookup in interface CallerControllerpublic void cache(java.lang.String path,
Context context)
cache in interface CallerControllerpublic void addLockedContext(Context context)
addLockedContext in interface CallerControllerpublic void removeLockedContext(Context context)
removeLockedContext in interface CallerControllerpublic DataTable createLockedContextsTable()
createLockedContextsTable in interface CallerControllerpublic void unlockAllContexts()
unlockAllContexts in interface CallerControllerpublic boolean isWeb()
isWeb in interface CallerControllerpublic boolean isConnectionTerminatable()
isConnectionTerminatable in interface CallerController