org.kuali.kfs.sys.context
Class CheckModularization

java.lang.Object
  extended by org.kuali.kfs.sys.context.CheckModularization

public class CheckModularization
extends Object


Nested Class Summary
 class CheckModularization.ModuleGroup
           
 
Constructor Summary
CheckModularization()
           
 
Method Summary
protected  void addDdBusinessObjectError(String errorType, String namespaceCode, String businessObjectClassName, String attributeName, String problemClassName)
           
protected  void addDdDocumentError(String errorType, String namespaceCode, String documentTypeName, String fieldName, String problemClassName)
           
 CheckModularization.ModuleGroup buildOptionalModuleGroup(Element optionalPackageElement)
           
protected  String buildOptionalModuleSpringFileList(CheckModularization.ModuleGroup moduleGroup)
           
protected  boolean checkMaintainableCollection(String namespaceCode, String documentTypeName, org.kuali.rice.kns.datadictionary.MaintainableCollectionDefinition collection, List<String> disallowedPackages)
           
protected  boolean checkMaintainableField(String namespaceCode, String documentTypeName, org.kuali.rice.kns.datadictionary.MaintainableFieldDefinition field, List<String> disallowedPackages)
           
protected  boolean doesPackagePrefixMatch(String className, List<String> packagePrefixList)
           
protected  Document generateDwrConfigDocument(String fileName)
           
 Document getDesignXmlDocument()
           
static void main(String[] args)
           
protected  List<String> retrieveDwrBeanClassNames(Document dwrDocument)
           
protected  List<String> retrieveDwrServiceNames(Document dwrDocument)
           
 List<CheckModularization.ModuleGroup> retrieveModuleGroups()
           
 List<Element> retrieveOptionalModuleDefinitions(Document designXmlDocument)
           
 List<CheckModularization.ModuleGroup> retrieveOptionalModuleGroups()
           
protected static void stopSpringContext()
           
protected  boolean testDd()
           
protected  boolean testDdModuleConfiguration(CheckModularization.ModuleGroup moduleGroup, StringBuffer errorMessage)
           
protected  boolean testDwr()
           
protected  boolean testDwrBeanClassNames(String dwrFileName, Document dwrDocument, CheckModularization.ModuleGroup moduleGroup, StringBuffer errorMessage)
           
protected  boolean testDwrModuleConfiguration(CheckModularization.ModuleGroup moduleGroup, StringBuffer errorMessage)
           
protected  boolean testDwrModuleConfiguration(String dwrFileName, Document dwrDocument, CheckModularization.ModuleGroup moduleGroup, StringBuffer errorMessage)
           
protected  boolean testDwrSpringServices(String dwrFileName, Document dwrDocument, CheckModularization.ModuleGroup moduleGroup, StringBuffer errorMessage)
           
 boolean testOjb()
           
protected  boolean testOptionalModuleOjbConfiguration(CheckModularization.ModuleGroup moduleGroup, StringBuffer errorMessage)
           
protected  boolean testOptionalModuleSpringConfiguration(CheckModularization.ModuleGroup optionalModuleGroup, String springConfigFiles, StringBuffer errorMessage)
           
 boolean testSpring()
           
protected  boolean validateDdBusinessObjectClassReference(String errorType, Class<? extends Object> testClass, String namespaceCode, String businessObjectClassName, String attributeName, List<String> disallowedPackages)
           
protected  boolean validateDdBusinessObjectClassReference(String errorType, String testClassName, String namespaceCode, String businessObjectClassName, String attributeName, List<String> disallowedPackages)
           
protected  boolean validateDdDocumentClassReference(String errorType, Class<? extends Object> testClass, String namespaceCode, String documentTypeName, String fieldName, List<String> disallowedPackages)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckModularization

public CheckModularization()
Method Detail

main

public static void main(String[] args)

buildOptionalModuleSpringFileList

protected String buildOptionalModuleSpringFileList(CheckModularization.ModuleGroup moduleGroup)

testSpring

public boolean testSpring()
                   throws Exception
Throws:
Exception

testOptionalModuleSpringConfiguration

protected boolean testOptionalModuleSpringConfiguration(CheckModularization.ModuleGroup optionalModuleGroup,
                                                        String springConfigFiles,
                                                        StringBuffer errorMessage)

testOjb

public boolean testOjb()
                throws Exception
Throws:
Exception

testOptionalModuleOjbConfiguration

