cgl.narada.discovery.topics.messages
Class TopicAdvertisement

java.lang.Object
  extended by cgl.narada.discovery.topics.messages.TopicAdvertisement
All Implemented Interfaces:
Serializable

public class TopicAdvertisement
extends Object
implements Serializable

This is essentially the Topic Creation Request with the addition of the UUID by the TDN. The fields have been duplicated here for brevity.
Created on Apr 7, 2005

See Also:
Serialized Form

Constructor Summary
TopicAdvertisement(TopicCreationRequest request)
          Utility function to copy fields of TopicCreationRequest to the Advertisement
 
Method Summary
static TopicAdvertisement createObjectFromBytes(byte[] objectBytes)
          Unmarshalls the bytes as a TopicAdvertisement object
 Vector getAuthorizedUsers()
           
 byte[] getBytes()
          Marshalls the object into an array of bytes.
 String getCreatorInfo()
           
 Calendar getLifetime()
           
 Certificate getOwnerCredentials()
           
 int getSynopsisType()
           
 String getTopicInfo()
           
 String getTopicSynopsis()
           
 String getUuid()
           
 void setCreatorInfo(String creatorInfo)
           
 void setLifetime(Calendar lifetime)
           
 void setSynopsisType(int synopsisType)
           
 void setTopicInfo(String topicInfo)
           
 void setTopicSynopsis(String topicSynopsis)
           
 void setUuid(String uuid)
           
 String toString()
          For debugging purposes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TopicAdvertisement

public TopicAdvertisement(TopicCreationRequest request)
Utility function to copy fields of TopicCreationRequest to the Advertisement

Parameters:
request -
Method Detail

getBytes

public byte[] getBytes()
Marshalls the object into an array of bytes.

Returns:
an array of bytes representing the marshaller object, null if error occurs

createObjectFromBytes

public static TopicAdvertisement createObjectFromBytes(byte[] objectBytes)
Unmarshalls the bytes as a TopicAdvertisement object

Parameters:
objectBytes -
Returns:
TopicAdvertisement if successful, null if error occurs

toString

public String toString()
For debugging purposes

Overrides:
toString in class Object

getAuthorizedUsers

public final Vector getAuthorizedUsers()
Returns:
Returns authorized users

getOwnerCredentials

public Certificate getOwnerCredentials()
Returns:
Returns the ownerCredentials.

getCreatorInfo

public final String getCreatorInfo()
Returns:
Returns the creatorInfo.

setCreatorInfo

public final void setCreatorInfo(String creatorInfo)
Parameters:
creatorInfo - The creatorInfo to set.

getLifetime

public final Calendar getLifetime()
Returns:
Returns the lifetime.

setLifetime

public final void setLifetime(Calendar lifetime)
Parameters:
lifetime - The lifetime to set.

getSynopsisType

public final int getSynopsisType()
Returns:
Returns the synopsisType.

setSynopsisType

public final void setSynopsisType(int synopsisType)
Parameters:
synopsisType - The synopsisType to set.

getTopicInfo

public final String getTopicInfo()
Returns:
Returns the topicInfo.

setTopicInfo

public final void setTopicInfo(String topicInfo)
Parameters:
topicInfo - The topicInfo to set.

getTopicSynopsis

public final String getTopicSynopsis()
Returns:
Returns the topicSynopsis.

setTopicSynopsis

public final void setTopicSynopsis(String topicSynopsis)
Parameters:
topicSynopsis - The topicSynopsis to set.

getUuid

public final String getUuid()
Returns:
Returns the uuid.

setUuid

public final void setUuid(String uuid)
Parameters:
uuid - The uuid to set.


For comments and suggestions please send e-mail to The NaradaBrokering Project