com.partnersoft.modules.inspection.app
Class InspectionLogic

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

public class InspectionLogic
extends java.lang.Object


Constructor Summary
InspectionLogic(InspectionKit kit)
           
 
Method Summary
 Inspection addAndSelectInspection(com.partnersoft.maps.model.MapEditContext context)
          Returns a new inspection, which has already been added to the inspection store and selected.
 Inspection addInspection(com.partnersoft.maps.model.MapEditContext context)
          Returns a new inspection, which has already been added to the inspection store.
 Inspection addInspectionWithOutRefresh(com.partnersoft.maps.model.MapEditContext context)
          Returns a new inspection, which has NOT been added to the inspection store.
 Inspection createInspectionFromContext(com.partnersoft.maps.model.MapEditContext context)
          Generates a new Inspection and returns it.
 com.partnersoft.scripting.Script getCanceledAddScript()
           
 com.partnersoft.scripting.Script getCopyScript()
           
 com.partnersoft.scripting.Script getPostEditValidationScript()
           
 com.partnersoft.scripting.Script getPreAddConfirmationScript()
           
 com.partnersoft.scripting.Script getPreCheckOutScript()
           
 com.partnersoft.scripting.Script getPreEditConfirmationScript()
           
 com.partnersoft.scripting.Script getPreEditSetupScript()
           
 com.partnersoft.scripting.Script getPreReissueConfirmationScript()
           
 com.partnersoft.scripting.Script getPreWheelConfirmationScript()
           
 void refresh()
           
 void refreshOverview()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InspectionLogic

public InspectionLogic(InspectionKit kit)
Method Detail

getPreWheelConfirmationScript

public com.partnersoft.scripting.Script getPreWheelConfirmationScript()

refresh

public void refresh()

getPreEditConfirmationScript

public com.partnersoft.scripting.Script getPreEditConfirmationScript()

refreshOverview

public void refreshOverview()

getPreAddConfirmationScript

public com.partnersoft.scripting.Script getPreAddConfirmationScript()

getPreReissueConfirmationScript

public com.partnersoft.scripting.Script getPreReissueConfirmationScript()

getCanceledAddScript

public com.partnersoft.scripting.Script getCanceledAddScript()

getPreCheckOutScript

public com.partnersoft.scripting.Script getPreCheckOutScript()

getCopyScript

public com.partnersoft.scripting.Script getCopyScript()

getPostEditValidationScript

public com.partnersoft.scripting.Script getPostEditValidationScript()

getPreEditSetupScript

public com.partnersoft.scripting.Script getPreEditSetupScript()

createInspectionFromContext

public Inspection createInspectionFromContext(com.partnersoft.maps.model.MapEditContext context)
Generates a new Inspection and returns it. Fires preAddConfirmation and Copy script. If preAddConfirmation returns false, a null inspection is returned.

Parameters:
context - - Current MapEditContext
Returns:
- new inspection or null.

addInspection

public Inspection addInspection(com.partnersoft.maps.model.MapEditContext context)
                         throws java.io.IOException,
                                java.sql.SQLException
Returns a new inspection, which has already been added to the inspection store. Null is returned if the preAddConfirmation script returns false.

Parameters:
context - - current map context
Returns:
- new inspection or null.
Throws:
java.io.IOException
java.sql.SQLException

addInspectionWithOutRefresh

public Inspection addInspectionWithOutRefresh(com.partnersoft.maps.model.MapEditContext context)
                                       throws java.io.IOException,
                                              java.sql.SQLException
Returns a new inspection, which has NOT been added to the inspection store. Null is returned if the preAddConfirmation script returns false. Does not refresh the map.

Parameters:
context - - current map context
Returns:
- new inspection or null.
Throws:
java.io.IOException
java.sql.SQLException

addAndSelectInspection

public Inspection addAndSelectInspection(com.partnersoft.maps.model.MapEditContext context)
                                  throws java.io.IOException,
                                         java.sql.SQLException
Returns a new inspection, which has already been added to the inspection store and selected. Null is returned if the preAddConfirmation script returns false.

Parameters:
context - - current map context
Returns:
- new selected inspection, or null.
Throws:
java.io.IOException
java.sql.SQLException