com.ibm.tivoli.maximo.amcrew.app

Class AMCrewLabPos

  • java.lang.Object
    • psdi.mbo.Mbo
      • com.ibm.tivoli.maximo.amcrew.app.AMCrewLabPos
    • Field Detail

      • initrequirementstatus

        protected boolean initrequirementstatus
    • Constructor Detail

      • AMCrewLabPos

        public AMCrewLabPos(MboSet ms)
                     throws java.rmi.RemoteException
        Parameters:
        ms -
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Description copied from class: Mbo
        Called by the framework when the Mbo has been constructed and the MboValues have been initialized. This can be overridden by the programmer to provide any custom initialization they would like to do.
        Overrides:
        init in class Mbo
        Throws:
        MXException
        See Also:
        Mbo.init()
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Description copied from class: Mbo
        This is called when a new Mbo is added to the Mboset collection. It is called AFTER user defaults have been set from the data dictionary. Programmer should usually override this to set some defaults. Default behavior is to do nothing.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboRemote.add()
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Check if this AMCrew Labor Position can be deleted using the 'Required Craft' table window Business Rules : 1. To delete a Labor Position, there must not be any labor assigned to the Craft for the Position. ( stored in the AMCREWLABOR table). 2. No Workorder Task should exists for this Crewid and Position in LABTRANS table.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.canDelete()
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Business Rules : 1. Delete associated qualifications, and adjust quantities where applicable
        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
        Description copied from class: Mbo
        Unmark the Mbo for deletion. Can only be called after a delete() and before the save() has been performed. This method will also unmark associated Long Description and Translation Mbos.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • deleteAssociatedQuals

        public void deleteAssociatedQuals(java.lang.String position)
                                   throws java.rmi.RemoteException,
                                          MXException
        Delete the qualifications that are referenced by this craft position
        Specified by:
        deleteAssociatedQuals in interface AMCrewLabPosRemote
        Throws:
        java.rmi.RemoteException
        MXException
      • undeleteAssociatedQuals

        protected void undeleteAssociatedQuals()
                                        throws java.rmi.RemoteException,
                                               MXException
        Undelete the qualification referenced by this craft position that have been marked for deletion.
        Throws:
        java.rmi.RemoteException
        MXException
      • adjustQualQuantities

        protected void adjustQualQuantities()
                                     throws java.rmi.RemoteException,
                                            MXException
        Adjust the quantities of crafts for a required qualification, to match the new craft total
        Throws:
        java.rmi.RemoteException
        MXException
      • setRequirementStatus

        public void setRequirementStatus(java.lang.String amcrew,
                                         java.lang.String orgid,
                                         java.util.Date crewShiftStart,
                                         java.util.Date crewShiftEnd,
                                         java.util.Date crewDate)
                                  throws MXException,
                                         java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • setStatusFromAssignedLabor

        public void setStatusFromAssignedLabor(MboSet laborSet,
                                               java.util.Date crewShiftStart,
                                               java.util.Date crewShiftEnd,
                                               java.util.Date crewDate)
                                        throws MXException,
                                               java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • sortLaborWithModAvail

        public java.util.ArrayList sortLaborWithModAvail(MboSet laborSet,
                                                         java.util.Date crewDate)
                                                  throws java.rmi.RemoteException,
                                                         MXException
        Throws:
        java.rmi.RemoteException
        MXException