com.partnersoft.modules.inspection.app
Class InspectionModuleLogic

java.lang.Object
  extended by com.partnersoft.modules.inspection.app.InspectionModuleLogic

public class InspectionModuleLogic
extends java.lang.Object

Wrapper for inspection module data, and the actions related to them. ie. Styles and legends.

Copyright 2009 Partner Software, Inc.

Version:
$Id$
Author:
Rich Stepanski

Constructor Summary
InspectionModuleLogic(ManageModulesKit kit)
           
InspectionModuleLogic(ManageModulesKit kit, java.lang.String moduleName)
          Creates an InspectionModuleLogic instance for the passed module name.
InspectionModuleLogic(com.partnersoft.system.Module module, ManageModulesKit kit)
          Creates an InspectionModuleLogic instance for the passed module.
 
Method Summary
 void addSourceDataType(java.util.List<java.lang.String> types)
           
 void addSourceDataType(java.lang.String type)
           
 void generateLegend()
          Generates a legend for this inspection module based on stylesToIcons naming using the String template in the Inspection module.
 void generateSettings()
          Generates Inspection and Planner settings based on ModuleData.
 void generateStyles()
          Generates styles based on subtypes for this module in the module-mapset.
 com.partnersoft.system.Module getModule()
           
 InspectionModuleData getModuleData()
           
 com.partnersoft.system.Module getRootInspection()
           
 java.util.List<java.lang.String> getSourceDataTypes()
           
 void loadModuleData()
           
 void loadSettings()
           
 void loadStyles()
           
 void removeSourceDataType(java.lang.String type)
           
 void resetModuleData()
           
 void setModule(com.partnersoft.system.Module module)
           
 void setModule(java.lang.String module)
           
 void setModuleData(InspectionModuleData moduleData)
           
 void setRootInspection(com.partnersoft.system.Module rootInspection)
           
 void setSourceDataTypes(java.util.List<java.lang.String> types)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InspectionModuleLogic

public InspectionModuleLogic(ManageModulesKit kit,
                             java.lang.String moduleName)
Creates an InspectionModuleLogic instance for the passed module name.

Parameters:
moduleName -

InspectionModuleLogic

public InspectionModuleLogic(ManageModulesKit kit)

InspectionModuleLogic

public InspectionModuleLogic(com.partnersoft.system.Module module,
                             ManageModulesKit kit)
Creates an InspectionModuleLogic instance for the passed module.

Method Detail

getModule

public com.partnersoft.system.Module getModule()
Returns:
the module

setModule

public void setModule(com.partnersoft.system.Module module)
Parameters:
module - the module to set

setModule

public void setModule(java.lang.String module)

getRootInspection

public com.partnersoft.system.Module getRootInspection()
Returns:
the rootInspection

setRootInspection

public void setRootInspection(com.partnersoft.system.Module rootInspection)
Parameters:
rootInspection - the rootInspection to set

getModuleData

public InspectionModuleData getModuleData()
Returns:
the moduleData

setModuleData

public void setModuleData(InspectionModuleData moduleData)
Parameters:
moduleData - the moduleData to set

resetModuleData

public void resetModuleData()

loadModuleData

public void loadModuleData()

loadStyles

public void loadStyles()

addSourceDataType

public void addSourceDataType(java.lang.String type)

setSourceDataTypes

public void setSourceDataTypes(java.util.List<java.lang.String> types)

addSourceDataType

public void addSourceDataType(java.util.List<java.lang.String> types)

removeSourceDataType

public void removeSourceDataType(java.lang.String type)

getSourceDataTypes

public java.util.List<java.lang.String> getSourceDataTypes()

loadSettings

public void loadSettings()

generateLegend

public void generateLegend()
Generates a legend for this inspection module based on stylesToIcons naming using the String template in the Inspection module. Logs all progress.


generateSettings

public void generateSettings()
Generates Inspection and Planner settings based on ModuleData.


generateStyles

public void generateStyles()
Generates styles based on subtypes for this module in the module-mapset. Logs all progress.