com.ibm.tivoli.maximo.amcrew.app

Class AMCTCraft

  • java.lang.Object
    • Constructor Detail

      • AMCTCraft

        public AMCTCraft(MboSet ms)
                  throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Initialise CTCraft object. SKILLLEVEL, VENDOR and CONTRACTNUM is set to readonly. For existing records, CRAFT is set to readonly.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a new CTCraft record. Initialize all the fields that are required.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Delete the CTCraft record, and the associated required qualification records. Also adjust the qualification quantity for this craft accordingly.
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - The bitwise flag specified to determine if certain normal security checks are to be bypassed for this delete request. For example: if the accessModifer is NOACCESSCHECK, then the check for the object's NODELETE flag and the call to the object's canDelete() method will not be performed. If the accessModifer is NONE, then all the access checks are performed before this object is marked delete.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • undelete

        public void undelete()
                      throws MXException,
                             java.rmi.RemoteException
        Undelete the CTCraft record, and the associated qualifications.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • modify

        public void modify()
                    throws MXException,
                           java.rmi.RemoteException
        Description copied from class: Mbo
        This called whenever a change is made to the attributes of a MBO. The programmer should override if interested in intercepting this event. An example of the use of this is to set the changeby/changedate of a work order whenever one of the attributes is set. If an MXException is thrown from this routine, the change of value is rolled back, this provides a mechanism to abort any changes. Default behavior is to do nothing. The derived method has to call super.modify().
        Overrides:
        modify in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        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 HashTable. If this field does not need to be copied return true.
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        - - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        - True,if the field does not need to be copied. In all other cases return false.
        Throws:
        MXException
        java.rmi.RemoteException
      • adjustCraftQuantities

        protected void adjustCraftQuantities()
                                      throws java.rmi.RemoteException,
                                             MXException
        Adjust the quantity value of a required qualification, to match the new total of craft positions.
        Throws:
        MXException
        java.rmi.RemoteException
      • hasCraft

        protected boolean hasCraft()
                            throws MXException,
                                   java.rmi.RemoteException
        Verify if there is a craft set.
        Returns:
        true if it exists.
        Throws:
        MXException
        java.rmi.RemoteException