psdi.webclient.beans.common

Class RepairFacilityConditionalUIBean

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.http.HttpSessionBindingListener, DataBeanListener
    Direct Known Subclasses:
    GenerateWOConditionalUIBean


    public class RepairFacilityConditionalUIBean
    extends DataBean
    Databean that evaluates if the Repair Facilities maxvar is enabled in any organization. Its primarily target to performing conditional UI for fields in contexts where either there is no current mbo or the current mbo is not site/org level. For contexts where the current mbo is site/org level, use a conditional expression
    • Constructor Detail

      • RepairFacilityConditionalUIBean

        public RepairFacilityConditionalUIBean()
    • Method Detail

      • getRepairFacilitySigOption

        protected java.lang.String getRepairFacilitySigOption()
      • hasSigOptionAccess

        public boolean hasSigOptionAccess(int row,
                                          java.lang.String sigOption)
                                   throws java.rmi.RemoteException,
                                          MXException
        Description copied from class: DataBean
        Returns true if the user has record level privileges for a given sigoption on the given mbo. If the mbo doesn't exist, false it returned. (Changed in 7.1.1.5-BS. Prior versions checked on the app level, which almost always returned true)
        Overrides:
        hasSigOptionAccess in class DataBean
        Parameters:
        row - The index of the mbo to do the check on.
        sigOption - The sigoption that will be checked to see if the user has privileges for it, for the given Mbo.
        Throws:
        java.rmi.RemoteException
        MXException
      • isSigOptionAuthorized

        protected boolean isSigOptionAuthorized(java.lang.String sigOption)
                                         throws java.rmi.RemoteException,
                                                MXException
        Checks if the sigOption is authorized to the current user
        Parameters:
        sigOption -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • getOrgSet

        protected MboSetRemote getOrgSet()
                                  throws MXException,
                                         java.rmi.RemoteException
        Returns an organization set where the maxvars have to be loaded from
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • isRepairFacilityMaxvarEnabledForAnyOrg

        protected boolean isRepairFacilityMaxvarEnabledForAnyOrg(MboSetRemote orgSet)
                                                          throws java.rmi.RemoteException,
                                                                 MXException
        Checks if the Repair Facility maxvar (WOENABLEREPFAC) is enabled in any organization from the organization set received as a parameter
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException