diff --git a/geckoboard/pom.xml b/geckoboard/pom.xml new file mode 100644 index 0000000..4647919 --- /dev/null +++ b/geckoboard/pom.xml @@ -0,0 +1,46 @@ + + + 4.0.0 + com.eurotech.cloud + geckoboard + war + 4.2.6-SNAPSHOT + geckoboard Maven Webapp + http://maven.apache.org + + edc + edc + 4.2.6-SNAPSHOT + + + + com.eurotech.cloud + edc-client + 4.2.6-SNAPSHOT + + + com.sun.jersey + jersey-client + 1.12 + + + com.sun.jersey + jersey-server + 1.12 + + + com.sun.jersey + jersey-servlet + 1.12 + + + junit + junit + 3.8.1 + test + + + + geckoboard + + diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/Account.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/Account.java new file mode 100644 index 0000000..9b8b1c1 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/Account.java @@ -0,0 +1,170 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "account", + namespace = "http://eurotech.com/edc/2.0" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "account", + namespace = "http://eurotech.com/edc/2.0" +) +public class Account implements java.io.Serializable { + + private java.util.Date _createdOn; + private long _modifiedBy; + private long _id; + private java.lang.String _name; + private long _createdBy; + private int _optlock; + private com.eurotech.cloud.apis.v2.model.Organization _organization; + private java.util.Date _modifiedOn; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "createdOn", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Date getCreatedOn() { + return this._createdOn; + } + + /** + * (no documentation provided) + */ + public void setCreatedOn(java.util.Date _createdOn) { + this._createdOn = _createdOn; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "modifiedBy", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getModifiedBy() { + return this._modifiedBy; + } + + /** + * (no documentation provided) + */ + public void setModifiedBy(long _modifiedBy) { + this._modifiedBy = _modifiedBy; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "id", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getId() { + return this._id; + } + + /** + * (no documentation provided) + */ + public void setId(long _id) { + this._id = _id; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "name", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getName() { + return this._name; + } + + /** + * (no documentation provided) + */ + public void setName(java.lang.String _name) { + this._name = _name; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "createdBy", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getCreatedBy() { + return this._createdBy; + } + + /** + * (no documentation provided) + */ + public void setCreatedBy(long _createdBy) { + this._createdBy = _createdBy; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "optlock", + namespace = "http://eurotech.com/edc/2.0" + ) + public int getOptlock() { + return this._optlock; + } + + /** + * (no documentation provided) + */ + public void setOptlock(int _optlock) { + this._optlock = _optlock; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "organization", + namespace = "http://eurotech.com/edc/2.0" + ) + public com.eurotech.cloud.apis.v2.model.Organization getOrganization() { + return this._organization; + } + + /** + * (no documentation provided) + */ + public void setOrganization(com.eurotech.cloud.apis.v2.model.Organization _organization) { + this._organization = _organization; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "modifiedOn", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Date getModifiedOn() { + return this._modifiedOn; + } + + /** + * (no documentation provided) + */ + public void setModifiedOn(java.util.Date _modifiedOn) { + this._modifiedOn = _modifiedOn; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/AccountCreator.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/AccountCreator.java new file mode 100644 index 0000000..d033189 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/AccountCreator.java @@ -0,0 +1,398 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "accountCreator", + namespace = "http://eurotech.com/edc/2.0" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "accountCreator", + namespace = "http://eurotech.com/edc/2.0" +) +public class AccountCreator implements java.io.Serializable { + + private java.lang.String _organizationCountry; + private java.lang.String _organizationZipPostCode; + private java.lang.String _organizationStateProvinceCounty; + private java.lang.String _organizationAddressLine2; + private java.lang.String _accountPassword; + private java.util.Date _expirationDate; + private boolean _dataStorageEnabled; + private int _rulesAssistantId; + private java.lang.String _organizationPhoneNumber; + private int _dataTimeToLive; + private java.lang.String _organizationCity; + private java.lang.String _organizationEmail; + private java.lang.String _brokerUrl; + private java.lang.String _organizationAddressLine1; + private long _rxByteLimit; + private long _txByteLimit; + private java.lang.String _organizationName; + private int _maxNumberOfDevices; + private int _maxNumberOfRules; + private java.lang.String _accountName; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "organizationCountry", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getOrganizationCountry() { + return this._organizationCountry; + } + + /** + * (no documentation provided) + */ + public void setOrganizationCountry(java.lang.String _organizationCountry) { + this._organizationCountry = _organizationCountry; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "organizationZipPostCode", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getOrganizationZipPostCode() { + return this._organizationZipPostCode; + } + + /** + * (no documentation provided) + */ + public void setOrganizationZipPostCode(java.lang.String _organizationZipPostCode) { + this._organizationZipPostCode = _organizationZipPostCode; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "organizationStateProvinceCounty", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getOrganizationStateProvinceCounty() { + return this._organizationStateProvinceCounty; + } + + /** + * (no documentation provided) + */ + public void setOrganizationStateProvinceCounty(java.lang.String _organizationStateProvinceCounty) { + this._organizationStateProvinceCounty = _organizationStateProvinceCounty; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "organizationAddressLine2", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getOrganizationAddressLine2() { + return this._organizationAddressLine2; + } + + /** + * (no documentation provided) + */ + public void setOrganizationAddressLine2(java.lang.String _organizationAddressLine2) { + this._organizationAddressLine2 = _organizationAddressLine2; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "accountPassword", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getAccountPassword() { + return this._accountPassword; + } + + /** + * (no documentation provided) + */ + public void setAccountPassword(java.lang.String _accountPassword) { + this._accountPassword = _accountPassword; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "expirationDate", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Date getExpirationDate() { + return this._expirationDate; + } + + /** + * (no documentation provided) + */ + public void setExpirationDate(java.util.Date _expirationDate) { + this._expirationDate = _expirationDate; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "dataStorageEnabled", + namespace = "http://eurotech.com/edc/2.0" + ) + public boolean getDataStorageEnabled() { + return this._dataStorageEnabled; + } + + /** + * (no documentation provided) + */ + public void setDataStorageEnabled(boolean _dataStorageEnabled) { + this._dataStorageEnabled = _dataStorageEnabled; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "rulesAssistantId", + namespace = "http://eurotech.com/edc/2.0" + ) + public int getRulesAssistantId() { + return this._rulesAssistantId; + } + + /** + * (no documentation provided) + */ + public void setRulesAssistantId(int _rulesAssistantId) { + this._rulesAssistantId = _rulesAssistantId; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "organizationPhoneNumber", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getOrganizationPhoneNumber() { + return this._organizationPhoneNumber; + } + + /** + * (no documentation provided) + */ + public void setOrganizationPhoneNumber(java.lang.String _organizationPhoneNumber) { + this._organizationPhoneNumber = _organizationPhoneNumber; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "dataTimeToLive", + namespace = "http://eurotech.com/edc/2.0" + ) + public int getDataTimeToLive() { + return this._dataTimeToLive; + } + + /** + * (no documentation provided) + */ + public void setDataTimeToLive(int _dataTimeToLive) { + this._dataTimeToLive = _dataTimeToLive; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "organizationCity", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getOrganizationCity() { + return this._organizationCity; + } + + /** + * (no documentation provided) + */ + public void setOrganizationCity(java.lang.String _organizationCity) { + this._organizationCity = _organizationCity; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "organizationEmail", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getOrganizationEmail() { + return this._organizationEmail; + } + + /** + * (no documentation provided) + */ + public void setOrganizationEmail(java.lang.String _organizationEmail) { + this._organizationEmail = _organizationEmail; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "brokerUrl", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getBrokerUrl() { + return this._brokerUrl; + } + + /** + * (no documentation provided) + */ + public void setBrokerUrl(java.lang.String _brokerUrl) { + this._brokerUrl = _brokerUrl; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "organizationAddressLine1", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getOrganizationAddressLine1() { + return this._organizationAddressLine1; + } + + /** + * (no documentation provided) + */ + public void setOrganizationAddressLine1(java.lang.String _organizationAddressLine1) { + this._organizationAddressLine1 = _organizationAddressLine1; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "rxByteLimit", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getRxByteLimit() { + return this._rxByteLimit; + } + + /** + * (no documentation provided) + */ + public void setRxByteLimit(long _rxByteLimit) { + this._rxByteLimit = _rxByteLimit; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "txByteLimit", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getTxByteLimit() { + return this._txByteLimit; + } + + /** + * (no documentation provided) + */ + public void setTxByteLimit(long _txByteLimit) { + this._txByteLimit = _txByteLimit; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "organizationName", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getOrganizationName() { + return this._organizationName; + } + + /** + * (no documentation provided) + */ + public void setOrganizationName(java.lang.String _organizationName) { + this._organizationName = _organizationName; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "maxNumberOfDevices", + namespace = "http://eurotech.com/edc/2.0" + ) + public int getMaxNumberOfDevices() { + return this._maxNumberOfDevices; + } + + /** + * (no documentation provided) + */ + public void setMaxNumberOfDevices(int _maxNumberOfDevices) { + this._maxNumberOfDevices = _maxNumberOfDevices; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "maxNumberOfRules", + namespace = "http://eurotech.com/edc/2.0" + ) + public int getMaxNumberOfRules() { + return this._maxNumberOfRules; + } + + /** + * (no documentation provided) + */ + public void setMaxNumberOfRules(int _maxNumberOfRules) { + this._maxNumberOfRules = _maxNumberOfRules; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "accountName", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getAccountName() { + return this._accountName; + } + + /** + * (no documentation provided) + */ + public void setAccountName(java.lang.String _accountName) { + this._accountName = _accountName; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/AccountProvisioningStatus.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/AccountProvisioningStatus.java new file mode 100644 index 0000000..c4cf179 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/AccountProvisioningStatus.java @@ -0,0 +1,44 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "accountProvisioningStatus", + namespace = "http://eurotech.com/edc/2.0" +) +@javax.xml.bind.annotation.XmlEnum ( + java.lang.String.class +) +public enum AccountProvisioningStatus { + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlEnumValue ( "WAITING_TO_START" ) + WAITING_TO_START("WAITING_TO_START"), + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlEnumValue ( "IN_PROGRESS" ) + IN_PROGRESS("IN_PROGRESS"), + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlEnumValue ( "COMPLETED" ) + COMPLETED("COMPLETED"); + + private final String value; + + private AccountProvisioningStatus(String value) { + this.value = value; + } + + public String toString() { + return value; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/AccountServicePlan.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/AccountServicePlan.java new file mode 100644 index 0000000..63f2e23 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/AccountServicePlan.java @@ -0,0 +1,303 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "accountServicePlan", + namespace = "http://eurotech.com/edc/2.0" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "servicePlan", + namespace = "http://eurotech.com/edc/2.0" +) +public class AccountServicePlan implements java.io.Serializable { + + private java.util.Date _expirationDate; + private int _maxNumberOfDevices; + private int _maxNumberOfRules; + private long _createdBy; + private com.eurotech.cloud.apis.v2.model.AccountProvisioningStatus _provisioningStatus; + private long _modifiedBy; + private boolean _atDeviceLimit; + private java.util.Date _createdOn; + private java.util.Date _modifiedOn; + private long _txByteLimit; + private boolean _dataStorageEnabled; + private long _accountId; + private int _dataTimeToLive; + private long _rxByteLimit; + private com.eurotech.cloud.apis.v2.model.AccountStatus _status; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "expirationDate", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Date getExpirationDate() { + return this._expirationDate; + } + + /** + * (no documentation provided) + */ + public void setExpirationDate(java.util.Date _expirationDate) { + this._expirationDate = _expirationDate; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "maxNumberOfDevices", + namespace = "http://eurotech.com/edc/2.0" + ) + public int getMaxNumberOfDevices() { + return this._maxNumberOfDevices; + } + + /** + * (no documentation provided) + */ + public void setMaxNumberOfDevices(int _maxNumberOfDevices) { + this._maxNumberOfDevices = _maxNumberOfDevices; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "maxNumberOfRules", + namespace = "http://eurotech.com/edc/2.0" + ) + public int getMaxNumberOfRules() { + return this._maxNumberOfRules; + } + + /** + * (no documentation provided) + */ + public void setMaxNumberOfRules(int _maxNumberOfRules) { + this._maxNumberOfRules = _maxNumberOfRules; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "createdBy", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getCreatedBy() { + return this._createdBy; + } + + /** + * (no documentation provided) + */ + public void setCreatedBy(long _createdBy) { + this._createdBy = _createdBy; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "provisioningStatus", + namespace = "http://eurotech.com/edc/2.0" + ) + public com.eurotech.cloud.apis.v2.model.AccountProvisioningStatus getProvisioningStatus() { + return this._provisioningStatus; + } + + /** + * (no documentation provided) + */ + public void setProvisioningStatus(com.eurotech.cloud.apis.v2.model.AccountProvisioningStatus _provisioningStatus) { + this._provisioningStatus = _provisioningStatus; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "modifiedBy", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getModifiedBy() { + return this._modifiedBy; + } + + /** + * (no documentation provided) + */ + public void setModifiedBy(long _modifiedBy) { + this._modifiedBy = _modifiedBy; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "atDeviceLimit", + namespace = "http://eurotech.com/edc/2.0" + ) + public boolean getAtDeviceLimit() { + return this._atDeviceLimit; + } + + /** + * (no documentation provided) + */ + public void setAtDeviceLimit(boolean _atDeviceLimit) { + this._atDeviceLimit = _atDeviceLimit; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "createdOn", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Date getCreatedOn() { + return this._createdOn; + } + + /** + * (no documentation provided) + */ + public void setCreatedOn(java.util.Date _createdOn) { + this._createdOn = _createdOn; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "modifiedOn", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Date getModifiedOn() { + return this._modifiedOn; + } + + /** + * (no documentation provided) + */ + public void setModifiedOn(java.util.Date _modifiedOn) { + this._modifiedOn = _modifiedOn; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "txByteLimit", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getTxByteLimit() { + return this._txByteLimit; + } + + /** + * (no documentation provided) + */ + public void setTxByteLimit(long _txByteLimit) { + this._txByteLimit = _txByteLimit; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "dataStorageEnabled", + namespace = "http://eurotech.com/edc/2.0" + ) + public boolean getDataStorageEnabled() { + return this._dataStorageEnabled; + } + + /** + * (no documentation provided) + */ + public void setDataStorageEnabled(boolean _dataStorageEnabled) { + this._dataStorageEnabled = _dataStorageEnabled; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "accountId", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getAccountId() { + return this._accountId; + } + + /** + * (no documentation provided) + */ + public void setAccountId(long _accountId) { + this._accountId = _accountId; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "dataTimeToLive", + namespace = "http://eurotech.com/edc/2.0" + ) + public int getDataTimeToLive() { + return this._dataTimeToLive; + } + + /** + * (no documentation provided) + */ + public void setDataTimeToLive(int _dataTimeToLive) { + this._dataTimeToLive = _dataTimeToLive; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "rxByteLimit", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getRxByteLimit() { + return this._rxByteLimit; + } + + /** + * (no documentation provided) + */ + public void setRxByteLimit(long _rxByteLimit) { + this._rxByteLimit = _rxByteLimit; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "status", + namespace = "http://eurotech.com/edc/2.0" + ) + public com.eurotech.cloud.apis.v2.model.AccountStatus getStatus() { + return this._status; + } + + /** + * (no documentation provided) + */ + public void setStatus(com.eurotech.cloud.apis.v2.model.AccountStatus _status) { + this._status = _status; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/AccountStatus.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/AccountStatus.java new file mode 100644 index 0000000..0fd14e3 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/AccountStatus.java @@ -0,0 +1,44 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "accountStatus", + namespace = "http://eurotech.com/edc/2.0" +) +@javax.xml.bind.annotation.XmlEnum ( + java.lang.String.class +) +public enum AccountStatus { + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlEnumValue ( "BEING_PROVISIONED" ) + BEING_PROVISIONED("BEING_PROVISIONED"), + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlEnumValue ( "ENABLED" ) + ENABLED("ENABLED"), + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlEnumValue ( "DISABLED" ) + DISABLED("DISABLED"); + + private final String value; + + private AccountStatus(String value) { + this.value = value; + } + + public String toString() { + return value; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/AssetsResult.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/AssetsResult.java new file mode 100644 index 0000000..8692921 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/AssetsResult.java @@ -0,0 +1,37 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "assetsResult", + namespace = "" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "assetsResult", + namespace = "" +) +public class AssetsResult implements java.io.Serializable { + + private java.util.List _assets; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "assetInfo", + namespace = "" + ) + public java.util.List getAssets() { + return this._assets; + } + + /** + * (no documentation provided) + */ + public void setAssets(java.util.List _assets) { + this._assets = _assets; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/Device.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/Device.java new file mode 100644 index 0000000..a2c7f63 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/Device.java @@ -0,0 +1,455 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "device", + namespace = "http://eurotech.com/edc/2.0" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "device", + namespace = "http://eurotech.com/edc/2.0" +) +public class Device implements java.io.Serializable { + + private java.lang.String _os; + private java.lang.String _firmwareVersion; + private long _uptime; + private java.lang.String _modelName; + private java.lang.String _jvmProfile; + private java.lang.String _accountName; + private java.lang.String _displayName; + private java.util.Date _lastEventOn; + private java.lang.String _partNumber; + private java.lang.Double _gpsLatitude; + private java.lang.String _jvmVersion; + private java.lang.String _jvmName; + private java.lang.String _modelId; + private java.lang.String _biosVersion; + private java.lang.String _osVersion; + private java.lang.Double _gpsLongitude; + private java.lang.String _connectionIp; + private com.eurotech.cloud.apis.v2.model.DeviceStatus _status; + private java.lang.String _serialNumber; + private java.lang.String _connectionInterface; + private java.lang.Double _gpsAltitude; + private java.lang.String _clientId; + private java.lang.String _lastEventType; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "os", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getOs() { + return this._os; + } + + /** + * (no documentation provided) + */ + public void setOs(java.lang.String _os) { + this._os = _os; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "firmwareVersion", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getFirmwareVersion() { + return this._firmwareVersion; + } + + /** + * (no documentation provided) + */ + public void setFirmwareVersion(java.lang.String _firmwareVersion) { + this._firmwareVersion = _firmwareVersion; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "uptime", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getUptime() { + return this._uptime; + } + + /** + * (no documentation provided) + */ + public void setUptime(long _uptime) { + this._uptime = _uptime; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "modelName", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getModelName() { + return this._modelName; + } + + /** + * (no documentation provided) + */ + public void setModelName(java.lang.String _modelName) { + this._modelName = _modelName; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "jvmProfile", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getJvmProfile() { + return this._jvmProfile; + } + + /** + * (no documentation provided) + */ + public void setJvmProfile(java.lang.String _jvmProfile) { + this._jvmProfile = _jvmProfile; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "accountName", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getAccountName() { + return this._accountName; + } + + /** + * (no documentation provided) + */ + public void setAccountName(java.lang.String _accountName) { + this._accountName = _accountName; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "displayName", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getDisplayName() { + return this._displayName; + } + + /** + * (no documentation provided) + */ + public void setDisplayName(java.lang.String _displayName) { + this._displayName = _displayName; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "lastEventOn", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Date getLastEventOn() { + return this._lastEventOn; + } + + /** + * (no documentation provided) + */ + public void setLastEventOn(java.util.Date _lastEventOn) { + this._lastEventOn = _lastEventOn; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "partNumber", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getPartNumber() { + return this._partNumber; + } + + /** + * (no documentation provided) + */ + public void setPartNumber(java.lang.String _partNumber) { + this._partNumber = _partNumber; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "gpsLatitude", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.Double getGpsLatitude() { + return this._gpsLatitude; + } + + /** + * (no documentation provided) + */ + public void setGpsLatitude(java.lang.Double _gpsLatitude) { + this._gpsLatitude = _gpsLatitude; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "jvmVersion", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getJvmVersion() { + return this._jvmVersion; + } + + /** + * (no documentation provided) + */ + public void setJvmVersion(java.lang.String _jvmVersion) { + this._jvmVersion = _jvmVersion; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "jvmName", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getJvmName() { + return this._jvmName; + } + + /** + * (no documentation provided) + */ + public void setJvmName(java.lang.String _jvmName) { + this._jvmName = _jvmName; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "modelId", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getModelId() { + return this._modelId; + } + + /** + * (no documentation provided) + */ + public void setModelId(java.lang.String _modelId) { + this._modelId = _modelId; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "biosVersion", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getBiosVersion() { + return this._biosVersion; + } + + /** + * (no documentation provided) + */ + public void setBiosVersion(java.lang.String _biosVersion) { + this._biosVersion = _biosVersion; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "osVersion", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getOsVersion() { + return this._osVersion; + } + + /** + * (no documentation provided) + */ + public void setOsVersion(java.lang.String _osVersion) { + this._osVersion = _osVersion; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "gpsLongitude", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.Double getGpsLongitude() { + return this._gpsLongitude; + } + + /** + * (no documentation provided) + */ + public void setGpsLongitude(java.lang.Double _gpsLongitude) { + this._gpsLongitude = _gpsLongitude; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "connectionIp", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getConnectionIp() { + return this._connectionIp; + } + + /** + * (no documentation provided) + */ + public void setConnectionIp(java.lang.String _connectionIp) { + this._connectionIp = _connectionIp; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "status", + namespace = "http://eurotech.com/edc/2.0" + ) + public com.eurotech.cloud.apis.v2.model.DeviceStatus getStatus() { + return this._status; + } + + /** + * (no documentation provided) + */ + public void setStatus(com.eurotech.cloud.apis.v2.model.DeviceStatus _status) { + this._status = _status; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "serialNumber", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getSerialNumber() { + return this._serialNumber; + } + + /** + * (no documentation provided) + */ + public void setSerialNumber(java.lang.String _serialNumber) { + this._serialNumber = _serialNumber; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "connectionInterface", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getConnectionInterface() { + return this._connectionInterface; + } + + /** + * (no documentation provided) + */ + public void setConnectionInterface(java.lang.String _connectionInterface) { + this._connectionInterface = _connectionInterface; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "gpsAltitude", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.Double getGpsAltitude() { + return this._gpsAltitude; + } + + /** + * (no documentation provided) + */ + public void setGpsAltitude(java.lang.Double _gpsAltitude) { + this._gpsAltitude = _gpsAltitude; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "clientId", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getClientId() { + return this._clientId; + } + + /** + * (no documentation provided) + */ + public void setClientId(java.lang.String _clientId) { + this._clientId = _clientId; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "lastEventType", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getLastEventType() { + return this._lastEventType; + } + + /** + * (no documentation provided) + */ + public void setLastEventType(java.lang.String _lastEventType) { + this._lastEventType = _lastEventType; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/DeviceCountResult.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/DeviceCountResult.java new file mode 100644 index 0000000..e2505be --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/DeviceCountResult.java @@ -0,0 +1,37 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "deviceCountResult", + namespace = "" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "deviceCountResult", + namespace = "" +) +public class DeviceCountResult implements java.io.Serializable { + + private long _count; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "count", + namespace = "" + ) + public long getCount() { + return this._count; + } + + /** + * (no documentation provided) + */ + public void setCount(long _count) { + this._count = _count; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/DeviceEvent.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/DeviceEvent.java new file mode 100644 index 0000000..701e3c0 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/DeviceEvent.java @@ -0,0 +1,151 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "deviceEvent", + namespace = "http://eurotech.com/edc/2.0" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "deviceEvent", + namespace = "http://eurotech.com/edc/2.0" +) +public class DeviceEvent implements java.io.Serializable { + + private java.lang.String _eventType; + private java.lang.String _clientId; + private java.lang.String _eventMessage; + private java.util.Date _sentOn; + private com.eurotech.cloud.apis.v2.model.EdcPosition _position; + private java.lang.String _accountName; + private java.util.Date _receivedOn; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "eventType", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getEventType() { + return this._eventType; + } + + /** + * (no documentation provided) + */ + public void setEventType(java.lang.String _eventType) { + this._eventType = _eventType; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "clientId", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getClientId() { + return this._clientId; + } + + /** + * (no documentation provided) + */ + public void setClientId(java.lang.String _clientId) { + this._clientId = _clientId; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "eventMessage", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getEventMessage() { + return this._eventMessage; + } + + /** + * (no documentation provided) + */ + public void setEventMessage(java.lang.String _eventMessage) { + this._eventMessage = _eventMessage; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "sentOn", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Date getSentOn() { + return this._sentOn; + } + + /** + * (no documentation provided) + */ + public void setSentOn(java.util.Date _sentOn) { + this._sentOn = _sentOn; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "position", + namespace = "http://eurotech.com/edc/2.0" + ) + public com.eurotech.cloud.apis.v2.model.EdcPosition getPosition() { + return this._position; + } + + /** + * (no documentation provided) + */ + public void setPosition(com.eurotech.cloud.apis.v2.model.EdcPosition _position) { + this._position = _position; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "accountName", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getAccountName() { + return this._accountName; + } + + /** + * (no documentation provided) + */ + public void setAccountName(java.lang.String _accountName) { + this._accountName = _accountName; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "receivedOn", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Date getReceivedOn() { + return this._receivedOn; + } + + /** + * (no documentation provided) + */ + public void setReceivedOn(java.util.Date _receivedOn) { + this._receivedOn = _receivedOn; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/DeviceEventsResult.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/DeviceEventsResult.java new file mode 100644 index 0000000..93fe00d --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/DeviceEventsResult.java @@ -0,0 +1,37 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "deviceEventsResult", + namespace = "" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "deviceEventsResult", + namespace = "" +) +public class DeviceEventsResult implements java.io.Serializable { + + private java.util.List _deviceEvents; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "deviceEvent", + namespace = "" + ) + public java.util.List getDeviceEvents() { + return this._deviceEvents; + } + + /** + * (no documentation provided) + */ + public void setDeviceEvents(java.util.List _deviceEvents) { + this._deviceEvents = _deviceEvents; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/DeviceStatus.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/DeviceStatus.java new file mode 100644 index 0000000..c3d9d1b --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/DeviceStatus.java @@ -0,0 +1,44 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "deviceStatus", + namespace = "http://eurotech.com/edc/2.0" +) +@javax.xml.bind.annotation.XmlEnum ( + java.lang.String.class +) +public enum DeviceStatus { + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlEnumValue ( "CONNECTED" ) + CONNECTED("CONNECTED"), + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlEnumValue ( "DISCONNECTED" ) + DISCONNECTED("DISCONNECTED"), + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlEnumValue ( "MISSING" ) + MISSING("MISSING"); + + private final String value; + + private DeviceStatus(String value) { + this.value = value; + } + + public String toString() { + return value; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/DevicesResult.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/DevicesResult.java new file mode 100644 index 0000000..3478493 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/DevicesResult.java @@ -0,0 +1,37 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "devicesResult", + namespace = "" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "devicesResult", + namespace = "" +) +public class DevicesResult implements java.io.Serializable { + + private java.util.List _devices; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "device", + namespace = "" + ) + public java.util.List getDevices() { + return this._devices; + } + + /** + * (no documentation provided) + */ + public void setDevices(java.util.List _devices) { + this._devices = _devices; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcAssetInfo.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcAssetInfo.java new file mode 100644 index 0000000..091925f --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcAssetInfo.java @@ -0,0 +1,56 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "edcAssetInfo", + namespace = "" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "assetInfo", + namespace = "" +) +public class EdcAssetInfo implements java.io.Serializable { + + private java.lang.String _asset; + private java.util.Date _lastMessageTimestamp; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "asset", + namespace = "" + ) + public java.lang.String getAsset() { + return this._asset; + } + + /** + * (no documentation provided) + */ + public void setAsset(java.lang.String _asset) { + this._asset = _asset; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "lastMessageOn", + namespace = "" + ) + public java.util.Date getLastMessageTimestamp() { + return this._lastMessageTimestamp; + } + + /** + * (no documentation provided) + */ + public void setLastMessageTimestamp(java.util.Date _lastMessageTimestamp) { + this._lastMessageTimestamp = _lastMessageTimestamp; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcMessage.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcMessage.java new file mode 100644 index 0000000..b738c39 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcMessage.java @@ -0,0 +1,75 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "edcMessage", + namespace = "" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "message", + namespace = "" +) +public class EdcMessage implements java.io.Serializable { + + private com.eurotech.cloud.apis.v2.model.EdcPayload _edcPayload; + private java.lang.String _topic; + private java.util.Date _timestamp; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "payload", + namespace = "" + ) + public com.eurotech.cloud.apis.v2.model.EdcPayload getEdcPayload() { + return this._edcPayload; + } + + /** + * (no documentation provided) + */ + public void setEdcPayload(com.eurotech.cloud.apis.v2.model.EdcPayload _edcPayload) { + this._edcPayload = _edcPayload; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "topic", + namespace = "" + ) + public java.lang.String getTopic() { + return this._topic; + } + + /** + * (no documentation provided) + */ + public void setTopic(java.lang.String _topic) { + this._topic = _topic; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "receivedOn", + namespace = "" + ) + public java.util.Date getTimestamp() { + return this._timestamp; + } + + /** + * (no documentation provided) + */ + public void setTimestamp(java.util.Date _timestamp) { + this._timestamp = _timestamp; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcMetric.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcMetric.java new file mode 100644 index 0000000..2384f29 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcMetric.java @@ -0,0 +1,75 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "edcMetric", + namespace = "" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "metric", + namespace = "" +) +public class EdcMetric implements java.io.Serializable { + + private java.lang.String _type; + private java.lang.String _value; + private java.lang.String _name; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "type", + namespace = "" + ) + public java.lang.String getType() { + return this._type; + } + + /** + * (no documentation provided) + */ + public void setType(java.lang.String _type) { + this._type = _type; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "value", + namespace = "" + ) + public java.lang.String getValue() { + return this._value; + } + + /** + * (no documentation provided) + */ + public void setValue(java.lang.String _value) { + this._value = _value; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "name", + namespace = "" + ) + public java.lang.String getName() { + return this._name; + } + + /** + * (no documentation provided) + */ + public void setName(java.lang.String _name) { + this._name = _name; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcMetricsMapType.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcMetricsMapType.java new file mode 100644 index 0000000..c14513a --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcMetricsMapType.java @@ -0,0 +1,33 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "edcMetricsMapType", + namespace = "" +) +public class EdcMetricsMapType implements java.io.Serializable { + + private java.util.List _metrics; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "metric", + namespace = "" + ) + public java.util.List getMetrics() { + return this._metrics; + } + + /** + * (no documentation provided) + */ + public void setMetrics(java.util.List _metrics) { + this._metrics = _metrics; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcPayload.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcPayload.java new file mode 100644 index 0000000..fdcaaa2 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcPayload.java @@ -0,0 +1,95 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "edcPayload", + namespace = "" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "payload", + namespace = "" +) +public class EdcPayload implements java.io.Serializable { + + private java.util.Date _timestamp; + private byte[] _body; + private com.eurotech.cloud.apis.v2.model.EdcPosition _position; + private com.eurotech.cloud.apis.v2.model.EdcMetricsMapType _metrics; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "sentOn", + namespace = "" + ) + public java.util.Date getTimestamp() { + return this._timestamp; + } + + /** + * (no documentation provided) + */ + public void setTimestamp(java.util.Date _timestamp) { + this._timestamp = _timestamp; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "body", + namespace = "" + ) + @javax.xml.bind.annotation.XmlInlineBinaryData + public byte[] getBody() { + return this._body; + } + + /** + * (no documentation provided) + */ + public void setBody(byte[] _body) { + this._body = _body; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "position", + namespace = "" + ) + public com.eurotech.cloud.apis.v2.model.EdcPosition getPosition() { + return this._position; + } + + /** + * (no documentation provided) + */ + public void setPosition(com.eurotech.cloud.apis.v2.model.EdcPosition _position) { + this._position = _position; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "metrics", + namespace = "" + ) + public com.eurotech.cloud.apis.v2.model.EdcMetricsMapType getMetrics() { + return this._metrics; + } + + /** + * (no documentation provided) + */ + public void setMetrics(com.eurotech.cloud.apis.v2.model.EdcMetricsMapType _metrics) { + this._metrics = _metrics; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcPosition.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcPosition.java new file mode 100644 index 0000000..1619899 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcPosition.java @@ -0,0 +1,189 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "edcPosition", + namespace = "" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "position", + namespace = "" +) +public class EdcPosition implements java.io.Serializable { + + private java.lang.Double _latitude; + private java.lang.Double _heading; + private java.lang.Double _altitude; + private java.util.Date _timestamp; + private java.lang.Double _longitude; + private java.lang.Integer _satellites; + private java.lang.Double _precision; + private java.lang.Double _speed; + private java.lang.Integer _status; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "latitude", + namespace = "" + ) + public java.lang.Double getLatitude() { + return this._latitude; + } + + /** + * (no documentation provided) + */ + public void setLatitude(java.lang.Double _latitude) { + this._latitude = _latitude; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "heading", + namespace = "" + ) + public java.lang.Double getHeading() { + return this._heading; + } + + /** + * (no documentation provided) + */ + public void setHeading(java.lang.Double _heading) { + this._heading = _heading; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "altitude", + namespace = "" + ) + public java.lang.Double getAltitude() { + return this._altitude; + } + + /** + * (no documentation provided) + */ + public void setAltitude(java.lang.Double _altitude) { + this._altitude = _altitude; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "timestamp", + namespace = "" + ) + public java.util.Date getTimestamp() { + return this._timestamp; + } + + /** + * (no documentation provided) + */ + public void setTimestamp(java.util.Date _timestamp) { + this._timestamp = _timestamp; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "longitude", + namespace = "" + ) + public java.lang.Double getLongitude() { + return this._longitude; + } + + /** + * (no documentation provided) + */ + public void setLongitude(java.lang.Double _longitude) { + this._longitude = _longitude; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "satellites", + namespace = "" + ) + public java.lang.Integer getSatellites() { + return this._satellites; + } + + /** + * (no documentation provided) + */ + public void setSatellites(java.lang.Integer _satellites) { + this._satellites = _satellites; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "precision", + namespace = "" + ) + public java.lang.Double getPrecision() { + return this._precision; + } + + /** + * (no documentation provided) + */ + public void setPrecision(java.lang.Double _precision) { + this._precision = _precision; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "speed", + namespace = "" + ) + public java.lang.Double getSpeed() { + return this._speed; + } + + /** + * (no documentation provided) + */ + public void setSpeed(java.lang.Double _speed) { + this._speed = _speed; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "status", + namespace = "" + ) + public java.lang.Integer getStatus() { + return this._status; + } + + /** + * (no documentation provided) + */ + public void setStatus(java.lang.Integer _status) { + this._status = _status; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcTopicInfo.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcTopicInfo.java new file mode 100644 index 0000000..269fc2b --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcTopicInfo.java @@ -0,0 +1,56 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "edcTopicInfo", + namespace = "" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "topicInfo", + namespace = "" +) +public class EdcTopicInfo implements java.io.Serializable { + + private java.lang.String _fullTopic; + private java.util.Date _lastMessageTimestamp; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "topic", + namespace = "" + ) + public java.lang.String getFullTopic() { + return this._fullTopic; + } + + /** + * (no documentation provided) + */ + public void setFullTopic(java.lang.String _fullTopic) { + this._fullTopic = _fullTopic; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "lastMessageOn", + namespace = "" + ) + public java.util.Date getLastMessageTimestamp() { + return this._lastMessageTimestamp; + } + + /** + * (no documentation provided) + */ + public void setLastMessageTimestamp(java.util.Date _lastMessageTimestamp) { + this._lastMessageTimestamp = _lastMessageTimestamp; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcUsageInfo.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcUsageInfo.java new file mode 100644 index 0000000..01b125b --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/EdcUsageInfo.java @@ -0,0 +1,91 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "edcUsageInfo", + namespace = "" +) +public class EdcUsageInfo implements java.io.Serializable { + + private java.util.Date _timestamp; + private java.lang.String _asset; + private java.lang.String _accountName; + private long _rxUsage; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "timestamp", + namespace = "" + ) + public java.util.Date getTimestamp() { + return this._timestamp; + } + + /** + * (no documentation provided) + */ + public void setTimestamp(java.util.Date _timestamp) { + this._timestamp = _timestamp; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "asset", + namespace = "" + ) + public java.lang.String getAsset() { + return this._asset; + } + + /** + * (no documentation provided) + */ + public void setAsset(java.lang.String _asset) { + this._asset = _asset; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "accountName", + namespace = "" + ) + public java.lang.String getAccountName() { + return this._accountName; + } + + /** + * (no documentation provided) + */ + public void setAccountName(java.lang.String _accountName) { + this._accountName = _accountName; + } + + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "rxUsage", + namespace = "" + ) + public long getRxUsage() { + return this._rxUsage; + } + + /** + * (no documentation provided) + */ + public void setRxUsage(long _rxUsage) { + this._rxUsage = _rxUsage; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/ErrorBean.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/ErrorBean.java new file mode 100644 index 0000000..cba6941 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/ErrorBean.java @@ -0,0 +1,75 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "errorBean", + namespace = "" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "error", + namespace = "" +) +public class ErrorBean implements java.io.Serializable { + + private int _code; + private java.lang.String _reason; + private java.lang.String _message; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "code", + namespace = "" + ) + public int getCode() { + return this._code; + } + + /** + * (no documentation provided) + */ + public void setCode(int _code) { + this._code = _code; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "reason", + namespace = "" + ) + public java.lang.String getReason() { + return this._reason; + } + + /** + * (no documentation provided) + */ + public void setReason(java.lang.String _reason) { + this._reason = _reason; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "message", + namespace = "" + ) + public java.lang.String getMessage() { + return this._message; + } + + /** + * (no documentation provided) + */ + public void setMessage(java.lang.String _message) { + this._message = _message; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/MessagesResult.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/MessagesResult.java new file mode 100644 index 0000000..e31fa08 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/MessagesResult.java @@ -0,0 +1,37 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "messagesResult", + namespace = "" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "messagesResult", + namespace = "" +) +public class MessagesResult implements java.io.Serializable { + + private java.util.List _messages; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "message", + namespace = "" + ) + public java.util.List getMessages() { + return this._messages; + } + + /** + * (no documentation provided) + */ + public void setMessages(java.util.List _messages) { + this._messages = _messages; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/MetricsResult.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/MetricsResult.java new file mode 100644 index 0000000..223a11d --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/MetricsResult.java @@ -0,0 +1,37 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "metricsResult", + namespace = "" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "metricsResult", + namespace = "" +) +public class MetricsResult implements java.io.Serializable { + + private java.util.List _metrics; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "metricInfo", + namespace = "" + ) + public java.util.List getMetrics() { + return this._metrics; + } + + /** + * (no documentation provided) + */ + public void setMetrics(java.util.List _metrics) { + this._metrics = _metrics; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/Organization.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/Organization.java new file mode 100644 index 0000000..eea8ac9 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/Organization.java @@ -0,0 +1,208 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "organization", + namespace = "http://eurotech.com/edc/2.0" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "organization", + namespace = "http://eurotech.com/edc/2.0" +) +public class Organization implements java.io.Serializable { + + private java.lang.String _stateProvinceCounty; + private java.lang.String _addressLine2; + private java.lang.String _addressLine1; + private java.lang.String _country; + private java.lang.String _addressLine3; + private java.lang.String _name; + private java.lang.String _city; + private java.lang.String _zipPostCode; + private java.lang.String _phoneNumber; + private java.lang.String _email; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "stateProvinceCounty", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getStateProvinceCounty() { + return this._stateProvinceCounty; + } + + /** + * (no documentation provided) + */ + public void setStateProvinceCounty(java.lang.String _stateProvinceCounty) { + this._stateProvinceCounty = _stateProvinceCounty; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "addressLine2", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getAddressLine2() { + return this._addressLine2; + } + + /** + * (no documentation provided) + */ + public void setAddressLine2(java.lang.String _addressLine2) { + this._addressLine2 = _addressLine2; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "addressLine1", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getAddressLine1() { + return this._addressLine1; + } + + /** + * (no documentation provided) + */ + public void setAddressLine1(java.lang.String _addressLine1) { + this._addressLine1 = _addressLine1; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "country", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getCountry() { + return this._country; + } + + /** + * (no documentation provided) + */ + public void setCountry(java.lang.String _country) { + this._country = _country; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "addressLine3", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getAddressLine3() { + return this._addressLine3; + } + + /** + * (no documentation provided) + */ + public void setAddressLine3(java.lang.String _addressLine3) { + this._addressLine3 = _addressLine3; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "name", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getName() { + return this._name; + } + + /** + * (no documentation provided) + */ + public void setName(java.lang.String _name) { + this._name = _name; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "city", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getCity() { + return this._city; + } + + /** + * (no documentation provided) + */ + public void setCity(java.lang.String _city) { + this._city = _city; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "zipPostCode", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getZipPostCode() { + return this._zipPostCode; + } + + /** + * (no documentation provided) + */ + public void setZipPostCode(java.lang.String _zipPostCode) { + this._zipPostCode = _zipPostCode; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "phoneNumber", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getPhoneNumber() { + return this._phoneNumber; + } + + /** + * (no documentation provided) + */ + public void setPhoneNumber(java.lang.String _phoneNumber) { + this._phoneNumber = _phoneNumber; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "email", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getEmail() { + return this._email; + } + + /** + * (no documentation provided) + */ + public void setEmail(java.lang.String _email) { + this._email = _email; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/Role.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/Role.java new file mode 100644 index 0000000..670be49 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/Role.java @@ -0,0 +1,212 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "role", + namespace = "http://eurotech.com/edc/2.0" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "role", + namespace = "http://eurotech.com/edc/2.0" +) +public class Role implements java.io.Serializable { + + private long _accountId; + private java.lang.String _tags; + private java.util.Set _permissions; + private long _createdBy; + private long _id; + private int _optlock; + private java.lang.String _name; + private java.util.Date _createdOn; + private java.util.Date _modifiedOn; + private long _modifiedBy; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "accountId", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getAccountId() { + return this._accountId; + } + + /** + * (no documentation provided) + */ + public void setAccountId(long _accountId) { + this._accountId = _accountId; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "tags", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getTags() { + return this._tags; + } + + /** + * (no documentation provided) + */ + public void setTags(java.lang.String _tags) { + this._tags = _tags; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "permission", + namespace = "http://eurotech.com/edc/2.0" + ) + @javax.xml.bind.annotation.XmlElementWrapper ( + name = "permissions", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Set getPermissions() { + return this._permissions; + } + + /** + * (no documentation provided) + */ + public void setPermissions(java.util.Set _permissions) { + this._permissions = _permissions; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "createdBy", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getCreatedBy() { + return this._createdBy; + } + + /** + * (no documentation provided) + */ + public void setCreatedBy(long _createdBy) { + this._createdBy = _createdBy; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "id", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getId() { + return this._id; + } + + /** + * (no documentation provided) + */ + public void setId(long _id) { + this._id = _id; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "optlock", + namespace = "http://eurotech.com/edc/2.0" + ) + public int getOptlock() { + return this._optlock; + } + + /** + * (no documentation provided) + */ + public void setOptlock(int _optlock) { + this._optlock = _optlock; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "name", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getName() { + return this._name; + } + + /** + * (no documentation provided) + */ + public void setName(java.lang.String _name) { + this._name = _name; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "createdOn", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Date getCreatedOn() { + return this._createdOn; + } + + /** + * (no documentation provided) + */ + public void setCreatedOn(java.util.Date _createdOn) { + this._createdOn = _createdOn; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "modifiedOn", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Date getModifiedOn() { + return this._modifiedOn; + } + + /** + * (no documentation provided) + */ + public void setModifiedOn(java.util.Date _modifiedOn) { + this._modifiedOn = _modifiedOn; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "modifiedBy", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getModifiedBy() { + return this._modifiedBy; + } + + /** + * (no documentation provided) + */ + public void setModifiedBy(long _modifiedBy) { + this._modifiedBy = _modifiedBy; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/RoleCreator.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/RoleCreator.java new file mode 100644 index 0000000..74d1f89 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/RoleCreator.java @@ -0,0 +1,98 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "roleCreator", + namespace = "http://eurotech.com/edc/2.0" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "roleCreator", + namespace = "http://eurotech.com/edc/2.0" +) +public class RoleCreator implements java.io.Serializable { + + private java.lang.String _name; + private long _accountId; + private java.util.Set _permissions; + private java.lang.String _tags; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "name", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getName() { + return this._name; + } + + /** + * (no documentation provided) + */ + public void setName(java.lang.String _name) { + this._name = _name; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "accountId", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getAccountId() { + return this._accountId; + } + + /** + * (no documentation provided) + */ + public void setAccountId(long _accountId) { + this._accountId = _accountId; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "permission", + namespace = "http://eurotech.com/edc/2.0" + ) + @javax.xml.bind.annotation.XmlElementWrapper ( + name = "permissions", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Set getPermissions() { + return this._permissions; + } + + /** + * (no documentation provided) + */ + public void setPermissions(java.util.Set _permissions) { + this._permissions = _permissions; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "tags", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getTags() { + return this._tags; + } + + /** + * (no documentation provided) + */ + public void setTags(java.lang.String _tags) { + this._tags = _tags; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/Rule.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/Rule.java new file mode 100644 index 0000000..25f72d9 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/Rule.java @@ -0,0 +1,250 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "rule", + namespace = "http://eurotech.com/edc/2.0" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "rule", + namespace = "http://eurotech.com/edc/2.0" +) +public class Rule implements java.io.Serializable { + + private java.util.Date _modifiedOn; + private java.util.List _ruleActionConfigurations; + private long _modifiedBy; + private java.util.Date _synchronizedOn; + private java.util.Date _createdOn; + private java.lang.String _name; + private java.lang.String _query; + private long _createdBy; + private boolean _enabled; + private java.lang.String _description; + private long _accountId; + private long _id; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "modifiedOn", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Date getModifiedOn() { + return this._modifiedOn; + } + + /** + * (no documentation provided) + */ + public void setModifiedOn(java.util.Date _modifiedOn) { + this._modifiedOn = _modifiedOn; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "ruleActionConfiguration", + namespace = "http://eurotech.com/edc/2.0" + ) + @javax.xml.bind.annotation.XmlElementWrapper ( + name = "ruleActionConfigurations", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.List getRuleActionConfigurations() { + return this._ruleActionConfigurations; + } + + /** + * (no documentation provided) + */ + public void setRuleActionConfigurations(java.util.List _ruleActionConfigurations) { + this._ruleActionConfigurations = _ruleActionConfigurations; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "modifiedBy", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getModifiedBy() { + return this._modifiedBy; + } + + /** + * (no documentation provided) + */ + public void setModifiedBy(long _modifiedBy) { + this._modifiedBy = _modifiedBy; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "synchronizedOn", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Date getSynchronizedOn() { + return this._synchronizedOn; + } + + /** + * (no documentation provided) + */ + public void setSynchronizedOn(java.util.Date _synchronizedOn) { + this._synchronizedOn = _synchronizedOn; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "createdOn", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Date getCreatedOn() { + return this._createdOn; + } + + /** + * (no documentation provided) + */ + public void setCreatedOn(java.util.Date _createdOn) { + this._createdOn = _createdOn; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "name", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getName() { + return this._name; + } + + /** + * (no documentation provided) + */ + public void setName(java.lang.String _name) { + this._name = _name; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "query", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getQuery() { + return this._query; + } + + /** + * (no documentation provided) + */ + public void setQuery(java.lang.String _query) { + this._query = _query; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "createdBy", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getCreatedBy() { + return this._createdBy; + } + + /** + * (no documentation provided) + */ + public void setCreatedBy(long _createdBy) { + this._createdBy = _createdBy; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "enabled", + namespace = "http://eurotech.com/edc/2.0" + ) + public boolean getEnabled() { + return this._enabled; + } + + /** + * (no documentation provided) + */ + public void setEnabled(boolean _enabled) { + this._enabled = _enabled; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "description", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getDescription() { + return this._description; + } + + /** + * (no documentation provided) + */ + public void setDescription(java.lang.String _description) { + this._description = _description; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "accountId", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getAccountId() { + return this._accountId; + } + + /** + * (no documentation provided) + */ + public void setAccountId(long _accountId) { + this._accountId = _accountId; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "id", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getId() { + return this._id; + } + + /** + * (no documentation provided) + */ + public void setId(long _id) { + this._id = _id; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/RuleActionConfiguration.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/RuleActionConfiguration.java new file mode 100644 index 0000000..8f811fd --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/RuleActionConfiguration.java @@ -0,0 +1,56 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "ruleActionConfiguration", + namespace = "http://eurotech.com/edc/2.0" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "ruleActionConfiguration", + namespace = "http://eurotech.com/edc/2.0" +) +public class RuleActionConfiguration implements java.io.Serializable { + + private com.eurotech.cloud.apis.v2.model.xml.ParametersMapType _parameterValues; + private java.lang.String _ruleActionInfoName; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "parameters", + namespace = "http://eurotech.com/edc/2.0" + ) + public com.eurotech.cloud.apis.v2.model.xml.ParametersMapType getParameterValues() { + return this._parameterValues; + } + + /** + * (no documentation provided) + */ + public void setParameterValues(com.eurotech.cloud.apis.v2.model.xml.ParametersMapType _parameterValues) { + this._parameterValues = _parameterValues; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "name", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getRuleActionInfoName() { + return this._ruleActionInfoName; + } + + /** + * (no documentation provided) + */ + public void setRuleActionInfoName(java.lang.String _ruleActionInfoName) { + this._ruleActionInfoName = _ruleActionInfoName; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/RuleCreator.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/RuleCreator.java new file mode 100644 index 0000000..2868320 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/RuleCreator.java @@ -0,0 +1,136 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "ruleCreator", + namespace = "http://eurotech.com/edc/2.0" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "ruleCreator", + namespace = "http://eurotech.com/edc/2.0" +) +public class RuleCreator implements java.io.Serializable { + + private java.lang.String _name; + private long _accountId; + private boolean _enabled; + private java.util.List _ruleActionConfigurations; + private java.lang.String _query; + private java.lang.String _description; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "name", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getName() { + return this._name; + } + + /** + * (no documentation provided) + */ + public void setName(java.lang.String _name) { + this._name = _name; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "accountId", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getAccountId() { + return this._accountId; + } + + /** + * (no documentation provided) + */ + public void setAccountId(long _accountId) { + this._accountId = _accountId; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "enabled", + namespace = "http://eurotech.com/edc/2.0" + ) + public boolean getEnabled() { + return this._enabled; + } + + /** + * (no documentation provided) + */ + public void setEnabled(boolean _enabled) { + this._enabled = _enabled; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "ruleActionConfiguration", + namespace = "http://eurotech.com/edc/2.0" + ) + @javax.xml.bind.annotation.XmlElementWrapper ( + name = "ruleActionConfigurations", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.List getRuleActionConfigurations() { + return this._ruleActionConfigurations; + } + + /** + * (no documentation provided) + */ + public void setRuleActionConfigurations(java.util.List _ruleActionConfigurations) { + this._ruleActionConfigurations = _ruleActionConfigurations; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "query", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getQuery() { + return this._query; + } + + /** + * (no documentation provided) + */ + public void setQuery(java.lang.String _query) { + this._query = _query; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "description", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getDescription() { + return this._description; + } + + /** + * (no documentation provided) + */ + public void setDescription(java.lang.String _description) { + this._description = _description; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/TopicsResult.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/TopicsResult.java new file mode 100644 index 0000000..653b64e --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/TopicsResult.java @@ -0,0 +1,37 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "topicsResult", + namespace = "" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "topicsResult", + namespace = "" +) +public class TopicsResult implements java.io.Serializable { + + private java.util.List _topics; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "topicInfo", + namespace = "" + ) + public java.util.List getTopics() { + return this._topics; + } + + /** + * (no documentation provided) + */ + public void setTopics(java.util.List _topics) { + this._topics = _topics; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/UsageResult.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/UsageResult.java new file mode 100644 index 0000000..0fb902b --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/UsageResult.java @@ -0,0 +1,37 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "usageResult", + namespace = "" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "accountUsageResult", + namespace = "" +) +public class UsageResult implements java.io.Serializable { + + private java.util.List _usage; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "usage", + namespace = "" + ) + public java.util.List getUsage() { + return this._usage; + } + + /** + * (no documentation provided) + */ + public void setUsage(java.util.List _usage) { + this._usage = _usage; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/User.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/User.java new file mode 100644 index 0000000..5c77096 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/User.java @@ -0,0 +1,292 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "user", + namespace = "http://eurotech.com/edc/2.0" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "user", + namespace = "http://eurotech.com/edc/2.0" +) +public class User implements java.io.Serializable { + + private java.util.Date _modifiedOn; + private java.util.Date _createdOn; + private long _id; + private java.lang.String _password; + private long _modifiedBy; + private int _optlock; + private java.lang.String _username; + private java.lang.String _phoneNumber; + private java.lang.String _displayName; + private java.lang.String _email; + private long _accountId; + private java.util.Set _roles; + private java.util.Set _permissions; + private long _createdBy; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "modifiedOn", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Date getModifiedOn() { + return this._modifiedOn; + } + + /** + * (no documentation provided) + */ + public void setModifiedOn(java.util.Date _modifiedOn) { + this._modifiedOn = _modifiedOn; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "createdOn", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Date getCreatedOn() { + return this._createdOn; + } + + /** + * (no documentation provided) + */ + public void setCreatedOn(java.util.Date _createdOn) { + this._createdOn = _createdOn; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "id", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getId() { + return this._id; + } + + /** + * (no documentation provided) + */ + public void setId(long _id) { + this._id = _id; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "password", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getPassword() { + return this._password; + } + + /** + * (no documentation provided) + */ + public void setPassword(java.lang.String _password) { + this._password = _password; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "modifiedBy", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getModifiedBy() { + return this._modifiedBy; + } + + /** + * (no documentation provided) + */ + public void setModifiedBy(long _modifiedBy) { + this._modifiedBy = _modifiedBy; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "optlock", + namespace = "http://eurotech.com/edc/2.0" + ) + public int getOptlock() { + return this._optlock; + } + + /** + * (no documentation provided) + */ + public void setOptlock(int _optlock) { + this._optlock = _optlock; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "username", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getUsername() { + return this._username; + } + + /** + * (no documentation provided) + */ + public void setUsername(java.lang.String _username) { + this._username = _username; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "phoneNumber", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getPhoneNumber() { + return this._phoneNumber; + } + + /** + * (no documentation provided) + */ + public void setPhoneNumber(java.lang.String _phoneNumber) { + this._phoneNumber = _phoneNumber; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "displayName", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getDisplayName() { + return this._displayName; + } + + /** + * (no documentation provided) + */ + public void setDisplayName(java.lang.String _displayName) { + this._displayName = _displayName; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "email", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getEmail() { + return this._email; + } + + /** + * (no documentation provided) + */ + public void setEmail(java.lang.String _email) { + this._email = _email; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "accountId", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getAccountId() { + return this._accountId; + } + + /** + * (no documentation provided) + */ + public void setAccountId(long _accountId) { + this._accountId = _accountId; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "role", + namespace = "http://eurotech.com/edc/2.0" + ) + @javax.xml.bind.annotation.XmlElementWrapper ( + name = "roles", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Set getRoles() { + return this._roles; + } + + /** + * (no documentation provided) + */ + public void setRoles(java.util.Set _roles) { + this._roles = _roles; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "permission", + namespace = "http://eurotech.com/edc/2.0" + ) + @javax.xml.bind.annotation.XmlElementWrapper ( + name = "permissions", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.util.Set getPermissions() { + return this._permissions; + } + + /** + * (no documentation provided) + */ + public void setPermissions(java.util.Set _permissions) { + this._permissions = _permissions; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "createdBy", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getCreatedBy() { + return this._createdBy; + } + + /** + * (no documentation provided) + */ + public void setCreatedBy(long _createdBy) { + this._createdBy = _createdBy; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/UserCreator.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/UserCreator.java new file mode 100644 index 0000000..05571a9 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/UserCreator.java @@ -0,0 +1,132 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "userCreator", + namespace = "http://eurotech.com/edc/2.0" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "userCreator", + namespace = "http://eurotech.com/edc/2.0" +) +public class UserCreator implements java.io.Serializable { + + private java.lang.String _email; + private java.lang.String _username; + private java.lang.String _password; + private long _accountId; + private java.lang.String _phoneNumber; + private java.lang.String _displayName; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "email", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getEmail() { + return this._email; + } + + /** + * (no documentation provided) + */ + public void setEmail(java.lang.String _email) { + this._email = _email; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "username", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getUsername() { + return this._username; + } + + /** + * (no documentation provided) + */ + public void setUsername(java.lang.String _username) { + this._username = _username; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "password", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getPassword() { + return this._password; + } + + /** + * (no documentation provided) + */ + public void setPassword(java.lang.String _password) { + this._password = _password; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "accountId", + namespace = "http://eurotech.com/edc/2.0" + ) + public long getAccountId() { + return this._accountId; + } + + /** + * (no documentation provided) + */ + public void setAccountId(long _accountId) { + this._accountId = _accountId; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "phoneNumber", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getPhoneNumber() { + return this._phoneNumber; + } + + /** + * (no documentation provided) + */ + public void setPhoneNumber(java.lang.String _phoneNumber) { + this._phoneNumber = _phoneNumber; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "displayName", + namespace = "http://eurotech.com/edc/2.0" + ) + public java.lang.String getDisplayName() { + return this._displayName; + } + + /** + * (no documentation provided) + */ + public void setDisplayName(java.lang.String _displayName) { + this._displayName = _displayName; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/xml/Parameter.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/xml/Parameter.java new file mode 100644 index 0000000..a20e2d0 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/xml/Parameter.java @@ -0,0 +1,56 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model.xml; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "parameter", + namespace = "" +) +@javax.xml.bind.annotation.XmlRootElement ( + name = "parameter", + namespace = "" +) +public class Parameter implements java.io.Serializable { + + private java.lang.String _name; + private java.lang.String _value; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "name", + namespace = "" + ) + public java.lang.String getName() { + return this._name; + } + + /** + * (no documentation provided) + */ + public void setName(java.lang.String _name) { + this._name = _name; + } + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "value", + namespace = "" + ) + public java.lang.String getValue() { + return this._value; + } + + /** + * (no documentation provided) + */ + public void setValue(java.lang.String _value) { + this._value = _value; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/xml/ParametersMapType.java b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/xml/ParametersMapType.java new file mode 100644 index 0000000..19eea7f --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/apis/v2/model/xml/ParametersMapType.java @@ -0,0 +1,33 @@ +// Generated by Enunciate +package com.eurotech.cloud.apis.v2.model.xml; + +/** + * (no documentation provided) + */ +@javax.xml.bind.annotation.XmlType ( + name = "parametersMapType", + namespace = "" +) +public class ParametersMapType implements java.io.Serializable { + + private java.util.List _parameters; + + /** + * (no documentation provided) + */ + @javax.xml.bind.annotation.XmlElement ( + name = "parameter", + namespace = "" + ) + public java.util.List getParameters() { + return this._parameters; + } + + /** + * (no documentation provided) + */ + public void setParameters(java.util.List _parameters) { + this._parameters = _parameters; + } + +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/geckoboard/model/BulletResponse.java b/geckoboard/src/main/java/com/eurotech/cloud/geckoboard/model/BulletResponse.java new file mode 100644 index 0000000..7317160 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/geckoboard/model/BulletResponse.java @@ -0,0 +1,345 @@ +package com.eurotech.cloud.geckoboard.model; + +import java.util.List; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElementWrapper; +import javax.xml.bind.annotation.XmlRootElement; + +@XmlRootElement(name="root") +@XmlAccessorType(XmlAccessType.FIELD) +public class BulletResponse { + @XmlElement(name="orientation") + private String orientation; + + @XmlElement(name="item") + private Item item; + + + public BulletResponse() { + } + + public String getOrientation() { + return orientation; + } + + public void setOrientation(String orientation) { + this.orientation = orientation; + } + + public Item getItem() { + return item; + } + + public void setItem(Item item) { + this.item = item; + } + + @XmlAccessorType(XmlAccessType.FIELD) + public static class Item { + + @XmlElement(name="label") + private String label; + + @XmlElement(name="sublabel") + private String sublabel; + + @XmlElementWrapper(name="axis") + @XmlElement(name="point") + private List points; + + @XmlElement(name="measure") + private Measure measure; + + @XmlElement(name="comparative") + private Comparative comparative; + + @XmlElement(name="range") + private Range range; + + public Item() { + } + + public String getLabel() { + return label; + } + + public void setLabel(String label) { + this.label = label; + } + + public String getSublabel() { + return sublabel; + } + + public void setSublabel(String sublabel) { + this.sublabel = sublabel; + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public Measure getMeasure() { + return measure; + } + + public void setMeasure(Measure measure) { + this.measure = measure; + } + + public Comparative getComparative() { + return comparative; + } + + public void setComparative(Comparative comparative) { + this.comparative = comparative; + } + + public Range getRange() { + return range; + } + + public void setRange(Range range) { + this.range = range; + } + } + + @XmlAccessorType(XmlAccessType.FIELD) + public static class Measure { + + @XmlElement(name="current") + private Current current; + + @XmlElement(name="projected") + private Projected projected; + + public Measure() { + } + + public Current getCurrent() { + return current; + } + + public void setCurrent(Current current) { + this.current = current; + } + + public Projected getProjected() { + return projected; + } + + public void setProjected(Projected projected) { + this.projected = projected; + } + } + + @XmlAccessorType(XmlAccessType.FIELD) + public static class Current { + + @XmlElement(name="start") + private String start; + + @XmlElement(name="end") + private String end; + + public Current() { + } + + public String getStart() { + return start; + } + + public void setStart(String start) { + this.start = start; + } + + public String getEnd() { + return end; + } + + public void setEnd(String end) { + this.end = end; + } + } + + @XmlAccessorType(XmlAccessType.FIELD) + public static class Projected { + + @XmlElement(name="start") + private String start; + + @XmlElement(name="end") + private String end; + + public Projected() { + } + + public String getStart() { + return start; + } + + public void setStart(String start) { + this.start = start; + } + + public String getEnd() { + return end; + } + + public void setEnd(String end) { + this.end = end; + } + } + + @XmlAccessorType(XmlAccessType.FIELD) + public static class Comparative { + + @XmlElement(name="point") + public String point; + + public Comparative() { + } + + public String getPoint() { + return point; + } + + public void setPoint(String point) { + this.point = point; + } + } + + @XmlAccessorType(XmlAccessType.FIELD) + public static class Range { + + @XmlElement(name="red") + private Red red; + + @XmlElement(name="amber") + private Amber amber; + + @XmlElement(name="green") + private Green green; + + public Range() { + } + + public Red getRed() { + return red; + } + + public void setRed(Red red) { + this.red = red; + } + + public Amber getAmber() { + return amber; + } + + public void setAmber(Amber amber) { + this.amber = amber; + } + + public Green getGreen() { + return green; + } + + public void setGreen(Green green) { + this.green = green; + } + } + + @XmlAccessorType(XmlAccessType.FIELD) + public static class Red { + + @XmlElement(name="start") + private String start; + + @XmlElement(name="end") + private String end; + + public Red() { + } + + public String getStart() { + return start; + } + + public void setStart(String start) { + this.start = start; + } + + public String getEnd() { + return end; + } + + public void setEnd(String end) { + this.end = end; + } + } + + @XmlAccessorType(XmlAccessType.FIELD) + public static class Green { + + @XmlElement(name="start") + private String start; + + @XmlElement(name="end") + private String end; + + public Green() { + } + + public String getStart() { + return start; + } + + public void setStart(String start) { + this.start = start; + } + + public String getEnd() { + return end; + } + + public void setEnd(String end) { + this.end = end; + } + } + + @XmlAccessorType(XmlAccessType.FIELD) + public static class Amber { + + @XmlElement(name="start") + private String start; + + @XmlElement(name="end") + private String end; + + public Amber() { + } + + public String getStart() { + return start; + } + + public void setStart(String start) { + this.start = start; + } + + public String getEnd() { + return end; + } + + public void setEnd(String end) { + this.end = end; + } + } +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/geckoboard/model/LineResponse.java b/geckoboard/src/main/java/com/eurotech/cloud/geckoboard/model/LineResponse.java new file mode 100644 index 0000000..054531c --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/geckoboard/model/LineResponse.java @@ -0,0 +1,80 @@ +package com.eurotech.cloud.geckoboard.model; + +import java.util.List; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; + + +@XmlRootElement(name="root") +@XmlAccessorType(XmlAccessType.FIELD) +public class LineResponse { + @XmlElement(name="item") + private List items; + + @XmlElement(name="settings") + private Settings settings; + + + public LineResponse() { + } + + + public List getItems() { + return items; + } + + public void setItems(List items) { + this.items = items; + } + + public Settings getSettings() { + return settings; + } + + public void setSettings(Settings settings) { + this.settings = settings; + } + + @XmlAccessorType(XmlAccessType.FIELD) + public static class Settings { + + @XmlElement(name="colour") + private String colour; + + @XmlElement(name="axisx") + private List axisx; + + @XmlElement(name="axisy") + private List axisy; + + public Settings() { + } + + public String getColour() { + return colour; + } + + public void setColour(String colour) { + this.colour = colour; + } + + public List getAxisx() { + return axisx; + } + + public void setAxisx(List axisx) { + this.axisx = axisx; + } + + public List getAxisy() { + return axisy; + } + + public void setAxisy(List axisy) { + this.axisy = axisy; + } + } +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/geckoboard/model/MeterResponse.java b/geckoboard/src/main/java/com/eurotech/cloud/geckoboard/model/MeterResponse.java new file mode 100644 index 0000000..3072d86 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/geckoboard/model/MeterResponse.java @@ -0,0 +1,117 @@ +package com.eurotech.cloud.geckoboard.model; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; + + +@XmlRootElement(name="root") +@XmlAccessorType(XmlAccessType.FIELD) +public class MeterResponse { + @XmlElement(name="item") + private String item; + + @XmlElement(name="type") + private String type; + + @XmlElement(name="min") + private MinValue min; + + @XmlElement(name="max") + private MaxValue max; + + + public MeterResponse() { + } + + public String getItem() { + return item; + } + + public void setItem(String item) { + this.item = item; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public MinValue getMin() { + return min; + } + + public void setMin(MinValue min) { + this.min = min; + } + + public MaxValue getMax() { + return max; + } + + public void setMax(MaxValue max) { + this.max = max; + } + + @XmlAccessorType(XmlAccessType.FIELD) + public static class MinValue { + + @XmlElement(name="value") + private String value; + + @XmlElement(name="text") + private String text; + + public MinValue() { + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getText() { + return text; + } + + public void setText(String text) { + this.text = text; + } + } + + @XmlAccessorType(XmlAccessType.FIELD) + public static class MaxValue { + + @XmlElement(name="value") + private String value; + + @XmlElement(name="text") + private String text; + + public MaxValue() { + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getText() { + return text; + } + + public void setText(String text) { + this.text = text; + } + } +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/geckoboard/model/NumberResponse.java b/geckoboard/src/main/java/com/eurotech/cloud/geckoboard/model/NumberResponse.java new file mode 100644 index 0000000..032fc49 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/geckoboard/model/NumberResponse.java @@ -0,0 +1,78 @@ +package com.eurotech.cloud.geckoboard.model; + +import java.util.List; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; + +@XmlRootElement(name="root") +@XmlAccessorType(XmlAccessType.FIELD) +public class NumberResponse { + @XmlElement(name="absolute") + private String absolute; + + @XmlElement(name="type") + private String type; + + @XmlElement(name="item") + private List items; + + public NumberResponse() { + } + + public String getAbsolute() { + return absolute; + } + + public void setAbsolute(String absolute) { + this.absolute = absolute; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public List getItems() { + return items; + } + + public void setItems(List items) { + this.items = items; + } + + + @XmlAccessorType(XmlAccessType.FIELD) + public static class Item { + + @XmlElement(name="value") + private String value; + + @XmlElement(name="text") + private String text; + + public Item() { + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getText() { + return text; + } + + public void setText(String text) { + this.text = text; + } + } +} diff --git a/geckoboard/src/main/java/com/eurotech/cloud/geckoboard/resources/GeckoResource.java b/geckoboard/src/main/java/com/eurotech/cloud/geckoboard/resources/GeckoResource.java new file mode 100644 index 0000000..eb7c1c4 --- /dev/null +++ b/geckoboard/src/main/java/com/eurotech/cloud/geckoboard/resources/GeckoResource.java @@ -0,0 +1,408 @@ +package com.eurotech.cloud.geckoboard.resources; + +import java.net.Authenticator; +import java.net.PasswordAuthentication; +import java.text.DateFormat; +import java.text.NumberFormat; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +import javax.ws.rs.DefaultValue; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; + +import sun.net.www.protocol.http.AuthCacheImpl; +import sun.net.www.protocol.http.AuthCacheValue; + +import com.eurotech.cloud.apis.v2.model.EdcMessage; +import com.eurotech.cloud.apis.v2.model.EdcMetric; +import com.eurotech.cloud.apis.v2.model.MessagesResult; +import com.eurotech.cloud.geckoboard.model.BulletResponse; +import com.eurotech.cloud.geckoboard.model.BulletResponse.Amber; +import com.eurotech.cloud.geckoboard.model.BulletResponse.Comparative; +import com.eurotech.cloud.geckoboard.model.BulletResponse.Current; +import com.eurotech.cloud.geckoboard.model.BulletResponse.Green; +import com.eurotech.cloud.geckoboard.model.BulletResponse.Item; +import com.eurotech.cloud.geckoboard.model.BulletResponse.Measure; +import com.eurotech.cloud.geckoboard.model.BulletResponse.Range; +import com.eurotech.cloud.geckoboard.model.BulletResponse.Red; +import com.eurotech.cloud.geckoboard.model.LineResponse; +import com.eurotech.cloud.geckoboard.model.LineResponse.Settings; +import com.eurotech.cloud.geckoboard.model.MeterResponse; +import com.eurotech.cloud.geckoboard.model.MeterResponse.MaxValue; +import com.eurotech.cloud.geckoboard.model.MeterResponse.MinValue; +import com.eurotech.cloud.geckoboard.model.NumberResponse; +import com.sun.jersey.api.client.Client; +import com.sun.jersey.api.client.WebResource; + + +@Path("/gecko") +public class GeckoResource { + public static final String APIS_TEST_URL = "http://api-stage.everyware-cloud.com/v2/"; + + static { + AuthCacheValue.setAuthCache(new AuthCacheImpl()); + Authenticator.setDefault( new EdcAuthenticator()); + } + + public static class EdcAuthenticator extends Authenticator { + public PasswordAuthentication getPasswordAuthentication () { + return new PasswordAuthentication ("edcguest", "Welcome1".toCharArray()); + } + } + + + @GET + @Path("health") + @Produces({MediaType.APPLICATION_XML}) + public String getHealth() { + return "OK"; + } + + + @GET + @Path("meter") + @Produces({MediaType.APPLICATION_XML}) + public MeterResponse getMeter(@QueryParam("topic") String topic, + @QueryParam("metric") String metric, + @QueryParam("minText") @DefaultValue("") String minText, + @QueryParam("maxText") @DefaultValue("") String maxText, + @QueryParam("hours") @DefaultValue("1") int hours) { + Date now = new Date(); + Client client = Client.create(); + WebResource apisWeb = client.resource(APIS_TEST_URL); + WebResource messagesWebXml = apisWeb.path("messages.xml"); + messagesWebXml = messagesWebXml.queryParam("topic", topic); + messagesWebXml = messagesWebXml.queryParam("startDate", String.valueOf(now.getTime())); + messagesWebXml = messagesWebXml.queryParam("endDate", String.valueOf(now.getTime() - (long) 60*60*1000)); + messagesWebXml = messagesWebXml.queryParam("fetch", "metrics"); + MessagesResult result = messagesWebXml.get(MessagesResult.class); + + String curValue = null; + String minValue = null; + String maxValue = null; + + List messages = result.getMessages(); + if (messages != null) { + + for (EdcMessage msg : messages) { + List metrics = msg.getEdcPayload().getMetrics().getMetrics(); + for (EdcMetric m : metrics) { + if (m.getName().equals(metric)) { + if (curValue == null) { + curValue = m.getValue(); + } + if (minValue == null || Double.valueOf(m.getValue()) < Double.valueOf(minValue)) { + minValue = m.getValue(); + } + if (maxValue == null || Double.valueOf(m.getValue()) > Double.valueOf(maxValue)) { + maxValue = m.getValue(); + } + } + } + } + } else { + + curValue = "0"; + minValue = "0"; + maxValue = "0"; + } + + MeterResponse meterResp = new MeterResponse(); + meterResp.setItem(curValue); + + MinValue min = new MinValue(); + min.setValue(minValue); + min.setText(minText); + meterResp.setMin(min); + + MaxValue max = new MaxValue(); + max.setValue(maxValue); + max.setText(maxText); + meterResp.setMax(max); + + return meterResp; + } + + + + @GET + @Path("number") + @Produces({MediaType.APPLICATION_XML}) + public NumberResponse getNumber(@QueryParam("topic") String topic, + @QueryParam("metric") String metric, + @QueryParam("absolute") @DefaultValue("") String absolute, + @QueryParam("type") @DefaultValue("") String type) { + Client client = Client.create(); + WebResource apisWeb = client.resource(APIS_TEST_URL); + WebResource messagesWebXml = apisWeb.path("messages.xml"); + messagesWebXml = messagesWebXml.queryParam("topic", topic); + messagesWebXml = messagesWebXml.queryParam("limit", "2"); + messagesWebXml = messagesWebXml.queryParam("fetch", "metrics"); + + MessagesResult result = messagesWebXml.get(MessagesResult.class); + List messages = result.getMessages(); + + String newValue = null; + String oldValue = null; + List metrics = null; + if (messages != null && messages.size() == 2) { + + EdcMessage msgNew = messages.get(0); + metrics = msgNew.getEdcPayload().getMetrics().getMetrics(); + for (EdcMetric m : metrics) { + if (m.getName().equals(metric)) { + newValue = m.getValue(); + break; + } + } + + EdcMessage msgOld = messages.get(1); + metrics = msgOld.getEdcPayload().getMetrics().getMetrics(); + for (EdcMetric m : metrics) { + if (m.getName().equals(metric)) { + oldValue = m.getValue(); + break; + } + } + } + + NumberResponse.Item itemNew = new NumberResponse.Item(); + itemNew.setValue(newValue); + + NumberResponse.Item itemOld = new NumberResponse.Item(); + itemOld.setValue(oldValue); + + List items = new ArrayList(); + items.add(itemNew); + items.add(itemOld); + + NumberResponse numberResp = new NumberResponse(); + numberResp.setType(type); + numberResp.setAbsolute(absolute); + numberResp.setItems(items); + + return numberResp; + } + + + @GET + @Path("bullet") + @Produces({MediaType.APPLICATION_XML}) + public BulletResponse getBullet(@QueryParam("topic") String topic, + @QueryParam("metric") String metric, + @QueryParam("orientation") String orientation, + @QueryParam("label") String label, + @QueryParam("sublabel") String sublabel, + @QueryParam("point") List points, + @QueryParam("comparative") String comparative, + @QueryParam("red_start") String red_start, + @QueryParam("red_end") String red_end, + @QueryParam("amber_start") String amber_start, + @QueryParam("amber_end") String amber_end, + @QueryParam("green_start") String green_start, + @QueryParam("green_end") String green_end) { + Client client = Client.create(); + WebResource apisWeb = client.resource(APIS_TEST_URL); + WebResource messagesWebXml = apisWeb.path("messages.xml"); + messagesWebXml = messagesWebXml.queryParam("topic", topic); + messagesWebXml = messagesWebXml.queryParam("limit", "1"); + messagesWebXml = messagesWebXml.queryParam("fetch", "metrics"); + MessagesResult result = messagesWebXml.get(MessagesResult.class); + + String curValue = null; + List messages = result.getMessages(); + if (messages != null && messages.size() > 0) { + + EdcMessage msg = messages.get(0); + List metrics = msg.getEdcPayload().getMetrics().getMetrics(); + for (EdcMetric m : metrics) { + if (m.getName().equals(metric)) { + curValue = m.getValue(); + } + } + } + + BulletResponse bulletResp = new BulletResponse(); + bulletResp.setOrientation(orientation); + + Item item = new Item(); + item.setLabel(label); + item.setSublabel(sublabel); + item.setPoints(points); + + Comparative comp = new Comparative(); + comp.setPoint(comparative); + item.setComparative(comp); + + Measure measure = new Measure(); + Current current = new Current(); + current.setStart("0"); + current.setEnd(curValue); + measure.setCurrent(current); + +// Projected projected = new Projected(); +// projected.setStart("0"); +// projected.setEnd("23"); +// measure.setProjected(projected); + + Range range = new Range(); + Red red = new Red(); + red.setStart(red_start); + red.setEnd(red_end); + range.setRed(red); + Amber amber = new Amber(); + amber.setStart(amber_start); + amber.setEnd(amber_end); + range.setAmber(amber); + Green green = new Green(); + green.setStart(green_start); + green.setEnd(green_end); + range.setGreen(green); + item.setRange(range); + + item.setMeasure(measure); + bulletResp.setItem(item); + + return bulletResp; + } + + + @GET + @Path("line") + @Produces({MediaType.APPLICATION_XML}) + public LineResponse getLine(@QueryParam("topic") String topic, + @QueryParam("metric") String metric, + @QueryParam("hours") @DefaultValue("1") int hours) { + Date now = new Date(); + Date old = new Date(now.getTime() - (long) 60*60*1000); + Client client = Client.create(); + WebResource apisWeb = client.resource(APIS_TEST_URL); + WebResource messagesWebXml = apisWeb.path("messages.xml"); + messagesWebXml = messagesWebXml.queryParam("topic", topic); + messagesWebXml = messagesWebXml.queryParam("startDate", String.valueOf(now.getTime())); + messagesWebXml = messagesWebXml.queryParam("endDate", String.valueOf(old.getTime())); + messagesWebXml = messagesWebXml.queryParam("fetch", "metrics"); + MessagesResult result = messagesWebXml.get(MessagesResult.class); + + List messages = result.getMessages(); + + String minValue = null; + String maxValue = null; + List items = new ArrayList(); + for (EdcMessage msg : messages) { + List metrics = msg.getEdcPayload().getMetrics().getMetrics(); + for (EdcMetric m : metrics) { + if (m.getName().equals(metric)) { + + items.add(m.getValue()); + if (minValue == null || Double.valueOf(m.getValue()) < Double.valueOf(minValue)) { + minValue = m.getValue(); + } + if (maxValue == null || Double.valueOf(m.getValue()) > Double.valueOf(maxValue)) { + maxValue = m.getValue(); + } + } + } + } + + LineResponse lineResp = new LineResponse(); + lineResp.setItems(items); + + Settings settings = new Settings(); + settings.setColour("ff9900"); + + List axisx = new ArrayList(); + long xInterval = (now.getTime() - old.getTime())/5; + DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT); + for (int i=0; i<=5; i++) { + axisx.add(df.format( new Date(old.getTime() + (long) xInterval*i))); + } + settings.setAxisx(axisx); + + List axisy = new ArrayList(); + double yInterval = (Double.valueOf(maxValue) - Double.valueOf(minValue))/5; + NumberFormat nf = NumberFormat.getInstance(); + nf.setMaximumFractionDigits(2); + for (int i=0; i<=5; i++) { + axisy.add(nf.format(Double.valueOf(minValue) + (double) yInterval*i)); + } + settings.setAxisy(axisy); + + lineResp.setSettings(settings); + return lineResp; + } + + @GET + @Path("highline") + @Produces({MediaType.APPLICATION_JSON}) + public String getHighLine(@QueryParam("topic") String topic, + @QueryParam("metric") List metrics, + @QueryParam("hours") @DefaultValue("1") int hours) { + Date now = new Date(); + Date old = new Date(now.getTime() - (long) 60*60*1000); + Client client = Client.create(); + WebResource apisWeb = client.resource(APIS_TEST_URL); + WebResource messagesWebXml = apisWeb.path("messages.xml"); + messagesWebXml = messagesWebXml.queryParam("topic", topic); + messagesWebXml = messagesWebXml.queryParam("startDate", String.valueOf(now.getTime())); + messagesWebXml = messagesWebXml.queryParam("endDate", String.valueOf(old.getTime())); + messagesWebXml = messagesWebXml.queryParam("fetch", "metrics"); + MessagesResult result = messagesWebXml.get(MessagesResult.class); + + List messages = result.getMessages(); + + StringBuilder sb = new StringBuilder(); + sb.append("{") + .append("chart:{type:'spline',zoomType:'x',renderTo:'container',plotBackgroundColor:'rgba(35,37,38,0)',backgroundColor:'rgba(35,37,38,100)',borderColor:'rgba(35,37,38,100)',lineColor:'rgba(35,37,38,100)',plotBorderColor:'rgba(35,37,38,100)',plotBorderWidth:null,plotShadow:false,height:340},") + .append("credits:{enabled:false},") + .append("colors:['#058DC7','#50B432','#EF561A'],") + .append("legend:{layout:'horizontal',borderColor:'rgba(35,37,38,100)',itemWidth:55,margin:5,width:200},") + .append("title:{text:null},") +// .append("tooltip:{formatter:function(){return''+this.point.name+': '+this.y+' users';}},") + .append("yAxis:{title:{text:null}},") + .append("xAxis:{type:'datetime',dateTimeLabelFormats:{minute:'%H:%M',hour:'%H:%M',day:'%e/%m %H:%M',month:'%e. %b',year:'%b'}},"); + + sb.append("series: ["); + for (int i=0; i msgMetrics = msg.getEdcPayload().getMetrics().getMetrics(); + for (EdcMetric m : msgMetrics) { + if (m.getName().equals(metric)) { + sb.append("[") + .append(msg.getTimestamp().getTime()) + .append(",") + .append(m.getValue()) + .append("]"); + } + } + if (j != messages.size() - 1) { + sb.append(","); + } + } + sb.append("]}"); + if (i != metrics.size() - 1) { + sb.append(","); + } + } + sb.append("]") + .append("}"); + + return sb.toString(); + } +} diff --git a/geckoboard/src/main/webapp/WEB-INF/web.xml b/geckoboard/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..d6dc304 --- /dev/null +++ b/geckoboard/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,28 @@ + + + + + geckoboard + + + + Jersey Web Application + com.sun.jersey.spi.container.servlet.ServletContainer + + com.sun.jersey.config.property.packages + com.eurotech.cloud.geckoboard.resources + + + + Jersey Web Application + /* + + + + + 0 + + + diff --git a/geckoboard/src/main/webapp/index.jsp b/geckoboard/src/main/webapp/index.jsp new file mode 100644 index 0000000..c38169b --- /dev/null +++ b/geckoboard/src/main/webapp/index.jsp @@ -0,0 +1,5 @@ + + +

Hello World!

+ +