psdi.app.dpldasset

Class FldPromoteDefaultClassstructureID

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldPromoteDefaultClassstructureID
    extends FldClassStructureId
    Allow selection of classifications associated with the current site/org only, and CLASSUSEWITH=ASSETS.
    Since:
    7.2
    • Constructor Detail

      • FldPromoteDefaultClassstructureID

        public FldPromoteDefaultClassstructureID(MboValue mbv)
                                          throws MXException,
                                                 java.rmi.RemoteException
        Constructor
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getObjectName

        public java.lang.String getObjectName()
                                       throws MXException,
                                              java.rmi.RemoteException
        Description copied from class: FldClassStructureId
        This method can be overrided when the classstructureid beed be validated against the objectname other than the mbo's objectname, for example, in SLA, it should validate against the apply to objectname.
        Overrides:
        getObjectName in class FldClassStructureId
        Returns:
        String ASSET
        Throws:
        MXException
        java.rmi.RemoteException
      • getRootClassstructureID

        protected java.lang.String getRootClassstructureID(java.lang.String maxvar)
                                                    throws java.rmi.RemoteException,
                                                           MXException
        Get the value of classstructureid recorded in the maxvar ITASSET. The maxvar may be set in the Organizations app under 'System Settings'.
        Returns:
        classstructureid
        Throws:
        rootMaxvarMissing - if classstructureid is null or maxvar not found.
        java.rmi.RemoteException
        MXException
        See Also:
        CommonDataSet.readMaxVar(java.lang.String, boolean)
      • isITClassstructureid

        protected boolean isITClassstructureid(java.lang.String classstructureid)
                                        throws java.rmi.RemoteException,
                                               MXException
        Returns true if classstructureid falls under root IT asset classification. Root IT asset classification is system-wide, so this method does not consider orgid and siteid for classification.
        Throws:
        java.rmi.RemoteException
        MXException
      • getITRootHierarchyPath

        protected java.lang.String getITRootHierarchyPath()
                                                   throws java.rmi.RemoteException,
                                                          MXException
        Returns the value for ITASSET maxvar and validates that it still exists in the classification structure.
        Throws:
        rootClassNotFound - if the maxvar is missing or the classification is not found.
        java.rmi.RemoteException
        MXException