public class ShareScenarioSelector extends AbstractShareEventProcessor
registry
of EventProcessor
instances that effectively choose the next event(s) to execute.ShareEventData
with a valid Share page.
EVENT_NAME_LOGOUT
: A share page is carried forward to log outModifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FALLBACK_EVENT_NAME |
static long |
DEFAULT_MAX_EVENT_DELAY |
static long |
DEFAULT_MAX_SESSION_TIME |
static long |
DEFAULT_MIN_EVENT_DELAY |
static long |
DEFAULT_MIN_SESSION_TIME |
static int |
DEFAULT_SESSION_ATTEMPTS |
static String |
EVENT_NAME_LOGOUT |
eventNameActionComplete, logger, userDataService
Constructor and Description |
---|
ShareScenarioSelector(org.alfresco.bm.user.UserDataService userDataService,
org.alfresco.bm.session.SessionService sessionService,
ShareScenarioRegistry scenarioRegistry) |
Modifier and Type | Method and Description |
---|---|
org.alfresco.bm.event.EventResult |
processEvent(org.alfresco.bm.event.Event event,
ShareEventData eventData)
Process a share based event.
|
void |
setBeanName(String beanName)
Overridden to record the bean name for reporting.
|
void |
setFallbackEventName(String fallbackEventName)
Override the
default event name to be called
when no scenario could be found. |
void |
setMaxEventDelay(long maxEventDelay)
Override the
default maximum user wait |
void |
setMaxSessionTime(long maxSessionTime)
Override the
default maximum user session length |
void |
setMinEventDelay(long minEventDelay)
Override the
default minimum user wait |
void |
setMinSessionTime(long minSessionTime)
Override the
default minimum user session length |
void |
setSessionAttempts(int sessionAttempts)
Override the
default number of times to try to
get a session that can continue from the current context. |
closeWebDrone, getUserData, processEvent, setEventNameActionComplete, setSessionService
getName, getWarnDelay, isAutoCloseSessionId, isAutoPropagateSessionId, isChart, processEvent, register, resumeTimer, setAutoCloseSessionId, setAutoPropagateSessionId, setChart, setEventName, setEventNames, setRegistry, setWarnDelay, stopTimer, suspendTimer, toString
public static final String EVENT_NAME_LOGOUT
public static final String DEFAULT_FALLBACK_EVENT_NAME
public static final long DEFAULT_MIN_SESSION_TIME
public static final long DEFAULT_MAX_SESSION_TIME
public static final long DEFAULT_MIN_EVENT_DELAY
public static final long DEFAULT_MAX_EVENT_DELAY
public static final int DEFAULT_SESSION_ATTEMPTS
public ShareScenarioSelector(org.alfresco.bm.user.UserDataService userDataService, org.alfresco.bm.session.SessionService sessionService, ShareScenarioRegistry scenarioRegistry)
userDataService
- required in case user needs to log in againsessionService
- service to access session-specific datascenarioRegistry
- a registry of user scenario processors.public void setBeanName(String beanName)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
setBeanName
in class org.alfresco.bm.event.AbstractEventProcessor
public void setMinSessionTime(long minSessionTime)
default
minimum user session lengthpublic void setMaxSessionTime(long maxSessionTime)
default
maximum user session lengthpublic void setMinEventDelay(long minEventDelay)
default
minimum user waitpublic void setMaxEventDelay(long maxEventDelay)
default
maximum user waitpublic void setSessionAttempts(int sessionAttempts)
default
number of times to try to
get a session that can continue from the current context.public void setFallbackEventName(String fallbackEventName)
default
event name to be called
when no scenario could be found.public org.alfresco.bm.event.EventResult processEvent(org.alfresco.bm.event.Event event, ShareEventData eventData) throws Exception
AbstractShareEventProcessor
processEvent
in class AbstractShareEventProcessor
event
- the origininating event (not normally required)eventData
- the share event data entityEventResult
the result of the process (includes errors and next events)Exception
Copyright © 2014. All rights reserved.