This repository has been archived by the owner on Apr 13, 2019. It is now read-only.
-
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.
- Loading branch information
Showing
7 changed files
with
60 additions
and
24 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
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
17 changes: 17 additions & 0 deletions
17
src/main/java/com/blackducksoftware/integration/phone/home/enums/BlackDuckName.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.blackducksoftware.integration.phone.home.enums; | ||
|
||
public enum BlackDuckName { | ||
HUB ("Hub"), | ||
PROTEX ("Protex"), | ||
CODE_CENTER ("Code-Center"); | ||
|
||
private final String name; | ||
|
||
private BlackDuckName(String name){ | ||
this.name = name; | ||
} | ||
|
||
public String getName(){ | ||
return this.name; | ||
} | ||
} |
27 changes: 10 additions & 17 deletions
27
src/main/java/com/blackducksoftware/integration/phone/home/enums/PhoneHomeSource.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,23 +1,16 @@ | ||
package com.blackducksoftware.integration.phone.home.enums; | ||
|
||
import com.blackducksoftware.integration.phone.home.exception.PhoneHomeException; | ||
|
||
public enum PhoneHomeSource { | ||
HUB, INTEGRATIONS; | ||
HUB ("Hub"), | ||
INTEGRATIONS ("Integrations"); | ||
|
||
private String name; | ||
|
||
private PhoneHomeSource(String name){ | ||
this.name = name; | ||
} | ||
|
||
@Override | ||
public String toString(){ | ||
String s = null; | ||
|
||
switch(this) { | ||
case HUB: | ||
s = "Hub"; | ||
break; | ||
case INTEGRATIONS: | ||
s = "Integrations"; | ||
break; | ||
} | ||
|
||
return s; | ||
public String getName(){ | ||
return this.name; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/com/blackducksoftware/integration/phone/home/enums/ThirdPartyName.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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.blackducksoftware.integration.phone.home.enums; | ||
|
||
public enum ThirdPartyName { | ||
JENKINS ("Jenkins"), | ||
BAMBOO ("Bamboo"), | ||
TEAM_CITY ("Team-City"), | ||
JIRA ("Jira"), | ||
MAVEN ("Maven"), | ||
GRADLE ("Gradle"), | ||
ARTIFACTORY ("Artifactory"), | ||
FORTIFY ("Fortify"); | ||
|
||
private final String name; | ||
|
||
private ThirdPartyName(String name){ | ||
this.name = name; | ||
} | ||
|
||
public String getName(){ | ||
return this.name; | ||
} | ||
} |
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