psdi.app.assetcatalog

Class ClassStructureSet

    • Field Detail

      • isDrillDown

        protected boolean isDrillDown
        Flag to indicate if this hierarchy mbo set is used by a drill down type of lookup UI.
      • originatingOrgId

        protected java.lang.String originatingOrgId
        the orgid of the object from which the classstructure tree control is launched
      • originatingSiteId

        protected java.lang.String originatingSiteId
        the siteid of the object from which the classstructure tree control is launched
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Generates a new ClassStructure object.

        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - The MboSet the new Mbo will belong to
        Returns:
        Mbo - The new ClassStructureSet Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • concatAll

        public java.lang.String concatAll(java.lang.String[] sa)
        Returns a string of concatinated strings.

        Parameters:
        concatAll - array of strings to concatinate
        Returns:
        String - the concatinated string
      • getChildren

        public MboValueData[][] getChildren(java.lang.String object,
                                            java.lang.String key,
                                            java.lang.String[] attrs,
                                            int maxRows)
                                     throws MXException,
                                            java.rmi.RemoteException
        Returns zero or more children objects in the hierarchy.
        Specified by:
        getChildren in interface HierarchicalMboSetRemote
        Parameters:
        object - - name of the object whose children are being requested.
        key - - unique id of the object whose children are being fetched.
        attrs - - list of attributes whose values are requested, the attribute data returned in the attribute list correspond to this list.
        maxRows - - maximum number of rows to return.
        Returns:
        MboValueData[][] - contains an array of Object name, Object key, hasChildren flag, hasParents flag, list of attributes data from the passed attributes list.
        Throws:
        MXException
        java.rmi.RemoteException
      • getParent

        public MboValueData[] getParent(java.lang.String object,
                                        java.lang.String key,
                                        java.lang.String[] attrs)
                                 throws MXException,
                                        java.rmi.RemoteException
        Returns zero or one parent object for the given object in the hierarchy. This method returns the immediate parent object of the given object.
        Specified by:
        getParent in interface HierarchicalMboSetRemote
        Parameters:
        object - - name of the object whose children are being requested.
        key - - unique id of the object whose children are being fetched.
        attrs - - list of attributes whose values are requested, the attribute data returned in the attribute list correspond to this list.
        Returns:
        MboValueData[] - contains Object name, Object key, hasChildren flag, hasParents flag, list of attributes data from the passed attributes list.
        Throws:
        MXException
        java.rmi.RemoteException
      • getSiblings

        public MboValueData[][] getSiblings(java.lang.String object,
                                            java.lang.String key,
                                            java.lang.String[] attrs,
                                            int maxRows)
                                     throws MXException,
                                            java.rmi.RemoteException
        Returns zero or more siblings of the given object in the hierarchy.
        Specified by:
        getSiblings in interface HierarchicalMboSetRemote
        Parameters:
        object - - name of the object whose children are being requested.
        key - - unique id of the object whose children are being fetched.
        attrs - - list of attributes whose values are requested, the attribute data returned in the attribute list correspond to this list.
        maxRows - - maximum number of rows to return.
        Returns:
        MboValueData[][] - contains an array of Object name, Object key, hasChildren flag, hasParents flag, list of attributes data from the passed attributes list.
        Throws:
        MXException
        java.rmi.RemoteException
      • getTop

        public MboValueData[][] getTop(java.lang.String[] attrs,
                                       int maxRows)
                                throws MXException,
                                       java.rmi.RemoteException
        Returns all the top level objects in the hierarchy, i.e. objects that do not have parents.
        Specified by:
        getTop in interface HierarchicalMboSetRemote
        Parameters:
        attrs - - list of attributes whose values are requested, the attribute data returned in the attribute list correspond to this list.
        maxRows - - maximum number of rows to return.
        Returns:
        MboValueData[][] - contains an array of Object name, Object key, hasChildren flag, hasParents flag, list of attributes data from the passed attributes list.
        Throws:
        MXException
        java.rmi.RemoteException
      • getPathToTop

        public MboValueData[][] getPathToTop(java.lang.String object,
                                             java.lang.String key,
                                             java.lang.String[] attrs,
                                             int maxRows)
                                      throws MXException,
                                             java.rmi.RemoteException
        Returns all objects in the path to the top from the current object, i.e. every parent of the object in a sequence.
        Specified by:
        getPathToTop in interface HierarchicalMboSetRemote
        Parameters:
        object - - name of the object whose children are being requested.
        key - - unique id of the object whose children are being fetched.
        attrs - - list of attributes whose values are requested, the attribute data returned in the attribute list correspond to this list.
        maxRows - - maximum number of rows to return.
        Returns:
        MboValueData[][] - contains an array of Object name, Object key, hasChildren flag, hasParents flag, list of attributes data from the passed attributes list.
        Throws:
        MXException
        java.rmi.RemoteException
      • reSetForNewUniqueId

        public void reSetForNewUniqueId(java.lang.String key)
                                 throws MXException,
                                        java.rmi.RemoteException
        reset the set if key classstructureuid is changed from the tree
        Specified by:
        reSetForNewUniqueId in interface ClassStructureSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.assetcatalog.ClassStructureSet#reSetForNewUniqueId()
      • setOriginatingObjectAndAttribute

        public void setOriginatingObjectAndAttribute(java.lang.String origObjectName,
                                                     java.lang.String origAttribute,
                                                     MboRemote origMbo)
                                              throws MXException,
                                                     java.rmi.RemoteException
        sets objectNameForUseWith by getting the sameasobject from maxattribute after querying the objectname and attributename passed
        Specified by:
        setOriginatingObjectAndAttribute in interface ClassStructureSetRemote
        Parameters:
        origObjectName - name of the originating object where classification search is launched
        origAttribute - name of the attribute where classification search is launched.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.assetcatalog.ClassStructureSet#setOriginatingObjectAndAttribute()
      • setOriginatingObject

        public void setOriginatingObject(MboRemote origObject,
                                         boolean inClassify)
                                  throws MXException,
                                         java.rmi.RemoteException
        This ClassStructureSet is instantiated from an object, used in the hierarchy
        Parameters:
        origObject - the object where the tree is launched
        Throws:
        MXException
        java.rmi.RemoteException
      • setOriginatingObject

        public void setOriginatingObject(java.lang.String actualObjectForUseWith)
                                  throws MXException,
                                         java.rmi.RemoteException
        set objectNameForUseWith to be the value passed
        Specified by:
        setOriginatingObject in interface ClassStructureSetRemote
        Parameters:
        actualObjectForUseWith - - the object to use for getTop to display correct information mostly for CI project
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.assetcatalog.ClassStructureSet#setOriginatingObject()
      • getMboValueDataForNoTreeNodes

        public MboValueData[][] getMboValueDataForNoTreeNodes(java.lang.String[] attribute,
                                                              java.lang.String reason)
                                                       throws MXException,
                                                              java.rmi.RemoteException
        Try to find a classstructure mbo from a different set as this set is empty. Set desired information to display in the tree. This method is used in tree control only.
        Specified by:
        getMboValueDataForNoTreeNodes in interface ClassStructureSetRemote
        Parameters:
        attribute -
        reason -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • setIsLookup

        public void setIsLookup(boolean is)
                         throws java.rmi.RemoteException
        This method is used to inform the MBO set that the objects are used in a classification drill down UI. This method should be called in the bean.
        Specified by:
        setIsLookup in interface ClassStructureSetRemote
        Throws:
        java.rmi.RemoteException
      • getbjectNameForUseWith

        public java.lang.String getbjectNameForUseWith()
                                                throws MXException,
                                                       java.rmi.RemoteException
        06-15448: returns objectNameForUseWith
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getoriginatingOrgId

        public java.lang.String getoriginatingOrgId()
                                             throws MXException,
                                                    java.rmi.RemoteException
        08-11691: return the originatingOrgId
        Throws:
        MXException
        java.rmi.RemoteException
      • originatingSiteId

        public java.lang.String originatingSiteId()
                                           throws MXException,
                                                  java.rmi.RemoteException
        08-11691: return the originatingSiteId
        Throws:
        MXException
        java.rmi.RemoteException
      • setCheckIfClassUsedByObject

        public void setCheckIfClassUsedByObject(boolean toSet)
                                         throws MXException,
                                                java.rmi.RemoteException
        08-22804: Search Classification: some objects may want to display the classifications which are defined as used with object but also have been used by the objects
        Specified by:
        setCheckIfClassUsedByObject in interface ClassStructureSetRemote
        Parameters:
        toSet -
        Throws:
        MXException
        java.rmi.RemoteException
      • getMaxAppsWhere

        public java.lang.String getMaxAppsWhere()
                                         throws MXException,
                                                java.rmi.RemoteException
        Override getMaxAppsWhere - the ClassStructureSet should not have appName associated with it if it is not in Classifications app. In AssociateSpecBean, it setApp to the orinating bean - so data restrictions will work.
        Overrides:
        getMaxAppsWhere in class MboSet
        Returns:
        The app restriction where clause
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Calls this method.
      • setOriginatingObject

        public void setOriginatingObject(MboRemote origObject)
                                  throws MXException,
                                         java.rmi.RemoteException
        IV47870: I overloaded this method - this is called by several bean classes in the initialize method. but the initialize() was not completely executed yet.
        Specified by:
        setOriginatingObject in interface ClassStructureSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.assetcatalog.ClassStructureSet#setOriginatingObject()
      • qbeStartRemoved

        public java.lang.String qbeStartRemoved(java.lang.String qbeStr)
                                         throws MXException,
                                                java.rmi.RemoteException
        IV90773: if org or site has starting =, skip it. For example, passed string is =BEDFORD, the returned string is BEDFORD
        Parameters:
        qbeStr -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException