psdi.app.site

Class Address

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


    public class Address
    extends Mbo
    implements AddressRemote
    MBO to represent an Address.

    See Site Package description.

    The key attributes for this object are: OrgId and AddressCode

    The attributes in this object are as follows:

    Attribute NameDescription
    Address1First line of the address.
    Address2Second line of the address.
    Address3State or province of the address.
    Address4Zip or mail code of the address.
    Address5Country of the address.
    AddressCodeThe unique identifier for this address.
    ChangeBy, ChangeDateName of the user who last modified this object and date of last change.
    DescriptionDescription of the address. Long description is enabled.
    OrgIdThe identifier of the organization to which this address is assigned.
    • Constructor Detail

      • Address

        public Address(MboSet ms)
                throws MXException,
                       java.rmi.RemoteException
        Construct the Adress object. This method just includes a call to the super constructor.
        Parameters:
        ms -
        Throws:
        MXException
        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
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        The CHANGEDATE is a required field.
        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
        Called when a change is made to the address. When any field realated to the address is changed, changedate and changeby are updated.
        Attribute NameAttribute Value
        changebyCurrent username
        changedateCurrent date
        Overrides:
        modify in class Mbo
        Parameters:
        none -
        Throws:
        none
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        An address can be deleted only if it is not specified as a default in any of the sites. An address cannot be deleted if it is referred to in the "ShipTo" or "BillTo" column in the PR or PO tables.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXApplicationException
        MXException
        java.rmi.RemoteException