p2ps.group
Interface GroupAdvertisement

All Superinterfaces:
Advertisement, java.io.Serializable
All Known Implementing Classes:
GroupAdvertisementImp

public interface GroupAdvertisement
extends Advertisement

An advertisement for a group. A group is identified by a unique group id and its name. A group advertisement also contains URIs for the membership service and for the group service (where information on the group can be obtained).

Version:
$Revision: 295 $
Author:
Ian Wang

Field Summary
static java.lang.String AUTHORIZATION_TYPE_TAG
           
static java.lang.String GROUP_ADVERTISEMENT_TYPE
           
static java.lang.String GROUP_ID_TAG
           
static java.lang.String GROUP_NAME_TAG
           
static java.lang.String GROUP_SERVICE_URI_TAG
           
static java.lang.String MEMBERSHIP_SERVICE_URI_TAG
           
 
Fields inherited from interface p2ps.discovery.Advertisement
ADVERT_ID_TAG, EXPIRY_DATE, PEER_ID_TAG
 
Method Summary
 java.lang.String getAuthorizationType()
           
 java.lang.String getGroupID()
           
 java.lang.String getGroupName()
           
 java.net.URI[] getGroupServiceURIs()
           
 java.net.URI[] getMembershipServiceURIs()
           
 void setAuthorizationType(java.lang.String authtype)
          Sets the authorization type accepted by this group (null if no authorization is required)
 void setGroupID(java.lang.String groupid)
          Set the unique id for the group
 void setGroupName(java.lang.String groupname)
          Sets the name for the group
 void setGroupServiceURIs(java.net.URI[] uri)
          Set endpoints where a peer can apply to join a group
 void setMembershipServiceURIs(java.net.URI[] uri)
          Set endpoints where a peer can apply to join a group
 
Methods inherited from interface p2ps.discovery.Advertisement
getAdvertID, getExpiryDate, getPeerID, getType, getXMLAdvert, getXMLEnvelope
 

Field Detail

GROUP_ADVERTISEMENT_TYPE

public static final java.lang.String GROUP_ADVERTISEMENT_TYPE
See Also:
Constant Field Values

GROUP_ID_TAG

public static final java.lang.String GROUP_ID_TAG
See Also:
Constant Field Values

GROUP_NAME_TAG

public static final java.lang.String GROUP_NAME_TAG
See Also:
Constant Field Values

AUTHORIZATION_TYPE_TAG

public static final java.lang.String AUTHORIZATION_TYPE_TAG
See Also:
Constant Field Values

GROUP_SERVICE_URI_TAG

public static final java.lang.String GROUP_SERVICE_URI_TAG
See Also:
Constant Field Values

MEMBERSHIP_SERVICE_URI_TAG

public static final java.lang.String MEMBERSHIP_SERVICE_URI_TAG
See Also:
Constant Field Values
Method Detail

getGroupID

public java.lang.String getGroupID()
Returns:
the unique id for the group

setGroupID

public void setGroupID(java.lang.String groupid)
Set the unique id for the group


getGroupName

public java.lang.String getGroupName()
Returns:
the name for the group

setGroupName

public void setGroupName(java.lang.String groupname)
Sets the name for the group


getAuthorizationType

public java.lang.String getAuthorizationType()
Returns:
the authorization type accepted by this group (null if no authorization required)

setAuthorizationType

public void setAuthorizationType(java.lang.String authtype)
Sets the authorization type accepted by this group (null if no authorization is required)


getMembershipServiceURIs

public java.net.URI[] getMembershipServiceURIs()
Returns:
endpoints where a peer can apply to join a group

setMembershipServiceURIs

public void setMembershipServiceURIs(java.net.URI[] uri)
Set endpoints where a peer can apply to join a group


getGroupServiceURIs

public java.net.URI[] getGroupServiceURIs()
Returns:
endpoints where a peer can apply to join a group

setGroupServiceURIs

public void setGroupServiceURIs(java.net.URI[] uri)
Set endpoints where a peer can apply to join a group