psdi.app.signature

Class SecurityRestrict

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


    public class SecurityRestrict
    extends Mbo
    implements MboRemote
    Mbo object to represent SecurityRestrict.

    This is a system level object.

    The key attributes for this object are ObjectName, AttributeName, Restriction, GroupName, and App.

    The attributes in this object are as follows:

    Attribute NameDescription
    AppThe application to which this restriction applies. If null, this applies to all applications. Foreign key to MaxApps.
    AttributeNameThe attribute to which this restriction applies. If this is not an attribute-level restriction, this will be null. ObjectName and AttributeName are foreign key to MaxAttribute.
    ClassNameJava class name for use when the restriction is Qualified. Can be null. If not null, this identifies a Java class that returns Sql to be applied to the Where clause for a top-level Mbo or lookup. If null, then a ConditionNum will be specified instead.
    ConditionNumIdentifies the Condition for this data restriction.. Foreign key to Condition. If conditionnum is null, then the restriction will always be applied.
    GroupNameThe security group to which this restriction applies. If null, this applies to all security groups. Foreign key to MaxGroup.
    ObjectNameThe object to which this restriction applies. Cannot be null. Foreign key to MaxObject.
    ReEvaluateIdentifies whether this condition should be reevaluated on data change. When False, the condition is evaluated only on fetch.
    RestrictionIdentifies the type of restriction. Must be valid on RESTRICTLEVEL domain. Values include HIDDEN, READONLY, REQUIRED, QUALIFIED.
    SRestrictNumUnique identifier; autokeyed by default.
    TypeIdentifies whether the restriction applies to an entire object or to an attribute. Must be valid on RESTRICTTYPE domain. Values include ROW, ATTR.
    • Constructor Detail

      • SecurityRestrict

        public SecurityRestrict(MboSet ms)
                         throws java.rmi.RemoteException
        Construct the SecurityRestrict 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
        AppIf owner is MaxApps, equals the owner's app.
        AttributeNameIf owner is MaxAttributeCfg, equals the owner's attributename.
        GroupNameIf owner is MaxGroup, equals the owner's groupname.
        ObjectNameIf owner is MaxObjectCfg or MaxAttributeCfg, equals the owner's objectname.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Description copied from class: Mbo
        Pre-save validation method. Programmer can override with specific rules.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • checkForDups

        public void checkForDups()
                          throws MXException,
                                 java.rmi.RemoteException
        Called from appValidate.
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        Fields to skip when copying mbo.
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        mvi - The MboValueInfo describing this attribute
        Returns:
        True to skip this attribute
        Throws:
        java.rmi.RemoteException
        MXException
      • 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
        checks whatever the restriction record can be deleted
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException - throws MXApplicationException
        java.rmi.RemoteException - throws RemoteException