-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix defect 20170308 * resolve conflicts * modify the .properties
- Loading branch information
Showing
12 changed files
with
470 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 24 additions & 19 deletions
43
src/com/ppm/integration/agilesdk/connector/versionone/VersionOneIntegrationConnector.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,55 @@ | ||
|
||
package com.ppm.integration.agilesdk.connector.versionone; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
import com.ppm.integration.agilesdk.FunctionIntegration; | ||
import com.ppm.integration.agilesdk.IntegrationConnector; | ||
import com.ppm.integration.agilesdk.ui.*; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
import com.ppm.integration.agilesdk.ui.Field; | ||
import com.ppm.integration.agilesdk.ui.PlainText; | ||
|
||
/** | ||
* @author baijuy | ||
* The connector provides the integration for ppm with VersionOne. The field | ||
* InstanceName and BaseUrl are required and field Proxy is optional. | ||
* Once the connector is saved, it can be used to integrate with | ||
* workplan or timesheet. | ||
* @author baijuy The connector provides the integration for ppm with | ||
* VersionOne. The field InstanceName and BaseUrl are required and field | ||
* Proxy is optional. Once the connector is saved, it can be used to | ||
* integrate with workplan or timesheet. | ||
*/ | ||
public class VersionOneIntegrationConnector extends IntegrationConnector { | ||
|
||
@Override public String getExternalApplicationName() { | ||
@Override | ||
public String getExternalApplicationName() { | ||
return "VersionOne"; | ||
} | ||
|
||
@Override public String getExternalApplicationVersionIndication() { | ||
@Override | ||
public String getExternalApplicationVersionIndication() { | ||
return "2016 (16.3.5.270+)"; | ||
} | ||
|
||
@Override public String getConnectorVersion() { | ||
@Override | ||
public String getConnectorVersion() { | ||
return "1.0"; | ||
} | ||
|
||
@Override public String getTargetApplicationIcon() { | ||
@Override | ||
public String getTargetApplicationIcon() { | ||
|
||
return "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAIWSURBVDhPlVPPa9RQEP5etrvasJLU3Qqe9CT+RLYoWrwo6s1LL4o9ePAvUPQk3q0H6UU8CULxDxD0IuKxUNvLIj2URqXqdn9mm6SuzZps8px5bWJsFfSD5JvMzJv53rw80ajX5bCuQ8YxhBCQUoIMkKGYLJC1kynmb2xAuK4rDcMg1//D8zxoquMfEJMijjEndvZhMIvvQV9WH8/Ar3koFGkr5IzCEBce3FJSeWuapqWLsmAFwnUcaZgmpkfOwXOb2I0iQvyAXjZwp/NOJUZRjNVGA0O5nPoeRAOU95YQhgFtQbmA284siuUSXNRREDoGdohHo2dVbG5+AV27i1arjVazBdteg64PK1UaT5XBhe525jElO9g/fhSCZPftdby6eR+nx89g5fMXNKnAkvUBJ44d2VxESBXwXhP7xuxzdONP0PeMYOHZU7x9/QbOuofaag2jpRLy+bzK4+apAj5X0qQmzjg1MYmg58MsHMD7e0+w5vdgLVu4dPF8OlB+/1KwbcqHr1xGKH3IIQ2F6lcsrli4fu3qVnQTOxVksG/sEJ1GH8hp2BUHCGnylcpJ1eifFLSrFiIECL71sISPmJ56qPyclzTjd/ofpFWJ+cdZfPES7blldRrm8YOoTE6o+ST3hXPoGkA4VMCkAtkggxOyyMaZ+fGogKaRweAF7GTevpiRjTMrEP92ndlBLVRC0ulvzPB9Hz8BEWcv9hHRVP4AAAAASUVORK5CYII="; | ||
} | ||
|
||
@Override public List<Field> getDriverConfigurationFields() { | ||
return Arrays.asList(new Field[] { | ||
new PlainText(VersionOneConstants.KEY_BASE_URL, "BASE_URL", "https://www51.v1host.com/BUAA", true), | ||
@Override | ||
public List<Field> getDriverConfigurationFields() { | ||
return Arrays.asList(new Field[] {new PlainText(VersionOneConstants.KEY_BASE_URL, "BASE_URL", "", true), | ||
new PlainText(VersionOneConstants.KEY_PROXY_HOST, "PROXY_HOST", "", false), | ||
new PlainText(VersionOneConstants.KEY_PROXY_PORT, "PROXY_PORT", "", false), | ||
|
||
}); | ||
} | ||
|
||
@Override public List<FunctionIntegration> getIntegrations() { | ||
return Arrays.asList(new FunctionIntegration[] {new VersionOneWorkPlanIntegration(), | ||
new VersionOneTimeSheetIntegration()}); | ||
@Override | ||
public List<FunctionIntegration> getIntegrations() { | ||
return Arrays.asList( | ||
new FunctionIntegration[] {new VersionOneWorkPlanIntegration(), new VersionOneTimeSheetIntegration()}); | ||
} | ||
} |
32 changes: 26 additions & 6 deletions
32
...m/ppm/integration/agilesdk/connector/versionone/VersionOneIntegrationConnector.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,26 @@ | ||
BASE_URL=Base URL | ||
PROXY_HOST=Proxy Host | ||
PROXY_PORT=Proxy Port | ||
USERNAME=Username | ||
PASSWORD=Password | ||
VERSIONONE_PROJECT=Project | ||
BASE_URL = Base URL | ||
PROXY_HOST = Proxy Host | ||
PROXY_PORT = Proxy Port | ||
USERNAME = Username | ||
PASSWORD = Password | ||
|
||
VERSIONONE_PROJECT=Project | ||
|
||
ERROR_UNKNOWN_HOST_ERROR = Unknown Host \"{0}\" | ||
ERROR_BAD_GETWAY = Jira Server expired \"{0}\" | ||
ERROR_UNKNOWN_ERROR = Unknown Error \"{0}\" | ||
ERROR_CONNECTIVITY_ERROR = Connectivity Error | ||
ERROR_DOMAIN_NOT_FOUND = Cannot found Domain \"{0}\" | ||
ERROR_PROJECT_NOT_FOUND = Cannot found Project \"{0}\" | ||
ERROR_RELEASE_NOT_FOUND = Cannot found Release \"{0}\" | ||
ERROR_AUTHENTICATION_FAILED = Authentication Failed | ||
|
||
ERROR_RELEASE_IS_NOT_STARTED = Release \"{0}\" is not started | ||
ERROR_RELEASE_IS_FINISHED = Release \"{0}\" is finished | ||
|
||
ERROR_CANNOT_GET_CURRENT_SPRINT = Cannot get current sprint | ||
|
||
ERROR_HTTP_CONNECTIVITY_ERROR = Connectivity Error \"{0}\" | ||
ERROR_TIMESHEET_RETRIEVE = time sheet data retrieve error\"{0}\" | ||
|
||
ERROR_ACCESS_TOKEN_RETRIEVE = Could not get access token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.