Class DocumentTypeInfoRepository

java.lang.Object
ro.sync.ecss.extensions.api.webapp.doctype.DocumentTypeInfoRepository

@API(type=NOT_EXTENDABLE, src=PUBLIC) public class DocumentTypeInfoRepository extends Object
Class used to retrieve information about the registered document types.
  • Constructor Details

    • DocumentTypeInfoRepository

      public DocumentTypeInfoRepository()
  • Method Details

    • getInstance

      public static DocumentTypeInfoRepository getInstance()
      Returns:
      Returns the instance.
    • setInstance

      public static void setInstance(DocumentTypeInfoRepository instance)
      Parameters:
      instance - The instance to set.
    • getDocumentTypeInfo

      public DocumentTypeInfo getDocumentTypeInfo(String id)
      Returns information about the document type with the given id.
      Parameters:
      id - The id of the document type.
      Returns:
      Information about the document type.
    • getAllDocumentTypeInfos

      public List<DocumentTypeInfo> getAllDocumentTypeInfos()
      Returns information about all document types.
      Returns:
      Information about all document types.
    • getErrorDocumentTypes

      public List<String> getErrorDocumentTypes()
      Finds all the .framework files that for some reason could not be loaded.
      Returns:
      a list of all the .framework file that could not be loaded.
    • removeErrorDocumentType

      public void removeErrorDocumentType(File frameworkDescriptor)
      Removes the errorDocumentType with the given descriptor path from the errors list.
      Parameters:
      frameworkDescriptor - the .framework file.