|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MappingURLTreeModelProvider
PortletService provider interface to retrieve MappingURLTreeModel
s
PortletServiceHome psh;
javax.naming.Context ctx = new javax.naming.InitialContext();
boolean serviceAvailable = false;
try {
psh = (PortletServiceHome) ctx.lookup(MappingURLTreeModelProvider.JNDI_NAME);
serviceAvailable = true;
} catch(javax.naming.NameNotFoundException ex) {
... error handling ...
}
...
if (serviceAvailable) {
MappingURLTreeModelProvider provider = (MappingURLTreeModelProvider) psh.getPortletService(MappingURLTreeModelProvider.class);
MappingURLTreeModel model = provider.getMappingURLTreeModel(aRequest, aResponse);
...
}
Field Summary | |
---|---|
static java.lang.String |
JNDI_NAME
Deprecated. JNDI name under which the provider instance is bound |
Method Summary | |
---|---|
MappingURLTreeModel |
getMappingURLTreeModel(javax.portlet.PortletRequest aRequest,
javax.portlet.PortletResponse aResponse)
Deprecated. Returns the MappingURLTreeModel applicable in the context of the
current request and response |
Field Detail |
---|
static final java.lang.String JNDI_NAME
Method Detail |
---|
MappingURLTreeModel getMappingURLTreeModel(javax.portlet.PortletRequest aRequest, javax.portlet.PortletResponse aResponse) throws ModelException
MappingURLTreeModel
applicable in the context of the
current request and response
aRequest
- the current requestaResponse
- the current response
MappingURLTreeModel
valid in the current context
ModelException
- in case the model cannot be obtained
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |