Package ome.security.basic
Class TokenHolder
- java.lang.Object
-
- ome.security.basic.TokenHolder
-
public class TokenHolder extends java.lang.Object
Manages a special token (a unique object) which can be inserted intoIObject
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 oneIObject
to another.boolean
hasPrivilegedToken(ome.model.IObject obj)
void
setToken(ome.model.internal.GraphHolder gh)
-
-
-
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 oneIObject
to another. This is currently insecure and should take a third token implying the rights to copy. Should only be called byMergeEventListener
-
-