org.alfresco.web.bean.wcm
Class DeploymentUtil

java.lang.Object
  extended by org.alfresco.web.bean.wcm.DeploymentUtil

public final class DeploymentUtil
extends java.lang.Object

Helper methods for deployment


Constructor Summary
DeploymentUtil()
           
 
Method Summary
static java.util.List findAllocatedTestServers(java.lang.String store)
          Returns the test servers allocated to the given store.
static org.alfresco.service.cmr.repository.NodeRef findDeploymentAttempt(java.lang.String attemptId)
          Retrieves the NodeRef of the deploymentattempt node with the given id
static java.util.List findDeploymentAttempts(java.lang.String store)
          Returns all deployment attempts for the given store
static java.util.List findDeploymentAttempts(java.lang.String store, java.util.Date fromDate, java.util.Date toDate)
          Returns all deployment attempts for the given store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentUtil

public DeploymentUtil()
Method Detail

findDeploymentAttempts

public static java.util.List findDeploymentAttempts(java.lang.String store)
Returns all deployment attempts for the given store

Parameters:
store - The store to get the deployment attempts for
Returns:
List of NodeRef's representing the deployment attempts

findDeploymentAttempts

public static java.util.List findDeploymentAttempts(java.lang.String store,
                                                    java.util.Date fromDate,
                                                    java.util.Date toDate)
Returns all deployment attempts for the given store

Parameters:
store - The store to get the deployment attempts for
fromDate - If present only attempts after the given date are returned
toDate - If present only attempts before the given date are returned, if null toDate defaults to today's date
Returns:
List of NodeRef's representing the deployment attempts

findDeploymentAttempt

public static org.alfresco.service.cmr.repository.NodeRef findDeploymentAttempt(java.lang.String attemptId)
Retrieves the NodeRef of the deploymentattempt node with the given id

Parameters:
attemptId - The deployattemptid of the node to be found
Returns:
The NodeRef of the deploymentattempt node or null if not found

findAllocatedTestServers

public static java.util.List findAllocatedTestServers(java.lang.String store)
Returns the test servers allocated to the given store.

Parameters:
store - The store to get the test server for
Returns:
The allocated server(s), an empty list if there isn't one


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.