|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.adminui.RightsCheckUtils
public final class RightsCheckUtils
provides various methods to perform user-checks.
this class is only temporary, until the general rights system has been refactored
| Method Summary | |
|---|---|
static net.sf.json.JSONObject |
checkUserAgainstLocale(Bundle bundle, ServiceRequest request,
java.util.Locale locale)
checks the rights of a given user against a given locale according to the ".Edit.locales" the user has assigned for the given bundle. |
static net.sf.json.JSONObject |
checkUserAgainstLocale(net.sf.json.JSONObject prevError, Bundle bundle, ServiceRequest request,
java.util.Locale locale)
checks the rights of a given user against a given locale according to the ".Edit.locales" the user has assigned for the given bundle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static net.sf.json.JSONObject checkUserAgainstLocale(net.sf.json.JSONObject prevError, Bundle bundle, ServiceRequest request,
java.util.Locale locale)
Returns a JSONObject error = { e: {String} error } if checks
fail, null otherwise.
prevError - an error (NOT user-related) that has occurred earlier, or nullbundle - the Bundle of the callerrequest - the ServiceRequest of the callerlocale - the Locale to check the Users rights for
JSONObject error if checks fail, null otherwise.
public static net.sf.json.JSONObject checkUserAgainstLocale(Bundle bundle, ServiceRequest request,
java.util.Locale locale)
Returns a JSONObject error = { e: {String} error } if checks
fail, null otherwise.
bundle - the Bundle of the callerrequest - the ServiceRequest of the callerlocale - the Locale to check the Users rights for
JSONObject error if checks fail, null otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||