psdi.app.signature

Class ApplicationAuth

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


    public class ApplicationAuth
    extends Mbo
    implements MboRemote
    Mbo object to represent ApplicationAuth; presence of a row indicates that access has been granted to this group for the specified app and optionname.

    See Signature Package description.

    This is a system level object.

    The key attributes for this object are GroupName, App, and OptionName.

    The attributes in this object are as follows:

    Attribute NameDescription
    AppThe application. Foreign key to MaxApps.
    ConditionNumIdentifies the Condition for this data restriction. Foreign key to Condition. Usually this is null. When this is non-null, then the data being accessed (usually the main Mbo in the set) must satisfy the condition in order for the privilege to be granted in that situation. When ConditionNum is null, the privilege does not depend on data.
    GroupNameThe group authorized for this option. Foreign key to MaxGroup.
    OptionNameThe option name. App and OptionName compose the foreign key to SigOption.
    See Also:
    MaxGroup, SigOption
    • Constructor Detail

      • ApplicationAuth

        public ApplicationAuth(MboSet ms)
                        throws java.rmi.RemoteException
        Construct the ApplicationAuth object
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • 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
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Description copied from class: Mbo
        Save the object and other linked objects. Subclasses can code their save() logic to include any appropriate updates to other linked objects and call super.save().
        Overrides:
        save 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
      • delete

        public void delete()
                    throws MXException,
                           java.rmi.RemoteException
        delete all related authorization record
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Throws:
        MXException - throws MXException
        java.rmi.RemoteException - throws RemoteException
        See Also:
        Mbo.delete(long)
      • undelete

        public void undelete()
                      throws MXException,
                             java.rmi.RemoteException
        undelete all related authorization record
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException - throws MXException
        java.rmi.RemoteException - throws RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws MXException,
                                        java.rmi.RemoteException
        Overrides the skipCopyField() in the Mbo. The following field(s) will be skipped without being copied to the newly duplicated ApplicationAuth:
        1. app
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        mvi - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        true If the field does not need to be copied, in all other cases return false.
        Throws:
        MXException
        java.rmi.RemoteException