|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.help.HelpLinkHelper
public class HelpLinkHelper
This class is used in conjunction with the URLFactory to generate
HREF links for help files within the Windchill System. There are two
methods provided for generating help files.
The first follows the
pattern of the ServletHelpers where a resource is provided and URLFactory
generates the HREF from this. An example of this might be
HelpLinkHelper helper = new HelpLinkHelper();
String href = HelpLinkHelper.createHelpHREF(
factory,"online/vc/VCIterationHistoryView.html",locale,helper);services.properties
file for a action and context. An example of this might be String href = HelpLinkHelper.createHelpHREF(
factory,new Object(), "CREATE", locale);CREATE. See the methods below for details on implementation.
URLFactory is passed to the HelpLinkHelper methods
a new URLFactory for the current default Method Server will be instantiated
and used. All HREFs will be fully qualified by default in this case.
en_US and en_GB both
map to en. As such, specific processing of the locale is required.
This is performed by the determineHelpLocale(Locale) method as
detailed below, which uses the property wt.help.locales in wt.properties
to determine the valid locale from the supported locales. This method supports
locale backoff, such that a locale like en_US backs off to en.
URLFactory,
WTServiceProviderFromProperties| Method Summary | |
|---|---|
static String |
createHelpHREF(wt.help.HelpLinkContext helpContext,
Locale locale,
HashMap props)
This method will generate a Help HREF using the services.properties entry defined by the designated service_name, context and action for the given locale. |
static String |
createHelpHREF(URLFactory factory,
Object context,
String action,
Locale locale)
This method will generate a Help HREF using the services.properties entry defined by the designated context and action for the given locale. |
static String |
createHelpHREF(URLFactory factory,
Object context,
String action,
Locale locale,
HashMap props)
This method will generate a Help HREF using the services.properties entry defined by the designated context and action for the given locale. |
static String |
createHelpHREF(URLFactory factory,
Object context,
String action,
Locale locale,
HashMap props,
HelpLinkHelper helper)
This method will generate a Help HREF using the services.properties entry defined by the designated context and action for the given locale. |
static String |
createHelpHREF(URLFactory factory,
Object context,
String action,
Locale locale,
HelpLinkHelper helper)
This method will generate a Help HREF using the services.properties entry defined by the designated context and action for the given locale. |
static String |
createHelpHREF(URLFactory factory,
String resource,
Locale locale)
This method will generate a HREF for the help resource referenced post the /help_XX path for the desired locale. |
static String |
createHelpHREF(URLFactory factory,
String resource,
Locale locale,
HashMap props)
This method will generate a HREF for the help resource referenced post the /help_XX path for the desired locale. |
static String |
createHelpHREF(URLFactory factory,
String resource,
Locale locale,
HashMap props,
HelpLinkHelper helper)
This method will generate a HREF for the help resource referenced post the /help_XX path for the desired locale. |
static String |
createHelpHREF(URLFactory factory,
String resource,
Locale locale,
HelpLinkHelper helper)
This method will generate a HREF for the help resource referenced post the /help_XX path for the desired locale. |
static String |
createHelpHREF(URLFactory factory,
String service_name,
Object context,
String action,
Locale locale)
This method will generate a Help HREF using the services.properties entry defined by the designated service_name, context and action for the given locale. |
static String |
createHelpHREF(URLFactory factory,
String service_name,
Object context,
String action,
Locale locale,
HashMap props)
This method will generate a Help HREF using the services.properties entry defined by the designated service_name, context and action for the given locale. |
static String |
createHelpHREF(URLFactory factory,
String service_name,
Object context,
String action,
Locale locale,
HashMap props,
HelpLinkHelper helper)
This method will generate a Help HREF using the services.properties entry defined by the designated service_name, context and action for the given locale. |
static String |
createHelpHREF(URLFactory factory,
String service_name,
Object context,
String action,
Locale locale,
HelpLinkHelper helper)
This method will generate a Help HREF using the services.properties entry defined by the designated service_name, context and action for the given locale. |
static String |
determineHelpLocale(Locale locale)
This method will take the input locale and utilizing the property wt.help.locales from wt.properties will
determine the optimal locale for the help pages. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String createHelpHREF(URLFactory factory,
String service_name,
Object context,
String action,
Locale locale,
HashMap props)
throws Exception
factory - The URLFactory to use to instantiate the link.service_name - The name of the service which contains help linkcontext - The context object to apply the help link toaction - The action to apply to the context for the helplocale - The locale of the clientprops - Optional Hashmap of properties (null valid)
Exception - If the service is not found.
public static String createHelpHREF(wt.help.HelpLinkContext helpContext,
Locale locale,
HashMap props)
throws Exception
helpContext - The help context objectlocale - The locale of the clientprops - Optional Hashmap of properties (null valid)
Exception - If the service is not found.
public static String createHelpHREF(URLFactory factory,
String service_name,
Object context,
String action,
Locale locale,
HashMap props,
HelpLinkHelper helper)
throws Exception
factory - The URLFactory to use to instantiate the link.service_name - The name of the service which contains help linkcontext - The context object to apply the help link toaction - The action to apply to the context for the helplocale - The locale of the clientprops - Optional Hashmap of properties (null valid)helper - The Helper to use to generate the link (allowing for externalized helpers)
Exception - If the service is not found.
public static String createHelpHREF(URLFactory factory,
String service_name,
Object context,
String action,
Locale locale)
throws Exception
factory - The URLFactory to use to instantiate the link.service_name - The name of the service which contains help linkcontext - The context object to apply the help link toaction - The action to apply to the context for the helplocale - The locale of the client
Exception - If the service is not found.
public static String createHelpHREF(URLFactory factory,
String service_name,
Object context,
String action,
Locale locale,
HelpLinkHelper helper)
throws Exception
factory - The URLFactory to use to instantiate the link.service_name - The name of the service which contains help linkcontext - The context object to apply the help link toaction - The action to apply to the context for the helplocale - The locale of the clienthelper - The helper to use to generate the link
Exception - If the service is not found.
public static String createHelpHREF(URLFactory factory,
Object context,
String action,
Locale locale,
HashMap props)
throws Exception
DEFAULT_SERVICE_NAME
which is defined to be wt.templateutil.processor.HelpHTMLTemplate by default.
If this service is not found, an attempt to obtain the filename
for the context of 'Object' and 'DEFAULT_HELP_PAGE' action will be made.
if this fails, an exception will be thrown.
factory - The URLFactory to use to instantiate the link.context - The context object to apply the help link toaction - The action to apply to the context for the helplocale - The locale of the clientprops - Optional Hashmap of properties (null valid)
Exception - If the service is not found.
public static String createHelpHREF(URLFactory factory,
Object context,
String action,
Locale locale,
HashMap props,
HelpLinkHelper helper)
throws Exception
DEFAULT_SERVICE_NAME
which is defined to be wt.templateutil.processor.HelpHTMLTemplate by default.
If this service is not found, an attempt to obtain the filename
for the context of 'Object' and 'DEFAULT_HELP_PAGE' action will be made.
if this fails, an exception will be thrown.
factory - The URLFactory to use to instantiate the link.context - The context object to apply the help link toaction - The action to apply to the context for the helplocale - The locale of the clientprops - Optional Hashmap of properties (null valid)helper - The helper to use for link generation
Exception - If the service is not found.
public static String createHelpHREF(URLFactory factory,
Object context,
String action,
Locale locale)
throws Exception
DEFAULT_SERVICE_NAME
which is defined to be wt.templateutil.processor.HelpHTMLTemplate by default.
If this service is not found, an attempt to obtain the filename
for the context of 'Object' and 'DEFAULT_HELP_PAGE' action will be made.
if this fails, an exception will be thrown.
factory - The URLFactory to use to instantiate the link.context - The context object to apply the help link toaction - The action to apply to the context for the helplocale - The locale of the client
Exception - If the service is not found.
public static String createHelpHREF(URLFactory factory,
Object context,
String action,
Locale locale,
HelpLinkHelper helper)
throws Exception
DEFAULT_SERVICE_NAME
which is defined to be wt.templateutil.processor.HelpHTMLTemplate by default.
If this service is not found, an attempt to obtain the filename
for the context of 'Object' and 'DEFAULT_HELP_PAGE' action will be made.
if this fails, an exception will be thrown.
factory - The URLFactory to use to instantiate the link.context - The context object to apply the help link toaction - The action to apply to the context for the helplocale - The locale of the clienthelper - The helper to use for help link generation
Exception - If the service is not found.public static String determineHelpLocale(Locale locale)
wt.help.locales from wt.properties will
determine the optimal locale for the help pages.
locale - The browser/client locale
public static String createHelpHREF(URLFactory factory,
String resource,
Locale locale,
HashMap props)
throws Exception
factory - The URLFactory to use to generate the linkresource - The desired help resourcelocale - The locale of the clientprops - The properties for the HREF.
Exception
public static String createHelpHREF(URLFactory factory,
String resource,
Locale locale,
HashMap props,
HelpLinkHelper helper)
throws Exception
factory - The URLFactory to use to generate the linkresource - The desired help resourcelocale - The locale of the clientprops - The properties for the HREF.helper - The helper to use to generate the HREF
Exception
public static String createHelpHREF(URLFactory factory,
String resource,
Locale locale)
throws Exception
factory - The URLFactory to use to generate the linkresource - The desired help resourcelocale - The locale of the client
Exception
public static String createHelpHREF(URLFactory factory,
String resource,
Locale locale,
HelpLinkHelper helper)
throws Exception
factory - The URLFactory to use to generate the linkresource - The desired help resourcelocale - The locale of the clienthelper - The helper to use to build the href
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||