Class WebserviceClient


  • public class WebserviceClient
    extends Object
    Facade for the connection with the remote LogicalDOC server
    Since:
    6.7.1
    Author:
    Marco Meschieri - LogicalDOC
    • Method Detail

      • 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 folder
        name - 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