|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.workspace.WizardContext
public class WizardContext
This class is a convenient structure to handle all data used during a deep duplicate made by a Wizard.
Field Summary | |
---|---|
protected boolean |
append
|
protected Member |
author
|
protected Map<Category,Category> |
catMap
|
static String |
CONTEXT_WIZARD
|
protected ControllerStatus |
cs
|
protected Map |
ctxt
|
protected Map |
extraMap
|
protected boolean |
failed
|
protected Map<Group,Group> |
groupMap
|
protected String |
prefix
|
protected Map<Publication,Publication> |
pubMap
|
protected List |
trackList
|
protected Workspace |
workspace
|
Constructor Summary | |
---|---|
WizardContext()
|
Method Summary | |
---|---|
boolean |
getAppendPrefix()
Returns a String representing the new objects prefix |
Member |
getAuthor()
Returns Member that performs all operation |
Map<Category,Category> |
getCategoryMap()
Returns a map of old/new Categories |
Map |
getDataControllerContext()
Returns a Map containing WizardContext itself used by DataController to check it is a WizardAction |
Map |
getExtraMap()
Returns a map used to store extra infos during wizard process |
ControllerStatus |
getFailStatus()
Returns the ControllerStatus provided with failure or null |
Map<Group,Group> |
getGroupMap()
Returns a map of old/new Groups |
String |
getPrefix()
Returns a String representing the new objects prefix |
Map<Publication,Publication> |
getPublicationMap()
Returns a map of old/new duplicated objects |
List |
getTrackedData()
Returns a set of all created data |
Workspace |
getWorkspace()
Returns the workspace of duplicated publications |
boolean |
hasFailed()
Returns true if the wizard proces has failed for any reason. |
void |
setAppendPrefix(boolean append)
Indicate if the prefix replace the title or append to the title |
void |
setAuthor(Member author)
Sets the Member that performs all operation |
void |
setCategoryMap(Map<Category,Category> catMap)
Sets a map of old/new Categories |
void |
setFailed(boolean failed,
ControllerStatus cs)
|
void |
setGroupMap(Map<Group,Group> groupMap)
Sets a map of old/new Groups |
void |
setPrefix(String prefix)
Sets new objects prefix |
void |
setWorkspace(Workspace workspace)
Sets the Workspace used by duplicated objects |
void |
trackCreatedData(Data data)
Store a new created data in the DataLsit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONTEXT_WIZARD
protected Workspace workspace
protected Map<Group,Group> groupMap
protected Map<Category,Category> catMap
protected Map<Publication,Publication> pubMap
protected Map extraMap
protected List trackList
protected Member author
protected String prefix
protected boolean append
protected Map ctxt
protected boolean failed
protected ControllerStatus cs
Constructor Detail |
---|
public WizardContext()
Method Detail |
---|
public boolean hasFailed()
public ControllerStatus getFailStatus()
public void setFailed(boolean failed, ControllerStatus cs)
failed
- cs
- public Map getDataControllerContext()
public Workspace getWorkspace()
public Map<Group,Group> getGroupMap()
public Map getExtraMap()
public Map<Category,Category> getCategoryMap()
public Map<Publication,Publication> getPublicationMap()
public List getTrackedData()
public void trackCreatedData(Data data)
data
- Data newly createdpublic Member getAuthor()
public String getPrefix()
public boolean getAppendPrefix()
public void setWorkspace(Workspace workspace)
workspace
- the new workspacepublic void setGroupMap(Map<Group,Group> groupMap)
groupMap
- Map of old Group vs new Grouppublic void setCategoryMap(Map<Category,Category> catMap)
catMap
- Map of old Category vs new Categorypublic void setAuthor(Member author)
author
- Member performing operationpublic void setPrefix(String prefix)
prefix
- String the prefixpublic void setAppendPrefix(boolean append)
append
- boolean true to append
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |