Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center
11g Release 2 (11.1.2.2.0)
E17494-03


oracle.alm.common
Interface AlmResource


public interface AlmResource

The AlmResource is the interface defining API for accessing TPC connector specific resource. TPC connector specific resources are defined in xml-formated resource file. In general, those TPC connector specific resources are defined and used declaratively, please refer to the TPC connector development guideline for more details.

At the same time, TPC connector can progmatically access connector specific resource in the code, as shown in following example:

   RepositoryDef repoDef = workitemDef.getRepositoryDef();
   AlmResource res = repoDef.getResource();
   String resObj = (String) res.getResource(Locale.getDefault(), "BUG_PRIORITY");
 

More examples may be available in the Sample connector.

Since:
11.1.1.1.0
See Also:
WorkItemDef

Method Summary
 java.lang.Object getResource(java.util.Locale locale, java.lang.Object key)
          Gets an object for the given key and locale from this resource bundle.
 java.lang.Object getResource(java.util.Locale locale, java.lang.Object key, java.lang.String[] params)
          Gets an object for the given key and locale, with the passed parameters from the resource bundle.

 

Method Detail

getResource

java.lang.Object getResource(java.util.Locale locale,
                             java.lang.Object key)

Gets an object for the given key and locale from this resource bundle.

Parameters:
locale - the locale for which a resource bundle is desired. Current supported locales are Locale.ENGLISH and Locale.JAPANESE.
key - the key for the desired object
Returns:
an object for the given key and locale

getResource

java.lang.Object getResource(java.util.Locale locale,
                             java.lang.Object key,
                             java.lang.String[] params)
Gets an object for the given key and locale, with the passed parameters from the resource bundle. The passed parmeters are used to pass value for micro definition in the corresponding resource string in the resource bundle.
Parameters:
locale - the locale for which a resource bundle is desired. Current supported locales are Locale.ENGLISH and Locale.JAPANESE.
key - the key for the desired object
params - a String array representing passed values.
Returns:
the resource (String) by given the locale, resource key and passed-in parameters.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center
11g Release 2 (11.1.2.2.0)
E17494-03


Copyright © 1998,2012, Oracle. All rights reserved.