|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoasis.names.tc.wsrp.v1.types.UserContext
org.apache.cocoon.portal.wsrp.consumer.UserContextExtension
Extends the UserContext-class with the supportedLocales.
Without these extension the supportedLocales can only be set global for
the consumerEnvironment. In that case all users have the same locale.
Now the supportedLocales can be set per user.
The order of the locales is important. If the first entry is not offered
by the portlet the second will be tested and so on. The first match delivers
the used locale.
Field Summary | |
protected String[] |
supportedLocales
The locales for the user. |
protected String |
userAuthentication
User Authentication. |
Constructor Summary | |
UserContextExtension()
Default constructor |
|
UserContextExtension(oasis.names.tc.wsrp.v1.types.Extension[] extensions,
oasis.names.tc.wsrp.v1.types.UserProfile profile,
String[] userCategories,
String userContextKey)
Constructor |
Method Summary | |
String[] |
getSupportedLocales()
|
String |
getUserAuthentication()
|
void |
setSupportedLocales(String[] supportedLocales)
Set the supportedLocales for the current user |
void |
setUserAuthentication(String userAuthentication)
|
Methods inherited from class oasis.names.tc.wsrp.v1.types.UserContext |
equals, getDeserializer, getExtensions, getExtensions, getProfile, getSerializer, getTypeDesc, getUserCategories, getUserCategories, getUserContextKey, hashCode, setExtensions, setExtensions, setProfile, setUserCategories, setUserCategories, setUserContextKey |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String[] supportedLocales
protected String userAuthentication
Constructor Detail |
public UserContextExtension()
public UserContextExtension(oasis.names.tc.wsrp.v1.types.Extension[] extensions, oasis.names.tc.wsrp.v1.types.UserProfile profile, String[] userCategories, String userContextKey)
extensions
- profile
- userCategories
- userContextKey
- Method Detail |
public void setSupportedLocales(String[] supportedLocales)
supportedLocales
- public String[] getSupportedLocales()
public String getUserAuthentication()
public void setUserAuthentication(String userAuthentication)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |