Dms
This chapter lists and describes all operations that the web service makes available to the users. The LogicalDOC Web Service descriptor can be obtained simply invoking this URL: http://localhost:8080/logicaldoc/services/Dms?wsdl.
It contains all the services provided in the previous versions of the LogicalDOC web service plugin, but all this services are deprecated.
Mandatory input parameters are in bold and italic.
Log In
operation: login | ||
input | ||
username
|
username used to log in | |
password
|
password used to log in | |
output | ||
The newly created session identifier(sid) |
This operation allows to start a new user session.
Log Out
operation: logout | ||
input | ||
sid
|
session identifier |
This operation allows to close a user session.
Check In
operation: checkin | ||
input | ||
sid
|
session identifier | |
id
|
document identifier | |
filename
|
name of the file to check in | |
description
|
file's description | |
type
|
document's version type (can be one of 'release' or 'subversion') | |
content
|
file content | |
output | ||
'ok' if all goes right or 'document not checked out' |
This operation allows to upload a new version of an already checked out document.
Check Out
operation: checkout | ||
input | ||
sid
|
session identifier | |
id
|
document identifier | |
output | ||
'ok' if all goes right |
This operation allows to mark a document as check out.
Create Document
operation: createDocument | ||
input | ||
sid
|
session identifier | |
folder
|
folder identifier | |
docTitle
|
document's title | |
source
|
document's source | |
sourceDate
|
document's source date | |
sourceAuthor
|
document's source author | |
sourceType
|
document's source type | |
coverage
|
document's coverage | |
language
|
document's language | |
tags
|
document's tags | |
versionDesc
|
document's version description | |
filename
|
document's title | |
content
|
file content | |
templateName
|
template's name | |
templateFields
|
template's fields as names-values pairs | |
sourceId
|
document's source identifier | |
object
|
document's object | |
recipient
|
document's recipient | |
customId
|
document's custom ID | |
output | ||
newly created document ID |
This operation allows to create a new document. The user can completely customize the document through many optional fields.
Update
operation: update | ||
input | ||
sid
|
session identifier | |
folder
|
folder identifier | |
doctitle
|
document's title | |
source
|
document's source | |
sourceDate
|
document's source date | |
sourceAuthor
|
document's source author | |
sourceType
|
document's source type | |
coverage
|
document's coverage | |
language
|
document's language | |
tags
|
document's tags | |
sourceId
|
document's source identifier | |
templateName
|
template's name | |
templateFields
|
template's fields as names-values pairs | |
object
|
document's object | |
recipient
|
document's recipient | |
output | ||
newly created document ID |
This operation allows to update an existing document. The user can completely customize the document through many optional fields.
Create Folder
operation: createFolder | ||
input | ||
sid
|
session identifier | |
name
|
folder name | |
parent
|
parent folder identifier | |
output | ||
newly created folder ID |
This operation allows to create a new folder with a given name and under a specific folder. It also assigns the same folder permissions of the parent folder.
Index Document
operation: indexDocument | ||
input | ||
sid
|
session identifier | |
id
|
document identifier |
This operation allows to request the indexing of a particular document. If the document is already indexed, it will be re-indexed.
Rename Folder
operation: renameFolder | ||
input | ||
sid
|
session identifier | |
folder
|
folder's identifier | |
name
|
new folder's name | |
output | ||
the renamed folder ID |
This operation allows to rename an existing folder. All nested documents will be marked to be reintexed.
Delete Document
operation: deleteDocument | ||
input | ||
sid
|
session identifier | |
id
|
document identifier | |
output | ||
'ok' if all goes right |
This operation allows to delete an existing document with the given identifier.
Delete Folder
operation: deleteFolder | ||
input | ||
sid
|
session identifier | |
id
|
folder identifier | |
output | ||
'ok' if all goes right |
This operation allows to delete an existing folder (with the given identifier) and all it's contained elements.
Download Document
operation: downloadDocument | ||
input | ||
sid
|
session identifier | |
id
|
folder identifier | |
version
|
document's version | |
output | ||
requested document's binary |
This operation allows to download a document with the given identifier. The document content is sent as attachment identified by 'document'.
Download Document Info
operation: downloadDocumentInfo | ||
input | ||
sid
|
session identifier | |
id
|
document identifier | |
output | ||
requested document's information |
This operation allows to retrieve the meta-data of a document with a given identifier.
Download Folder Content
operation: downloadFolderContent | ||
input | ||
sid
|
session identifier | |
id
|
folder identifier | |
output | ||
requested folder's information |
This operation allows to retrieve the meta-data of a folder with a given identifier.
Search
operation: search | ||
input | ||
sid
|
session identifier | |
query
|
query | |
indexLanguage
|
index language(if 'null' all indexes are considered) | |
queryLanguage
|
language in which the query is expressed | |
maxHits
|
max number of hits to be returned | |
templateName
|
template's name | |
templateFields
|
template's fields names | |
output | ||
search hits |
This operation allows to retrieve all documents that are been found through the given query.