Interface DocumentMetadataService

    • Method Detail

      • listTemplates

        WSTemplate[] listTemplates​(String sid)
                            throws Exception
        Gets metadata of all existing templates.
        Parameters:
        sid - Session identifier
        Returns:
        The list of all templates
        Throws:
        Exception - error in the server application
      • getTemplate

        WSTemplate getTemplate​(String sid,
                               String name)
                        throws Exception
        Gets template's metadata
        Parameters:
        sid - Session identifier
        name - The template's name
        Returns:
        A value object containing the template's metadata.
        Throws:
        Exception - error in the server application
      • getTemplateById

        WSTemplate getTemplateById​(String sid,
                                   long templateId)
                            throws Exception
        Gets template's metadata
        Parameters:
        sid - Session identifier
        templateId - The template's id
        Returns:
        A value object containing the template's metadata
        Throws:
        Exception - error in the server application
      • storeTemplate

        long storeTemplate​(String sid,
                           WSTemplate template)
                    throws Exception
        Create/Update a template. You can completely customize the template through a value object.
        Parameters:
        sid - Session identifier (need to be administrator)
        template - value object containing the template's metadata
        Returns:
        The ID of the new template
        Throws:
        Exception - error in the server application
      • deleteTemplate

        void deleteTemplate​(String sid,
                            long templateId)
                     throws Exception
        Deletes an existing template with the given identifier
        Parameters:
        sid - Session identifier (need to be administrator)
        templateId - The template's id
        Throws:
        Exception - error in the server application
      • listAttributeSets

        WSAttributeSet[] listAttributeSets​(String sid)
                                    throws Exception
        Gets metadata of all existing attribute sets.
        Parameters:
        sid - Session identifier
        Returns:
        The list of all attribute sets
        Throws:
        Exception - error in the server application
      • getAttributeSet

        WSAttributeSet getAttributeSet​(String sid,
                                       String name)
                                throws Exception
        Gets attribute set's metadata
        Parameters:
        sid - Session identifier
        name - The attribute set's name
        Returns:
        A value object containing the attribute set's metadata
        Throws:
        Exception - error in the server application
      • getAttributeSetById

        WSAttributeSet getAttributeSetById​(String sid,
                                           long setId)
                                    throws Exception
        Gets attribute set's metadata
        Parameters:
        sid - Session identifier
        setId - The attribute set's id
        Returns:
        A value object containing the attribute set's metadata
        Throws:
        Exception - error in the server application
      • storeAttributeSet

        long storeAttributeSet​(String sid,
                               WSAttributeSet attributeSet)
                        throws Exception
        Create/Update an attribute set. You can completely customize the attribute set through a value object containing the attribute set's metadata.
        Parameters:
        sid - Session identifier (need to be administrator)
        attributeSet - set's value object containing the attribute set's metadata
        Returns:
        The ID of the new attribute set
        Throws:
        Exception - error in the server application
      • deleteAttributeSet

        void deleteAttributeSet​(String sid,
                                long setId)
                         throws Exception
        Deletes an existing attribute set with the given identifier.
        Parameters:
        sid - Session identifier (need to be administrator)
        setId - The attribute set's id
        Throws:
        Exception - error in the server application
      • setAttributeOptions

        void setAttributeOptions​(String sid,
                                 long setId,
                                 String attribute,
                                 String[] values)
                          throws Exception
        Saves the options for the given attribute
        Parameters:
        sid - Session identifier
        setId - The attribute set's id
        attribute - The attribute's name
        values - The attribute's options
        Throws:
        Exception - error in the server application
      • getAttributeOptions

        String[] getAttributeOptions​(String sid,
                                     long setId,
                                     String attribute)
                              throws Exception
        Retrieves the options for the given attribute
        Parameters:
        sid - Session identifier
        setId - The attribute set's id
        attribute - The attribute's name
        Returns:
        the list of all the attribute's options
        Throws:
        Exception - error in the server application