|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jsxp.framework.UserContext
public class UserContext
The Class UserContext. Default implementation of a user context.
The context is automatically instantiated by the framework. You can access it with
Context.getUserContext()
. Do not create an instance yourself.
Context
,
Serialized FormConstructor Summary | |
---|---|
UserContext()
Instantiates a new user context. |
Method Summary | |
---|---|
java.util.Locale |
getPreferredUserLocale()
Gets the preferred user locale (from the request). |
java.util.Locale[] |
getPreferredUserLocales()
Gets the preferred user locales. |
boolean |
isAllowedToViewPage(ViewController view,
java.lang.String uri)
Checks if is allowed to view page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserContext()
Method Detail |
---|
public java.util.Locale getPreferredUserLocale()
public java.util.Locale[] getPreferredUserLocales()
public boolean isAllowedToViewPage(ViewController view, java.lang.String uri)
Application.isAllowedToViewPage(ViewController, String)
view
- the view (can be null if only a uri is checked)uri
- the uri
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |