Interface ITemplateService

All Superinterfaces:
ID2fsService

public interface ITemplateService extends ID2fsService
Document template management.
  • Method Details

    • setTemplate

      boolean setTemplate(Context context, String id, String templateName) throws D2fsException
      Set template to document
      Parameters:
      context - Context object containing informations about client/session
      id - String value of document id
      templateName - String value of template name
      Returns:
      true if process performs without exception
      Throws:
      D2fsException
      Since:
      4.0.1
    • getTemplates

      List<Template> getTemplates(Context context, String id) throws Exception
      Get all available templates
      Parameters:
      context - Context object containing informations about client/session
      id - String value of document id
      Returns:
      Template list
      Throws:
      Exception
      Since:
      4.0.1
    • isNoContentAuthorized

      boolean isNoContentAuthorized(Context context, String id) throws D2fsException
      Check if document without content is authorized
      Parameters:
      context - Context object containing informations about client/session
      id - String value of document id
      Returns:
      true if empty document is allowed
      Throws:
      D2fsException
      Since:
      4.0.1