psdi.app.signature

Class SigOption

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


    public class SigOption
    extends Mbo
    implements SigOptionRemote
    Mbo object to represent SigOption. For attributes pertaining to the option's display on a menu or toolbar, see MaxMenu.

    See Signature Package description.

    This is a system level object.

    The key attributes for this object are App and OptionName.

    The attributes in this object are as follows:

    Attribute NameDescription
    AlsoGrantsList of other sigoptions that will be automatically granted when this sigoption is selected.
    AlsoRevokesList of other sigoptions that will be automatically revoked when this sigoption is deselected
    AppThe application to which this security entity applies. Foreign key to MaxApps.
    AuthorizedNon-persistent attribute. Used in the Security Groups application to indicate whether a group has access to this sigoption.
    DescriptionFreeform description. Also accommodates a long description.
    EsigEnabledIdentifies whether this menu option participates in ESIG processing.
    GroupNameNon-persistent attribute. Used in the Security Groups application.
    OptionNameThe name of this security entity.
    PreRequisiteList of other sigoptions that must be selected before this sigoption can be selected.
    VisibleIndicates whether this sigoption is visible and can be explicitly set/cleared by the user via the Security Groups application.
    See Also:
    MaxMenu
    • Constructor Detail

      • SigOption

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

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

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a mbo, defaulting the attributes shown below.
        Attribute NameAttribute Value
        AppIf owner is MaxApps, equals the owner's app.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • toBeSaved

        public boolean toBeSaved()
                          throws java.rmi.RemoteException
        Does the object need to be saved to persistent storage ? This will also check for change of non-persistent attributes.
        Specified by:
        toBeSaved in interface MboRemote
        Overrides:
        toBeSaved in class Mbo
        Throws:
        java.rmi.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 SigOption:
        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
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Cannot delete if ApplicationAuth exists.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Description copied from class: Mbo
        Mark the object to be deleted depending on the access modifier. This will usually be overridden in the subclass of Mbo as there may be application specific rules as to if and when an object can be deleted. Object is not actually deleted in the database until save() is called. This method will also mark all associated Long Description and Translation Mbos for deletion.
        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)
      • undelete

        public void undelete()
                      throws MXException,
                             java.rmi.RemoteException
        Description copied from class: Mbo
        Unmark the Mbo for deletion. Can only be called after a delete() and before the save() has been performed. This method will also unmark associated Long Description and Translation Mbos.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • toBeValidated

        public boolean toBeValidated()
                              throws java.rmi.RemoteException
        Description copied from class: Mbo
        Does the object need validating ? This will also check linked objects.
        Specified by:
        toBeValidated in interface MboRemote
        Overrides:
        toBeValidated in class Mbo
        Throws:
        java.rmi.RemoteException