ome.tools.hibernate
Class SecureMerge

java.lang.Object
  extended by ome.tools.hibernate.SecureMerge
All Implemented Interfaces:
SecureAction

public class SecureMerge
extends Object
implements SecureAction

Helper originally from SimpleRoleProvider for merging admin objects.

Since:
4.0
Author:
Josh Moore, josh at glencoesoftware.com

Constructor Summary
SecureMerge(org.hibernate.Session session)
           
SecureMerge(org.hibernate.Session session, boolean flush)
           
 
Method Summary
<T extends ome.model.IObject>
T
updateObject(T... objs)
          executes with special privilegs within the SecuritySystem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureMerge

public SecureMerge(org.hibernate.Session session)

SecureMerge

public SecureMerge(org.hibernate.Session session,
                   boolean flush)
Method Detail

updateObject

public <T extends ome.model.IObject> T updateObject(T... objs)
Description copied from interface: SecureAction
executes with special privilegs within the SecuritySystem. These privileges will only be granted to the top-level objects.

Specified by:
updateObject in interface SecureAction


OmeroJava Api

Version: Beta-4.2.0-r7571-b29

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