Class TokenHolder


  • public class TokenHolder
    extends java.lang.Object
    Manages a special token (a unique object) which can be inserted into IObject instances for special almost-administrative handling. Identifies loose "ownership" of certain objects.
    See Also:
    IObject.getGraphHolder(), GraphHolder.hasToken()
    • Constructor Summary

      Constructors 
      Constructor Description
      TokenHolder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearToken​(ome.model.internal.GraphHolder gh)  
      void copyToken​(ome.model.IObject source, ome.model.IObject copy)
      copy a token from one IObject to another.
      boolean hasPrivilegedToken​(ome.model.IObject obj)  
      void setToken​(ome.model.internal.GraphHolder gh)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TokenHolder

        public TokenHolder()
    • Method Detail

      • setToken

        public void setToken​(ome.model.internal.GraphHolder gh)
      • clearToken

        public void clearToken​(ome.model.internal.GraphHolder gh)
      • hasPrivilegedToken

        public boolean hasPrivilegedToken​(ome.model.IObject obj)
      • copyToken

        public void copyToken​(ome.model.IObject source,
                              ome.model.IObject copy)
        copy a token from one IObject to another. This is currently insecure and should take a third token implying the rights to copy. Should only be called by MergeEventListener