fabric.store.db
Class GroupContainer

java.lang.Object
  extended by fabric.store.db.GroupContainer

public final class GroupContainer
extends java.lang.Object

Abstracts groups and globs. This class is thread-safe.


Field Summary
 LongSet onums
          The set of onums for the objects contained in this group.
 
Constructor Summary
GroupContainer(Store store, java.security.PrivateKey signingKey, ObjectGroup group)
           
 
Method Summary
 Glob getGlob()
           
 ObjectGroup getGroup(NodePrincipal principal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

onums

public final LongSet onums
The set of onums for the objects contained in this group.

Constructor Detail

GroupContainer

public GroupContainer(Store store,
                      java.security.PrivateKey signingKey,
                      ObjectGroup group)
Method Detail

getGroup

public ObjectGroup getGroup(NodePrincipal principal)
Parameters:
principal - The principal accessing the group.
Returns:
null if the given principal is not allowed to read the group.

getGlob

public Glob getGlob()