Class SwarmHelper
- java.lang.Object
-
- org.jenkinsci.plugins.p4.swarmAPI.SwarmHelper
-
public class SwarmHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description SwarmHelper(ConnectionHelper p4, String version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
approveReview(String id, ApproveState state, String description)
List<SwarmReviewsAPI.Reviews>
getActiveReviews(String project)
String
getBaseUrl()
List<SwarmProjectAPI.Branch>
getBranchesInProject(String project)
List<String>
getProjects()
Get a list of project 'ids' from swarm where the current users is a member or ownerSwarmReviewAPI
getSwarmReview(String review)
-
-
-
Constructor Detail
-
SwarmHelper
public SwarmHelper(ConnectionHelper p4, String version) throws Exception
- Throws:
Exception
-
-
Method Detail
-
getBaseUrl
public String getBaseUrl()
-
approveReview
public boolean approveReview(String id, ApproveState state, String description) throws Exception
- Throws:
Exception
-
getActiveReviews
public List<SwarmReviewsAPI.Reviews> getActiveReviews(String project) throws Exception
- Throws:
Exception
-
getSwarmReview
public SwarmReviewAPI getSwarmReview(String review) throws Exception
- Throws:
Exception
-
getBranchesInProject
public List<SwarmProjectAPI.Branch> getBranchesInProject(String project) throws Exception
- Throws:
Exception
-
-