org.hudsonci.rest.api.internal
Class ProjectBuildHelper
java.lang.Object
org.hudsonci.rest.api.internal.ProjectBuildHelper
@Named
@Singleton
public class ProjectBuildHelper
- extends Object
Helper to find projects and builds for REST resources.
- Since:
- 2.1.0
- Author:
- Jason Dillon
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectBuildHelper
@Inject
public ProjectBuildHelper(ProjectService projectService,
BuildService buildService,
ProjectNameCodec projectNameCodec)
decodeProjectName
public String decodeProjectName(String projectName)
getProject
public AbstractProject<?,?> getProject(String projectName)
- Find the project by its un-decoded project name.
getBuild
public AbstractBuild<?,?> getBuild(String projectName,
int buildNumber)
- Finds the build in a project.
Copyright © 2004-2011 Hudson. All Rights Reserved.