planetj.chart
Class ChartRequest
java.lang.Object
planetj.magic.AbstractMagicRequest
planetj.magic.MagicRequest
planetj.magic.RowCollectionRequest
planetj.chart.ChartRequest
- All Implemented Interfaces:
- java.lang.Cloneable, IFeature, IMagicRequest, java.io.Serializable
- public class ChartRequest
- extends RowCollectionRequest
Request a chart to be created and written to the output stream.
- See Also:
- Serialized Form
Fields inherited from interface planetj.magic.IMagicRequest |
IS_COMPLETE, MAGIC_REQUEST, MAGIC_REQUEST_CLASS, MAGIC_REQUEST_PARAM1, MAGIC_REQUEST_RC, SAME_URI, TYPE, TYPE_PAGE, TYPE_SESSION, TYPE_STATIC, USER_REQUEST_ATTRIBUTES_STORED |
Constructor Summary |
ChartRequest(java.lang.String id,
HttpServletRequest request,
HttpServletResponse response,
java.lang.String rcId,
java.lang.String chartId)
Deprecated. Pass in the RC itself, not its navigation id |
Method Summary |
IMagicRequest |
execute(HttpServletRequest request,
HttpServletResponse response,
DataEngineServlet servlet)
Creates a chart for the RowCollection pertaining to the RowCollection's
session id set in the constructor. |
java.lang.String |
getChartId(HttpServletRequest request)
Gets the chart id set for the chart this ChartRequest is
to generate. |
ChartSpecificationPG |
getChartSpecifications(java.lang.String chartId,
HttpServletRequest request)
Gets the RowCollection's chart specifications for the given chart id. |
int |
getFeatureLevel()
Gets the minimum feature level requried to execute this operation |
boolean |
isReturnToRequester()
ChartRequest only writes a chart to the output stream and
does not need to call any other page. |
Methods inherited from class planetj.magic.AbstractMagicRequest |
addLinkedRequestAfter, addLinkedRequestBefore, appendUnsupportedHTMLMessage, changeMode, clone, clone, convertId, equals, executeAll, getAnchorName, getBaseField, getBaseRow, getBaseRowCollection, getCurrentURI, getDefaultEndNavigationGroup, getDefaultPageType, getFailMessage, getFeature, getFirstRequest, getId, getKey, getLastRequest, getMagicRequestParameter, getMagicServletURI, getMagicURI, getNextURI, getNextURI, getPleaseWaitJSP, getPleaseWaitOperation, getRequestAttribute, getRequestParameter, getRequestParameterValues, getRowEventListener, getSessionAttribute, getSharedSessionAttribute, getSuccessMessage, getTemplateURI, getWaitingServlet, handlePleaseWait, hasLinkedRequestsAfter, hasLinkedRequestsBefore, isApplicable, isCompleted, isEndNavigationGroup, isLoadParameterValuesFromRequest, isOverridePrimaryNavigation, isPleaseWait, isPopup, isRepeatable, isSaveResults, isStartNewNavigationGroup, postexecute, postExecute, preexecute, preExecute, processPleaseWait, removeRequestAttribute, removeSessionAttribute, removeSharedSessionAttribute, setAnchorName, setBaseField, setBaseRow, setBaseRowCollection, setCompleted, setEndNavigationGroup, setFailMessage, setId, setIdInternal, setLoadParameterValuesFromRequest, setNextURI, setNextURI, setNextURI, setNextURIs, setOverridePrimaryNavigation, setPopup, setRepeatable, setRequestGroupAttribute, setRequestPageAttribute, setRequestPersistentAttribute, setRequestTransientAttribute, setReturnToRequester, setRowEventListener, setSessionAttribute, setSessionSharedAttribute, setStartNewNavigationGroup, setSuccessMessage |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface planetj.magic.IMagicRequest |
addLinkedRequestAfter, addLinkedRequestBefore, executeAll, getBaseField, getBaseRow, getCurrentURI, getFirstRequest, getId, getKey, getLastRequest, getMagicRequestParameter, getMagicURI, getNextURI, isCompleted, isEndNavigationGroup, isOverridePrimaryNavigation, isRepeatable, isSaveResults, isStartNewNavigationGroup, postExecute, preExecute, setBaseField, setBaseRow, setBaseRowCollection, setEndNavigationGroup, setNextURI, setOverridePrimaryNavigation, setRepeatable, setRowEventListener, setStartNewNavigationGroup |
className
public final java.lang.String className
ChartRequest
public ChartRequest(java.lang.String id,
HttpServletRequest request,
HttpServletResponse response,
java.lang.String rcId,
java.lang.String chartId)
- Deprecated. Pass in the RC itself, not its navigation id
- ChartRequest constructor.
execute
public IMagicRequest execute(HttpServletRequest request,
HttpServletResponse response,
DataEngineServlet servlet)
throws CMException
- Creates a chart for the RowCollection pertaining to the RowCollection's
session id set in the constructor. The chart is created with the RowCollection's
ChartSpecifications.
- Specified by:
execute
in interface IMagicRequest
- Specified by:
execute
in class AbstractMagicRequest
- Throws:
CMException
getChartId
public java.lang.String getChartId(HttpServletRequest request)
- Gets the chart id set for the chart this ChartRequest is
to generate.
getChartSpecifications
public ChartSpecificationPG getChartSpecifications(java.lang.String chartId,
HttpServletRequest request)
throws CMException
- Gets the RowCollection's chart specifications for the given chart id. If no chart id
is specified, then the first chart specification is returned.
- Parameters:
chartId
- Id of the chart to retrieve chart specs
- Throws:
CMException
getFeatureLevel
public int getFeatureLevel()
- Gets the minimum feature level requried to execute this operation
- Specified by:
getFeatureLevel
in interface IFeature
- Overrides:
getFeatureLevel
in class AbstractMagicRequest
isReturnToRequester
public boolean isReturnToRequester()
- ChartRequest only writes a chart to the output stream and
does not need to call any other page.
- Specified by:
isReturnToRequester
in interface IMagicRequest
- Overrides:
isReturnToRequester
in class AbstractMagicRequest