|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.modules.inspection.app.InspectionKit
public class InspectionKit
A single go-to class containing all the necessary pieces for an inspection app.
This includes the inspection storage, data schema, GUI, pointers to the mapset, module, and app, etc.
Copyright 2008 Partner Software, Inc.
| Constructor Summary | |
|---|---|
InspectionKit(com.partnersoft.maps.app.MapApp app,
com.partnersoft.maps.model.MapSet mapset,
com.partnersoft.system.Module module,
java.lang.String typeName)
|
|
InspectionKit(com.partnersoft.system.Module module)
|
|
InspectionKit(com.partnersoft.system.Module module,
java.lang.String typeName)
|
|
| Method Summary | |
|---|---|
void |
addModifiedInspecton(java.lang.String guid)
Marks an Inspection as modified. |
void |
clearAllQueueInspections()
Removes all inspection guids from the modified queue. |
com.partnersoft.maps.model.MapEditActor |
getActor()
|
com.partnersoft.maps.app.MapApp |
getApp()
|
InspectionFormDialog |
getDialog()
|
InspectionStore |
getHubStore()
Returns InspectionStore for the hub database. |
com.partnersoft.system.Module |
getInspectionModule()
Returns the Inspection module (not the individual one, the main one). |
java.lang.String |
getInspectionUserName()
Returns the user name stored from set Preferences, or the window's login if Preference is /null. |
InspectionLogic |
getLogic()
|
com.partnersoft.maps.model.MapEditActor |
getMapEditActor()
|
com.partnersoft.maps.model.MapSet |
getMapset()
|
InspectionMaster |
getMaster()
Returns the InspectionMaster for the Inspection Overview mapset. |
java.lang.String |
getModifiedInspectionGuidAndRemove()
Returns the first guid on the modified Inspection queue, or null if empty. |
java.util.Iterator<java.lang.String> |
getModifiedInspections()
Returns an iterator to the queue of modified Inspections. |
com.partnersoft.system.Module |
getModule()
|
java.lang.String |
getRoverDataType()
|
java.lang.String |
getRoverGraphicType()
|
com.partnersoft.cog.CogSchema |
getSchema()
|
com.partnersoft.data.NameSet |
getSourceDataTypes()
Returns the configured set of valid source data types (for copying data from/adding inspections to). |
InspectionStore |
getStore()
Returns InspectionStore for the local database. |
com.partnersoft.cog.CogStructureType |
getType()
|
java.lang.String |
getUserName()
|
void |
hubInstall()
|
void |
install()
|
boolean |
isReloadAllInspections()
Checks if inspections in the queue should be updated, or everything from the database. |
boolean |
isSource(com.partnersoft.maps.model.MapEditContext context)
|
boolean |
isSource(java.lang.String dataType)
|
java.util.List<java.lang.String> |
listAddableSubtypes()
Returns list of all subtype names that can be added from the edit panel. |
java.util.List<InspectionGridCell> |
listAllCells(com.partnersoft.geometry.xy.XyGrid grid)
Returns a list of InspectionGridCells for this Inspection based on passed XyGrid |
java.util.List<java.lang.String> |
listAllSubtypes()
Returns list of all subtype names List returned is a copy, modifying will not affect the original. |
java.util.List<java.lang.String> |
listContainedByModuleNames()
|
java.util.List<com.partnersoft.system.Module> |
listContainedByModules()
|
java.util.List<java.lang.String> |
listContainsModuleNames()
|
java.util.List<com.partnersoft.system.Module> |
listContainsModules()
|
java.util.List<java.lang.String> |
listFieldsForSubtype(java.lang.String subtype)
|
java.util.List<java.lang.String> |
listUserNames()
|
void |
setInspectionUserName(java.lang.String userName)
Sets the user name stored in Preferences. |
void |
setReloadAllInspections(boolean shouldI)
Sets the flag to read from the queue of modified inspections, or read everything from the database. |
void |
setUserName(java.lang.String userName)
|
void |
shutdown()
|
void |
startup()
|
void |
syncAll()
|
void |
syncCheckOut()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InspectionKit(com.partnersoft.system.Module module)
throws java.io.IOException
java.io.IOException
public InspectionKit(com.partnersoft.system.Module module,
java.lang.String typeName)
throws java.io.IOException
java.io.IOException
public InspectionKit(com.partnersoft.maps.app.MapApp app,
com.partnersoft.maps.model.MapSet mapset,
com.partnersoft.system.Module module,
java.lang.String typeName)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void install()
throws java.sql.SQLException
java.sql.SQLException
public void hubInstall()
throws java.sql.SQLException
java.sql.SQLException
public void startup()
throws java.sql.SQLException
java.sql.SQLException
public void shutdown()
throws java.sql.SQLException
java.sql.SQLException
public void syncAll()
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public void syncCheckOut()
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic com.partnersoft.maps.app.MapApp getApp()
public InspectionLogic getLogic()
public com.partnersoft.system.Module getModule()
public com.partnersoft.maps.model.MapSet getMapset()
public InspectionMaster getMaster()
public com.partnersoft.maps.model.MapEditActor getActor()
public java.util.List<com.partnersoft.system.Module> listContainedByModules()
public java.util.List<java.lang.String> listContainsModuleNames()
public java.util.List<com.partnersoft.system.Module> listContainsModules()
public java.util.List<java.lang.String> listContainedByModuleNames()
public com.partnersoft.system.Module getInspectionModule()
public InspectionStore getStore()
public InspectionStore getHubStore()
public com.partnersoft.cog.CogSchema getSchema()
public com.partnersoft.cog.CogStructureType getType()
public InspectionFormDialog getDialog()
public com.partnersoft.maps.model.MapEditActor getMapEditActor()
public java.lang.String getRoverDataType()
public java.lang.String getRoverGraphicType()
public java.lang.String getInspectionUserName()
public void setInspectionUserName(java.lang.String userName)
public com.partnersoft.data.NameSet getSourceDataTypes()
public boolean isSource(java.lang.String dataType)
public boolean isSource(com.partnersoft.maps.model.MapEditContext context)
public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
public java.util.List<java.lang.String> listFieldsForSubtype(java.lang.String subtype)
public java.util.List<java.lang.String> listUserNames()
public java.util.List<java.lang.String> listAddableSubtypes()
public java.util.List<java.lang.String> listAllSubtypes()
public java.util.List<InspectionGridCell> listAllCells(com.partnersoft.geometry.xy.XyGrid grid)
grid -
public java.util.Iterator<java.lang.String> getModifiedInspections()
public java.lang.String getModifiedInspectionGuidAndRemove()
public void addModifiedInspecton(java.lang.String guid)
guid - - Inspection's guid.public boolean isReloadAllInspections()
public void setReloadAllInspections(boolean shouldI)
shouldI - - Read from databse if true, read from queue otherwise.public void clearAllQueueInspections()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||