mocks
Class MockDocumentTypeServiceImpl

java.lang.Object
  extended by mocks.MockDocumentTypeServiceImpl
All Implemented Interfaces:
XmlExporter, XmlLoader, DocumentTypeQueryService, DocumentTypeService

public class MockDocumentTypeServiceImpl
extends Object
implements DocumentTypeService


Constructor Summary
MockDocumentTypeServiceImpl()
           
 
Method Summary
 org.jdom.Element export(ExportDataSet dataSet)
           
 Collection<DocumentType> find(DocumentType documentType, String docGroupName, boolean climbHiearchy)
           
 List<DocumentType> findAllCurrent()
           
 List<DocumentType> findAllCurrentRootDocuments()
           
 DocumentType findByDocumentId(String documentId)
           
 DocumentType findById(String documentTypeId)
           
 DocumentType findByName(String name)
           
 DocumentType findByNameCaseInsensitive(String name)
           
 List<DocumentType> findPreviousInstances(String documentTypeName)
           
 DocumentType findRootDocumentType(DocumentType docType)
           
 List<DocumentType> getChildDocumentTypes(String documentTypeId)
           
 void loadXml(InputStream inputStream, String principalId)
           
 DocumentType save(DocumentType documentType)
           
 boolean supportPrettyPrint()
           
 DocumentType versionAndSave(DocumentType documentType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockDocumentTypeServiceImpl

public MockDocumentTypeServiceImpl()
Method Detail

findByDocumentId

public DocumentType findByDocumentId(String documentId)
Specified by:
findByDocumentId in interface DocumentTypeQueryService

findById

public DocumentType findById(String documentTypeId)
Specified by:
findById in interface DocumentTypeQueryService

findByName

public DocumentType findByName(String name)
Specified by:
findByName in interface DocumentTypeQueryService

findByNameCaseInsensitive

public DocumentType findByNameCaseInsensitive(String name)
Specified by:
findByNameCaseInsensitive in interface DocumentTypeService

versionAndSave

public DocumentType versionAndSave(DocumentType documentType)
Specified by:
versionAndSave in interface DocumentTypeService

find

public Collection<DocumentType> find(DocumentType documentType,
                                     String docGroupName,
                                     boolean climbHiearchy)
Specified by:
find in interface DocumentTypeQueryService

findAllCurrentRootDocuments

public List<DocumentType> findAllCurrentRootDocuments()
Specified by:
findAllCurrentRootDocuments in interface DocumentTypeService

findRootDocumentType

public DocumentType findRootDocumentType(DocumentType docType)
Specified by:
findRootDocumentType in interface DocumentTypeQueryService

loadXml

public void loadXml(InputStream inputStream,
                    String principalId)
Specified by:
loadXml in interface XmlLoader

export

public org.jdom.Element export(ExportDataSet dataSet)
Specified by:
export in interface XmlExporter

supportPrettyPrint

public boolean supportPrettyPrint()
Specified by:
supportPrettyPrint in interface XmlExporter

findAllCurrent

public List<DocumentType> findAllCurrent()
Specified by:
findAllCurrent in interface DocumentTypeService

getChildDocumentTypes

public List<DocumentType> getChildDocumentTypes(String documentTypeId)
Specified by:
getChildDocumentTypes in interface DocumentTypeService

save

public DocumentType save(DocumentType documentType)
Specified by:
save in interface DocumentTypeService

findPreviousInstances

public List<DocumentType> findPreviousInstances(String documentTypeName)
Specified by:
findPreviousInstances in interface DocumentTypeService


Copyright © 2005–2015 The Kuali Foundation. All rights reserved.