Class RestDocumentMetadataClient
- java.lang.Object
-
- com.logicaldoc.webservice.rest.client.AbstractRestClient
-
- com.logicaldoc.webservice.rest.client.RestDocumentMetadataClient
-
public class RestDocumentMetadataClient extends AbstractRestClient
-
-
Constructor Summary
Constructors Constructor Description RestDocumentMetadataClient(String endpoint, String username, String password)RestDocumentMetadataClient(String endpoint, String username, String password, int timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteAttributeSet(long setId)voiddeleteTemplate(long templateId)String[]getAttributeOptions(long setId, String attribute)WSAttributeSetgetAttributeSet(String name)WSAttributeSetgetAttributeSetById(long setId)WSTemplategetTemplate(String name)WSTemplategetTemplateById(long templateId)WSAttributeSet[]listAttributeSets()WSTemplate[]listTemplates()voidsetAttributeOptions(long setId, String attribute, WSAttributeOption[] options)voidsetAttributeOptionsPOST(long setId, String attribute, WSAttributeOption[] options)longstoreAttributeSet(WSAttributeSet attributeSet)longstoreTemplate(WSTemplate template)
-
-
-
Method Detail
-
setAttributeOptions
public void setAttributeOptions(long setId, String attribute, WSAttributeOption[] options) throws Exception- Throws:
Exception
-
setAttributeOptionsPOST
public void setAttributeOptionsPOST(long setId, String attribute, WSAttributeOption[] options) throws Exception- Throws:
Exception
-
storeAttributeSet
public long storeAttributeSet(WSAttributeSet attributeSet) throws Exception
- Throws:
Exception
-
storeTemplate
public long storeTemplate(WSTemplate template) throws Exception
- Throws:
Exception
-
getAttributeSetById
public WSAttributeSet getAttributeSetById(long setId) throws Exception
- Throws:
Exception
-
getAttributeSet
public WSAttributeSet getAttributeSet(String name) throws Exception
- Throws:
Exception
-
getTemplate
public WSTemplate getTemplate(String name) throws Exception
- Throws:
Exception
-
getTemplateById
public WSTemplate getTemplateById(long templateId) throws Exception
- Throws:
Exception
-
getAttributeOptions
public String[] getAttributeOptions(long setId, String attribute) throws Exception
- Throws:
Exception
-
listAttributeSets
public WSAttributeSet[] listAttributeSets() throws Exception
- Throws:
Exception
-
listTemplates
public WSTemplate[] listTemplates() throws Exception
- Throws:
Exception
-
-