Class DocumentTypeInfoRepository
- java.lang.Object
-
- ro.sync.ecss.extensions.api.webapp.doctype.DocumentTypeInfoRepository
-
@API(type=NOT_EXTENDABLE, src=PUBLIC) public class DocumentTypeInfoRepository extends java.lang.Object
Class used to retrieve information about the registered document types.
-
-
Constructor Summary
Constructors Constructor Description DocumentTypeInfoRepository()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DocumentTypeInfo>
getAllDocumentTypeInfos()
Returns information about all document types.DocumentTypeInfo
getDocumentTypeInfo(java.lang.String id)
Returns information about the document type with the given id.java.util.List<java.lang.String>
getErrorDocumentTypes()
Finds all the .framework files that for some reason could not be loaded.static DocumentTypeInfoRepository
getInstance()
void
removeErrorDocumentType(java.io.File frameworkDescriptor)
Removes the errorDocumentType with the given descriptor path from the errors list.static void
setInstance(DocumentTypeInfoRepository instance)
-
-
-
Method Detail
-
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(java.lang.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 java.util.List<DocumentTypeInfo> getAllDocumentTypeInfos()
Returns information about all document types.- Returns:
- Information about all document types.
-
getErrorDocumentTypes
public java.util.List<java.lang.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(java.io.File frameworkDescriptor)
Removes the errorDocumentType with the given descriptor path from the errors list.- Parameters:
frameworkDescriptor
- the .framework file.
-
-