psdi.app.signature

Class GroupUser

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


    public class GroupUser
    extends Mbo
    implements MboRemote
    Mbo object to represent GroupUser, which defines which security groups each user has access to. Each user will have one or more rows in GroupUser.

    See Signature Package description.

    This is a system level object.

    The key attributes for this object are UserID and GroupName.

    The attributes in this object are as follows:

    Attribute NameDescription
    GroupNameGroup that this user has been granted. Foreign key to MaxGroup.
    UserIDThe user that has been granted the specified groups. Foreign key to MaxUser.
    See Also:
    MaxUser, MaxGroup
    • Constructor Detail

      • GroupUser

        public GroupUser(MboSet ms)
                  throws java.rmi.RemoteException
        Construct the GroupUser 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.
        UserIDIf owner is MaxUser, equals the owner's userid.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MaxUser.clearUserProfileHierarchySet()
      • 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
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Delete this mbo.
        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:
        MaxUser.clearUserProfileHierarchySet()
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Call super. Then check is user has authority from GrpReassignAuth. Then, if logon user is a site administrator (site subselect is not null), determine whether this mbo satisfies the site restriction.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MaxGroupSet.getAdminWhereSiteSubselect()
      • checkMethodAccess

        public void checkMethodAccess(java.lang.String methodName,
                                      long accessModifier)
                               throws MXException,
                                      java.rmi.RemoteException
        Description copied from class: Mbo
        Check if the method name is available. Will throw an MXAccessException if not available due to lack of rights, or if currently not available for this mbo. Programmers of mbos should override this method for implementation of specific secure methods. When overriding, always call the super class.
        Overrides:
        checkMethodAccess in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Profile.getUserStatus(), Mbo.sigopGranted(String)