mirror of
https://gitee.com/pengzhile/atlassian-agent.git
synced 2023-02-28 12:37:36 +00:00
plugin add datacenter property
Signed-off-by: pengzhile <pengzhile@gmail.com>
This commit is contained in:
@@ -5,6 +5,7 @@ import io.zhile.crack.atlassian.license.LicenseProperty;
|
||||
import io.zhile.crack.atlassian.license.products.*;
|
||||
import org.apache.commons.cli.*;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -120,22 +121,22 @@ public class Usage {
|
||||
property = new TeamCalendars(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
break;
|
||||
case "bamboo":
|
||||
property = new Bamboo(contactName, contactEMail, serverID, organisation);
|
||||
property = new Bamboo(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
break;
|
||||
case "bitbucket":
|
||||
property = new Bitbucket(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
break;
|
||||
case "fisheye":
|
||||
property = new FishEye(contactName, contactEMail, serverID, organisation);
|
||||
property = new FishEye(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
break;
|
||||
case "crucible":
|
||||
property = new Crucible(contactName, contactEMail, serverID, organisation);
|
||||
property = new Crucible(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
break;
|
||||
case "crowd":
|
||||
property = new Crowd(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
break;
|
||||
case "jc":
|
||||
property = new JIRACore(contactName, contactEMail, serverID, organisation);
|
||||
property = new JIRACore(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
break;
|
||||
case "portfolio":
|
||||
property = new Portfolio(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
@@ -144,13 +145,13 @@ public class Usage {
|
||||
property = new JIRAServiceDesk(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
break;
|
||||
case "training":
|
||||
property = new Training(contactName, contactEMail, serverID, organisation);
|
||||
property = new Training(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
break;
|
||||
case "capture":
|
||||
property = new Capture(contactName, contactEMail, serverID, organisation);
|
||||
property = new Capture(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
break;
|
||||
default:
|
||||
property = new ThirdPlugin(contactName, contactEMail, serverID, organisation);
|
||||
property = new ThirdPlugin(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
((ThirdPlugin) property).setProductName(product);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -30,10 +30,6 @@ abstract public class LicenseProperty {
|
||||
this.dataCenter = dataCenter;
|
||||
}
|
||||
|
||||
public LicenseProperty(String contactName, String contactEMail, String serverID, String organisation) {
|
||||
this(contactName, contactEMail, serverID, organisation, false);
|
||||
}
|
||||
|
||||
public void init() {
|
||||
Date expiryDate = new Date(3771590399000L);
|
||||
String licenseId = "L" + System.currentTimeMillis();
|
||||
|
||||
@@ -9,8 +9,8 @@ import io.zhile.crack.atlassian.license.LicenseProperty;
|
||||
* @link https://zhile.io
|
||||
*/
|
||||
public class Bamboo extends LicenseProperty {
|
||||
public Bamboo(String contactName, String contactEMail, String serverID, String organisation) {
|
||||
super(contactName, contactEMail, serverID, organisation);
|
||||
public Bamboo(String contactName, String contactEMail, String serverID, String organisation, boolean dataCenter) {
|
||||
super(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -30,7 +30,7 @@ public class Bamboo extends LicenseProperty {
|
||||
|
||||
@Override
|
||||
public void setNumberOfUsers(int numberOfUsers) {
|
||||
//
|
||||
// disabled
|
||||
}
|
||||
|
||||
public void setLicenseEdition(LicenseEdition licenseEdition) {
|
||||
|
||||
@@ -12,10 +12,6 @@ public class Bitbucket extends LicenseProperty {
|
||||
super(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
}
|
||||
|
||||
public Bitbucket(String contactName, String contactEMail, String serverID, String organisation) {
|
||||
super(contactName, contactEMail, serverID, organisation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getProductName() {
|
||||
return "stash";
|
||||
|
||||
@@ -6,8 +6,8 @@ package io.zhile.crack.atlassian.license.products;
|
||||
* @link https://zhile.io
|
||||
*/
|
||||
public class Capture extends ThirdPlugin {
|
||||
public Capture(String contactName, String contactEMail, String serverID, String organisation) {
|
||||
super(contactName, contactEMail, serverID, organisation);
|
||||
public Capture(String contactName, String contactEMail, String serverID, String organisation, boolean dataCenter) {
|
||||
super(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
|
||||
setProductName("bonfire");
|
||||
}
|
||||
|
||||
@@ -12,10 +12,6 @@ public class Confluence extends LicenseProperty {
|
||||
super(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
}
|
||||
|
||||
public Confluence(String contactName, String contactEMail, String serverID, String organisation) {
|
||||
super(contactName, contactEMail, serverID, organisation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getProductName() {
|
||||
return "conf";
|
||||
|
||||
@@ -12,10 +12,6 @@ public class Crowd extends LicenseProperty {
|
||||
super(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
}
|
||||
|
||||
public Crowd(String contactName, String contactEMail, String serverID, String organisation) {
|
||||
super(contactName, contactEMail, serverID, organisation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getProductName() {
|
||||
return "crowd";
|
||||
|
||||
@@ -8,8 +8,8 @@ import io.zhile.crack.atlassian.license.LicenseProperty;
|
||||
* @link https://zhile.io
|
||||
*/
|
||||
public class Crucible extends LicenseProperty {
|
||||
public Crucible(String contactName, String contactEMail, String serverID, String organisation) {
|
||||
super(contactName, contactEMail, serverID, organisation);
|
||||
public Crucible(String contactName, String contactEMail, String serverID, String organisation, boolean dataCenter) {
|
||||
super(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -8,8 +8,8 @@ import io.zhile.crack.atlassian.license.LicenseProperty;
|
||||
* @link https://zhile.io
|
||||
*/
|
||||
public class FishEye extends LicenseProperty {
|
||||
public FishEye(String contactName, String contactEMail, String serverID, String organisation) {
|
||||
super(contactName, contactEMail, serverID, organisation);
|
||||
public FishEye(String contactName, String contactEMail, String serverID, String organisation, boolean dataCenter) {
|
||||
super(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -10,8 +10,8 @@ import io.zhile.crack.atlassian.license.LicenseType;
|
||||
* @link https://zhile.io
|
||||
*/
|
||||
public class JIRACore extends LicenseProperty {
|
||||
public JIRACore(String contactName, String contactEMail, String serverID, String organisation) {
|
||||
super(contactName, contactEMail, serverID, organisation);
|
||||
public JIRACore(String contactName, String contactEMail, String serverID, String organisation, boolean dataCenter) {
|
||||
super(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -13,10 +13,6 @@ public class JIRAServiceDesk extends LicenseProperty {
|
||||
super(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
}
|
||||
|
||||
public JIRAServiceDesk(String contactName, String contactEMail, String serverID, String organisation) {
|
||||
super(contactName, contactEMail, serverID, organisation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init() {
|
||||
super.init();
|
||||
|
||||
@@ -14,10 +14,6 @@ public class JIRASoftware extends LicenseProperty {
|
||||
super(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
}
|
||||
|
||||
public JIRASoftware(String contactName, String contactEMail, String serverID, String organisation) {
|
||||
super(contactName, contactEMail, serverID, organisation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init() {
|
||||
super.init();
|
||||
|
||||
@@ -12,10 +12,6 @@ abstract public class Plugin extends LicenseProperty {
|
||||
super(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
}
|
||||
|
||||
public Plugin(String contactName, String contactEMail, String serverID, String organisation) {
|
||||
super(contactName, contactEMail, serverID, organisation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init() {
|
||||
super.init();
|
||||
|
||||
@@ -10,10 +10,6 @@ public class Portfolio extends Plugin {
|
||||
super(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
}
|
||||
|
||||
public Portfolio(String contactName, String contactEMail, String serverID, String organisation) {
|
||||
super(contactName, contactEMail, serverID, organisation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getProductName() {
|
||||
return "com.radiantminds.roadmaps-jira";
|
||||
|
||||
@@ -10,10 +10,6 @@ public class Questions extends Plugin {
|
||||
super(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
}
|
||||
|
||||
public Questions(String contactName, String contactEMail, String serverID, String organisation) {
|
||||
super(contactName, contactEMail, serverID, organisation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getProductName() {
|
||||
return "com.atlassian.confluence.plugins.confluence-questions";
|
||||
|
||||
@@ -10,10 +10,6 @@ public class TeamCalendars extends Plugin {
|
||||
super(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
}
|
||||
|
||||
public TeamCalendars(String contactName, String contactEMail, String serverID, String organisation) {
|
||||
super(contactName, contactEMail, serverID, organisation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getProductName() {
|
||||
return "team_calendars";
|
||||
|
||||
@@ -10,8 +10,8 @@ import io.zhile.crack.atlassian.license.LicenseType;
|
||||
public class ThirdPlugin extends Plugin {
|
||||
protected String productName;
|
||||
|
||||
public ThirdPlugin(String contactName, String contactEMail, String serverID, String organisation) {
|
||||
super(contactName, contactEMail, serverID, organisation);
|
||||
public ThirdPlugin(String contactName, String contactEMail, String serverID, String organisation, boolean dataCenter) {
|
||||
super(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -6,8 +6,8 @@ package io.zhile.crack.atlassian.license.products;
|
||||
* @link https://zhile.io
|
||||
*/
|
||||
public class Training extends Plugin {
|
||||
public Training(String contactName, String contactEMail, String serverID, String organisation) {
|
||||
super(contactName, contactEMail, serverID, organisation);
|
||||
public Training(String contactName, String contactEMail, String serverID, String organisation, boolean dataCenter) {
|
||||
super(contactName, contactEMail, serverID, organisation, dataCenter);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user