|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PumaHome
This Interface can be used to access the UserManagement component of
WebSphere Portal
An instance can be retrieved using a JNDI lookup for the following JNDI name
portal:service/usermanagement/Puma
.
The name is also available via a constant of the Interface itself
PumaHome.JNDI_NAME
The returned instance provides a way to access the three views to the user
repository
com.ibm.portal.um.PumaProfile
com.ibm.portal.um.PumaController
com.ibm.portal.um.PumaLocator
The following sample shows you how to perform the JNDI lookup
Either by
Context ctx = new InitialContext(); Name myjndiname = new CompositeName(PumaHome.JNDI_NAME); PumaHome myHome = (PumaHome) ctx.lookup(myjndiname);or
String myjndiname = PumaHome.JNDI_NAME; PumaHome myHome = (PumaHome) ctx.lookup(myjndiname);It is possible to plug multiple stores below PUMA API. To retrieve a
PumaProfile
, PumaLocator
or PumaController
that is not using the
DEFAULT_STORE
, use a get method that takes the name of the store as
parameter, e.g. getProfile(String)
.
PumaProfile.getCurrentUser()
method
will not return the remember me cookie identified user.
Please use the getProfile(javax.servlet.ServletRequest)
method for
correctly retrieving the remember me identified user in this scenario.
PumaProfile
,
PumaLocator
,
PumaController
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_PROVIDER
Deprecated. As of release 6.1.0.1,use DEFAULT_STORE instead |
static java.lang.String |
DEFAULT_STORE
Constant to address the default store for PUMA when retrieving a PumaController , PumaLocator , or PumaProfile |
static java.lang.String |
JNDI_NAME
The name can be used to lookup the PumaHome from JNDI |
static java.lang.String |
READTHROUGH_DEFAULT_STORE
Constant to address the non cached default store for PUMA when retrieving a PumaController , PumaLocator , or PumaProfile |
Method Summary | |
---|---|
PumaController |
getController()
The returned instance of PumaController can be used to read/modify attributes
for a Principal
The PumaController object returned by this method uses WebSphere Application Server RunAs Subject security feature to determine the current available user. |
PumaController |
getController(javax.servlet.ServletRequest aRequest)
Deprecated. since 6.1 use getController() instead.
However, if remember me feature is utilized, getController(javax.servlet.ServletRequest)
method shall still be used. |
PumaController |
getController(java.lang.String storeName)
The returned instance of PumaController can be used to read/modify attributes
for a Principal
The PumaController object returned by this method uses WebSphere Application Server RunAs Subject security feature to determine the current available user. |
PumaController |
getController(java.lang.String storeName,
javax.servlet.ServletRequest aRequest)
Deprecated. since 6.1.0.2 use getController(String) instead.
However, if remember me feature is utilized, getController(String, javax.servlet.ServletRequest)
method shall still be used. |
PumaEnvironment |
getEnvironment()
The returned instance of PumaEnvironment can be used to read the common configuration
of Portal User Management |
PumaLocator |
getLocator()
The returned instance of PumaLocator can be used to find Principal objects |
PumaLocator |
getLocator(int maxSearchResult)
The returned instance of PumaLocator can be used to find Principal objects |
PumaLocator |
getLocator(javax.servlet.ServletRequest aRequest)
Deprecated. since 6.1 use getLocator() instead.
However, if remember me feature is utilized, getLocator(javax.servlet.ServletRequest)
method shall still be used. |
PumaLocator |
getLocator(java.lang.String storeName)
The returned instance of PumaLocator can be used to find Principal objects |
PumaLocator |
getLocator(java.lang.String storeName,
int maxSearchResult)
The returned instance of PumaLocator can be used to find
Principal objects |
PumaLocator |
getLocator(java.lang.String storeName,
javax.servlet.ServletRequest aRequest)
Deprecated. since 6.1.0.2 use getLocator(String) instead.
However, if remember me feature is utilized, getLocator(String, javax.servlet.ServletRequest)
method shall still be used. |
PumaProfile |
getProfile()
The returned instance of PumaProfile can be used to read attributes
for a Principal
The PumaProfile object returned by this method uses WebSphere Application Server RunAs Subject security feature to
determine the current available user. |
PumaProfile |
getProfile(javax.servlet.ServletRequest aRequest)
Deprecated. since 6.1 use getProfile() instead.
However, if remember me feature is utilized, getProfile(javax.servlet.ServletRequest)
method shall still be used. |
PumaProfile |
getProfile(java.lang.String storeName)
The returned instance of PumaProfile can be used to read attributes
for a Principal
The PumaProfile object returned by this method uses WebSphere Application Server RunAs Subject security feature to
determine the current available user. |
PumaProfile |
getProfile(java.lang.String storeName,
javax.servlet.ServletRequest aRequest)
Deprecated. since 6.1.0.2 use getProfile(String) instead.
However, if remember me feature is utilized, getProfile(String, javax.servlet.ServletRequest)
method shall still be used. |
Field Detail |
---|
static final java.lang.String JNDI_NAME
PumaHome
from JNDI
static final java.lang.String DEFAULT_PROVIDER
DEFAULT_STORE
insteadPumaController
, PumaLocator
, or
PumaProfile
in the scope of a particular context.
static final java.lang.String DEFAULT_STORE
PumaController
, PumaLocator
, or PumaProfile
static final java.lang.String READTHROUGH_DEFAULT_STORE
PumaController
, PumaLocator
, or PumaProfile
Method Detail |
---|
PumaController getController(javax.servlet.ServletRequest aRequest)
getController()
instead.
However, if remember me feature is utilized, getController(javax.servlet.ServletRequest)
method shall still be used.
PumaController
can be used to read/modify attributes
for a Principal
aRequest
- the current request. null
is not allowed as parameter
PumaLocator getLocator(javax.servlet.ServletRequest aRequest)
getLocator()
instead.
However, if remember me feature is utilized, getLocator(javax.servlet.ServletRequest)
method shall still be used.
PumaLocator
can be used to find Principal
objects
aRequest
- the current request. NULL
is not allowed as parameter
PumaProfile getProfile(javax.servlet.ServletRequest aRequest)
getProfile()
instead.
However, if remember me feature is utilized, getProfile(javax.servlet.ServletRequest)
method shall still be used.
PumaProfile
can be used to read attributes
for a Principal
aRequest
- the current request. NULL
is not allowed as parameter
PumaController getController()
PumaController
can be used to read/modify attributes
for a Principal
The PumaController
object returned by this method uses
PumaLocator getLocator()
PumaLocator
can be used to find Principal
objects
PumaProfile getProfile()
PumaProfile
can be used to read attributes
for a Principal
The PumaProfile
object returned by this method uses WebSphere Application Server RunAs Subject security feature to
determine the current available user.
PumaLocator getLocator(int maxSearchResult)
PumaLocator
can be used to find Principal
objects
maxSearchResult
- the maximal amount of results allowed for any call on the returned PumaLocator
.
PumaController getController(java.lang.String storeName, javax.servlet.ServletRequest aRequest)
getController(String)
instead.
However, if remember me feature is utilized, getController(String, javax.servlet.ServletRequest)
method shall still be used.
PumaController
can be used to read/modify attributes
for a Principal
The PumaController
object returned by this method uses
storeName
- the name of the store that the returned PumaController will use. Must not be null.aRequest
- the current request. null
is not allowed as parameter
PumaLocator getLocator(java.lang.String storeName, javax.servlet.ServletRequest aRequest)
getLocator(String)
instead.
However, if remember me feature is utilized, getLocator(String, javax.servlet.ServletRequest)
method shall still be used.
PumaLocator
can be used to find
Principal
objects
storeName
- the name of the store that the returned PumaLocator will use. Must not be null.aRequest
- the current request. null
is not allowed as parameter
PumaProfile getProfile(java.lang.String storeName, javax.servlet.ServletRequest aRequest)
getProfile(String)
instead.
However, if remember me feature is utilized, getProfile(String, javax.servlet.ServletRequest)
method shall still be used.
PumaProfile
can be used to read attributes
for a Principal
The PumaProfile
object returned by this method uses WebSphere Application Server RunAs Subject security feature to
determine the current available user.
storeName
- the name of the store that the returned PumaProfile will use. Must not be null.aRequest
- the current request. null
is not allowed as parameter
PumaController getController(java.lang.String storeName)
PumaController
can be used to read/modify attributes
for a Principal
The PumaController
object returned by this method uses
storeName
- the name of the store that the returned PumaController will use. Must not be null.
PumaLocator getLocator(java.lang.String storeName)
PumaLocator
can be used to find Principal
objects
storeName
- the name of the store that the returned PumaLocator will use. Must not be null.
PumaLocator getLocator(java.lang.String storeName, int maxSearchResult)
PumaLocator
can be used to find
Principal
objects
storeName
- the name of the store that the returned PumaLocator will use. Must not be null.maxSearchResult
- the maximal amount of results allowed for any call on the returned PumaLocator
.
PumaProfile getProfile(java.lang.String storeName)
PumaProfile
can be used to read attributes
for a Principal
The PumaProfile
object returned by this method uses WebSphere Application Server RunAs Subject security feature to
determine the current available user.
storeName
- the name of the store that the returned PumaProfile will use. Must not be null.
PumaEnvironment getEnvironment()
PumaEnvironment
can be used to read the common configuration
of Portal User Management
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |