au.com.centrumsystems.hudson.plugin.util
Class ProjectUtil

java.lang.Object
  extended by au.com.centrumsystems.hudson.plugin.util.ProjectUtil

public final class ProjectUtil
extends java.lang.Object

CentrumAbstractProject is used to build the downstream projects pipeline

Author:
Centrum Systems

Method Summary
static java.util.List<hudson.model.AbstractProject<?,?>> getDownstreamProjects(hudson.model.AbstractProject<?,?> currentProject)
          Given a Project get a List of all of its Downstream projects
static boolean hasDownstreamProjects(hudson.model.AbstractProject<?,?> currentProject)
          Determines whether a project has any downstream projects.
static boolean isManualTrigger(hudson.model.AbstractProject<?,?> upstreamProject, hudson.model.AbstractProject<?,?> downstreamProject)
          Determines if a manual trigger of the downstream project from the current upstream project is required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDownstreamProjects

public static java.util.List<hudson.model.AbstractProject<?,?>> getDownstreamProjects(hudson.model.AbstractProject<?,?> currentProject)
Given a Project get a List of all of its Downstream projects

Parameters:
currentProject - Current project
Returns:
List of Downstream projects

hasDownstreamProjects

public static boolean hasDownstreamProjects(hudson.model.AbstractProject<?,?> currentProject)
Determines whether a project has any downstream projects.

Parameters:
currentProject - - The project in question
Returns:
- true: Current project has downstream projects; false: Current project does not have any downstream projects

isManualTrigger

public static boolean isManualTrigger(hudson.model.AbstractProject<?,?> upstreamProject,
                                      hudson.model.AbstractProject<?,?> downstreamProject)
Determines if a manual trigger of the downstream project from the current upstream project is required.

Parameters:
upstreamProject - - The upstream project
downstreamProject - - The downstream project
Returns:
- true: Manual trigger required; false: Manual trigger not required


Copyright © 2004-2011. All Rights Reserved.