psdi.app.signature

Class SiteAuth

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


    public class SiteAuth
    extends Mbo
    implements MboRemote
    Mbo object to represent SiteAuth, which defines which sites each group has access to. If a group has AuthAllSites = True, then the group has access to all sites, and there will be no rows in SiteAuth for that group (see the AuthAllSites attribute on MaxGroup).

    See Signature Package description.

    This mbo contains non-persistent attributes.

    This is a system level object.

    The key attributes for this object are GroupName and SiteID.

    The attributes in this object are as follows:

    Attribute NameDescription
    AuthorizedNon-persistent attribute. If True, the logged-on user is allowed to delete this record.
    GroupNameThe group authorized for this site. Foreign key to MaxGroup.
    OrgIDThe organization.
    SiteIDThe site. Foreign key to Site.
    See Also:
    MaxGroup, Site
    • Constructor Detail

      • SiteAuth

        public SiteAuth(MboSet ms)
                 throws java.rmi.RemoteException
        Construct the SiteAuth object
        Throws:
        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
        Add a mbo, defaulting the attributes shown below.
        Attribute NameAttribute Value
        GroupNameIf owner is MaxGroup, equals the owner's groupname.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • propagateKeyValue

        public void propagateKeyValue(java.lang.String keyName,
                                      java.lang.String keyValue)
                               throws MXException,
                                      java.rmi.RemoteException
        Set value for groupname.
        Specified by:
        propagateKeyValue in interface MboRemote
        Overrides:
        propagateKeyValue in class Mbo
        Parameters:
        keyName - Should equal "groupname" or else nothing will be propagated.
        keyValue - The new value of groupname.
        Throws:
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Call super. Then, if logon user is a site administrator (site subselect is not null), determine whether this mbo satisfies the site restriction.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException