public interface SessionManager
| Modifier and Type | Method and Description |
|---|---|
void |
activateSession(String sessionId)
(Re)activates an existing session
|
void |
deactivateSession()
Deactivates the current session.
|
CometConfiguration |
getCometConfiguration()
Returns the CometConfiguration
|
String |
getImagePath(String imageName) |
MediaContext |
getMediaContext()
Returns the active MediaContext.
|
OS |
getOperatingSystem() |
PrintPublication |
getPublication()
Returns the publication that is currently used in the Comet.
|
PublicationController |
getPublicationController() |
LoginResult |
login(String login,
String passwd,
String client,
String language)
Logs in a Werk II Comet session
|
LogoutResult |
logout(String sessionId)
Logs out a Werk II Comet session
|
void |
setCometConfiguration(CometConfiguration config)
Sets the active CometConfiguration that should be used.
|
void |
setCometConfiguration(String configCode)
Sets the active CometConfiguration that should be used.
|
SetLanguageResult |
setLanguage(String sessionId,
String language)
Sets the language for the current Werk II Comet session
|
void |
setLocalSessionContext(Language language)
Sets the local SessionContext which will be used to retrieve and store values via Placeholders.
|
void |
setMediaContext(MediaContext context)
Sets the active MediaContext that should be used.
|
void |
setOperatingSystem(OS os) |
void |
setPublication(PrintPublication publication)
Sets the publication that should be used by Comet in the current session.
|
void |
setPublication(String id)
Sets the publication that should be used by Comet in the current session.
|
void |
setSessionLanguage(SessionContext ctx,
String isoCode)
Set the language for the given session context
|
void |
unsetLocalSessionContext()
Removes the local SessionContext set by #setLocalSessionContext and also sets the old SessionUser.
|
LoginResult login(String login, String passwd, String client, String language)
login - The user name for which to do the loginpasswd - The user's passwordclient - The client that should be used in the new sessionlanguage - The language that should be used in the new sessionLogoutResult logout(String sessionId)
sessionId - The session ID that shall be closedSetLanguageResult setLanguage(String sessionId, String language)
sessionId - The session ID for which to change the languagelanguage - The ISO code of the language to usevoid setSessionLanguage(SessionContext ctx, String isoCode)
ctx - The SessionContext in which to change the languageisoCode - The ISO code of the language to usevoid activateSession(String sessionId) throws SessionClosedException
sessionId - The ID of the session that shall be activatedSessionClosedException - If the session does not existvoid deactivateSession()
void setPublication(String id)
id - id of the publication to be setvoid setPublication(PrintPublication publication)
publication - the Publication which should be used in this sessionPrintPublication getPublication()
CometConfiguration getCometConfiguration()
void setCometConfiguration(String configCode)
configCode - The code of the CometConfiguration which should be usedvoid setCometConfiguration(CometConfiguration config)
config - The CometConfiguration which should be usedvoid setMediaContext(MediaContext context)
context - The media context which should be usedMediaContext getMediaContext()
void setLocalSessionContext(Language language)
language - Language which should be used, can be null if the current session language should not be changedvoid unsetLocalSessionContext()
PublicationController getPublicationController()
OS getOperatingSystem()
void setOperatingSystem(OS os)
Copyright © 2017 SAP SE. All Rights Reserved.