ePOST API

rice.post.storage
Class GroupData

java.lang.Object
  extended by rice.post.storage.GroupData
All Implemented Interfaces:
java.io.Serializable, PostData

public class GroupData
extends java.lang.Object
implements PostData

This interface is designed to serve as an abstraction of a data object stored in Post. This object will be stored in an encrypted state at a location in the network. Users can access this object by having a copy of the corresponding Reference object, which contains the location and possibly the key of this object.

Version:
$Id: GroupData.java 2222 2005-02-11 17:47:34Z amislove $
See Also:
Serialized Form

Field Summary
protected  PostData[] data
           
 
Constructor Summary
GroupData(PostData[] data)
          Builds a GroupData given a collection of PostData
 
Method Summary
 ContentHashReference buildContentHashReference(Id[] location, byte[][] key)
          This method dynamically builds an appropriate ContentHashReference for this type of PostData given a location and key.
 SecureReference buildSecureReference(Id location, byte[] key)
          This method dynamically builds an appropriate SecureReference for this type of PostData given a location and key.
 SignedReference buildSignedReference(Id location)
          This method dynamically builds an appropriate SignedReference for this type of PostData given a location.
 PostData[] getData()
          Returns the data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected PostData[] data
Constructor Detail

GroupData

public GroupData(PostData[] data)
Builds a GroupData given a collection of PostData

Parameters:
data - The data
Method Detail

getData

public PostData[] getData()
Returns the data


buildSignedReference

public SignedReference buildSignedReference(Id location)
This method dynamically builds an appropriate SignedReference for this type of PostData given a location.

Specified by:
buildSignedReference in interface PostData
Parameters:
location - The location of the data
Returns:
A pointer to the data

buildContentHashReference

public ContentHashReference buildContentHashReference(Id[] location,
                                                      byte[][] key)
This method dynamically builds an appropriate ContentHashReference for this type of PostData given a location and key.

Specified by:
buildContentHashReference in interface PostData
Parameters:
location - The location of the data
key - The for the data
Returns:
A pointer to the data

buildSecureReference

public SecureReference buildSecureReference(Id location,
                                            byte[] key)
This method dynamically builds an appropriate SecureReference for this type of PostData given a location and key.

Specified by:
buildSecureReference in interface PostData
Parameters:
location - The location of the data
key - The for the data
Returns:
A pointer to the data

ePOST API

Copyright © 2001-2005 - Rice Pastry.