net.sf.basedb.ws.client
Class ProjectClient
java.lang.Object
net.sf.basedb.ws.client.AbstractRPCClient
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
session
private final SessionClient session
ProjectClient
public ProjectClient(SessionClient session)
- Creates new ProjectClient object for an active session client.
- Parameters:
session
- The active session client
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.