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 Object

Provides helper methods for #hudson.model.AbstractProject

Author:
Centrum Systems

Constructor Summary
ProjectUtil()
          Default constructor
 
Method Summary
static List<hudson.model.AbstractProject<?,?>> getDownstreamProjects(hudson.model.AbstractProject<?,?> currentProject)
          Given a Project get a List of all of its Downstream projects
static hudson.model.ParametersAction getProjectParametersAction(hudson.model.AbstractProject<?,?> project)
          Gets the ParametersAction of an AbstractProject
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
 

Constructor Detail

ProjectUtil

public ProjectUtil()
Default constructor

Method Detail

getDownstreamProjects

public static 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

getProjectParametersAction

public static hudson.model.ParametersAction getProjectParametersAction(hudson.model.AbstractProject<?,?> project)
Gets the ParametersAction of an AbstractProject

Parameters:
project - - The AbstractProject
Returns:
The ParametersAction of the AbstractProject


Copyright © 2004-2014. All Rights Reserved.