ome.security.basic
Class TokenHolder
java.lang.Object
ome.security.basic.TokenHolder
public class TokenHolder
- extends 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()
Method Summary |
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 |
TokenHolder
public TokenHolder()
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
OmeroJava Api
Version: Beta-4.2.0-r7571-b29
Copyright © 2009 The University of Dundee. All Rights Reserved.