psdi.app.signature.virtual

Class AddUser

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


    public class AddUser
    extends NonPersistentMbo
    implements AddUserRemote
    AddUser virtual object is used for adding a new user to the database via the User Registration Wizard (SELFREG) and the AddUser utility. It will add and save a row to MaxUser and to Labor.

    This is a system level object.

    The attributes in this object are as follows. For default values of other attributes on the base tables, see MaxUser add and Labor add.

    Attribute NameDescription
    Address1User's address line 1. See Labor.
    Address2User's address line 2. See Labor.
    Address3User's address line 3. See Labor.
    BirthDateBirth date. See Labor.
    DefaultStoreLocDefault storeroom. See Labor. With SiteID, composes the foreign key to Location.
    DropPointDelivery point. See Labor.
    NameUser's full name. Required. See Labor.
    OrgIDOrganization. Required, but defaults from the orgid of the selected site. This is not directly entered or viewed via the UI. See Labor.
    PagePinWork email address. See Labor.
    PasswordThe user's password. Required. See MaxUser.
    PasswordCheckThe user's password (entered twice for verification). Required. See MaxUser.
    PCardExpDatePCard expiration date, See Labor.
    PCardNumPCard number. See Labor.
    PCardTypePCard type. See Labor.
    PCardVerificationPCard verification code. See Labor.
    PhoneNumHome phone number. See Labor. With OrgID, composes the foreign key to Address.
    SiteIDThe primary login site for the user. Required. See MaxUser and Labor.
    SupervisorSupervisor (supervisor's labor code). See Labor.
    TransEMailElectionTransaction email notification. Required, but has a default value. See Labor and Labor add.
    UserNameThe user name for login. Required. Also, the new user's laborcode will equal this value (if laborcode is not autokeyed). See MaxUser and Labor.
    WFMailElectionWorkflow email notification. Required, but has a default value. See Labor and Labor add.
    • Method Detail

      • init

        public void init()
                  throws MXException
        Set the following attributes to readonly.
        Attribute NameReason
        ShipAddress1This value is displayed from the Address table for ShipToLocation.
        ShipAddress2Same as ShipAddress1
        ShipAddress3Same as ShipAddress1
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • setMorePersonFields

        public void setMorePersonFields(MboRemote personMbo)
                                 throws MXException,
                                        java.rmi.RemoteException
        Set more person fields. If more fields need to be added, overwrite this method and after call super(), set extra fields.
        Parameters:
        personMbo -
        Throws:
        MXException
        java.rmi.RemoteException
      • getValidateOrder

        public java.lang.String[] getValidateOrder()
        Specify the sequence in which attributes should be validated in Mbo validate.
        Overrides:
        getValidateOrder in class Mbo
      • setValue

        public void setValue(java.lang.String attributeName,
                             java.lang.String val,
                             long accessModifier)
                      throws MXException,
                             java.rmi.RemoteException
        Set value for the specified attribute.
        Specified by:
        setValue in interface MboRemote
        Overrides:
        setValue in class Mbo
        Parameters:
        attributeName - The attribute name within the current object.
        val - The string value to set to the attribute.
        accessModifier - The bitwise flags such as NOACCESSCHECK, NOVALIDATION_AND_NOACTION, and DELAYVALIDATION.
        Throws:
        MXException - "Attribute {0} does not exist" exception will be thrown if the attribute does not exist in the object. "Field is read only" exception will be thrown if the attribute is READONLY and the accessModifier does not specify NOACCESSCHECK. "Invalid Data Type" exception will be thrown for datatype mismatch. For example, setting a string value of characters to an attribute which has datatype of YORN.
        java.rmi.RemoteException
        See Also:
        Mbo.setValue(String, String, long), HiddenValueSet.setValue(java.lang.String, java.lang.String, long)