java.lang.Objectcom.collabnet.tracker.ws.handler.UpdateArtifactListHandler
public class UpdateArtifactListHandler
Handler for [XMLConstants.NAMESPACE]updateArtifactList documents.
The format of the request document is the following:
<updateArtifactList xmlns="urn:ws.tracker.collabnet.com">
<artifactList>
<ns1:{artifactTypeXMLName} xmlns:ns1="{urn:xmlURI}">
[attributes-to-update]
<id>{unique-id}</id>
<modifiedBy>{login-name}</modifiedBy>
<lastReadOn>{last-read-in-ms}</lastReadOn>
<reason>{reason}</reason>
</ns1:artifactType>
<!-- more artifacts to update, maximum 25 -->
</artifactList>
<sendMail>true | false</sendMail>
</updateArtifactList>
where
ArtifactListXMLHelper The format of the response document generated by the handle
method is described in GetArtifactListHandler. Note, that the
<artifactList> document will not contain a <pageInfo> element,
since the list of artifacts is not a result of a query.
A few notes on updating URL 'pseudo-attributes':
<url>
<id>
<removed>true</removed>
</url>
<url>
<id>
<name>{the-url}</name>
</url>
| Field Summary | |
|---|---|
static java.lang.String |
REQUEST_ROOT_ELEMENT_NAME
The root element of the updateArtifactList document |
static java.lang.String |
SEND_EMAIL_XPATH
The XPath to the sendEmail element |
| Constructor Summary | |
|---|---|
UpdateArtifactListHandler()
|
|
| Method Summary | |
|---|---|
DocumentType[] |
getHandledDocumentTypes()
Returns the [ XMLConstants.NAMESPACE]updateArtifactList
DocumentType (non-Javadoc) |
java.util.List |
getSchemaReferences(Callcontext context,
XMLRequest request)
Returns the references to the schemas used by artifactList and updateArtifactList documents. |
void |
handle(Callcontext context,
XMLRequest request,
XMLResponse response)
Handles {XMLConstants.NAMESPACE}updateArtifactList documents. |
void |
produceSchema(Callcontext context,
XMLRequest request,
SchemaVisitor visitor)
Generates the schema for updateArtifactList and artifactList documents. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SEND_EMAIL_XPATH
public static final java.lang.String REQUEST_ROOT_ELEMENT_NAME
| Constructor Detail |
|---|
public UpdateArtifactListHandler()
| Method Detail |
|---|
public void handle(Callcontext context,
XMLRequest request,
XMLResponse response)
throws java.lang.Exception
handle in interface DocumentHandlerjava.lang.ExceptionDocumentHandler.handle(com.collabnet.core.ws.services.Callcontext,
com.collabnet.core.ws.dispatcher.XMLRequest,
com.collabnet.core.ws.dispatcher.XMLResponse)
public java.util.List getSchemaReferences(Callcontext context,
XMLRequest request)
throws SchemaReferenceException
getSchemaReferences in interface DocumentHandlerSchemaReferenceExceptionDocumentHandler.getSchemaReferences(com.collabnet.core.ws.services.Callcontext,
com.collabnet.core.ws.dispatcher.XMLRequest)public DocumentType[] getHandledDocumentTypes()
XMLConstants.NAMESPACE]updateArtifactList
DocumentType (non-Javadoc)
getHandledDocumentTypes in interface DocumentHandlerDocumentHandler.getHandledDocumentTypes()
public void produceSchema(Callcontext context,
XMLRequest request,
SchemaVisitor visitor)
throws SchemaGenerationException
produceSchema in interface DocumentHandlerSchemaGenerationExceptionDocumentHandler.produceSchema(com.collabnet.core.ws.services.Callcontext,
com.collabnet.core.ws.dispatcher.XMLRequest,
com.collabnet.core.xml.SchemaVisitor)