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 void
deleteAttributeSet(long setId)
void
deleteTemplate(long templateId)
String[]
getAttributeOptions(long setId, String attribute)
WSAttributeSet
getAttributeSet(String name)
WSAttributeSet
getAttributeSetById(long setId)
WSTemplate
getTemplate(String name)
WSTemplate
getTemplateById(long templateId)
WSAttributeSet[]
listAttributeSets()
WSTemplate[]
listTemplates()
void
setAttributeOptions(long setId, String attribute, WSAttributeOption[] options)
void
setAttributeOptionsPOST(long setId, String attribute, WSAttributeOption[] options)
long
storeAttributeSet(WSAttributeSet attributeSet)
long
storeTemplate(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
-
-