com.ibm.xdms.common
Class XcapDiffInfo

java.lang.Object
  extended by com.ibm.xdms.common.XcapDiffInfo
All Implemented Interfaces:
java.io.Serializable

public class XcapDiffInfo
extends java.lang.Object
implements java.io.Serializable

Class containing xcap-diff information. This class is sent over SIBus from NotifyXcapFilter to the listener, so it must be Serializable.

See Also:
Serialized Form

Constructor Summary
XcapDiffInfo()
          No argument constructor for serialization
XcapDiffInfo(java.lang.String auid, java.lang.String xcapRoot, java.lang.String documentSelector, long oldETag, long newETag, java.lang.String lastModifierIdentity, java.util.Date lastModifiedDate)
          Constructs an XcapDiffInfo object given all the fields explicitly.
XcapDiffInfo(XcapServerRequest request, XcapServerResponse response)
          Constructs an XcapDiffInfo object based on XcapServerRequest and XcapServerResponse.
 
Method Summary
 java.lang.String getAuid()
           
 java.lang.String getDocumentSelector()
           
 java.util.Date getLastModifiedDate()
           
 java.lang.String getLastModifierIdentity()
           
 long getNewETag()
           
 long getOldETag()
           
 java.lang.String getXcapRoot()
           
 void setAuid(java.lang.String auid)
           
 void setDocumentSelector(java.lang.String documentSelector)
           
 void setLastModifiedDate(java.util.Date lastModifiedDate)
           
 void setLastModifierIdentity(java.lang.String lastModifierIdentity)
           
 void setNewETag(long newETag)
           
 void setOldETag(long oldETag)
           
 void setXcapRoot(java.lang.String xcapRoot)
           
 java.lang.String toString()
           
 java.lang.String toXmlString()
          Returns the XML String representation of the XcapDiffInfo object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XcapDiffInfo

public XcapDiffInfo()
No argument constructor for serialization


XcapDiffInfo

public XcapDiffInfo(XcapServerRequest request,
                    XcapServerResponse response)
             throws XdmsException
Constructs an XcapDiffInfo object based on XcapServerRequest and XcapServerResponse. The response object must be filled in, so you should only call this after the call to chain.doXXX(). Data is read from the request and response to fill in the values of the new XcapDiffInfo.

Parameters:
request -
response -
Throws:
XdmsException

XcapDiffInfo

public XcapDiffInfo(java.lang.String auid,
                    java.lang.String xcapRoot,
                    java.lang.String documentSelector,
                    long oldETag,
                    long newETag,
                    java.lang.String lastModifierIdentity,
                    java.util.Date lastModifiedDate)
Constructs an XcapDiffInfo object given all the fields explicitly.

Parameters:
auid - AUID
xcapRoot - XCAP root
documentSelector - document selector
oldETag - The previous e-tag of the document
newETag - The new e-tag of the document
lastModifierIdentity - User who last mofified the document
lastModifiedDate - Date of last update
Method Detail

getAuid

public java.lang.String getAuid()
Returns:
the auid

setAuid

public void setAuid(java.lang.String auid)
Parameters:
auid - the auid to set

getDocumentSelector

public java.lang.String getDocumentSelector()
Returns:
the documentSelector

setDocumentSelector

public void setDocumentSelector(java.lang.String documentSelector)
Parameters:
documentSelector - the documentSelector to set

getLastModifiedDate

public java.util.Date getLastModifiedDate()
Returns:
the lastModifiedDate

setLastModifiedDate

public void setLastModifiedDate(java.util.Date lastModifiedDate)
Parameters:
lastModifiedDate - the lastModifiedDate to set

getLastModifierIdentity

public java.lang.String getLastModifierIdentity()
Returns:
the lastModifierIdentity

setLastModifierIdentity

public void setLastModifierIdentity(java.lang.String lastModifierIdentity)
Parameters:
lastModifierIdentity - the lastModifierIdentity to set

getNewETag

public long getNewETag()
Returns:
the newETag

setNewETag

public void setNewETag(long newETag)
Parameters:
newETag - the newETag to set

getOldETag

public long getOldETag()
Returns:
the oldETag

setOldETag

public void setOldETag(long oldETag)
Parameters:
oldETag - the oldETag to set

getXcapRoot

public java.lang.String getXcapRoot()
Returns:
the xcapRoot

setXcapRoot

public void setXcapRoot(java.lang.String xcapRoot)
Parameters:
xcapRoot - the xcapRoot to set

toXmlString

public java.lang.String toXmlString()
Returns the XML String representation of the XcapDiffInfo object.

Returns:
Returns the XML String representation of the XcapDiffInfo object.

toString

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