public interface IPentahoSession extends ILogger, IAuditable
Modifier and Type | Field and Description |
---|---|
static String |
SESSION_ROLES
Roles that are authorized in current session.
|
static String |
TENANT_ID_KEY
Key for searching the tenant ID.
|
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys any resources owned by the session object.
|
Object |
getAttribute(String attributeName)
Gets the value of a named session attribute.
|
Iterator |
getAttributeNames()
Returns an enumeration of the names of the attributes stored in the session.
|
boolean |
getBackgroundExecutionAlert()
Checks the status of a background execution task.
|
String |
getId()
Gets the ID for this session.
|
Locale |
getLocale()
Gets the locale of the session.
|
String |
getName()
Gets the name for this session, for example if this is an authenticated HTTP or Portlet session, the name will be
the name of the user.
|
boolean |
isAuthenticated()
Gets whether the session is known to be authenticated or not.
|
Object |
removeAttribute(String attributeName)
Removes an attribute from the session and returns it.
|
void |
resetBackgroundExecutionAlert()
Toggles off the background execution alert status.
|
void |
setActionName(String actionName)
Sets the name of the action sequence document that the session is currently performing.
|
void |
setAttribute(String attributeName,
Object value)
Sets the value of the session attribute.
|
void |
setAuthenticated(String name)
Sets the name of the session and indicates that the session is authenticated.
|
void |
setBackgroundExecutionAlert()
Toggles on an alert condition indicating that the background execution of a task has completed during this session.
|
void |
setNotAuthenticated()
Sets the indication that the user is no longer authenticated.
|
void |
setProcessId(String processId)
Sets the name of the process for which an action sequence is being performed.
|
debug, debug, error, error, fatal, fatal, getLoggingLevel, info, info, setLoggingLevel, trace, trace, warn, warn
getActionName, getObjectName, getProcessId
static final String TENANT_ID_KEY
static final String SESSION_ROLES
String getName()
String getId()
getId
in interface IAuditable
void setActionName(String actionName)
actionName
- The name of the action sequence document.void setProcessId(String processId)
processId
- The name of the process.void destroy()
Object getAttribute(String attributeName)
attributeName
- The name of the attribute.void setAttribute(String attributeName, Object value)
attributeName
- The name of the attribute.value
- The value of the attribute.Object removeAttribute(String attributeName)
attributeName
- The name of the attribute to remove.Iterator getAttributeNames()
Locale getLocale()
boolean isAuthenticated()
void setAuthenticated(String name)
request.getRemoteUser()
).name
- The name of the session.void setNotAuthenticated()
void setBackgroundExecutionAlert()
boolean getBackgroundExecutionAlert()
void resetBackgroundExecutionAlert()