java.lang.Objectcom.collabnet.tracker.ws.handler.SaveMetadataHandler
public class SaveMetadataHandler
Handler for [XMLConstants.NAMESPACE]saveMetadata documents
The document format is the following:
<saveMetadata xmlns="urn:ws.tracker.collabnet.com"/>
The response document is of the type
[XMLConstants.NAMESPACE]loadMetadata. Its format is:
<loadMetadata xmlns="urn:ws.tracker.collabnet.com">
<artifactTypes>
see ArtifactTypeXMLHelper
</artifactTypes>
<queries>
<query>
<queryMetadata>
see QueryMetadataXMLHelper
</queryMetadata>
<adhocQuery>
see QueryXMLHelper
</adhocQuery>
</query>
.... additional <query> tags
</queries>
<hasArtifactTemplates>true | false</hasArtifactTemplates>
<hasReports>true | false</hasReports>
<hasPersonalQueries>true | false</hasPersonalQueries>
</loadMetadata>
| Field Summary | |
|---|---|
static java.lang.String |
NAMESPACE_TAG_NAME
The name of the namespace tag |
static java.lang.String |
REQUEST_ROOT_ELEMENT_NAME
The root element of the updateArtifactList document |
| Constructor Summary | |
|---|---|
SaveMetadataHandler()
|
|
| Method Summary | |
|---|---|
DocumentType[] |
getHandledDocumentTypes()
Returns the [ XMLConstants.NAMESPACE]saveMetadata DocumentType. |
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}saveMetadata 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 REQUEST_ROOT_ELEMENT_NAME
public static final java.lang.String NAMESPACE_TAG_NAME
| Constructor Detail |
|---|
public SaveMetadataHandler()
| Method Detail |
|---|
public void handle(Callcontext context,
XMLRequest request,
XMLResponse response)
throws java.lang.Exception
handle in interface DocumentHandlerjava.lang.ExceptionDocumentHandler.handle(Callcontext, XMLRequest, XMLResponse)
public java.util.List getSchemaReferences(Callcontext context,
XMLRequest request)
throws SchemaReferenceException
getSchemaReferences in interface DocumentHandlerSchemaReferenceExceptionDocumentHandler.getSchemaReferences(Callcontext, XMLRequest)public DocumentType[] getHandledDocumentTypes()
XMLConstants.NAMESPACE]saveMetadata DocumentType.
getHandledDocumentTypes in interface DocumentHandlerDocumentHandler.getHandledDocumentTypes()
public void produceSchema(Callcontext context,
XMLRequest request,
SchemaVisitor visitor)
throws SchemaGenerationException
produceSchema in interface DocumentHandlerSchemaGenerationExceptionDocumentHandler.produceSchema(Callcontext, XMLRequest,
SchemaVisitor)