Package com.priint.pubserver.session
Interface SessionManagerRemote
- All Known Subinterfaces:
SessionManagerLocal
public interface SessionManagerRemote
Remote interface for a session manager class defining method signatures for
necessary session handling functions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSession property name for remote IP address of client.static final StringSession property value if the session was initialized via CometBridge SOAP service, i.e.static final StringSession property value if the session was initialized via Ison SOAP service.static final StringSession property value if the session was initialized internally via an Server Job (or Workflow Job).static final StringSession property value if the session was initialized via publishing server Web UI (priint:suite).static final StringSession property name for type of client application using this session.static final StringSession property value if the session was initialized via REST client.static final StringSession property value if the session was initialized via Whiteboard, i.e.static final StringSession property name for session login name.static final StringSession property name for session client (tenant) name.static final StringSession property name for session tracing state.static final StringDeprecated.static final StringDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidCheck whether the default administrative user exists.Get all comet server sessions.Retrieve the existing sessions.getSessionAttribute(String sessionId, String key) Get data from the session store.List<org.apache.shiro.session.mgt.SimpleSession>Retrieve a list of active sessions.getSessionUser(String sessionId) Get current user associated with the session.org.apache.shiro.session.mgt.SimpleSessiongetSimpleSession(String sessionId) Get session object given a sessionId.voidsetSessionAttribute(String sessionId, String key, Object object) Save data into session store.
-
Field Details
-
REMOTE_ADDRESS_PROPERTY
Session property name for remote IP address of client.- See Also:
-
SESSION_TRACE_ACTIVE_PROPERTY
Session property name for session tracing state.- See Also:
-
SESSION_LOGIN_PROPERTY
Session property name for session login name.- See Also:
-
SESSION_TENANT_PROPERTY
Session property name for session client (tenant) name.- See Also:
-
SESSION_CLIENT_TYPE_PROPERTY
Session property name for type of client application using this session.- See Also:
-
SESSION_CLIENT_TYPE_ISON
Session property value if the session was initialized via Ison SOAP service.- See Also:
-
SESSION_CLIENT_TYPE_REST_SERVICE
Session property value if the session was initialized via REST client.- See Also:
-
SESSION_CLIENT_TYPE_PRIINT_SUITE
Session property value if the session was initialized via publishing server Web UI (priint:suite).- See Also:
-
SESSION_CLIENT_TYPE_COMET_BRIDGE
Session property value if the session was initialized via CometBridge SOAP service, i.e. in most cases InDesign comet plug-in.- See Also:
-
SESSION_CLIENT_TYPE_JOB
Session property value if the session was initialized internally via an Server Job (or Workflow Job).- See Also:
-
SESSION_CLIENT_TYPE_WHITEBOARD
Session property value if the session was initialized via Whiteboard, i.e. Flex.- See Also:
-
USER_INDEX_PATH
Deprecated.Repository location to store information on users.- See Also:
-
USER_ADMIN_PATH
Deprecated.Repository location to store admin user information.- See Also:
-
-
Method Details
-
getSessionUser
Get current user associated with the session.- Parameters:
sessionId-- Returns:
- login name of the current user
- Throws:
SessionNotAuthenticated
-
setSessionAttribute
void setSessionAttribute(String sessionId, String key, Object object) throws InvalidSessionException Save data into session store.- Parameters:
sessionId-key-object-- Throws:
InvalidSessionException
-
getSessionAttribute
Get data from the session store.- Parameters:
sessionId-key-- Returns:
- value associated to the key
- Throws:
InvalidSessionException
-
getSessionList
List<org.apache.shiro.session.mgt.SimpleSession> getSessionList()Retrieve a list of active sessions.- Returns:
- list of sessions
-
getSimpleSession
Get session object given a sessionId.- Parameters:
sessionId-- Returns:
- session object
-
checkAdminUser
void checkAdminUser()Check whether the default administrative user exists. Default administrative user has login name "admin". -
getPubServerSessionList
List<PubServerSimpleSession> getPubServerSessionList()Retrieve the existing sessions.- Returns:
- list of sessions
-
getCometServerSessions
Get all comet server sessions.A hash map with [sessionId => session info object] will be returned,
- Returns:
- the existing sessions or empty list
-