netcom.mds
Class ChatShare

java.lang.Object
  extended bynetcom.mds.AbstractShare
      extended bynetcom.mds.ChatShare
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class ChatShare
extends AbstractShare

Title: Chat Share

Description: This represents a share by a PServer of a Chat resource

Copyright: Copyright (c) 2002

Company: NETCOM

See Also:
FileShare, Serialized Form

Field Summary
 
Fields inherited from class netcom.mds.AbstractShare
access_list, id, name_list_pairs, ps_name, share_name, source
 
Constructor Summary
ChatShare(java.lang.String ps_name, java.lang.String share_name, AddressPort source, java.lang.String id, java.lang.String[] access_list, java.util.List[] name_list_pairs)
          Constructs a ChatShare object representing a ChatRoom on a PServer
 
Method Summary
 int compareTo(java.lang.Object o)
          This compareTo compreTo method compares ChatShares based on their share_name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatShare

public ChatShare(java.lang.String ps_name,
                 java.lang.String share_name,
                 AddressPort source,
                 java.lang.String id,
                 java.lang.String[] access_list,
                 java.util.List[] name_list_pairs)
Constructs a ChatShare object representing a ChatRoom on a PServer

Parameters:
ps_name - A String containingname of the PServer to add the share to
share_name - A String representing the name of the Share
source - An InetSocketAddress that is the Socket of the PServer with the Share
id - A unique String that represents this spedcific share. Used to get data from PServer
access_list - An array of Strings containing all PClients who have permission to Share. null if everyone has access
name_list_pairs - An array of Lists that have the name lists representing the Share and used for searching for shares within PSDatas
Method Detail

compareTo

public int compareTo(java.lang.Object o)
This compareTo compreTo method compares ChatShares based on their share_name

Specified by:
compareTo in interface java.lang.Comparable
Specified by:
compareTo in class AbstractShare
Parameters:
o - Object to compare this ChatShare to