public class WizardContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
append |
protected Member |
author |
protected java.util.Map<Category,Category> |
catMap |
static java.lang.String |
CONTEXT_WIZARD |
protected ControllerStatus |
cs |
protected java.util.Map |
ctxt |
protected java.util.Map |
extraMap |
protected boolean |
failed |
protected java.util.Map<Group,Group> |
groupMap |
protected java.lang.String |
prefix |
protected java.util.Map<Publication,Publication> |
pubMap |
protected java.util.List |
trackList |
protected Workspace |
workspace |
Constructor and Description |
---|
WizardContext() |
Modifier and Type | Method and Description |
---|---|
boolean |
getAppendPrefix()
Returns a String representing the new objects prefix
|
Member |
getAuthor()
Returns Member that performs all operation
|
java.util.Map<Category,Category> |
getCategoryMap()
Returns a map of old/new Categories
|
java.util.Map |
getDataControllerContext()
Returns a Map containing WizardContext itself used by DataController to
check it is a WizardAction
|
java.util.Map |
getExtraMap()
Returns a map used to store extra infos during wizard process
|
ControllerStatus |
getFailStatus()
Returns the ControllerStatus provided with failure or null
|
java.util.Map<Group,Group> |
getGroupMap()
Returns a map of old/new Groups
|
java.lang.String |
getPrefix()
Returns a String representing the new objects prefix
|
java.util.Map<Publication,Publication> |
getPublicationMap()
Returns a map of old/new duplicated objects
|
java.util.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(java.util.Map<Category,Category> catMap)
Sets a map of old/new Categories
|
void |
setFailed(boolean failed,
ControllerStatus cs) |
void |
setGroupMap(java.util.Map<Group,Group> groupMap)
Sets a map of old/new Groups
|
void |
setPrefix(java.lang.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
|
public static final java.lang.String CONTEXT_WIZARD
protected Workspace workspace
protected java.util.Map<Publication,Publication> pubMap
protected java.util.Map extraMap
protected java.util.List trackList
protected Member author
protected java.lang.String prefix
protected boolean append
protected java.util.Map ctxt
protected boolean failed
protected ControllerStatus cs
public boolean hasFailed()
public ControllerStatus getFailStatus()
public void setFailed(boolean failed, ControllerStatus cs)
failed
- cs
- public java.util.Map getDataControllerContext()
public Workspace getWorkspace()
public java.util.Map<Group,Group> getGroupMap()
public java.util.Map getExtraMap()
public java.util.Map<Category,Category> getCategoryMap()
public java.util.Map<Publication,Publication> getPublicationMap()
public java.util.List getTrackedData()
public void trackCreatedData(Data data)
data
- Data newly createdpublic Member getAuthor()
public java.lang.String getPrefix()
public boolean getAppendPrefix()
public void setWorkspace(Workspace workspace)
workspace
- the new workspacepublic void setGroupMap(java.util.Map<Group,Group> groupMap)
groupMap
- Map of old Group vs new Grouppublic void setCategoryMap(java.util.Map<Category,Category> catMap)
catMap
- Map of old Category vs new Categorypublic void setAuthor(Member author)
author
- Member performing operationpublic void setPrefix(java.lang.String prefix)
prefix
- String the prefixpublic void setAppendPrefix(boolean append)
append
- boolean true to appendCopyright © 2001-2010 Jalios SA. All Rights Reserved.