2.17.2: 2011-06-17

net.sf.basedb.ws.client
Class ProjectClient

java.lang.Object
  extended by net.sf.basedb.ws.client.AbstractRPCClient
      extended by net.sf.basedb.ws.client.ProjectClient

public class ProjectClient
extends AbstractRPCClient

Web service client for project in BASE. Calls services in ProjectService

Version:
2.5
Author:
Martin

Field Summary
private  SessionClient session
           
 
Constructor Summary
ProjectClient(SessionClient session)
          Creates new ProjectClient object for an active session client.
 
Method Summary
 ProjectInfo getById(int itemId)
          Get info about a project when you know the ID.
 ProjectInfo[] getProjects(QueryOptions qOpt)
          Gets info about each projects that are available for the active session client.
 void setActive(int projectId)
          Sets a project to be active.
 
Methods inherited from class net.sf.basedb.ws.client.AbstractRPCClient
getOperation, getService, getServiceFactory, invokeBlocking, invokeBlocking, invokeBlocking, invokeFileBlocking, setServiceFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

private final SessionClient session
Constructor Detail

ProjectClient

public ProjectClient(SessionClient session)
Creates new ProjectClient object for an active session client.

Parameters:
session - The active session client
Method Detail

getById

public ProjectInfo getById(int itemId)
                    throws org.apache.axis2.AxisFault
Get info about a project when you know the ID.

Parameters:
itemId - The ID of the project
Returns:
An ExperimentInfo object
Throws:
org.apache.axis2.AxisFault - If communication with web service fails.

setActive

public void setActive(int projectId)
               throws org.apache.axis2.AxisFault
Sets a project to be active.

Parameters:
projectId - Id of the project that should be put active.
Throws:
org.apache.axis2.AxisFault - If communication with web services fails.

getProjects

public ProjectInfo[] getProjects(QueryOptions qOpt)
                          throws org.apache.axis2.AxisFault
Gets info about each projects that are available for the active session client.

Parameters:
qOpt - Options to put on the query that gets the project from database.
Returns:
An array with a info object for each project.
Throws:
org.apache.axis2.AxisFault - If communication with web service fails.

2.17.2: 2011-06-17