psdi.common.treecontrol

Class TreeNodeMap

  • java.lang.Object
    • psdi.common.treecontrol.TreeNodeMap
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected long nextSeq 
    • Constructor Summary

      Constructors 
      Constructor and Description
      TreeNodeMap() 
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      long addNew(MboRemote mbo)
      Adds a new mbo to the map
      long addNew(MboRemote mbo, java.lang.Long mboUID)
      Adds a new element for Mbo already in the Tree Node Map
      void clear()
      Clear the Tree Node Map
      boolean containsMbo(java.lang.Object mbo)
      Checks if the MBO is in the Tree Node Map or not
      long getCurrentSequence()
      Returns the current sequence
      java.lang.String getMboName(long treeId) 
      long getMboUniqueID(MboRemote mbo, long treeId)
      Returns the MBO unique id that's mapped to the passed treeID for the given MBO
      protected long getNextSequence()
      Returns a new unique sequence
      abstract long getTreeUniqueID(MboRemote mbonode)
      This method returns a unique id for the passed node (mbo) Sub Classes need to implement this abstract method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • nextSeq

        protected long nextSeq
    • Constructor Detail

      • TreeNodeMap

        public TreeNodeMap()
    • Method Detail

      • getNextSequence

        protected long getNextSequence()
        Returns a new unique sequence
        Returns:
      • getCurrentSequence

        public long getCurrentSequence()
        Returns the current sequence
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • getMboUniqueID

        public long getMboUniqueID(MboRemote mbo,
                                   long treeId)
                            throws java.rmi.RemoteException,
                                   MXException
        Returns the MBO unique id that's mapped to the passed treeID for the given MBO
        Parameters:
        mbo -
        treeId -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • getMboName

        public java.lang.String getMboName(long treeId)
                                    throws java.rmi.RemoteException,
                                           MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • addNew

        public long addNew(MboRemote mbo)
                    throws java.rmi.RemoteException,
                           MXException
        Adds a new mbo to the map
        Parameters:
        mbo -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • addNew

        public long addNew(MboRemote mbo,
                           java.lang.Long mboUID)
                    throws java.rmi.RemoteException,
                           MXException
        Adds a new element for Mbo already in the Tree Node Map
        Parameters:
        mbo -
        mboUID -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • clear

        public void clear()
        Clear the Tree Node Map
      • containsMbo

        public boolean containsMbo(java.lang.Object mbo)
        Checks if the MBO is in the Tree Node Map or not
        Parameters:
        mbo -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • getTreeUniqueID

        public abstract long getTreeUniqueID(MboRemote mbonode)
                                      throws java.rmi.RemoteException,
                                             MXException
        This method returns a unique id for the passed node (mbo) Sub Classes need to implement this abstract method.
        Parameters:
        mbo -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException