com.ibm.tivoli.maximo.oslc.provider

Class OslcResourceCacheImpl

  • java.lang.Object
    • com.ibm.tivoli.maximo.oslc.provider.OslcResourceCacheImpl
  • All Implemented Interfaces:
    MaximoCache


    public class OslcResourceCacheImpl
    extends java.lang.Object
    implements MaximoCache
    MaximoCache for loading/caching OSLC reasources
    • Field Detail

      • validUseWithForREST

        protected java.util.Set validUseWithForREST
    • Constructor Detail

      • OslcResourceCacheImpl

        public OslcResourceCacheImpl()
    • Method Detail

      • getOslcResourcesForDomain

        public java.util.List getOslcResourcesForDomain(java.lang.String nsURI)
      • 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
      • getKeyMap

        public static java.util.Map getKeyMap(java.lang.String keyMap)
      • reload

        public void reload()
                    throws MXException
        Reloads the cache object. This will be called by the app server whenever the cache needs to be refreshed.
        Specified by:
        reload in interface MaximoCache
        Throws:
        MXException
      • reload

        public void reload(java.lang.String key)
                    throws MXException
        Initialize a specific component of the cache identified by the key. E.g. In Maxvars, a specific maxvar can be reinitiliazed from the database.
        Specified by:
        reload in interface MaximoCache
        Parameters:
        key -
        Throws:
        MXException
      • getName

        public java.lang.String getName()
        Returns the name of the cache object. Should be 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. Ex. MaximoDD returns "MAXIMODD"
        Specified by:
        getName in interface MaximoCache
        Returns:
        name of the cache
      • isValidUseWith

        public boolean isValidUseWith(java.lang.String useWith)
      • getOslcResourceInfo

        public OslcResourceInfo getOslcResourceInfo(java.lang.String osName)
      • getOslcResourceMap

        public java.util.Map getOslcResourceMap()
      • isAllowIntegrationOSAsResource

        public boolean isAllowIntegrationOSAsResource()