psdi.app.signature

Class GroupRestriction

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


    public class GroupRestriction
    extends Mbo
    implements GroupRestrictionRemote
    Mbo object to represent GroupRestriction, which specifies any data access restrictions for a group on particular tables and views.

    See Signature Package description.

    This is a system level object.

    The key attributes for this object are GroupName and EntityName.

    The attributes in this object are as follows:

    Attribute NameDescription
    ConditionNon-persistent attribute; same as Restrictions. Needed for Sql Expression Builder. This is the attribute that should be displayed / modified on the UI.
    EntityNameTable or View that is restricted. Foreign key to MaxObject.
    ExpObjectNon-persistent attribute. Needed for Sql Expression Builder.
    GroupNameGroup that is restricted for this entity. Foreign key to MaxGroup.
    RestrictionsSql describing the data access restrictions. This should NOT be displayed or modified in the UI; the Condition attribute should be used instead.
    See Also:
    MaxGroup, MaxObject
    • Constructor Detail

      • GroupRestriction

        public GroupRestriction(MboSet ms)
                         throws java.rmi.RemoteException
        Construct the GroupRestriction 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
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Set Restrictions = Condition.
        Overrides:
        appValidate 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 "condition" non-persistent attribute.
        Specified by:
        toBeSaved in interface MboRemote
        Overrides:
        toBeSaved in class Mbo
        Throws:
        java.rmi.RemoteException