public class SensorManagerFormHandler
extends atg.droplet.GenericFormHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS
Constructor and Description |
---|
SensorManagerFormHandler() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<atg.service.fluoroscope.Sensor> |
getAvailableSensors()
This method calculates a collection of sensors to be dislpayed on the UI.
|
java.lang.String[] |
getDisplayedSensorNames()
This property contains names of sensors to be displayed on the UI.
|
atg.service.fluoroscope.SensorManagerService |
getSensorManager()
This property contains a reference to a
SensorManager Nucleus component. |
java.lang.String[] |
getSensors()
This is an input property for the update process.
|
java.lang.String |
getUpdateErrorURL()
The user will be redirected to this URL when update process failed.
|
java.lang.String |
getUpdateSuccessURL()
The user will be redirected to this URL when update process successfully finished.
|
boolean |
handleUpdate(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Implementation of the update process.
|
void |
setDisplayedSensorNames(java.lang.String[] pSensorNames) |
void |
setSensorManager(atg.service.fluoroscope.SensorManagerService pSensorManager) |
void |
setSensors(java.lang.String[] pSensors) |
void |
setUpdateErrorURL(java.lang.String pUpdateErrorURL) |
void |
setUpdateSuccessURL(java.lang.String pUpdateSuccessURL) |
addFormException, addUncheckedFormException, afterSet, beforeSet, checkFormRedirect, createFormSubmissionMessage, getCancelURL, getCheckForValidSession, getFormError, getFormExceptions, getFormName, getMessagePort, getMessageSource, getMessageType, getPropertyExceptions, getSendMessages, getUncheckedFormExceptions, handleCancel, handleFormException, handleUncheckedFormException, hasUncheckedFormExceptions, isDeferForwardsAndRedirects, isRestorableForm, isUseForwards, isValidSession, redirectOrForward, resetFormExceptions, setCancelURL, setCheckForValidSession, setDeferForwardsAndRedirects, setFormName, setMessagePort, setMessageSource, setMessageType, setRestorableForm, setSendMessages, setUseForwards
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toString
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public atg.service.fluoroscope.SensorManagerService getSensorManager()
SensorManager
Nucleus component.
It's a central component for all Fluoroscope functionality.SensorManager
instance.public void setSensorManager(atg.service.fluoroscope.SensorManagerService pSensorManager)
public java.lang.String[] getDisplayedSensorNames()
public void setDisplayedSensorNames(java.lang.String[] pSensorNames)
public java.lang.String getUpdateSuccessURL()
public void setUpdateSuccessURL(java.lang.String pUpdateSuccessURL)
public java.lang.String getUpdateErrorURL()
public void setUpdateErrorURL(java.lang.String pUpdateErrorURL)
public java.lang.String[] getSensors()
public void setSensors(java.lang.String[] pSensors)
public java.util.Collection<atg.service.fluoroscope.Sensor> getAvailableSensors()
Collection
of sensors to be displayed on the UI.public boolean handleUpdate(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
SensorManager
sensors
and enables only sensors enlisted within the sensors
property. Other sensors will be disabled.
pRequest
- current HTTP request.pResponse
- current HTTP response.false
if redirect occurred, true
otherwise.javax.servlet.ServletException
- if something goes wrong.java.io.IOException
- if something goes wrong.