com.ibm.commerce.context.content.events

Class ContentData

  • java.lang.Object
    • com.ibm.commerce.context.content.events.ContentData
  • All Implemented Interfaces:
    java.io.Serializable


    public class ContentData
    extends java.lang.Object
    implements java.io.Serializable
    Implementation of a content context event data object.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      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.
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • EVENT_TYPE_BEGIN

        public static final int EVENT_TYPE_BEGIN
        Constant to represent workspace begin event.
        See Also:
        Constant Field Values
      • EVENT_TYPE_COMMIT

        public static final int EVENT_TYPE_COMMIT
        Constant to represent a commit event.
        See Also:
        Constant Field Values
      • EVENT_TYPE_ROLLBACK

        public static final int EVENT_TYPE_ROLLBACK
        Constant to represent a rollback event.
        See Also:
        Constant Field Values
      • EVENT_TYPE_RELEASE

        public static final int EVENT_TYPE_RELEASE
        Constant to represent a release event.
        See Also:
        Constant Field Values
      • EVENT_TYPE_PUBLISH

        public static final int EVENT_TYPE_PUBLISH
        Constant to represent a publish event.
        See Also:
        Constant Field Values
      • EVENT_TYPE_POST_PUBLISH

        public static final int EVENT_TYPE_POST_PUBLISH
        Constant to represent a post-publish event.
        See Also:
        Constant Field Values
      • EVENT_TYPE_END

        public static final int EVENT_TYPE_END
        Constant to represent a workspace end event.
        See Also:
        Constant Field Values
      • EVENT_TYPE_SYNCHRONIZE

        public static final int EVENT_TYPE_SYNCHRONIZE
        Constant to represent a workspace end event.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ContentData

        public ContentData(java.lang.String workspace)
        Creates the content context event data object.
        Parameters:
        workspace - The name of the workspace.
      • ContentData

        public ContentData(int eventType,
                           java.lang.String workspace)
        Creates the content context event data object.
        Parameters:
        eventType - The event type.
        workspace - The name of the workspace.
      • ContentData

        public ContentData(int eventType,
                           java.lang.String workspace,
                           TaskGroup[] taskGroups)
        Creates the content context event data object.
        Parameters:
        eventType - The event type.
        workspace - The name of the workspace.
        taskGroups - The task groups.
    • Method Detail

      • addTaskGroup

        public void addTaskGroup(TaskGroup taskGroup)
        Add a task group to the content data.
        Parameters:
        taskGroup - A task group.
      • getEventType

        public int getEventType()
        Returns the event type.
        Returns:
        The event type.
      • setEventType

        public void setEventType(int eventType)
        Sets the event type.
        Parameters:
        eventType - The event type.
      • getWorkspace

        public java.lang.String getWorkspace()
        Returns the workspace name.
        Returns:
        The workspace name.
      • getTaskGroups

        public TaskGroup[] getTaskGroups()
        Returns the task group for the event.
        Returns:
        The task group.
        See Also:
        com.ibm.commerce.context.content.events.ContentContextEventData#getTaskGroup()
      • setWorkspace

        public void setWorkspace(java.lang.String workspace)
        Sets the workspace.
        Parameters:
        workspace - The workspace.
      • getWorkspaceData

        public WorkspaceData getWorkspaceData()
        Returns the cofiguration data associated with the workspace the event is performed on.
        Returns:
        The workspace associated configuration data.
      • setWorkspaceData

        public void setWorkspaceData(WorkspaceData data)
        Sets the configuration data associated with the workspace the event is performed on.
        Parameters:
        data - The workspace associated configuration data.
      • toString

        public java.lang.String toString()
        Returns the string representation of the object.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation of the object.