You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by we...@apache.org on 2004/07/02 16:09:44 UTC

cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/deployment DeploymentEvent.java

weaver      2004/07/02 07:09:44

  Modified:    portal/src/java/org/apache/jetspeed/deployment
                        DeploymentEvent.java
  Log:
  refactored
  
  Revision  Changes    Path
  1.5       +31 -13    jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/deployment/DeploymentEvent.java
  
  Index: DeploymentEvent.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/deployment/DeploymentEvent.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DeploymentEvent.java	25 Mar 2004 21:39:22 -0000	1.4
  +++ DeploymentEvent.java	2 Jul 2004 14:09:44 -0000	1.5
  @@ -15,6 +15,7 @@
    */
   package org.apache.jetspeed.deployment;
   
  +
   /**
    * <p>
    * DeploymentEvent
  @@ -48,25 +49,42 @@
   	String getEventType();
   	
   	/**
  -	 * This is the absolute path where content for this event should be deployed to.
  -	 * @return String absolute path to the final home of the deployed content.
  +	 * 
  +	 * <p>
  +	 * getDeploymentObject
  +	 * </p>
  +	 * @see org.apache.jetspeed.deployment.DeploymentObject
  +	 *
  +	 * @return An instance of <code>org.apache.jetspeed.deployment.DeploymentObject</code>
   	 */
  -	String getDeploymentRoot();
  -	
  -	void setDeploymentRoot(String deploymentRoot);
  +	DeploymentObject getDeploymentObject();
   	
  -
   	/**
  -	 * Returns an <code>java.io.InputStream</code> containing the deployed content.  Most often
  -	 * this will be a <code>java.utiljar.JARInputStream</code>.
  -	 * @return InputStream containing the information to be deployed.
  -	 */	
  -	DeploymentHandler getHandler();
  -	
  +	 * 
  +	 * <p>
  +	 * getStatus
  +	 * </p>
  +	 *
  +	 * @return The status of the deployment. <code>STATUS_OKAY</code> if the deployment was successful,
  +	 * <code>STATUS_FAILED</code> if there was a problem deploying the deployment object or <code>-1</code>
  +	 * if the status was never set (i.e. this event was never acted upon by a listener).
  +	 */
   	int getStatus();
   	
  +	/**
  +	 * 
  +	 * <p>
  +	 * setStatus
  +	 * </p>
  +	 *
  +	 * Sets the status of this event. @see getEvent()
  +	 * @param status
  +	 */
   	void setStatus(int status);
   	
  +	String getName();
  +	
  +	String getPath();
   	
   	
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org