psdi.app.sets

Class Sets

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


    public class Sets
    extends Mbo
    implements SetsRemote
    MBO to represent a Set. A set must be of type ITEM or COMPANY.

    See Sets Package description.

    This is a system level object.

    The key attribute for this object is SetId.

    The attributes in this object are as follows:

    Attribute NameDescription
    AutoupdateUpdate company master? Boolean - applies to COMPANY type sets
    DescriptionDescription of this set. Long description enabled.
    EnterBy, EnterDateName of the user who created this object and date created.
    LDKeyLong Description Key. This is a link to text stored in the LongDescription table.
    SetIdUnique identifier for this set.
    SetTypeSet's type - ITEM, COMPANY or one of their synonyms
    • Constructor Detail

      • Sets

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

      • init

        public void init()
                  throws MXException
        Initialization rountine. Attributes "enterby", and "enterdatedate" are always readonly. Attributes "setid", and "settype" are readonly if Mbo is not to be added. Attribute "autoupdate" is readonly if set type is not COMPANY and Mbo is not to be added.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Adds a set record and sets its defaults. The table below shows the default values for each of the attributes listed.
        Attribute NameAttribute Value
        autoupdatefalse (made readonly if settype is "ITEM")
        enterbyCurrent username
        enterdateCurrent date
        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
        Determines if the sets object can be deleted.

        A set can only be deleted if the set does not contain any data and it is not associated with an organization.

        For all practical purposes, deletion will be used to correct a typographic error detected as a set is named.

        Overrides:
        canDelete in class Mbo
        Throws:
        MXApplicationException -
        GROUPKEYREASON
        setcannotDeleteNotEmptyif the set contains data
        setcannotDeleteAssocWithOrgIf a set is associated with an organization
        setunknownSetTypeif the set's type is unknown
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Delete related AutoKey mbos.
        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)