Class 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 Detail

      • ResultSetStatusTransform

        public ResultSetStatusTransform()
    • Method Detail

      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: Transform
        Returns a textual description of the transform.
        Specified by:
        getDescription in interface Transform
        Returns:
        The textual description of the transform.
      • transform

        public void transform​(Transformable bean,
                              MarkupOutput out)
                       throws java.lang.ClassCastException
        Description copied from interface: Transform
        Transforms the data object and appends result to the transOut.
        Specified by:
        transform in interface Transform
        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 thrown
        out - 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
      • getSupportedBeanType

        public java.lang.Class getSupportedBeanType()
        Description copied from interface: Transform
        Returns a root class/interface supported by this transform. We assume here that each transform supports only beans belonging to one class hierarchy.
        Specified by:
        getSupportedBeanType in interface Transform
        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