|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LocalizedTypeService
Service that allows to obtain Localized information, e. g. titles, about types.
This interface is designed to be implemented by clients. |
Field Summary | |
---|---|
static java.lang.String |
ATTR_CLASS
name of the class attribute used for instantiation |
static java.lang.String |
DEFAULT_EXTENSION_ID
ID of the default implementation of the LocalizedTypeService . |
static java.lang.String |
EXTENSION_POINT_ID
ID of the LocalizedTypeService extension point |
Method Summary | |
---|---|
Localized |
getLocalized(java.lang.String type,
java.util.Map<java.lang.String,java.lang.String[]> params,
Context ctx)
Performs a lookup for the given String to construct a
Localized object offering access to titles and
descriptions of the type (represented through the given
String ) in various locales. |
Field Detail |
---|
static final java.lang.String EXTENSION_POINT_ID
static final java.lang.String DEFAULT_EXTENSION_ID
ID of the default implementation of the LocalizedTypeService
.
This default implementation can be used to implement a lookup for a localized object
if no service has been registered explicitly. It will generate
descriptions of the WebSphere Portal provided generic service endpoints.
It is a common usecase to first check for the existence of a localized
service that has been registered explicitly for a particular URI and in
case no service is registered fall back to the default localized service
implementation. Refer to CORLocalizedService
for this use case
and pass in the default implementation of the localized service as the
fallback.
static final java.lang.String ATTR_CLASS
Method Detail |
---|
Localized getLocalized(java.lang.String type, java.util.Map<java.lang.String,java.lang.String[]> params, Context ctx) throws javax.xml.transform.TransformerException, java.io.IOException, SerializationException, java.net.URISyntaxException, ModelException
String
to construct a
Localized
object offering access to titles and
descriptions of the type (represented through the given
String
) in various locales. The method may return
null
in case there is no localized information for the type /
parameters combination. In this case a client is free to select a fallback
mechanism.
type
- type String
, must not be null
params
- parameter map, must not be null
ctx
- COR context, must not be null
null
to indicate that
the service does not handle the lookup for the specified input
parameters.
javax.xml.transform.TransformerException
- -
if the localized object cannot be created
java.io.IOException
- -
if an IO error occurred when trying to do the lookup
SerializationException
java.net.URISyntaxException
ModelException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |