mocks
Class MockDocumentTypeServiceImpl
java.lang.Object
   mocks.MockDocumentTypeServiceImpl
mocks.MockDocumentTypeServiceImpl
- All Implemented Interfaces: 
- DocumentTypeQueryService, DocumentTypeService, XmlExporter, XmlLoader
- public class MockDocumentTypeServiceImpl 
- extends Object- implements DocumentTypeService
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
documentsById
private Map documentsById
documentsByName
private Map documentsByName
postProcessors
private Map postProcessors
MockDocumentTypeServiceImpl
public MockDocumentTypeServiceImpl()
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:
- findByDocumentIdin interface- DocumentTypeQueryService
 
- 
 
getMaxVersionNumber
public Integer getMaxVersionNumber(String name)
- 
 
- 
 
findById
public DocumentType findById(Long documentTypeId)
- 
- Specified by:
- findByIdin interface- DocumentTypeQueryService
 
- 
 
findByName
public DocumentType findByName(String name)
- 
- Specified by:
- findByNamein interface- DocumentTypeQueryService
 
- 
 
findByNameCaseInsensitive
public DocumentType findByNameCaseInsensitive(String name)
- 
- Specified by:
- findByNameCaseInsensitivein interface- DocumentTypeService
 
- 
 
versionAndSave
public void versionAndSave(DocumentType documentType)
- 
- Specified by:
- versionAndSavein 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:
- findin 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:
- findAllCurrentRootDocumentsin interface- DocumentTypeService
 
- 
 
getMostRecentDocType
public DocumentType getMostRecentDocType(Long documentTypeId)
- 
 
- 
 
getDocumentTypeVO
public DocumentTypeDTO getDocumentTypeVO(Long documentTypeId)
- 
- Specified by:
- getDocumentTypeVOin interface- DocumentTypeService
 
- 
 
getDocumentTypeVO
public DocumentTypeDTO getDocumentTypeVO(String documentTypeName)
- 
- Specified by:
- getDocumentTypeVOin interface- DocumentTypeService
 
- 
 
findRootDocumentType
public DocumentType findRootDocumentType(DocumentType docType)
- 
- Specified by:
- findRootDocumentTypein interface- DocumentTypeQueryService
 
- 
 
loadXml
public void loadXml(InputStream inputStream,
                    String principalId)
- 
- Specified by:
- loadXmlin interface- XmlLoader
 
- 
 
export
public org.jdom.Element export(ExportDataSet dataSet)
- 
- Specified by:
- exportin interface- XmlExporter
 
- 
 
findAllCurrent
public List findAllCurrent()
- 
- Specified by:
- findAllCurrentin interface- DocumentTypeService
 
- 
 
getChildDocumentTypes
public List getChildDocumentTypes(Long documentTypeId)
- 
- Specified by:
- getChildDocumentTypesin interface- DocumentTypeService
 
- 
 
findByNameIgnoreCache
public DocumentType findByNameIgnoreCache(Long documentTypeId)
- 
 
- 
 
save
public void save(DocumentType documentType)
- 
- Specified by:
- savein interface- DocumentTypeService
 
- 
 
save
public void save(DocumentType documentType,
                 boolean flushCache)
- 
- Specified by:
- savein interface- DocumentTypeService
 
- 
 
flushCache
public void flushCache()
- 
- Specified by:
- flushCachein interface- DocumentTypeService
 
- 
 
clearCacheForAttributeUpdate
public void clearCacheForAttributeUpdate(RuleAttribute ruleAttribute)
- 
- Specified by:
- clearCacheForAttributeUpdatein interface- DocumentTypeService
 
- 
 
getDocumentTypeCount
public Integer getDocumentTypeCount()
- 
 
- 
 
findPreviousInstances
public List<DocumentType> findPreviousInstances(String documentTypeName)
- 
- Specified by:
- findPreviousInstancesin interface- DocumentTypeService
 
- 
 
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.