psdi.app.company

Class CompContact

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


    public class CompContact
    extends Mbo
    implements CompContactRemote
    Mbo object to represent company contacts. The CompContact object maintains information about contacts within a company. There is no limit on the number of contacts that may be associate with a company. The contact's company and contact name are required attributes; the contact's title, phone number, home phone number, e-mail address, pager number, and fax number may also be entered. Attributes are provided to enter a buyer's procurement credit card number and expiration date.

    See Company Package description.

    The key attributes for this object are Company and Contact.

    The attributes in this object are as follows:

    Attribute NameAttribute Description
    CompanyIdentifier for the company.
    ContactName of the person to contact at the company.
    EMailE-mail address of the contact.
    FaxPhoneFax number of the contact.
    HomePhoneHome telephone number of the contact.
    MNetUserIdMNet assigned user identifier.
    OrgIdOrganization Identifier.
    PagerPhonePager number of the contact.
    PositionPosition or title of the contact.
    ProcCardExpireDateProcurement credit card number's expiration date.
    ProcurementCardNumProcurement credit card number of the company's contact.
    VoicePhoneBusiness telephone number of the contact.
    • Constructor Detail

      • CompContact

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Default value for some of the fields of the new company contact. The table below shows the default values for each of the attributes listed.
        Attribute NameAttribute Value
        companyOwner company
        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
        The Delete Contact method deletes the contact record from the company specified. When a Contact is deleted, a check is made to see if the Contact is referenced by the company. If it is, the contact information has to be deleted from the company also.
        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)
      • modify

        public void modify()
                    throws MXException,
                           java.rmi.RemoteException
        Overwritten to trigger a change in owning Company.
        Overrides:
        modify in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws MXException,
                                        java.rmi.RemoteException
        Overrides the skipCopyField() in the Mbo. If this field does not need to be copied return true. The following are the CompContact fields will be skipped without being copied to the newly duplicated CompContact:
        1. company
        2. orgid
        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
        See Also:
        Company.duplicate(), Company.loadSkipFieldCopyHashSet()