|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdminAction
action for passing to SecuritySystem.runAsAdmin(AdminAction)
. All
external input should be carefully checked or even better copied
before being passed to this method. A common idiom would be:
public void someApiMethod(IObject target, String someValue)
{
AdminAction action = new AdminAction(){
public void runAsAdmin() {
IObject copy = iQuery.get( iObject.getClass(), iObject.getId() );
copy.setValue( someValue );
iUpdate.saveObject(copy);
}
};
}
SecuritySystem.runAsAdmin(AdminAction)
Method Summary | |
---|---|
void |
runAsAdmin()
executes with special privilegs within the SecuritySystem . |
Method Detail |
---|
void runAsAdmin()
SecuritySystem
.
SecuritySystem.runAsAdmin(AdminAction)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.