Package com.emc.d2fs.interfaces

# Interface ITemplateService

All Superinterfaces:
  `ID2fsService`

public interface ITemplateService extends ID2fsService
Document template management.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<Template>`
  `getTemplates(Context context, String id)`
  Get all available templates
  `boolean`
  `isNoContentAuthorized(Context context, String id)`
  Check if document without content is authorized
  `boolean`
  `setTemplate(Context context, String id, String templateName)`
  Set template to document

  ### Methods inherited from interface com.emc.d2fs.interfaces.ID2fsService

  `isRemote, setRemote`

- ## 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