psdi.app.appsetup

Class CtrlCondPropCache

  • java.lang.Object
    • psdi.app.appsetup.CtrlCondPropCache
    • Constructor Detail

      • CtrlCondPropCache

        public CtrlCondPropCache()
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns "CTRLCONDPROP" - the name of the cache object. This is unique within the app server. This name is used to uniquely identify the cache object among all cached object for both accessing the cache object as well as refreshing the cache object.
        Specified by:
        getName in interface MaximoCache
        Returns:
      • init

        public void init()
                  throws MXException
        Initialize the cache object. This will be called by the app server on startup.
        Specified by:
        init in interface MaximoCache
        Throws:
        MXException
      • reload

        public void reload()
                    throws MXException
        Reloads the cache object. It simply clears everything in the cache. Values are then reloaded on demand. This will be called by the app server whenever the cache needs to be refreshed. Called whenever CtrlCondPropSet saves a modified set.
        Specified by:
        reload in interface MaximoCache
        Throws:
        MXException
        See Also:
        MaximoCache.reload(), #reloadCache
      • getPropertyCache

        public java.util.HashMap getPropertyCache(UserInfo ui,
                                                  java.lang.String ctrlConditionID,
                                                  java.lang.String result)
                                           throws MXException,
                                                  java.rmi.RemoteException
        Get the HashMap of properties by language code(using UserInfo), condition identifier, and condition result.
        Parameters:
        UserInfo - ui
        String - ctrlConditionID
        String - result
        Returns:
        HashMap
        Throws:
        MXException
        java.rmi.RemoteException
      • getLoadedProperties

        public java.util.HashMap getLoadedProperties(java.lang.String langCode,
                                                     java.lang.String ctrlConditionID,
                                                     java.lang.String result)
        Retrieve the properties Hash from the data structure. It is assumed that all required tests/attempts to load the data were already performed.
        Parameters:
        String - langCode
        String - ctrlConditionID
        langCode -
      • getCtrlGroups

        public java.util.TreeMap getCtrlGroups(java.lang.String app,
                                               java.lang.String optionname)
                                        throws MXException,
                                               java.rmi.RemoteException
        Get the entry in ctrlGroups for the given app and optionname. If the app is not already in ctrlGroups, it will be loaded.
        Parameters:
        app - Application name
        optionname - Sigoption optionname
        Returns:
        TreeMap entry from ctrlGroups. If app or optionname not found, this will be empty.
        Throws:
        MXException
        java.rmi.RemoteException
      • getCtrlConditions

        public java.util.TreeMap getCtrlConditions(java.lang.String app,
                                                   java.lang.String optionname,
                                                   java.util.HashSet groupNames)
                                            throws MXException,
                                                   java.rmi.RemoteException
        Read CtrlGroup and CtrlCondition for the given app and optionname. Load the ConditionIDs and ConditionNums into a TreeMap where key is Integer. The returned TreeMap will iterate in the proper sequence, based on groupseq and conditionseq.
        Parameters:
        app - Application name
        optionname - Option name
        groupNames - The security groups to which the relevant user belongs. The condition will be returned only if it is related to one of the user's security groups.
        Returns:
        TreeMap where key is Integer and value is array of CtrlConditionID [0] and ConditionNum [1].
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        CtrlCondPropCache.getCtrlGroups(java.lang.String, java.lang.String), CtrlCondPropCache.loadCtrlConditions(java.lang.Long)
      • getPropertyList

        public java.util.TreeSet getPropertyList()
                                          throws MXException
        Returns a list (TreeMap) of all possible properties that can be conditional changed.
        Returns:
        Throws:
        MXException
      • setPropertyList

        public void setPropertyList(java.util.TreeSet propertyList)
                             throws MXException
        Caches a list (TreeSet) of all possible properties that can be conditional changed.
        Throws:
        MXException