|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.object.WSUserUtil
A bag of WSUser helper methods
Field Summary | |
static java.lang.String |
code_id
|
protected static Trace |
trace
|
Constructor Summary | |
WSUserUtil()
|
Method Summary | |
static java.lang.Object |
callInternalRule(java.lang.String name,
java.util.Map args,
ObjectCache cache)
|
static java.util.List |
getAllAdminGroups(Principal p,
LighthouseContext context,
java.util.Map options)
This method will return a list of ObjectRefs to the AdminGroups assigned directly (via _memberAdminGroups) and indirectly (via _adminRoles) for the specified principal. |
static java.util.List |
getAllControlledObjectGroups(WSUser user,
LighthouseContext context,
java.util.Map options)
This method will return a list of ObjectRefs to the ObjectGroups controlled directly (via _controlledObjectGroups) and indirectly (via _adminRoles) for the specified user. |
static java.util.Locale |
getExplicitLocale(Principal user)
Retrieves the Locale for the user from the Principal.LOCALE_PROP property. |
static java.util.Locale |
getLastLoginLocale(Principal user)
Retrieves the Locale for the user from the Principal.LAST_LOGIN_LOCALE_PROP property. |
static java.util.List |
getRuleDrivenObjectRefs(ObjectRef ruleRef,
Type type,
java.lang.String userName,
LighthouseContext context)
|
static GenericObject |
getUserViewArgs(LighthouseContext context,
java.lang.String userName)
|
static void |
setExplicitLocale(Principal user,
java.util.Locale locale)
Sets the Locale for the user as a String in the Principal.LOCALE_PROP property. |
static void |
setLastLoginLocale(Principal user,
java.util.Locale locale)
Sets the Locale for the user as a String in the Principal.LAST_LOGIN_LOCALE_PROP property. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
protected static Trace trace
Constructor Detail |
public WSUserUtil()
Method Detail |
public static java.util.List getAllAdminGroups(Principal p, LighthouseContext context, java.util.Map options) throws WavesetException
WavesetException
public static java.util.List getAllControlledObjectGroups(WSUser user, LighthouseContext context, java.util.Map options) throws WavesetException
WavesetException
public static java.util.List getRuleDrivenObjectRefs(ObjectRef ruleRef, Type type, java.lang.String userName, LighthouseContext context) throws WavesetException
WavesetException
public static GenericObject getUserViewArgs(LighthouseContext context, java.lang.String userName) throws WavesetException
WavesetException
public static java.lang.Object callInternalRule(java.lang.String name, java.util.Map args, ObjectCache cache) throws WavesetException
WavesetException
public static void setExplicitLocale(Principal user, java.util.Locale locale)
public static void setLastLoginLocale(Principal user, java.util.Locale locale)
public static java.util.Locale getExplicitLocale(Principal user)
public static java.util.Locale getLastLoginLocale(Principal user)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |