com.collabnet.helm.ws.membership
Interface Membership

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
MembershipBindingStub

public interface Membership
extends java.rmi.Remote

The interface that contains the operations on the Membership service.


Method Summary
 void addMembers(java.lang.String[] usernames, java.lang.String[] roles)
          Adds the list of given usernames to the project on the context, granting, for each of them, all the roles given on the roles container.
 void approvePendingRolesRequests(UsernameRolesType[] members)
          Approves the roles for the given list of members who had requested roles on the project in the context.
 void disapprovePendingRolesRequests(UsernameRolesType[] members, java.lang.String reason)
          Disapproves the roles for the given list of members who had requested roles on the project in the context, specifying the reason for such decision.
 MemberInfoType getMemberInfo(java.lang.String username)
          Adds the list of given usernames to the project on the context, granting, for each of them, all the roles given on the roles container.
 MembersContainer getMembers(PaginationType pagination)
          Gets the lists of the members of the project in the context.
 MembersContainer getOwners(PaginationType pagination)
          Gets the lists of the members of the project in the context.
 MemberRolesType[] getPendingRolesRequests()
          Gets the lists of the users who requested roles on the project in the context, wrapped up in the class MembersContainer.
 void grantRolesToMembers(UsernameRolesType[] members)
          Grants the roles related to each member of the members list, which are on the project in the context.
 void revokeRolesFromMembers(UsernameRolesType[] members)
          Revokes the roles related to each member of the members list, which are on the project in the context.
 

Method Detail

addMembers

void addMembers(java.lang.String[] usernames,
                java.lang.String[] roles)
                throws java.rmi.RemoteException,
                       WSException
Adds the list of given usernames to the project on the context, granting, for each of them, all the roles given on the roles container.

Pre-conditions:

Parameters:
usernames - is the container for the list of usernames wrapped up on the class SimpleUsersContainer.
roles - is the container for the list of roles wrapped up on the class SimpleRolesContainer.
Throws:
java.rmi.RemoteException
WSException -
  • 1 - if an unknown/runtime error occurs during execution
  • 2 - if the webservice framework is unable to retrieve the current webservice context. This indicates a serious system error.
  • 3 - if the user does not have the necessary permissions.

getMemberInfo

MemberInfoType getMemberInfo(java.lang.String username)
                             throws java.rmi.RemoteException,
                                    WSException
Adds the list of given usernames to the project on the context, granting, for each of them, all the roles given on the roles container.

Pre-conditions:

Parameters:
usernames - is the container for the list of usernames wrapped up on the class SimpleUsersContainer.
roles - is the container for the list of roles wrapped up on the class SimpleRolesContainer.
Throws:
java.rmi.RemoteException
WSException -
  • 1 - if an unknown/runtime error occurs during execution
  • 2 - if the webservice framework is unable to retrieve the current webservice context. This indicates a serious system error.
  • 3 - if the user does not have the necessary permissions.

getMembers

MembersContainer getMembers(PaginationType pagination)
                            throws java.rmi.RemoteException,
                                   WSException
Gets the lists of the members of the project in the context. The result will be a reflection to the given pagination information PaginationType provided.

Pre-conditions:

Parameters:
pagination - is the request that controls the list of members returned.
Returns:
a new instance of the MembersContainer, which wraps up the list of the project's members in the context.
Throws:
java.rmi.RemoteException
WSException -
  • 1 - if an unknown/runtime error occurs during execution
  • 2 - if the webservice framework is unable to retrieve the current webservice context. This indicates a serious system error.
  • 3 - if the user does not have the necessary permissions.

getOwners

MembersContainer getOwners(PaginationType pagination)
                           throws java.rmi.RemoteException,
                                  WSException
Gets the lists of the members of the project in the context. The result will be a reflection to the given pagination information PaginationType provided.

Pre-conditions:

Parameters:
pagination - is the request that controls the list of members returned.
Returns:
a new instance of the MembersContainer, which wraps up the list of the project's members in the context.
Throws:
java.rmi.RemoteException
WSException -
  • 1 - if an unknown/runtime error occurs during execution
  • 2 - if the webservice framework is unable to retrieve the current webservice context. This indicates a serious system error.
  • 3 - if the user does not have the necessary permissions.

getPendingRolesRequests

MemberRolesType[] getPendingRolesRequests()
                                          throws java.rmi.RemoteException,
                                                 WSException
Gets the lists of the users who requested roles on the project in the context, wrapped up in the class MembersContainer.

Pre-conditions:

Returns:
a new instance of the MembersRolesContainer, which wraps up the list of the project's members in the context that have requested a role.
Throws:
java.rmi.RemoteException
WSException -
  • 1 - if an unknown/runtime error occurs during execution
  • 2 - if the webservice framework is unable to retrieve the current webservice context. This indicates a serious system error.
  • 3 - if the user does not have the necessary permissions.

approvePendingRolesRequests

void approvePendingRolesRequests(UsernameRolesType[] members)
                                 throws java.rmi.RemoteException,
                                        WSException
Approves the roles for the given list of members who had requested roles on the project in the context.

Pre-conditions:

Parameters:
members - is the list of the members and their requested roles to the project in the context. The list is represented by the class UsernamesRolesContainer.
Throws:
java.rmi.RemoteException
WSException -
  • 1 - if an unknown/runtime error occurs during execution
  • 2 - if the webservice framework is unable to retrieve the current webservice context. This indicates a serious system error.
  • 3 - if the user does not have the necessary permissions.

disapprovePendingRolesRequests

void disapprovePendingRolesRequests(UsernameRolesType[] members,
                                    java.lang.String reason)
                                    throws java.rmi.RemoteException,
                                           WSException
Disapproves the roles for the given list of members who had requested roles on the project in the context, specifying the reason for such decision.

Pre-conditions:

Parameters:
members - is the list of the members and their requested roles to the project in the context. The list is represented by the class UsernamesRolesContainer.
reason - is the request that controls the list of members returned.
Throws:
java.rmi.RemoteException
WSException -
  • 1 - if an unknown/runtime error occurs during execution
  • 2 - if the webservice framework is unable to retrieve the current webservice context. This indicates a serious system error.
  • 3 - if the user does not have the necessary permissions.

grantRolesToMembers

void grantRolesToMembers(UsernameRolesType[] members)
                         throws java.rmi.RemoteException,
                                WSException
Grants the roles related to each member of the members list, which are on the project in the context.

Pre-conditions:

Parameters:
members - is the list of the members and the roles, wrapped by UsernamesRolesContainer, to be granted on the project in the context.
Throws:
java.rmi.RemoteException
WSException -
  • 1 - if an unknown/runtime error occurs during execution
  • 2 - if the webservice framework is unable to retrieve the current webservice context. This indicates a serious system error.
  • 3 - if the user does not have the necessary permissions.

revokeRolesFromMembers

void revokeRolesFromMembers(UsernameRolesType[] members)
                            throws java.rmi.RemoteException,
                                   WSException
Revokes the roles related to each member of the members list, which are on the project in the context.

Pre-conditions:

Parameters:
members - is the list of the members and the roles, wrapped by UsernamesRolesContainer, to be granted on the project in the context.
Throws:
java.rmi.RemoteException
WSException -
  • 1 - if an unknown/runtime error occurs during execution
  • 2 - if the webservice framework is unable to retrieve the current webservice context. This indicates a serious system error.
  • 3 - if the user does not have the necessary permissions.