public class PivotalApi extends Object
Modifier and Type | Field and Description |
---|---|
protected DecimalFormat |
decf |
Constructor and Description |
---|
PivotalApi(String usr,
String psw,
String prjId)
The Pivotal API wrapper constructor
|
Modifier and Type | Method and Description |
---|---|
void |
computeIterationVelocity(String csvFile,
int velocityIterationCount,
Map<Integer,String> velocities,
Map<String,String> releaseInfo)
Computes the iteration velocity
|
void |
getCsvData(String ptCsv)
Retrieves the PT data in the CSV format
|
String |
getPassword() |
String |
getProjectId() |
void |
getToken()
Get token
|
String |
getUserName() |
void |
parse(String csvFile,
String storiesCsv,
String labelsCsv,
String labelsToStoriesCsv,
org.joda.time.DateTime t,
int velocityIterationCount)
Parses the PT CSV file into the STORY, LABEL, and LABEL_TO_STORY CSV files
|
void |
setPassword(String password) |
void |
setProjectId(String projectId) |
void |
setUserName(String userName) |
void |
signin()
Sign into the PT
|
protected DecimalFormat decf
public void getToken() throws IOException
Exception
- in case of an IO errorIOException
public void signin() throws IOException
Exception
- in case of an IO errorIOException
public void getCsvData(String ptCsv) throws IOException
ptCsv
- - the filename to store the PT CSV dataException
- in case of an IO errorIOException
public void computeIterationVelocity(String csvFile, int velocityIterationCount, Map<Integer,String> velocities, Map<String,String> releaseInfo) throws IOException
csvFile
- the incoming PT CSV filevelocityIterationCount
- the number of iterations that the velocity is computed fromvelocities
- returned velocitiesreleaseInfo
- releasesException
- in case of an IO issueIOException
public void parse(String csvFile, String storiesCsv, String labelsCsv, String labelsToStoriesCsv, org.joda.time.DateTime t, int velocityIterationCount) throws IOException
csvFile
- the incoming PT CSV filestoriesCsv
- the output STORY CSV filelabelsCsv
- the output LABEL CSV filelabelsToStoriesCsv
- the output LABEL_TO_STORY CSV filevelocityIterationCount
- the number of iterations that the velocity is computed fromException
- in case of an IO issueIOException
public String getUserName()
public void setUserName(String userName)
public String getPassword()
public void setPassword(String password)
public String getProjectId()
public void setProjectId(String projectId)
Copyright © 2014. All rights reserved.