public class DocumentTypeServiceImpl extends Object implements DocumentTypeService
| Modifier and Type | Field and Description |
|---|---|
protected static String |
XML_FILE_PARSE_ERROR |
| Constructor and Description |
|---|
DocumentTypeServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.jdom.Element |
export(ExportDataSet dataSet) |
Collection<DocumentType> |
find(DocumentType documentType,
String docTypeParentName,
boolean climbHierarchy) |
List |
findAllCurrent() |
List |
findAllCurrentRootDocuments() |
DocumentType |
findByDocumentId(String documentId)
Returns the DocumentType of the Document with the given ID.
|
DocumentType |
findById(String documentTypeId) |
DocumentType |
findByName(String name) |
DocumentType |
findByNameCaseInsensitive(String name)
This method is similar to the findByName method except it is case insensitive.
|
String |
findParentNameByName(String documentTypeName)
Returns the name fo the parent document type for the document type with the given name, or null
if the specified document type doesn't have a parent document type.
|
List<DocumentType> |
findPreviousInstances(String documentTypeName) |
DocumentType |
findRootDocumentType(DocumentType docType) |
List |
getChildDocumentTypes(String documentTypeId) |
DataObjectService |
getDataObjectService() |
DocumentTypeDAO |
getDocumentTypeDAO() |
void |
loadXml(InputStream inputStream,
String principalId) |
DocumentType |
save(DocumentType documentType) |
void |
setDataObjectService(DataObjectService dataObjectService) |
void |
setDocumentTypeDAO(DocumentTypeDAO documentTypeDAO) |
boolean |
supportPrettyPrint() |
DocumentType |
versionAndSave(DocumentType documentType) |
protected static final String XML_FILE_PARSE_ERROR
public DocumentTypeServiceImpl()
public Collection<DocumentType> find(DocumentType documentType, String docTypeParentName, boolean climbHierarchy)
find in interface DocumentTypeQueryServicepublic DocumentType findById(String documentTypeId)
findById in interface DocumentTypeQueryServicepublic DocumentType findByDocumentId(String documentId)
DocumentTypeQueryServicefindByDocumentId in interface DocumentTypeQueryServicepublic DocumentType findByName(String name)
findByName in interface DocumentTypeQueryServicepublic DocumentType findByNameCaseInsensitive(String name)
DocumentTypeServicefindByNameCaseInsensitive in interface DocumentTypeServicepublic DocumentType versionAndSave(DocumentType documentType)
versionAndSave in interface DocumentTypeServicepublic String findParentNameByName(String documentTypeName)
DocumentTypeQueryServicefindParentNameByName in interface DocumentTypeQueryServicedocumentTypeName - the name of the document type for which to find the parentpublic DocumentType save(DocumentType documentType)
save in interface DocumentTypeServicepublic DocumentTypeDAO getDocumentTypeDAO()
public void setDocumentTypeDAO(DocumentTypeDAO documentTypeDAO)
public List findAllCurrentRootDocuments()
findAllCurrentRootDocuments in interface DocumentTypeServicepublic List findAllCurrent()
findAllCurrent in interface DocumentTypeServicepublic List<DocumentType> findPreviousInstances(String documentTypeName)
findPreviousInstances in interface DocumentTypeServicepublic DocumentType findRootDocumentType(DocumentType docType)
findRootDocumentType in interface DocumentTypeQueryServicepublic void loadXml(InputStream inputStream, String principalId)
public org.jdom.Element export(ExportDataSet dataSet)
export in interface XmlExporterpublic boolean supportPrettyPrint()
supportPrettyPrint in interface XmlExporterpublic List getChildDocumentTypes(String documentTypeId)
getChildDocumentTypes in interface DocumentTypeServicepublic DataObjectService getDataObjectService()
public void setDataObjectService(DataObjectService dataObjectService)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.