psdi.iface.app.intobject

Class MaxIntObjectDetail

  • java.lang.Object
  • All Implemented Interfaces:
    java.rmi.Remote, MaxIntObjectDetailRemote, HierarchicalMboRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class MaxIntObjectDetail
    extends Mbo
    implements MaxIntObjectDetailRemote, HierarchicalMboRemote
    MBO to represent MaxIntObjDetail. See the Object Structure package description for details.

    The key attributes for this object is INTOBJECTNAME and OBJECTID

    The attributes in this object are as follows:

    ChangeBy, ChangeDate The name of the person who last modified the form and the date on which the form was last modified.
    HASCHILDREN Non persistant field which is required by GUI framework for the tree structure lookup
    HASPARENT Non persistant field which is required by GUI framework for the tree structure lookup
    HIERARCHYPATHRead-only parameter that will indicate with a pseudo XPATH expression the location of the MBO in the MOS structure. For MOS elements where the 'Configurable?' flag is ENABLED, The value of this parameter will be updated according changes in the position of MBO within the MOS structure
    IFACENAME Non persistant field for MAXIFACEIN and MAXIFACEOUT MBOs.
    IFACETYPENon persistant field for MAXIFACEIN and MAXIFACEOUT MBOs.
    INTOBJECTNAME Object Structure name
    MAXINTOBJDETAILIDUnique Identifier for the MaxIntobjDetail record.
    OBJECTID Identifies the source MBO.
    OBJECTNAME Source MBO name.
    OBJECTORDER Identifies the order in which the MBOs is specified within its corresponding parent MBO. By default, the MOS Application will assign a sequential value depending on the order in which MBOs were associated to the MOS and their location in the MOS structure; users should be allowed to change the default value with one of their choice.
    PARENTOBJID Identifies the parent MBO.
    PARENTOBJNAMENon persistant field that represents the parent MBO Name. Maximo's Tree Control will be implemented to display a hierarchical representation of the MOS so that users can associate a 'child' MBO to a specific 'parent' MBO. When there is only one MBO specified for the MOS, the Tree Control should be disabled.
    PROCESSORDER Identifies the Processing Order.
    RELATION Represents a list of the available relationships between PARENT-the selected MBO. For the main MBO in the Object structure, this control will be DISABLED if the 'Self Reference?' flag is DISABLED
    TABLELEVEL Non persistant field
    USERDEFINEDrepresents that this object structure is a user defined OS.

    • Constructor Detail

      • MaxIntObjectDetail

        public MaxIntObjectDetail(MboSet ms)
                           throws java.rmi.RemoteException
        Construct the MaxIntObject object
        Parameters:
        ms - MboSet
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Initialize Object Structure Detail Mbo.
        Overrides:
        init in class Mbo
        Throws:
        MXException - throws MXException
      • handleShowRelation

        public void handleShowRelation()
                                throws MXException,
                                       java.rmi.RemoteException
        Deprecated. Get relationship name from MaxRelationShip table and set it in Object Detail Mbo.
        Specified by:
        handleShowRelation in interface MaxIntObjectDetailRemote
        Throws:
        MXException - throws MXException
        java.rmi.RemoteException - throws RemoteException
      • createNPIncludeColumns

        public void createNPIncludeColumns(java.lang.String tbname)
                                    throws MXException,
                                           java.rmi.RemoteException
        Is a method to fill Non-persistant Include - TABLECOLUMN object.
        Specified by:
        createNPIncludeColumns in interface MaxIntObjectDetailRemote
        Throws:
        MXException - throws MXException
        java.rmi.RemoteException - throws RemoteException
      • createAliasPersistentMbo

        public void createAliasPersistentMbo()
                                      throws MXException,
                                             java.rmi.RemoteException
        Is a method to fill alias records - MaxIntObjAlias object.
        Throws:
        MXException - throws MXException
        java.rmi.RemoteException - throws RemoteException
      • createNPAlias

        public void createNPAlias()
                           throws MXException,
                                  java.rmi.RemoteException
        Is a method to fill alias Non-persistant - TABLECOLUMN object.
        Specified by:
        createNPAlias in interface MaxIntObjectDetailRemote
        Throws:
        MXException - throws MXException
        java.rmi.RemoteException - throws RemoteException
      • createNPExcludeColumns

        public java.util.Map createNPExcludeColumns(java.lang.String tbname)
                                             throws MXException,
                                                    java.rmi.RemoteException
        Is a method to fill Non-persistant exclude - TABLECOLUMN object.
        Specified by:
        createNPExcludeColumns in interface MaxIntObjectDetailRemote
        Throws:
        MXException - throws MXException
        java.rmi.RemoteException - throws RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        validates the MaxIntObjDetail
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException - throws MXException
        java.rmi.RemoteException - throws RemoteException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Default value for some of the fields of the new Object Struture Detail record. The table below shows the default values for each of the attributes listed.
        userdefinedtrue
        objectid1
        changebyCurrent username
        changedateCurrent date
        intobjectnameOwner intobjename
        processorder1
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • modify

        public void modify()
                    throws MXException,
                           java.rmi.RemoteException
        This is called whenever a change is made to the attributes of MaxIntObjDetail. When any field related to MaxIntObjdetail is changed, changedate and changeby is updated.
        Overrides:
        modify in class Mbo
        Throws:
        MXException - throws MXException
        java.rmi.RemoteException - throws RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        delete object structure detail record
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - Access Modifier
        Throws:
        MXException - throws MXException
        java.rmi.RemoteException - throws RemoteException
        See Also:
        Mbo.delete(long)
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        checks whether the object structure detail record can be deleted
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException - throws MXApplicationException if the object structure was referenced in MAXIFACEIN, MAXIFACEOUT and MAXIFACEINVOKE tables/MBOs
        java.rmi.RemoteException - throws RemoteException
      • undelete

        public void undelete()
                      throws MXException,
                             java.rmi.RemoteException
        undelete all object structure cols record
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException - throws MXException
        java.rmi.RemoteException - throws RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws MXException,
                                        java.rmi.RemoteException
        Overrides the skipCopyField() in the Mbo. Since this method takes the MboValueInfo as its parameter just check to see if this field needs to be copied or skipped by using the data from the static HashSet. If this field does not need to be copied return true. The following are the maxintobjdetail fields will be skipped without being copied to the newly duplicated MaxIntObjdetail:
        1. intobjectname
        2. userdefined
        3. changeby
        4. changedate
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        mvi - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        true If the field does not need to be copied return true, in all other cases return false.
        Throws:
        MXException
        java.rmi.RemoteException
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Save time validation for ObjectStucture detail record
        Overrides:
        save in class Mbo
        Throws:
        MXException - throws MXException
        java.rmi.RemoteException - throws RemoteException
      • npTOpFillUp

        public void npTOpFillUp(java.lang.String relation)
                         throws MXException,
                                java.rmi.RemoteException
        insert records into MaxIntObjCols from Non-persistant TableColumn Objects
        Specified by:
        npTOpFillUp in interface MaxIntObjectDetailRemote
        Throws:
        MXException - throws MXException
        java.rmi.RemoteException - throws RemoteException
      • propagateKeyValue

        public void propagateKeyValue(java.lang.String keyName,
                                      java.lang.String keyValue)
                               throws MXException,
                                      java.rmi.RemoteException
        method for propagating key value
        Specified by:
        propagateKeyValue in interface MboRemote
        Overrides:
        propagateKeyValue in class Mbo
        Parameters:
        keyName - Key Name
        keyValue - Key Value
        Throws:
        MXException
        java.rmi.RemoteException
      • isTop

        public boolean isTop()
                      throws MXException,
                             java.rmi.RemoteException
        Determines if this is a top level. If this is a top level, TRUE is returned. If not, FALSE is returned.

        Specified by:
        isTop in interface HierarchicalMboRemote
        Returns:
        true - this is a top level; false - not a top level
        Throws:
        MXException
        java.rmi.RemoteException
      • hasChildren

        public boolean hasChildren()
                            throws MXException,
                                   java.rmi.RemoteException
        Determines if this level has children by looking at the children column. The 'children' column is a non-persistent YORN column. If this level does have children, TRUE is returned. If not, FALSE is returned.

        Specified by:
        hasChildren in interface HierarchicalMboRemote
        Returns:
        true - this level has children; false - no children
        Throws:
        MXException
        java.rmi.RemoteException
      • setHasChildrenOnParent

        public void setHasChildrenOnParent()
                                    throws MXException,
                                           java.rmi.RemoteException
        Determines if this level has children by looking at the children column. The 'children' column is a non-persistent YORN column. If this level does have children, TRUE is returned. If not, FALSE is returned.

        Throws:
        MXException
        java.rmi.RemoteException
      • hasParents

        public boolean hasParents()
                           throws MXException,
                                  java.rmi.RemoteException
        Determines if this is top level classification. If this is a level 1 class, TRUE is returned. If not, FALSE is returned.

        Specified by:
        hasParents in interface HierarchicalMboRemote
        Returns:
        true - this is a level one; false - not level one
        Throws:
        MXException
        java.rmi.RemoteException
      • validateSiblingChildren

        public void validateSiblingChildren()
                                     throws MXException,
                                            java.rmi.RemoteException
        Validate Children
        Throws:
        MXException - throws MXException
        java.rmi.RemoteException - throws RemoteException
      • getValidateOrder

        public java.lang.String[] getValidateOrder()
        Validation Order for maxintobjdetail attributes.
        Overrides:
        getValidateOrder in class Mbo
      • getIncludeExcludeCols

        public java.util.Map getIncludeExcludeCols()
                                            throws MXException,
                                                   java.rmi.RemoteException
        Get the Map of Object Structure column records for a given Source Mbo(MaxIntObjectDetail.
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote Exception
      • getIntObjAlias

        public java.util.Map getIntObjAlias()
                                     throws MXException,
                                            java.rmi.RemoteException
        Get the map of alias values from maxintobjalias.
        Returns:
        map of column, alias namevalue pair
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • createNPSettingRelation

        public void createNPSettingRelation(java.lang.String objName)
                                     throws MXException,
                                            java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • createSettingRestriction

        public void createSettingRestriction()
                                      throws MXException,
                                             java.rmi.RemoteException
        insert records into MaxIntObjCols from Non-persistant TableColumn Objects
        Throws:
        MXException - throws MXException
        java.rmi.RemoteException - throws RemoteException