psdi.app.doclink

Class Doctypes

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


    public class Doctypes
    extends Mbo
    implements DoctypesRemote
    Mbo object to represent Doctypes.

    This mbo contains non-persistent attributes.

    See Doclink Package description.

    This is a site level object.

    The key attributes for this object are SiteID and DocType.

    The attributes in this object are as follows:

    Attribute NameDescription
    AppNon-persistent attribute for application name. If adding a doctype and the UI has provided a value for "app", then a row will also be added to the appdoctype table.
    DefaultFilePathUsed when uploading a new Docinfo.
    DescriptionFreeform description.
    DoctypeUnique identifier for this object, within site.
    OrgIDThe organization for this site, stored on this table for ease of access. This equals the value for OrgID specified on the Site table.
    SiteIDThe site to which this record pertains. Foreign key to Site.
    See Also:
    Docinfo, Doclinks
    • 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
        Add a mbo, defaulting the attributes shown below.
        Attribute NameAttribute Value
        Appvalue of MboSet getApp
        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
        Can delete if no Docinfo, Doclinks, or AppDoctype.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException