public class ContentData
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static int |
EVENT_TYPE_BEGIN
Constant to represent workspace begin event.
|
static int |
EVENT_TYPE_COMMIT
Constant to represent a commit event.
|
static int |
EVENT_TYPE_END
Constant to represent a workspace end event.
|
static int |
EVENT_TYPE_POST_PUBLISH
Constant to represent a post-publish event.
|
static int |
EVENT_TYPE_PUBLISH
Constant to represent a publish event.
|
static int |
EVENT_TYPE_RELEASE
Constant to represent a release event.
|
static int |
EVENT_TYPE_ROLLBACK
Constant to represent a rollback event.
|
static int |
EVENT_TYPE_SYNCHRONIZE
Constant to represent a workspace end event.
|
| Constructor and Description |
|---|
ContentData(int eventType,
java.lang.String workspace)
Creates the content context event data object.
|
ContentData(int eventType,
java.lang.String workspace,
TaskGroup[] taskGroups)
Creates the content context event data object.
|
ContentData(java.lang.String workspace)
Creates the content context event data object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTaskGroup(TaskGroup taskGroup)
Add a task group to the content data.
|
int |
getEventType()
Returns the event type.
|
TaskGroup[] |
getTaskGroups()
Returns the task group for the event.
|
java.lang.String |
getWorkspace()
Returns the workspace name.
|
WorkspaceData |
getWorkspaceData()
Returns the cofiguration data associated with the workspace the event is performed on.
|
void |
setEventType(int eventType)
Sets the event type.
|
void |
setWorkspace(java.lang.String workspace)
Sets the workspace.
|
void |
setWorkspaceData(WorkspaceData data)
Sets the configuration data associated with the workspace the event is performed on.
|
java.lang.String |
toString()
Returns the string representation of the object.
|
public static final java.lang.String COPYRIGHT
public static final int EVENT_TYPE_BEGIN
public static final int EVENT_TYPE_COMMIT
public static final int EVENT_TYPE_ROLLBACK
public static final int EVENT_TYPE_RELEASE
public static final int EVENT_TYPE_PUBLISH
public static final int EVENT_TYPE_POST_PUBLISH
public static final int EVENT_TYPE_END
public static final int EVENT_TYPE_SYNCHRONIZE
public ContentData(java.lang.String workspace)
workspace - The name of the workspace.public ContentData(int eventType,
java.lang.String workspace)
eventType - The event type.workspace - The name of the workspace.public ContentData(int eventType,
java.lang.String workspace,
TaskGroup[] taskGroups)
eventType - The event type.workspace - The name of the workspace.taskGroups - The task groups.public void addTaskGroup(TaskGroup taskGroup)
taskGroup - A task group.public int getEventType()
public void setEventType(int eventType)
eventType - The event type.public java.lang.String getWorkspace()
public TaskGroup[] getTaskGroups()
com.ibm.commerce.context.content.events.ContentContextEventData#getTaskGroup()public void setWorkspace(java.lang.String workspace)
workspace - The workspace.public WorkspaceData getWorkspaceData()
public void setWorkspaceData(WorkspaceData data)
data - The workspace associated configuration data.public java.lang.String toString()
toString in class java.lang.Object