psdi.app.signature

Class MaxGroup

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


    public class MaxGroup
    extends Mbo
    implements MaxGroupRemote
    Mbo object to represent MaxGroup. A security group is the parent object for most of the security settings. A user is associated with one or more groups via the GroupUser table.

    This mbo contains non-persistent attributes (TBD).

    See Signature Package description.

    This is a system level object.

    The key attribute for this object is GroupName.

    The attributes in this object are as follows:

    Attribute NameDescription
    AuthAllGLsTrue if overrides to all GL account segments are authorized for this group. False if GL segment overrides are defined according to the GLAuth table. If this group is not Independent, this setting applies to all sites on all other combinable groups. If this is a standalone group, this setting applies only to sites on this group.
    AuthAllSitesTrue if all sites are authorized for this group. False if site authorizations are defined according to the SiteAuth table. If this group is not Independent, this setting applies to all sites on all other combinable groups. If this is a standalone group, this setting applies only to sites on this group.
    AuthAllStoreroomsTrue if all storerooms are authorized for this group. False if storeroom authorizations are defined according to the LocAuth table. If this group is not Independent, this setting applies to all sites on all other combinable groups. If this is a standalone group, this setting applies only to sites on this group.
    AuthLaborAllTrue if all labor codes are authorized for this group. False if labor code authorizations are defined according to the LaborAuth table. If this group is not Independent, this setting applies to the organizations for all sites on all other combinable groups. If this is a standalone group, this setting applies only to the organizations for sites on this group.
    AuthLaborCrewTrue if all labor codes in the user's crew are authorized for this group. False if the user's crew's labor code authorizations are defined according to the LaborAuth table. If this group is not Independent, this setting applies to the organizations for all sites on all other combinable groups. If this is a standalone group, this setting applies only to the organizations for sites on this group.
    AuthPersonGroupTrue if all labor codes in the user's person group are authorized for this group. False if the user's person group's labor code authorizations are defined according to the LaborAuth table. If this group is not Independent, this setting applies to the organizations for all sites on all other combinable groups. If this is a standalone group, this setting applies only to the organizations for sites on this group.
    AuthLaborSelfTrue if the user's labor code is authorized for this group. False if the user's labor code authorization is defined according to the LaborAuth table. If this group is not Independent, this setting applies to the organizations for all sites on all other combinable groups. If this is a standalone group, this setting applies only to the organizations for sites on this group.
    AuthLaborSuperTrue if all labor codes that the user supervises are authorized for this group. False if authorizations for the labor codes that the user supervises are defined according to the LaborAuth table. If this group is not Independent, this setting applies to the organizations for all sites on all other combinable groups. If this is a standalone group, this setting applies only to the organizations for sites on this group.
    DescriptionFreeform description. Also accommodates a long description.
    GroupNameUnique identifier for the group.
    IndependentWhen building a user's security profile, this attribute will be used to determine if the settings on this group will apply to sites on other non-independent groups, and settings on other non-independent groups will apply to the sites on this group.
    PasswordDurationThe number of days a password is valid before it has to be changed. Defaults from maxvar PASSWORDDURATION.
    PasswordWarningThe number of days prior to a password's expiration date that the user will be reminded to change it. Defaults from maxvar PASSWORDWARNING.
    SCTemplateIDThe Start Center Template ID for this security group. Foreign key to SCTemplate.
    LeftNavThe indicator that specifies whether or not to show the Left navigation panel for this security group.
    See Also:
    MaxUser, GroupUser
    • Constructor Detail

      • MaxGroup

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

        public MboRemote copy(java.lang.String newGroupName,
                              MboSetRemote mboset)
                       throws MXException,
                              java.rmi.RemoteException
        Copy this group to a new group.
        Specified by:
        copy in interface MaxGroupRemote
        Parameters:
        newGroupName - The name of the group to be added. Cannot be null unless MaxGroup supports autokeying.
        mboset - The destination MboSet to which the new MaxGroup mbo will be added. Cannot be null.
        Returns:
        The new MaxGroup mbo that is created by this method.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.isAutoKeyed(java.lang.String)
      • 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
      • canMaintainUsers

        public boolean canMaintainUsers()
                                 throws MXException,
                                        java.rmi.RemoteException
        Identifies whether GroupUser can be maintained for this group. Check GrpReassignAuth table.
        Returns:
        True if the owner of this mbo set can add and remove users from this security group; False if the owner is not allowed to do this.
        Throws:
        MXException
        java.rmi.RemoteException
      • authorizeUsers

        public void authorizeUsers(MboSetRemote userSet,
                                   java.lang.String relationship)
                            throws MXException,
                                   java.rmi.RemoteException
        For multiselect of users for GrpReassignAuth or GroupUser.
        Specified by:
        authorizeUsers in interface MaxGroupRemote
        Parameters:
        userSet - Set of MaxUser
        relationship - Relationship name: GRPREASSIGNAUTH or GROUPUSER.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        SelectUsersBean