psdi.app.signature

Class CollectionAuth

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


    public class CollectionAuth
    extends Mbo
    implements MboRemote
    Mbo object to represent CollectionAuth, which defines which collections each group has access to.

    See Signature Package description.

    This is a system level object.

    The key attributes for this object are GroupName and CollectionNum.

    The attributes in this object are as follows:

    Attribute NameDescription
    CollectionAuthNumUnique identifier; autokeyed by default.
    CollectionNumCollection; foreign key to Collection.
    GroupNameThe group authorized for this collection. Foreign key to MaxGroup.
    SRIDAAHideForeign key to SecurityRestrict row for hidden AutoAttrUpdate.
    SRIDAAQualForeign key to SecurityRestrict row for qualified AutoAttrUpdate.
    SRIDAssetHideForeign key to SecurityRestrict row for hidden asset.
    SRIDAssetQualForeign key to SecurityRestrict row for qualified asset.
    SRIDCIHideForeign key to SecurityRestrict row for hidden CI.
    SRIDCIQualForeign key to SecurityRestrict row for qualified CI.
    SRIDLocationHideForeign key to SecurityRestrict row for hidden location.
    SRIDLocationQualForeign key to SecurityRestrict row for qualified location.
    SRIDMAHideForeign key to SecurityRestrict row for hidden MultiAssetLocCI.
    SRIDMAQualForeign key to SecurityRestrict row for qualified MultiAssetLocCI.
    See Also:
    MaxGroup, SecurityRestrict
    • Constructor Detail

      • CollectionAuth

        public CollectionAuth(MboSet ms)
                       throws java.rmi.RemoteException
        Construct the CollectionAuth 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
        Mbo validation checks before saving. If adding new Mbo, also add rows to SecurityRestrict.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Delete securityrestrict.
        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)