|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xcmis.spi.UserContext
public final class UserContext
Holder information about current caller.
| Field Summary | |
|---|---|
static Permission |
USER_CONTEXT_PERMISSION
|
| Constructor Summary | |
|---|---|
UserContext(String userId)
Create new context for user with specified ID. |
|
| Method Summary | |
|---|---|
static UserContext |
getCurrent()
Get context of current caller. |
String |
getProperty(String name)
Get optional context property with specified name. |
String |
getUserId()
Get user's ID. |
static void |
setCurrent(UserContext ctx)
Set context of current caller. |
void |
setProperty(String name,
String value)
Update or set property.To be able do this java.lang.RuntimePermission "updateUserContext" required. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Permission USER_CONTEXT_PERMISSION
| Constructor Detail |
|---|
public UserContext(String userId)
userId - user's ID| Method Detail |
|---|
public static UserContext getCurrent()
null if current context is
not initialized yetpublic static void setCurrent(UserContext ctx)
java.lang.RuntimePermission "updateUserContext" required.
SecurityException - if operation is not permittedSecurityManager,
Permissionpublic String getUserId()
public String getProperty(String name)
name - property name
null
public void setProperty(String name,
String value)
java.lang.RuntimePermission "updateUserContext" required.
name - property namevalue - property value
SecurityException - if operation is not permittedSecurityManager,
Permission
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||