Class SoapDocumentMetadataClient
- java.lang.Object
-
- com.logicaldoc.webservice.soap.client.SoapClient<DocumentMetadataService>
-
- com.logicaldoc.webservice.soap.client.SoapDocumentMetadataClient
-
- All Implemented Interfaces:
DocumentMetadataService
public class SoapDocumentMetadataClient extends SoapClient<DocumentMetadataService> implements DocumentMetadataService
Document Metadata Web Service client.- Since:
- 6.1
- Author:
- Matteo Caruso - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description SoapDocumentMetadataClient(String endpoint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteAttributeSet(String sid, long setId)Deletes an existing attribute set with the given identifier.voiddeleteTemplate(String sid, long templateId)Deletes an existing template with the given identifierString[]getAttributeOptions(String sid, long setId, String attribute)Retrieves the options for the given attributeWSAttributeSetgetAttributeSet(String sid, String name)Gets attribute set's metadataWSAttributeSetgetAttributeSetById(String sid, long setId)Gets attribute set's metadataWSTemplategetTemplate(String sid, String name)Gets template's metadataWSTemplategetTemplateById(String sid, long templateId)Gets template's metadataWSAttributeSet[]listAttributeSets(String sid)Gets metadata of all existing attribute sets.WSTemplate[]listTemplates(String sid)Gets metadata of all existing templates.voidsetAttributeOptions(String sid, long setId, String attribute, String[] values)Saves the options for the given attributelongstoreAttributeSet(String sid, WSAttributeSet attributeSet)Create/Update an attribute set.longstoreTemplate(String sid, WSTemplate template)Create/Update a template.-
Methods inherited from class com.logicaldoc.webservice.soap.client.SoapClient
setMaxChildElements
-
-
-
-
Constructor Detail
-
SoapDocumentMetadataClient
public SoapDocumentMetadataClient(String endpoint) throws IOException
- Throws:
IOException
-
-
Method Detail
-
listTemplates
public WSTemplate[] listTemplates(String sid) throws Exception
Description copied from interface:DocumentMetadataServiceGets metadata of all existing templates.- Specified by:
listTemplatesin interfaceDocumentMetadataService- Parameters:
sid- Session identifier- Returns:
- The list of all templates
- Throws:
Exception- error in the server application
-
storeTemplate
public long storeTemplate(String sid, WSTemplate template) throws Exception
Description copied from interface:DocumentMetadataServiceCreate/Update a template. You can completely customize the template through a value object.- Specified by:
storeTemplatein interfaceDocumentMetadataService- Parameters:
sid- Session identifier (need to be administrator)template- value object containing the template's metadata- Returns:
- The ID of the new template
- Throws:
Exception- error in the server application
-
deleteTemplate
public void deleteTemplate(String sid, long templateId) throws Exception
Description copied from interface:DocumentMetadataServiceDeletes an existing template with the given identifier- Specified by:
deleteTemplatein interfaceDocumentMetadataService- Parameters:
sid- Session identifier (need to be administrator)templateId- The template's id- Throws:
Exception- error in the server application
-
getTemplate
public WSTemplate getTemplate(String sid, String name) throws Exception
Description copied from interface:DocumentMetadataServiceGets template's metadata- Specified by:
getTemplatein interfaceDocumentMetadataService- Parameters:
sid- Session identifiername- The template's name- Returns:
- A value object containing the template's metadata.
- Throws:
Exception- error in the server application
-
getTemplateById
public WSTemplate getTemplateById(String sid, long templateId) throws Exception
Description copied from interface:DocumentMetadataServiceGets template's metadata- Specified by:
getTemplateByIdin interfaceDocumentMetadataService- Parameters:
sid- Session identifiertemplateId- The template's id- Returns:
- A value object containing the template's metadata
- Throws:
Exception- error in the server application
-
setAttributeOptions
public void setAttributeOptions(String sid, long setId, String attribute, String[] values) throws Exception
Description copied from interface:DocumentMetadataServiceSaves the options for the given attribute- Specified by:
setAttributeOptionsin interfaceDocumentMetadataService- Parameters:
sid- Session identifiersetId- The attribute set's idattribute- The attribute's namevalues- The attribute's options- Throws:
Exception- error in the server application
-
getAttributeOptions
public String[] getAttributeOptions(String sid, long setId, String attribute) throws Exception
Description copied from interface:DocumentMetadataServiceRetrieves the options for the given attribute- Specified by:
getAttributeOptionsin interfaceDocumentMetadataService- Parameters:
sid- Session identifiersetId- The attribute set's idattribute- The attribute's name- Returns:
- the list of all the attribute's options
- Throws:
Exception- error in the server application
-
listAttributeSets
public WSAttributeSet[] listAttributeSets(String sid) throws Exception
Description copied from interface:DocumentMetadataServiceGets metadata of all existing attribute sets.- Specified by:
listAttributeSetsin interfaceDocumentMetadataService- Parameters:
sid- Session identifier- Returns:
- The list of all attribute sets
- Throws:
Exception- error in the server application
-
getAttributeSet
public WSAttributeSet getAttributeSet(String sid, String name) throws Exception
Description copied from interface:DocumentMetadataServiceGets attribute set's metadata- Specified by:
getAttributeSetin interfaceDocumentMetadataService- Parameters:
sid- Session identifiername- The attribute set's name- Returns:
- A value object containing the attribute set's metadata
- Throws:
Exception- error in the server application
-
getAttributeSetById
public WSAttributeSet getAttributeSetById(String sid, long setId) throws Exception
Description copied from interface:DocumentMetadataServiceGets attribute set's metadata- Specified by:
getAttributeSetByIdin interfaceDocumentMetadataService- Parameters:
sid- Session identifiersetId- The attribute set's id- Returns:
- A value object containing the attribute set's metadata
- Throws:
Exception- error in the server application
-
storeAttributeSet
public long storeAttributeSet(String sid, WSAttributeSet attributeSet) throws Exception
Description copied from interface:DocumentMetadataServiceCreate/Update an attribute set. You can completely customize the attribute set through a value object containing the attribute set's metadata.- Specified by:
storeAttributeSetin interfaceDocumentMetadataService- Parameters:
sid- Session identifier (need to be administrator)attributeSet- set's value object containing the attribute set's metadata- Returns:
- The ID of the new attribute set
- Throws:
Exception- error in the server application
-
deleteAttributeSet
public void deleteAttributeSet(String sid, long setId) throws Exception
Description copied from interface:DocumentMetadataServiceDeletes an existing attribute set with the given identifier.- Specified by:
deleteAttributeSetin interfaceDocumentMetadataService- Parameters:
sid- Session identifier (need to be administrator)setId- The attribute set's id- Throws:
Exception- error in the server application
-
-