atg.epub.messaging
Class PublishingMessage

java.lang.Object
  extended by atg.epub.messaging.PublishingMessage
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DeploymentMessage

public abstract class PublishingMessage
extends java.lang.Object
implements java.io.Serializable

This class represents a base JMS message class for Publishing messages.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
PublishingMessage()
          Constructs an empty JMS message.
PublishingMessage(java.lang.String pProjectId)
          Constructs a JMS message with a project id
PublishingMessage(java.lang.String pProcessId, java.lang.String pProjectId)
          Constructs a JMS message with process and project ids
 
Method Summary
 java.lang.String getProcessId()
           
 java.lang.String getProjectId()
           
 java.lang.String getSubjectId()
           
 void setProcessId(java.lang.String pProcessId)
          Set the process id of this message.
 void setProjectId(java.lang.String pProjectId)
          Set the project id of this message.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

PublishingMessage

public PublishingMessage()
Constructs an empty JMS message.


PublishingMessage

public PublishingMessage(java.lang.String pProjectId)
Constructs a JMS message with a project id


PublishingMessage

public PublishingMessage(java.lang.String pProcessId,
                         java.lang.String pProjectId)
Constructs a JMS message with process and project ids

Method Detail

getSubjectId

public java.lang.String getSubjectId()
Returns:
the id of the project which is also the subject

getProcessId

public java.lang.String getProcessId()
Returns:
the id of the process

setProcessId

public void setProcessId(java.lang.String pProcessId)
Set the process id of this message.

Parameters:
pProcessId - the processId to set

getProjectId

public java.lang.String getProjectId()
Returns:
the id of the project

setProjectId

public void setProjectId(java.lang.String pProjectId)
Set the project id of this message.

Parameters:
pProjectId - the projectId to set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object