com.collabnet.helm.ws.domain
Interface Domain

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

public interface Domain
extends java.rmi.Remote

The interface that contains the operations on the domain service.


Method Summary
 ProjectsForActionContainer getProjectsForAction(java.lang.String action, java.lang.String username, PaginationType pagination)
          Returns a simple the list of projects that has the action, identified by the given action name, in one of the roles from the project's members.
 ProjectsForUserContainer getProjectsForUser(java.lang.String username, PaginationType pagination)
          Returns a simple the list of projects that the user, identified by the given username, has direct roles on the current domain.
 ResourcesForActionContainer getResourcesForAction(java.lang.String action, java.lang.String username, java.lang.String project)
          Returns a list resources associated with the given action on the given project for a given username.
 UserInfoType getUserByEmail(java.lang.String userEmail)
          Returns the information of a domain user by a email.
 UserInfoType getUserByName(java.lang.String userFullName)
          Returns the information of a domain user by a given full name.
 UserInfoType getUserByUsername(java.lang.String username)
          Returns the information of a domain user by a given username.
 SimpleUsernameStatusType isUserValid(java.lang.String username, java.lang.String password)
          Returns the status information for a given username and password.
 

Method Detail

getUserByUsername

UserInfoType getUserByUsername(java.lang.String username)
                               throws java.rmi.RemoteException,
                                      WSException
Returns the information of a domain user by a given username.

Pre-conditions:

Parameters:
username - is is the username of an existing user on the current domain.
Returns:
an instance of the user information UserInfoType
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.

getUserByName

UserInfoType getUserByName(java.lang.String userFullName)
                           throws java.rmi.RemoteException,
                                  WSException
Returns the information of a domain user by a given full name.

Pre-conditions:

Parameters:
userFullName - is the full name of an existing user on the current domain.
Returns:
an instance of the user information UserInfoType
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.

getUserByEmail

UserInfoType getUserByEmail(java.lang.String userEmail)
                            throws java.rmi.RemoteException,
                                   WSException
Returns the information of a domain user by a email. This must be the main email address used by the user.

Pre-conditions:

Parameters:
userEmail - is the email from an existing user on the current domain.
Returns:
an instance of the user information UserInfoType
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.

isUserValid

SimpleUsernameStatusType isUserValid(java.lang.String username,
                                     java.lang.String password)
                                     throws java.rmi.RemoteException,
                                            WSException
Returns the status information for a given username and password. It follows the same rules for username and password used on the current domain.

Pre-conditions:

Parameters:
username - is the username from an existing user on the current domain.
password - is the password matching exactly the one from the given username from an existing user on the current domain.
Returns:
an instance of the user status information SimpleUsernameStatusType
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.

getProjectsForUser

ProjectsForUserContainer getProjectsForUser(java.lang.String username,
                                            PaginationType pagination)
                                            throws java.rmi.RemoteException,
                                                   WSException
Returns a simple the list of projects that the user, identified by the given username, has direct roles on the current domain.
Additionally, a pagination information can be provided in order to return results for larger datasets. Check the documentation of PaginationType.

Pre-conditions:

Parameters:
username - is the username from an existing user on the current domain.
Returns:
an instance of he user information ProjectsForUserContainer
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.

getProjectsForAction

ProjectsForActionContainer getProjectsForAction(java.lang.String action,
                                                java.lang.String username,
                                                PaginationType pagination)
                                                throws java.rmi.RemoteException,
                                                       WSException
Returns a simple the list of projects that has the action, identified by the given action name, in one of the roles from the project's members. At least one user must have at last one role with the given action name on its list of permissions.
Additionally, a pagination information can be provided in order to return results for larger datasets. Check the documentation of PaginationType.

Pre-conditions:

Parameters:
username - is the username of the user to be verified.
action - is the action name on the current domain.
Returns:
an instance of he user information ProjectsForActionContainer
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.

getResourcesForAction

ResourcesForActionContainer getResourcesForAction(java.lang.String action,
                                                  java.lang.String username,
                                                  java.lang.String project)
                                                  throws java.rmi.RemoteException,
                                                         WSException
Returns a list resources associated with the given action on the given project for a given username.

Pre-conditions:

Parameters:
action - is the action name on the current domain.
Returns:
an instance of the list of resouces for the given action and project ResourcesForActionContainer
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.