psdi.iface.mos

Class MBOStAXStructure

  • All Implemented Interfaces:
    MosConstants
    Direct Known Subclasses:
    RESTMboStAXStructure


    public class MBOStAXStructure
    extends StAXStructure
    Api for serializing Mbo/MboSet to xml. This api will only serialize the requested object and will not serialize the related Mbo/MboSet children.
    • Field Detail

      • cols

        protected java.util.Set cols
      • exclude

        protected boolean exclude
      • considerNpCols

        protected boolean considerNpCols
      • rsStart

        protected int rsStart
      • rsCount

        protected int rsCount
      • rsTotal

        protected int rsTotal
      • objectOnly

        protected boolean objectOnly
    • Constructor Detail

      • MBOStAXStructure

        public MBOStAXStructure()
      • MBOStAXStructure

        public MBOStAXStructure(boolean dropNullCols)
        Parameters:
        dropNullCols -
      • MBOStAXStructure

        public MBOStAXStructure(boolean dropNullCols,
                                boolean retainMbos)
        Parameters:
        dropNullCols -
      • MBOStAXStructure

        public MBOStAXStructure(boolean dropNullCols,
                                boolean retainMbos,
                                boolean objectOnly,
                                boolean exclude,
                                java.util.Set cols,
                                boolean considerNpCols)
    • Method Detail

      • serializeMboAsKeySet

        public void serializeMboAsKeySet(javax.xml.stream.XMLStreamWriter writer,
                                         MboRemote mbo,
                                         int incrInd,
                                         java.lang.String[] keys)
                                  throws MXException,
                                         java.rmi.RemoteException
        Parameters:
        writer -
        mbo -
        incrInd -
        keys -
        Throws:
        MXException
        java.rmi.RemoteException
      • serializeMboAsKeySet

        public void serializeMboAsKeySet(javax.xml.stream.XMLStreamWriter writer,
                                         MboRemote mbo,
                                         int incrInd,
                                         java.lang.String[] keys,
                                         java.lang.String mosName)
                                  throws MXException,
                                         java.rmi.RemoteException
        Parameters:
        writer -
        mbo -
        incrInd -
        keys -
        Throws:
        MXException
        java.rmi.RemoteException
      • createXML

        protected byte[] createXML(MboRemote mbo,
                                   boolean asSet)
                            throws MXException,
                                   java.rmi.RemoteException
        Specified by:
        createXML in class StAXStructure
        Parameters:
        mbo - the Mbo to serialize
        asSet - if set to true will serialize this Mbo as a MboSet with one Mbo.
        Returns:
        the resultant XML document as bytes
        Throws:
        MXException
        java.rmi.RemoteException
      • createXML

        protected byte[] createXML(MboIterator mboSet,
                                   int startIndex,
                                   int maxCount)
                            throws MXException,
                                   java.rmi.RemoteException
        Create the outbound XML. This method should be used by Data Export / WebServices response (when there can be multiple records in outbound XML)
        Specified by:
        createXML in class StAXStructure
        Parameters:
        mboSet - mboSet
        startIndex - the start index of the mboSet
        maxCount - the maximum number of records to be sent out
        Returns:
        the resultant XML document as bytes
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • getLogger

        protected MXLogger getLogger()
      • addObjectExtensibilityAttributes

        protected void addObjectExtensibilityAttributes(MboRemote mbo)
                                                 throws java.rmi.RemoteException,
                                                        MXException,
                                                        javax.xml.stream.XMLStreamException
        Throws:
        java.rmi.RemoteException
        MXException
        javax.xml.stream.XMLStreamException
      • addRootExtensibilityAttributes

        protected void addRootExtensibilityAttributes()
                                               throws java.rmi.RemoteException,
                                                      MXException,
                                                      javax.xml.stream.XMLStreamException
        Throws:
        java.rmi.RemoteException
        MXException
        javax.xml.stream.XMLStreamException
      • setAdditionalData

        protected void setAdditionalData(MboRemote mbo)
                                  throws MXException,
                                         java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException