ome.security
Interface AdminAction

All Known Implementing Classes:
QueryConstraints

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); } }; }

Since:
3.0-M3
Version:
$Revision$, $Date$
Author:
Josh Moore, josh.moore at gmx.de
See Also:
SecuritySystem.runAsAdmin(AdminAction)

Method Summary
 void runAsAdmin()
          executes with special privilegs within the SecuritySystem.
 

Method Detail

runAsAdmin

void runAsAdmin()
executes with special privilegs within the SecuritySystem.

See Also:
SecuritySystem.runAsAdmin(AdminAction)


OmeroJava Api

Version: 4.3.4-dbcbce5a-b4

Copyright © 2009 The University of Dundee. All Rights Reserved.