cgl.narada.discovery.topics.messages
Class TopicCreationRequest

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

public class TopicCreationRequest
extends Object
implements Serializable

Topic Creation Request message
Created on Apr 7, 2005

See Also:
Serialized Form

Constructor Summary
TopicCreationRequest()
           
 
Method Summary
static TopicCreationRequest createObjectFromBytes(byte[] objectBytes)
          Unmarshalls the bytes as a TopicCreationRequest object
 Vector getAllowedToDiscoverBy()
           
 byte[] getBytes()
          Marshalls the object into an array of bytes.
 Certificate getCertificate()
           
 String getCreatorInfo()
           
 String getEntityId()
           
 Calendar getLifetime()
           
 int getSynopsisType()
           
 String getTopicInfo()
           
 String getTopicSynopsis()
           
static String pad(int num, int digits, char padding)
           
static String printTime(Calendar calendar)
           
 void removeAllowedToDiscoverBy(String dnOfAuthorizedUser)
           
 void setAllowedToDiscoverBy(String dnOfAuthorizedUser)
           
 void setCertificate(Certificate certificate)
           
 void setCreatorInfo(String creatorInfo)
           
 void setEntityId(String entityId)
           
 void setLifetime(Calendar lifetime)
           
 void setSynopsisType(int synopsisType)
           
 void setTopicInfo(String topicInfo)
           
 void setTopicSynopsis(String topicSynopsis)
           
 String toString()
          For debugging purposes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TopicCreationRequest

public TopicCreationRequest()
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 TopicCreationRequest createObjectFromBytes(byte[] objectBytes)
Unmarshalls the bytes as a TopicCreationRequest object

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

toString

public String toString()
For debugging purposes

Overrides:
toString in class Object

printTime

public static String printTime(Calendar calendar)

pad

public static String pad(int num,
                         int digits,
                         char padding)

getAllowedToDiscoverBy

public final Vector getAllowedToDiscoverBy()

setAllowedToDiscoverBy

public final void setAllowedToDiscoverBy(String dnOfAuthorizedUser)

removeAllowedToDiscoverBy

public final void removeAllowedToDiscoverBy(String dnOfAuthorizedUser)

getCertificate

public final Certificate getCertificate()
Returns:
Returns the certificate.

setCertificate

public final void setCertificate(Certificate certificate)
Parameters:
certificate - The certificate to set.

getEntityId

public final String getEntityId()
Returns:
Returns the entityId.

setEntityId

public final void setEntityId(String entityId)
Parameters:
entityId - The entityId to set.

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.


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