psdi.app.qual

Class Qual

  • All Implemented Interfaces:
    java.rmi.Remote, QualRemote, MboConstants, MboRemote, StatefulMboRemote, MaxRemoteProxy


    public class Qual
    extends StatefulMbo
    implements QualRemote
    Mbo object to represent Qualification.

    Attribute Description

    AttributeDescription
    CertificateReqDoes this qualification require a certificate number?
    DescriptionDescription of the qualification.
    DurationNumber portion of the length of time this qualification lasts for.
    DurationPeriodText portion of the length of time this qualification lasts for.
    Evaluation MethodDescribes how this qualification is evaluated.
    IssuingAuthorityDescribes who issues this qualification.
    OrgIDThe organization this qualification is in.
    QualificationIDThe id of this qual.
    QualificationUIDUnique identifier for the row.
    QualTypeType of qualification.
    RequiredUseLengthNumber portion of how often this qualification must be used.
    RequiredUsePeriodText portion of how often this qualification must be used.
    StatusActive or inactive?
    StatusDateMost recent date of status change.
    • Constructor Detail

      • Qual

        public Qual(MboSet ms)
             throws MXException,
                    java.rmi.RemoteException
        Construct the Qualification object
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        This method is called by the framework when a new Qualification record is inserted. It defaults values of the required fields.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Qualification cannot be deleted if it is on a LaborQual or ToolQual or a QualCraftSkill.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Delete associated statuses when deleting a Qualification.
        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)
      • 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. The following are Qualification fields will be skipped without being copied to the newly duplicated Labor
        1. QUALIFICATION
        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
      • getStatusHandler

        protected StatusHandler getStatusHandler()
        Return a status handler with the help of which the qual status changes can be done.
        Specified by:
        getStatusHandler in class StatefulMbo
      • changeStatus

        public void changeStatus(java.lang.String status,
                                 java.util.Date date,
                                 java.lang.String memo)
                          throws MXException,
                                 java.rmi.RemoteException
        Description copied from class: StatefulMbo
        Calls the changeStatus method with an accessModifier of NONE.
        Specified by:
        changeStatus in interface StatefulMboRemote
        Overrides:
        changeStatus in class StatefulMbo
        Parameters:
        status - The new desired status. This is the translated status (that is, the status code as it would have been entered by a user, or valuelist.value), not the internal status value (valuelist.maxvalue).
        date - The effective date of the new status (java.util.Date).
        memo - A string briefly describing the circumstances of the change. The memo can be null.
        Throws:
        MXException - Thrown if there is a problem, or the status cannot be changed, as determined by canChangeStatus(String).
        java.rmi.RemoteException
        See Also:
        StatefulMbo.changeStatus(String,java.util.Date,String,long)