protected boolean testOptionalModuleOjbConfiguration(CheckModularization.ModuleGroup moduleGroup,
                                                     StringBuffer errorMessage)
                                              throws FileNotFoundException
Throws:
FileNotFoundException

testDwr

protected boolean testDwr()
                   throws Exception
Throws:
Exception

testDwrModuleConfiguration

protected boolean testDwrModuleConfiguration(CheckModularization.ModuleGroup moduleGroup,
                                             StringBuffer errorMessage)
                                      throws Exception
Throws:
Exception

testDwrModuleConfiguration

protected boolean testDwrModuleConfiguration(String dwrFileName,
                                             Document dwrDocument,
                                             CheckModularization.ModuleGroup moduleGroup,
                                             StringBuffer errorMessage)
                                      throws Exception
Throws:
Exception

testDwrBeanClassNames

protected boolean testDwrBeanClassNames(String dwrFileName,
                                        Document dwrDocument,
                                        CheckModularization.ModuleGroup moduleGroup,
                                        StringBuffer errorMessage)

testDwrSpringServices

protected boolean testDwrSpringServices(String dwrFileName,
                                        Document dwrDocument,
                                        CheckModularization.ModuleGroup moduleGroup,
                                        StringBuffer errorMessage)

generateDwrConfigDocument

protected Document generateDwrConfigDocument(String fileName)
                                      throws Exception
Throws:
Exception

retrieveDwrServiceNames

protected List<String> retrieveDwrServiceNames(Document dwrDocument)

retrieveDwrBeanClassNames

protected List<String> retrieveDwrBeanClassNames(Document dwrDocument)

testDd

protected boolean testDd()
                  throws Exception
Throws:
Exception

testDdModuleConfiguration

protected boolean testDdModuleConfiguration(CheckModularization.ModuleGroup moduleGroup,
                                            StringBuffer errorMessage)

addDdBusinessObjectError

protected void addDdBusinessObjectError(String errorType,
                                        String namespaceCode,
                                        String businessObjectClassName,
                                        String attributeName,
                                        String problemClassName)

validateDdBusinessObjectClassReference

protected boolean validateDdBusinessObjectClassReference(String errorType,
                                                         String testClassName,
                                                         String namespaceCode,
                                                         String businessObjectClassName,
                                                         String attributeName,
                                                         List<String> disallowedPackages)

validateDdBusinessObjectClassReference

protected boolean validateDdBusinessObjectClassReference(String errorType,
                                                         Class<? extends Object> testClass,
                                                         String namespaceCode,
                                                         String businessObjectClassName,
                                                         String attributeName,
                                                         List<String> disallowedPackages)

addDdDocumentError

protected void addDdDocumentError(String errorType,
                                  String namespaceCode,
                                  String documentTypeName,
                                  String fieldName,
                                  String problemClassName)

validateDdDocumentClassReference

protected boolean validateDdDocumentClassReference(String errorType,
                                                   Class<? extends Object> testClass,
                                                   String namespaceCode,
                                                   String documentTypeName,
                                                   String fieldName,
                                                   List<String> disallowedPackages)

checkMaintainableCollection

protected boolean checkMaintainableCollection(String namespaceCode,
                                              String documentTypeName,
                                              org.kuali.rice.kns.datadictionary.MaintainableCollectionDefinition collection,
                                              List<String> disallowedPackages)

checkMaintainableField

protected boolean checkMaintainableField(String namespaceCode,
                                         String documentTypeName,
                                         org.kuali.rice.kns.datadictionary.MaintainableFieldDefinition field,
                                         List<String> disallowedPackages)

doesPackagePrefixMatch

protected boolean doesPackagePrefixMatch(String className,
                                         List<String> packagePrefixList)

retrieveModuleGroups

public List<CheckModularization.ModuleGroup> retrieveModuleGroups()
                                                           throws Exception
Throws:
Exception

retrieveOptionalModuleGroups

public List<CheckModularization.ModuleGroup> retrieveOptionalModuleGroups()
                                                                   throws Exception
Throws:
Exception

getDesignXmlDocument

public Document getDesignXmlDocument()
                              throws Exception
Throws:
Exception

retrieveOptionalModuleDefinitions

public List<Element> retrieveOptionalModuleDefinitions(Document designXmlDocument)
                                                throws Exception
Throws:
Exception

buildOptionalModuleGroup

public CheckModularization.ModuleGroup buildOptionalModuleGroup(Element optionalPackageElement)

stopSpringContext

protected static void stopSpringContext()


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.