Class ResultSetStatusTransform
- java.lang.Object
-
- com.microstrategy.web.transform.AbstractTransform
-
- com.microstrategy.web.transform.AbstractLayoutTransform
-
- com.microstrategy.web.app.transforms.ResultSetStatusTransform
-
- All Implemented Interfaces:
LayoutTransform,Transform
public class ResultSetStatusTransform extends AbstractLayoutTransform implements LayoutTransform
This transform generates an XML that contains status information of the report such as message ID, report ID and whether is prompted or not.
The format of the output is as follows:
<object-info> <object-id>46FA3908484146A2E7ECE08DE302D63C</object-id> <msg-id>8EA08C3446D6BE15910EA1B8A2126A0E</msg-id> <is-prompted>false</is-prompted> <prompt-url>http://...</prompt-url> <-- optional if object is prompted <error>some error</error> <-- optional <last-update-time/> <-- reports only <total-rows/> <-- reports only <total-columns/> <-- reports only <bean-state/> </object-info>
- Since:
- MicroStrategy Web 8.1.0
-
-
Constructor Summary
Constructors Constructor Description ResultSetStatusTransform()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longconvertToMillis(WebIServerSession iss, java.lang.String time1)java.lang.StringgetDescription()Returns a textual description of the transform.java.lang.ClassgetSupportedBeanType()Returns a root class/interface supported by this transform.booleanisError()booleanisPrompted()booleanisReport()voidrenderBeanState(MarkupOutput out)voidrenderErrorMessage(MarkupOutput out)voidrenderGridTotalColumns(MarkupOutput out)voidrenderGridTotalRows(MarkupOutput out)voidrenderIsPrompted(MarkupOutput out)voidrenderLastUpdateTime(MarkupOutput out)voidrenderMessageID(MarkupOutput out)voidrenderObjectID(MarkupOutput out)voidrenderPromptURL(MarkupOutput out)voidrenderStateID(MarkupOutput out)voidrenderStatus(MarkupOutput out)booleansupports(Transformable data)Returns true if the transform supports the specified data object.voidtransform(Transformable bean, MarkupOutput out)Transforms the data object and appends result to the transOut.-
Methods inherited from class com.microstrategy.web.transform.AbstractLayoutTransform
getLayoutContext, getLayoutDefinition, setLayoutDefinition, transformUsingLayout
-
Methods inherited from class com.microstrategy.web.transform.AbstractTransform
addFormalParam, canTransform, getEvents, getFormalParams, getID, getPreview, isPreviewAvailable, isResolved, removeFormalParam, setAnnotation, setDeprecated, supports
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.transform.LayoutTransform
getLayoutDefinition, setLayoutDefinition
-
Methods inherited from interface com.microstrategy.web.transform.Transform
canTransform, getFormalParams, getID, getPreview, isPreviewAvailable, isResolved, supports
-
-
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Description copied from interface:TransformReturns a textual description of the transform.- Specified by:
getDescriptionin interfaceTransform- Returns:
- The textual description of the transform.
-
transform
public void transform(Transformable bean, MarkupOutput out) throws java.lang.ClassCastException
Description copied from interface:TransformTransforms the data object and appends result to the transOut.- Specified by:
transformin interfaceTransform- Parameters:
bean- an object to transform. It must be of proper type supported by the concrete transform this method called on, or ClassCastExcetption will be thrownout- the MarkupOutput object where the transform result will be added.- Throws:
java.lang.ClassCastException- if data is of the wrong type.
-
renderErrorMessage
public void renderErrorMessage(MarkupOutput out)
- Since:
- MicroStrategy Web 9.0.0
-
isError
public boolean isError()
- Since:
- MicroStrategy Web 9.0.0
-
isReport
public boolean isReport()
- Since:
- MicroStrategy Web 9.0.0
-
isPrompted
public boolean isPrompted()
- Since:
- MicroStrategy Web 9.0.0
-
renderBeanState
public void renderBeanState(MarkupOutput out)
- Since:
- MicroStrategy Web 9.0.0
-
renderGridTotalColumns
public void renderGridTotalColumns(MarkupOutput out)
- Since:
- MicroStrategy Web 9.0.0
-
renderGridTotalRows
public void renderGridTotalRows(MarkupOutput out)
- Since:
- MicroStrategy Web 9.0.0
-
renderLastUpdateTime
public void renderLastUpdateTime(MarkupOutput out)
- Since:
- MicroStrategy Web 9.0.0
-
renderIsPrompted
public void renderIsPrompted(MarkupOutput out)
- Since:
- MicroStrategy Web 9.0.0
-
renderObjectID
public void renderObjectID(MarkupOutput out)
- Since:
- MicroStrategy Web 9.0.0
-
renderMessageID
public void renderMessageID(MarkupOutput out)
- Since:
- MicroStrategy Web 9.0.0
-
renderStatus
public void renderStatus(MarkupOutput out)
-
renderStateID
public void renderStateID(MarkupOutput out)
-
renderPromptURL
public void renderPromptURL(MarkupOutput out)
- Since:
- MicroStrategy Web 9.0.0
-
supports
public boolean supports(Transformable data)
Description copied from interface:TransformReturns true if the transform supports the specified data object. The check is performed only on the object's type, no object state is taken into account.- Specified by:
supportsin interfaceTransform- Overrides:
supportsin classAbstractTransform- Parameters:
data- a transformable object- Returns:
- true if the transform supports the data object, false otherwise.
- See Also:
Transform.canTransform(com.microstrategy.web.beans.Transformable)
-
getSupportedBeanType
public java.lang.Class getSupportedBeanType()
Description copied from interface:TransformReturns a root class/interface supported by this transform. We assume here that each transform supports only beans belonging to one class hierarchy.- Specified by:
getSupportedBeanTypein interfaceTransform- Returns:
- a root class/interface supported by this transform.
-
convertToMillis
protected long convertToMillis(WebIServerSession iss, java.lang.String time1)
- Since:
- MicroStrategy Web 9.0.0
-
-