|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.campaign.action.Action
com.bea.campaign.EndStateAction
public class EndStateAction
An action which supports marking a user as done in a campaign/scenario.
This understands the following initialization parameters:
Field Summary | |
---|---|
protected boolean |
endState
Does this constitute an end state. |
Constructor Summary | |
---|---|
EndStateAction()
|
Method Summary | |
---|---|
ScenarioService |
getScenarioService()
Get the scenario service. |
String |
getUserId()
Get the user id (from the event). |
void |
init(Map params)
Initialize this action from the action parameters. |
void |
run()
Execute this action. |
String |
toString()
|
Methods inherited from class com.bea.campaign.action.Action |
---|
getEvent, getRandom, getRequest, getScenario, getScenarioContainer, getScenarioContainerName, getScenarioId, getScenarioName, getServiceLocator, getSession, getTimestamp, getUser, locateService, setEvent, setRandom, setRequest, setScenario, setScenarioContainer, setServiceLocator, setSession, setTimestamp, setUser |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean endState
Constructor Detail |
---|
public EndStateAction()
Method Detail |
---|
public void init(Map params) throws IllegalArgumentException
init
in class Action
params
- the action parameters.
IllegalArgumentException
- thrown on invalid action parameters.public void run() throws ActionException
This will set an end state flag for the user for the scenario in the scenario container.
run
in class Action
ActionException
- thrown on an error.public ScenarioService getScenarioService() throws javax.ejb.CreateException
javax.ejb.CreateException
- thrown on an error getting the scenario service.public String getUserId()
getUserId
in class Action
ScenarioHelper.getUserId(com.bea.p13n.events.Event)
public String toString()
toString
in class Object
|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |