org.weborganic.bastille.pageseeder
Class PSServices

java.lang.Object
  extended by org.weborganic.bastille.pageseeder.PSServices

public final class PSServices
extends Object

A utility class for PageSeeder Services.

Provides useful constants for Services used in this project.


Method Summary
static String toActivateMember(String username)
          Returns the URL to invoke the group member activation service.
static String toCreateComment(String group)
          Returns the URL to invoke the group member creation service.
static String toCreateGroupMember(String group)
          Returns the URL to invoke the group member creation service.
static String toEditGroupMember(String group, String username)
          Returns the URL to invoke the group member edit service.
static String toFindGroupMember(String group)
          Returns the URL to invoke the group member search service.
static String toGetDiscussions(String group)
          Returns the URL to invoke the service that returns the list of discussions for a group.
static String toGroupMemberDetails(String group, String username)
          Returns the URL to invoke the group member details service.
static String toGroupMemberInvite(String group)
          Returns the URL to invoke the group member invitation service.
static String toGroupMemberRegistration(String group, String username)
          Returns the URL to invoke the group member registration service.
static String toMemberCreateComment(String user, String group)
          Returns the URL to invoke the group member creation service.
static String toMemberProjects(String username)
          Returns the URL to invoke the group member registration service.
static String toMemberReplyToComment(String user, String group, String id)
          Returns the URL to invoke the service to reply to a comment.
static String toMemberships(String username)
          Returns the URL to invoke the memberships service.
static String toReplyToComment(String group, String id)
          Returns the URL to invoke the service to reply to a comment.
static String toResetSession()
          Returns the URL to reset the session of the current user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toGetDiscussions

public static String toGetDiscussions(String group)
Returns the URL to invoke the service that returns the list of discussions for a group.

Parameters:
group - The name of the group
Returns:
/groups/[group]/discussions.

toReplyToComment

public static String toReplyToComment(String group,
                                      String id)
Returns the URL to invoke the service to reply to a comment.

Parameters:
group - The name of the group
id - The ID of the discussion to reply to
Returns:
/groups/[group]/comments/[id]/reply.

toCreateComment

public static String toCreateComment(String group)
Returns the URL to invoke the group member creation service.

Parameters:
group - The name of the group
Returns:
/groups/[group]/comments.

toMemberCreateComment

public static String toMemberCreateComment(String user,
                                           String group)
Returns the URL to invoke the group member creation service.

Parameters:
user - The username or user ID
group - The name of the group
Returns:
/groups/[group]/comments.

toMemberReplyToComment

public static String toMemberReplyToComment(String user,
                                            String group,
                                            String id)
Returns the URL to invoke the service to reply to a comment.

Parameters:
user - The username or user ID
group - The name of the group
id - The ID of the discussion to reply to
Returns:
/members/[user]/groups/[group]/discussions/[id].

toCreateGroupMember

public static String toCreateGroupMember(String group)
Returns the URL to invoke the group member creation service.

Parameters:
group - The name of the group
Returns:
/groups/[group]/members/create.

toFindGroupMember

public static String toFindGroupMember(String group)
Returns the URL to invoke the group member search service.

Parameters:
group - The name of the group
Returns:
/groups/[groupname]/members/find.

toActivateMember

public static String toActivateMember(String username)
Returns the URL to invoke the group member activation service.

Parameters:
username - The user name
Returns:
/members/[username]/activate.

toGroupMemberDetails

public static String toGroupMemberDetails(String group,
                                          String username)
Returns the URL to invoke the group member details service.

Parameters:
group - The name of the group
username - The user name
Returns:
/groups/[groupname]/members/[username]/details.

toEditGroupMember

public static String toEditGroupMember(String group,
                                       String username)
Returns the URL to invoke the group member edit service.

Parameters:
group - The name of the group
username - The user name
Returns:
/groups/[groupname]/members/[username]/edit.

toGroupMemberRegistration

public static String toGroupMemberRegistration(String group,
                                               String username)
Returns the URL to invoke the group member registration service.

Parameters:
group - The name of the group
username - The user name
Returns:
/groups/[groupname]/members/[username]/registration.

toGroupMemberInvite

public static String toGroupMemberInvite(String group)
Returns the URL to invoke the group member invitation service.

Parameters:
group - The name of the group to register
Returns:
/groups/[groupname]/members/invite.

toMemberProjects

public static String toMemberProjects(String username)
Returns the URL to invoke the group member registration service.

Parameters:
username - The user name
Returns:
/members/[username]/projects.

toMemberships

public static String toMemberships(String username)
Returns the URL to invoke the memberships service.

Parameters:
username - The user name
Returns:
/members/[username]/memberships.

toResetSession

public static String toResetSession()
Returns the URL to reset the session of the current user.

Returns:
/resetsession.