|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.figure8.join.services.remoting.xmlrpc.DefaultXmlRpcHandler
public class DefaultXmlRpcHandler
This is the default implementation of XmlRcpHandler
| Constructor Summary | |
|---|---|
DefaultXmlRpcHandler()
Creates a new instance of DefaultXmlRpcHandler |
|
| Method Summary | |
|---|---|
boolean |
bindComponent(java.lang.String token,
java.lang.String typeKey,
java.lang.String versionInfo,
long size,
java.lang.String assemblyKey)
Bind a component to a given assembly. |
boolean |
createResourceVersion(java.lang.String token,
java.lang.String versionName,
java.lang.String versionDescription,
java.lang.String resourceTypeKey)
Create a new resource version for a specified resource type. |
java.util.List |
getDeliverableTypes(java.lang.String token)
Retrieve all the deliverable categories (or types) managed within the project. |
java.util.List |
getDeliverableTypesForDelivery(java.lang.String token)
Get the deliverable categories where authenticated user can supply deliverables for. |
java.util.List |
getReleases(java.lang.String token)
Retrieve all the releases managed within the project. |
java.lang.String |
login(java.lang.String username,
java.lang.String password)
Authenticates a remote user onto Join application. |
boolean |
logout(java.lang.String token)
Logs out from Join application the user corresponding to the supplied token. |
void |
setArtifactService(ArtifactService service)
|
boolean |
setAssemblyStatus(java.lang.String token,
java.lang.String statusKey,
java.lang.String assemblyKey)
Set the specified status to a specified Assembly. |
boolean |
setBuildStatus(java.lang.String token,
java.lang.String statusKey,
java.lang.String buildKey)
Set the specified status to a specified Build. |
boolean |
setDeploymentStatus(java.lang.String token,
java.lang.String statusKey,
java.lang.String deploymentId)
Set the specified status to a specified Deployment. |
void |
setProcessControlService(ProcessControlService service)
|
void |
setResourceService(ResourceService service)
|
boolean |
supplyDeliverable(java.lang.String token,
java.lang.String releaseName,
java.lang.String typeKey,
java.lang.String versionInfo,
java.lang.String comments,
byte[] content)
Supply a new deliverable using the remote wrapper. |
boolean |
updateResource(java.lang.String token,
java.lang.String resourceName,
java.lang.String versionName)
Update an existing resource with an existing reosurce version. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultXmlRpcHandler()
| Method Detail |
|---|
public void setArtifactService(ArtifactService service)
service - The ArtifactService implementation to usepublic void setResourceService(ResourceService service)
service - The ResourceService implementation to usepublic void setProcessControlService(ProcessControlService service)
service - The ProcessControlService implementation to use
public java.lang.String login(java.lang.String username,
java.lang.String password)
throws InvalidLoginException,
java.rmi.RemoteException
login in interface XmlRpcHandlerusername - Login of user for authenticationpassword - Password of corresponding user
InvalidLoginException - if user cannot be logged
java.rmi.RemoteException - if an exception occurs during the remote conversation
public boolean logout(java.lang.String token)
throws java.rmi.RemoteException
logout in interface XmlRpcHandlertoken - An authentication token obtained with login() method.
java.rmi.RemoteException - if an exception occurs during the remote conversation
public java.util.List getReleases(java.lang.String token)
throws InvalidSessionException,
java.rmi.RemoteException
getReleases in interface XmlRpcHandlertoken - Authentication token provided earlier by login() method
InvalidSessionException - if user has no valid session on server-side
java.rmi.RemoteException - if an exception occurs during the remote conversation
public java.util.List getDeliverableTypes(java.lang.String token)
throws InvalidSessionException,
java.rmi.RemoteException
getDeliverableTypes in interface XmlRpcHandlertoken - Authentication token provided earlier by login() method
InvalidSessionException - if user has no valid session on server-side
java.rmi.RemoteException - if an exception occurs during the remote conversation
public java.util.List getDeliverableTypesForDelivery(java.lang.String token)
throws InvalidSessionException,
java.rmi.RemoteException
getDeliverableTypesForDelivery in interface XmlRpcHandlertoken - Authentication token provided earlier by login() method
InvalidSessionException - if user has no valid session on server-side
java.rmi.RemoteException - if an exception occurs during the remote conversation
public boolean supplyDeliverable(java.lang.String token,
java.lang.String releaseName,
java.lang.String typeKey,
java.lang.String versionInfo,
java.lang.String comments,
byte[] content)
throws InvalidParameterException,
DuplicateEntityException,
InvalidSessionException,
java.rmi.RemoteException
supplyDeliverable in interface XmlRpcHandlertoken - Authentication token provided earlier by login() methodreleaseName - The unique name of Release to supply a deliverable fortypeKey - The unique key of deliverable type this delivery will be bound toversionInfo - The version info (or VCS tag info) for this deliverycomments - The comments on deliverable creationcontent - The deliverable content if not VCS deliverable
InvalidParameterException - if deliverable is already registered or parameter is missing
DuplicateEntityException - if another deliverable with same key already exists
InvalidSessionException - if user has no valid session on server-side
java.rmi.RemoteException - if an exception occurs during the remote conversation
public boolean bindComponent(java.lang.String token,
java.lang.String typeKey,
java.lang.String versionInfo,
long size,
java.lang.String assemblyKey)
throws InvalidParameterException,
InvalidSessionException,
java.rmi.RemoteException
bindComponent in interface XmlRpcHandlertoken - Authentication token provided earlier by login() methodtypeKey - The unique key of component type this component will be bound toversionInfo - The version info for this componentsize - The size in bytes of this componentassemblyKey - The key of assembly to bind component to
InvalidParameterException - if parameter is missing
InvalidSessionException - if user has no valid session on server-side
java.rmi.RemoteException - if an exception occurs during the remote conversation
public boolean setBuildStatus(java.lang.String token,
java.lang.String statusKey,
java.lang.String buildKey)
throws InvalidSessionException,
java.rmi.RemoteException
Build.
setBuildStatus in interface XmlRpcHandlertoken - Authentication token provided earlier by login() methodstatusKey - Unique key idenitifer of the status to set to buildbuildKey - The unique key idenitifer of Build to update status
InvalidSessionException - if user has no valid session on server-side
java.rmi.RemoteException - if an exception occurs during the remote conversation
public boolean setAssemblyStatus(java.lang.String token,
java.lang.String statusKey,
java.lang.String assemblyKey)
throws InvalidSessionException,
java.rmi.RemoteException
Assembly.
setAssemblyStatus in interface XmlRpcHandlertoken - Authentication token provided earlier by login() methodstatusKey - Unique key idenitifer of the status to set to assemblyassemblyKey - The unique key idenitifer of Assembly to update status
InvalidSessionException - if user has no valid session on server-side
java.rmi.RemoteException - if an exception occurs during the remote conversation
public boolean setDeploymentStatus(java.lang.String token,
java.lang.String statusKey,
java.lang.String deploymentId)
throws InvalidSessionException,
java.lang.NumberFormatException,
java.rmi.RemoteException
Deployment.
setDeploymentStatus in interface XmlRpcHandlertoken - Authentication token provided earlier by login() methodstatusKey - Unique key idenitifer of the status to set to deploymentdeploymentId - The unique identifier of Deployment to retrieve status for
InvalidSessionException - if user has no valid session on server-side
java.lang.NumberFormatException - if deploymentId does not represent a long
java.rmi.RemoteException - if an exception occurs during the remote conversation
public boolean createResourceVersion(java.lang.String token,
java.lang.String versionName,
java.lang.String versionDescription,
java.lang.String resourceTypeKey)
throws InvalidParameterException,
DuplicateEntityException,
InvalidSessionException,
java.rmi.RemoteException
createResourceVersion in interface XmlRpcHandlertoken - Authentication token provided earlier by login() methodversionName - The name of the resource version to createversionDescription - The description of resource version to createresourceTypeKey - The key of resource type this version applies to
InvalidParameterException - if parameter is missing
DuplicateEntityException - if another version with same name already exists
InvalidSessionException - if user has no valid session on server-side
java.rmi.RemoteException - if an exception occurs during the remote conversation
public boolean updateResource(java.lang.String token,
java.lang.String resourceName,
java.lang.String versionName)
throws InvalidParameterException,
InvalidSessionException,
java.rmi.RemoteException
updateResource in interface XmlRpcHandlertoken - Authentication token provided earlier by login() methodresourceName - The unique name of the resource to updateversionName - The unique name of the version to update resource with
InvalidParameterException - if one of supplied parameters is invalid
InvalidSessionException - if user has no valid session on server-side
java.rmi.RemoteException - if an exception occurs during the remote conversation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||