mocks
Class MockDocumentTypeServiceImpl

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

public class MockDocumentTypeServiceImpl
extends Object
implements DocumentTypeService


Field Summary
private  Map documentsById
           
private  Map documentsByName
           
private  Map postProcessors
           
 
Constructor Summary
MockDocumentTypeServiceImpl()
           
 
Method Summary
 void addDocumentType(DocumentType documentType, PostProcessor postProcessor)
           
 void clearCacheForAttributeUpdate(RuleAttribute ruleAttribute)
           
 void delete(DocumentType documentType)
           
 org.jdom.Element export(ExportDataSet dataSet)
           
 Collection find(DocumentType documentType, String docGroupName, boolean climbHiearchy)
           
 List findAllCurrent()
           
 List findAllCurrentRootDocuments()
           
 DocumentType findByDocumentId(Long documentId)
           
 DocumentType findById(Long documentTypeId)
           
 DocumentType findByName(String name)
           
 DocumentType findByNameCaseInsensitive(String name)
           
 DocumentType findByNameIgnoreCache(Long documentTypeId)
           
 List findByRouteHeaderId(Long routeHeaderId)
           
 List<DocumentType> findPreviousInstances(String documentTypeName)
           
 DocumentType findRootDocumentType(DocumentType docType)
           
 Collection findRouteLevels(Long documentTypeId)
           
 void flushCache()
           
 List getChildDocumentTypes(Long documentTypeId)
           
 Integer getDocumentTypeCount()
           
 DocumentTypeDTO getDocumentTypeVO(Long documentTypeId)
           
 DocumentTypeDTO getDocumentTypeVO(String documentTypeName)
           
 Integer getMaxVersionNumber(String name)
           
 DocumentType getMostRecentDocType(Long documentTypeId)
           
 DocumentType getMostRecentDocType(String docTypeName)
           
 PostProcessor getPostProcessor(Long documentTypeId)
           
 boolean isLockedForRouting(DocumentType documentType)
           
 void loadXml(InputStream inputStream, String principalId)
           
 void makeCurrent(List documentTypes)
           
 void makeCurrent(Long routeHeaderId)
           
 void save(DocumentType documentType)
           
 void save(DocumentType documentType, boolean flushCache)
           
 DocumentType setDocumentTypeVersion(DocumentType documentType, boolean currentInd)
           
 void versionAndSave(DocumentType documentType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

documentsById

private Map documentsById

documentsByName

private Map documentsByName

postProcessors

private Map postProcessors
Constructor Detail

MockDocumentTypeServiceImpl

public MockDocumentTypeServiceImpl()
Method Detail

setDocumentTypeVersion

public DocumentType setDocumentTypeVersion(DocumentType documentType,
                                           boolean currentInd)

getMostRecentDocType

public DocumentType getMostRecentDocType(String docTypeName)

isLockedForRouting

public boolean isLockedForRouting(DocumentType documentType)

makeCurrent

public void makeCurrent(List documentTypes)

addDocumentType

public void addDocumentType(DocumentType documentType,
                            PostProcessor postProcessor)

findByDocumentId

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

getMaxVersionNumber

public Integer getMaxVersionNumber(String name)

findById

public DocumentType findById(Long 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 void versionAndSave(DocumentType documentType)
Specified by:
versionAndSave in interface DocumentTypeService

getPostProcessor

public PostProcessor getPostProcessor(Long documentTypeId)

findRouteLevels

public Collection findRouteLevels(Long documentTypeId)

find

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

delete

public void delete(DocumentType documentType)

findByRouteHeaderId

public List findByRouteHeaderId(Long routeHeaderId)

makeCurrent

public void makeCurrent(Long routeHeaderId)

findAllCurrentRootDocuments

public List findAllCurrentRootDocuments()
Specified by:
findAllCurrentRootDocuments in interface DocumentTypeService

getMostRecentDocType

public DocumentType getMostRecentDocType(Long documentTypeId)

getDocumentTypeVO

public DocumentTypeDTO getDocumentTypeVO(Long documentTypeId)
Specified by:
getDocumentTypeVO in interface DocumentTypeService

getDocumentTypeVO

public DocumentTypeDTO getDocumentTypeVO(String documentTypeName)
Specified by:
getDocumentTypeVO 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

findAllCurrent

public List findAllCurrent()
Specified by:
findAllCurrent in interface DocumentTypeService

getChildDocumentTypes

public List getChildDocumentTypes(Long documentTypeId)
Specified by:
getChildDocumentTypes in interface DocumentTypeService

findByNameIgnoreCache

public DocumentType findByNameIgnoreCache(Long documentTypeId)

save

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

save

public void save(DocumentType documentType,
                 boolean flushCache)
Specified by:
save in interface DocumentTypeService

flushCache

public void flushCache()
Specified by:
flushCache in interface DocumentTypeService

clearCacheForAttributeUpdate

public void clearCacheForAttributeUpdate(RuleAttribute ruleAttribute)
Specified by:
clearCacheForAttributeUpdate in interface DocumentTypeService

getDocumentTypeCount

public Integer getDocumentTypeCount()

findPreviousInstances

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


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.