psdi.app.repairfacility

Class RepairFacilityRestriction

  • java.lang.Object
    • psdi.app.repairfacility.RepairFacilityRestriction


  • public class RepairFacilityRestriction
    extends java.lang.Object
    Constructs where clauses based on repair facility authorization
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String getRepairFacilityLookupWhere(UserInfo userInfo)
      Return a where clause to display only the repair facilities authorized
      static java.lang.String getRepairFacilityRestrictionWhere(java.lang.String entityName, UserInfo userInfo)
      If Repair Facility feature is enabled for any organization the current user has access to returns a where clause to filter records from a specific table based on the repair facility authorization
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RepairFacilityRestriction

        public RepairFacilityRestriction()
    • Method Detail

      • getRepairFacilityRestrictionWhere

        public static java.lang.String getRepairFacilityRestrictionWhere(java.lang.String entityName,
                                                                         UserInfo userInfo)
                                                                  throws MXException,
                                                                         java.rmi.RemoteException
        If Repair Facility feature is enabled for any organization the current user has access to returns a where clause to filter records from a specific table based on the repair facility authorization
        Parameters:
        entityName -
        userInfo -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getRepairFacilityLookupWhere

        public static java.lang.String getRepairFacilityLookupWhere(UserInfo userInfo)
                                                             throws MXException,
                                                                    java.rmi.RemoteException
        Return a where clause to display only the repair facilities authorized
        Parameters:
        profile -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException