|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vfny.geoserver.global.ApplicationState
This class represents the state of the GeoServer appliaction.
ApplicationState used by the state.jsp tile as a single view on the state of the GeoServer application. This class may be extended in the future to provide runtime statistics.
This class is not a bean - content is updated based on methods. As an example consider the following State diagram:
Field Summary | |
static java.lang.String |
WEB_CONTAINER_KEY
The key used to store this value in the Web Container |
Constructor Summary | |
ApplicationState()
|
Method Summary | |
void |
destroy()
Clean up the Configuration State during application exit. |
int |
getDataBad()
|
int |
getDataDisabled()
|
int |
getDataGood()
|
java.lang.Exception |
getDataStoreError(java.lang.String key)
|
java.util.List |
getDataStoreErrorKeys()
Flattened for your JSP pleasure |
java.util.Map |
getDataStoreErrors()
DataStore Exceptions by dataStoreId:typeName |
java.util.List |
getDataStoreErrorValues()
Flattened for your JSP pleasure |
java.lang.Exception |
getNameSpaceError(java.lang.String key)
|
java.util.List |
getNameSpaceErrorKeys()
Flattened for your JSP pleasure |
java.util.Map |
getNameSpaceErrors()
Namespace Exceptions by prefix:typeName. |
java.util.List |
getNameSpaceErrorValues()
Flattened for your JSP pleasure |
int |
getWfsBad()
q: What foul manner of magic is this? |
int |
getWfsDisabled()
q: This does not make a lot of sense - did you want to consult both ConfigChanged and GeoServer changed? |
java.lang.Exception |
getWFSError(java.lang.String key)
|
java.util.List |
getWFSErrorKeys()
|
java.util.Map |
getWFSErrors()
|
int |
getWfsGood()
Q: what is this supposed to do? |
int |
getWmsBad()
Q: scary magic |
int |
getWmsDisabled()
Q: scary magic |
java.lang.Exception |
getWMSError(java.lang.String key)
|
java.util.List |
getWMSErrorKeys()
|
java.util.Map |
getWMSErrors()
|
int |
getWmsGood()
Q: scary magic |
void |
init(org.apache.struts.action.ActionServlet actionServlet,
org.apache.struts.config.ModuleConfig moduleConfig)
Set up the ApplicationState during Application start up. |
boolean |
isConfigChanged()
True if the user has changed the Configuration and not yet applied them. |
boolean |
isDataChanged()
|
boolean |
isDataEdited()
|
boolean |
isGeoServerChanged()
True if the user has changed GeoServer and not yet saved the changes. |
boolean |
isValidationChanged()
|
boolean |
isValidationEdited()
|
boolean |
isWfsChanged()
|
boolean |
isWfsEdited()
|
boolean |
isWmsChanged()
|
boolean |
isWmsEdited()
|
void |
notifiySaveXML()
Notification that Global has been saved to XML config files. |
void |
notifyConfigChanged()
Notification that the User has changed the Configuration |
void |
notifyLoadXML()
Notification that Global has been updated from XML config files |
void |
notifyToGeoServer()
Notification that Global has been updated from Configuration |
void |
setConfigChanged(boolean edited)
|
void |
setDataChanged(boolean dataChanged)
|
void |
setDataEdited(boolean dataEdited)
|
void |
setGeoServerChanged(boolean changed)
|
void |
setValidationChanged(boolean validationChanged)
|
void |
setValidationEdited(boolean validationEdited)
|
void |
setWfsChanged(boolean wfsChanged)
|
void |
setWfsEdited(boolean wfsEdited)
|
void |
setWmsChanged(boolean wmsChanged)
|
void |
setWmsEdited(boolean wmsEdited)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String WEB_CONTAINER_KEY
Constructor Detail |
public ApplicationState()
Method Detail |
public void destroy()
Since this class just holds data, no resources need to be released.
destroy
in interface org.apache.struts.action.PlugIn
PlugIn.destroy()
public void init(org.apache.struts.action.ActionServlet actionServlet, org.apache.struts.config.ModuleConfig moduleConfig) throws javax.servlet.ServletException
ApplicationState simply registers itself with the WEB_CONTAINER_KEY ("GeoServer.ApplicationState") during start up.
init
in interface org.apache.struts.action.PlugIn
actionServlet
- ActionServlet representing the ApplicationmoduleConfig
- Configuration used to set up this plug in
javax.servlet.ServletException
PlugIn.init(org.apache.struts.action.ActionServlet,
org.apache.struts.config.ModuleConfig)
public boolean isConfigChanged()
true
if Configuration needs changing.public void setConfigChanged(boolean edited)
public boolean isGeoServerChanged()
true
if GeoServer has been changed (but not saved)public void setGeoServerChanged(boolean changed)
public void notifyLoadXML()
public void notifyToGeoServer()
public void notifiySaveXML()
public void notifyConfigChanged()
public int getWfsGood()
public int getWfsBad()
public int getWfsDisabled()
public int getWmsGood()
public int getWmsBad()
public int getWmsDisabled()
public int getDataGood()
public int getDataBad()
public int getDataDisabled()
public java.lang.Exception getDataStoreError(java.lang.String key)
public java.lang.Exception getNameSpaceError(java.lang.String key)
public java.lang.Exception getWFSError(java.lang.String key)
public java.lang.Exception getWMSError(java.lang.String key)
public java.util.Map getNameSpaceErrors()
This only includes problems! If this map is null or isEmpty status is "ready".
public java.util.List getNameSpaceErrorKeys()
public java.util.List getNameSpaceErrorValues()
public java.util.Map getDataStoreErrors()
This only includes problems! If this map is null or isEmpty status is "ready".
public java.util.List getDataStoreErrorKeys()
public java.util.List getDataStoreErrorValues()
public java.util.Map getWFSErrors()
public java.util.List getWFSErrorKeys()
public java.util.Map getWMSErrors()
public java.util.List getWMSErrorKeys()
public boolean isDataChanged()
public void setDataChanged(boolean dataChanged)
dataChanged
- The dataChanged to set.public boolean isDataEdited()
public void setDataEdited(boolean dataEdited)
dataEdited
- The dataEdited to set.public boolean isValidationChanged()
public void setValidationChanged(boolean validationChanged)
validationChanged
- The validationChanged to set.public boolean isValidationEdited()
public void setValidationEdited(boolean validationEdited)
validationEdited
- The validationEdited to set.public boolean isWfsChanged()
public void setWfsChanged(boolean wfsChanged)
wfsChanged
- The wfsChanged to set.public boolean isWfsEdited()
public void setWfsEdited(boolean wfsEdited)
wfsEdited
- The wfsEdited to set.public boolean isWmsChanged()
public void setWmsChanged(boolean wmsChanged)
wmsChanged
- The wmsChanged to set.public boolean isWmsEdited()
public void setWmsEdited(boolean wmsEdited)
wmsEdited
- The wmsEdited to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |