Class WebserviceClient
- java.lang.Object
-
- com.logicaldoc.enterprise.bulkcheckout.WebserviceClient
-
public class WebserviceClient extends Object
Facade for the connection with the remote LogicalDOC server- Since:
- 6.7.1
- Author:
- Marco Meschieri - LogicalDOC
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkin(long docId, File file)
void
checkout(long docId)
long
createFolder(long parentId, String name)
Creates a new folder in the given parentstatic WebserviceClient
get()
static WebserviceClient
get(String sid, String baseUrl, String language)
static WebserviceClient
get(String sid, String baseUrl, String language, int timeout)
String
getBaseUrl()
Entry
getDocument(long id)
String
getPath(long folderId)
boolean
isGranted(long folderId, int permission)
void
setTimeout(int timeout)
void
unlock(long docId)
void
uploadFile(long targetDir, File file)
-
-
-
Method Detail
-
get
public static WebserviceClient get(String sid, String baseUrl, String language)
-
get
public static WebserviceClient get(String sid, String baseUrl, String language, int timeout)
-
get
public static WebserviceClient get()
-
setTimeout
public void setTimeout(int timeout)
-
checkin
public void checkin(long docId, File file) throws IOException, org.xmlpull.v1.XmlPullParserException
- Throws:
IOException
org.xmlpull.v1.XmlPullParserException
-
getBaseUrl
public String getBaseUrl()
-
getPath
public String getPath(long folderId) throws IOException, org.xmlpull.v1.XmlPullParserException
- Throws:
IOException
org.xmlpull.v1.XmlPullParserException
-
isGranted
public boolean isGranted(long folderId, int permission) throws Exception
- Throws:
Exception
-
createFolder
public long createFolder(long parentId, String name) throws Exception
Creates a new folder in the given parent- Parameters:
parentId
- identifier of the parent foldername
- name of the new folder- Returns:
- the newly created folder id
- Throws:
Exception
- error in the database
-
uploadFile
public void uploadFile(long targetDir, File file) throws IOException, org.xmlpull.v1.XmlPullParserException
- Throws:
IOException
org.xmlpull.v1.XmlPullParserException
-
-