initial import
This commit is contained in:
30
modules/global/src/com/cmobile/unifiedtms/app-component.xml
Normal file
30
modules/global/src/com/cmobile/unifiedtms/app-component.xml
Normal file
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<app-component xmlns="http://schemas.haulmont.com/cuba/app-component.xsd"
|
||||
dependsOn="com.haulmont.addon.emailtemplates, com.haulmont.charts, com.haulmont.cuba, com.haulmont.addon.dashboard, com.haulmont.addon.sdbmt, com.haulmont.addon.restapi, com.haulmont.fts, com.haulmont.addon.helium, ar.com.osmosys.pswdplus, de.diedavids.cuba.dataimport, com.cmobile.unifiedtms.ext">
|
||||
|
||||
<module name="global" blocks="*">
|
||||
<artifact name="tms-global" appJar="true"/>
|
||||
|
||||
<property name="cuba.persistenceConfig" value="+com/cmobile/unifiedtms/persistence.xml"/>
|
||||
<property name="cuba.metadataConfig" value="+com/cmobile/unifiedtms/metadata.xml"/>
|
||||
<property name="cuba.viewsConfig" value="+com/cmobile/unifiedtms/views.xml"/>
|
||||
</module>
|
||||
<module name="core" dependsOn="global" blocks="core">
|
||||
<artifact name="tms-core" appJar="true"/>
|
||||
<artifact name="tms-core" classifier="db" ext="zip" configuration="dbscripts"/>
|
||||
|
||||
<property name="cuba.springContextConfig" value="+com/cmobile/unifiedtms/spring.xml"/>
|
||||
<property name="cuba.mainMessagePack" value="+com.cmobile.unifiedtms.core"/>
|
||||
</module>
|
||||
<module name="web" dependsOn="global" blocks="web">
|
||||
<artifact name="tms-web" appJar="true"/>
|
||||
<artifact name="tms-web" classifier="web" ext="zip" configuration="webcontent"/>
|
||||
|
||||
<property name="cuba.springContextConfig" value="+com/cmobile/unifiedtms/web-spring.xml"/>
|
||||
<property name="cuba.dispatcherSpringContextConfig" value="+com/cmobile/unifiedtms/web-dispatcher-spring.xml"/>
|
||||
<property name="cuba.windowConfig" value="+com/cmobile/unifiedtms/web-screens.xml"/>
|
||||
<property name="cuba.menuConfig" value="+com/cmobile/unifiedtms/web-menu.xml"/>
|
||||
<property name="cuba.permissionConfig" value="+com/cmobile/unifiedtms/web-permissions.xml"/>
|
||||
<property name="cuba.mainMessagePack" value="+com.cmobile.unifiedtms.web"/>
|
||||
</module>
|
||||
</app-component>
|
||||
@ -0,0 +1,16 @@
|
||||
package com.cmobile.unifiedtms.config;
|
||||
|
||||
import com.haulmont.cuba.core.config.Config;
|
||||
import com.haulmont.cuba.core.config.Property;
|
||||
import com.haulmont.cuba.core.config.Source;
|
||||
import com.haulmont.cuba.core.config.SourceType;
|
||||
import com.haulmont.cuba.core.config.defaults.Default;
|
||||
|
||||
@Source(type = SourceType.DATABASE)
|
||||
public interface BroadcastConfig extends Config {
|
||||
|
||||
@Property("broadcast.change-profile.req-id")
|
||||
String getChangeProfileReqId();
|
||||
|
||||
void setChangeProfileReqId(String reqId);
|
||||
}
|
||||
@ -0,0 +1,48 @@
|
||||
package com.cmobile.unifiedtms.config;
|
||||
|
||||
import com.haulmont.cuba.core.config.Config;
|
||||
import com.haulmont.cuba.core.config.Property;
|
||||
import com.haulmont.cuba.core.config.Source;
|
||||
import com.haulmont.cuba.core.config.SourceType;
|
||||
import com.haulmont.cuba.core.config.defaults.DefaultBoolean;
|
||||
import com.haulmont.cuba.core.config.defaults.DefaultInt;
|
||||
import com.haulmont.cuba.core.config.defaults.DefaultString;
|
||||
import com.haulmont.cuba.core.global.Secret;
|
||||
|
||||
@Source(type = SourceType.DATABASE)
|
||||
public interface ReportConfig extends Config {
|
||||
|
||||
@Property("utms.report.mid.ftp.host")
|
||||
String getMidReportFtpHost();
|
||||
|
||||
@Property("utms.report.mid.ftp.port")
|
||||
@DefaultInt(21)
|
||||
int getMidReportFtpPort();
|
||||
|
||||
@Property("utms.report.mid.ftp.username")
|
||||
String getMidReportFtpUsername();
|
||||
|
||||
@Property("utms.report.mid.ftp.password")
|
||||
@Secret
|
||||
String getMidReportFtpPassword();
|
||||
|
||||
@Property("utms.report.mid.ftp.path")
|
||||
@DefaultString("/")
|
||||
String getMidReportFtpPath();
|
||||
|
||||
@Property("utms.report.mid.local.path")
|
||||
String getMidReportLocalPath();
|
||||
|
||||
@Property("utms.report.mid.vendor.name")
|
||||
@DefaultString("BIT")
|
||||
String getMidReportVendorName();
|
||||
|
||||
@Property("utms.report.mid.filename.pattern")
|
||||
@DefaultString("Lokasimerchant_{VENDOR_NAME}_{DATE}.csv")
|
||||
String getMidReportFilenamePattern();
|
||||
|
||||
@Property("utms.report.mid.include-zero")
|
||||
@DefaultBoolean(false)
|
||||
Boolean getMidReportIncludeZero();
|
||||
|
||||
}
|
||||
@ -0,0 +1,156 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.addon.sdbmt.entity.StandardTenantEntity;
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.FileDescriptor;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDelete;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@NamePattern("%s|name")
|
||||
@Table(name = "TMS_APPLICATION", indexes = {
|
||||
@Index(name = "IDX_TMS_APPLICATION_UNQ", columnList = "PACKAGE_NAME, VERSION", unique = true)
|
||||
})
|
||||
@Entity(name = "tms_Application")
|
||||
public class Application extends StandardTenantEntity {
|
||||
private static final long serialVersionUID = 1304409398139690797L;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "PACKAGE_NAME", nullable = false)
|
||||
protected String packageName;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "COMPANY_NAME", nullable = false, length = 100)
|
||||
protected String companyName;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "NAME", nullable = false, length = 100)
|
||||
protected String name;
|
||||
|
||||
@Column(name = "DESCRIPTION")
|
||||
protected String description;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "APP_VERSION", nullable = false, length = 50)
|
||||
protected String appVersion;
|
||||
|
||||
@OnDeleteInverse(DeletePolicy.DENY)
|
||||
@OneToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "ICON_ID")
|
||||
protected FileDescriptor icon;
|
||||
|
||||
@NotNull
|
||||
@OnDeleteInverse(DeletePolicy.DENY)
|
||||
@OneToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "APK_ID")
|
||||
protected FileDescriptor apk;
|
||||
|
||||
@Column(name = "UNINSTALLABLE")
|
||||
protected Boolean uninstallable;
|
||||
|
||||
@JoinTable(name = "TMS_DOWNLOAD_TASK_APPLICATION_LINK",
|
||||
joinColumns = @JoinColumn(name = "APPLICATION_ID"),
|
||||
inverseJoinColumns = @JoinColumn(name = "DOWNLOAD_TASK_ID"))
|
||||
@OnDeleteInverse(DeletePolicy.UNLINK)
|
||||
@OnDelete(DeletePolicy.UNLINK)
|
||||
@ManyToMany
|
||||
protected List<DownloadTask> downloadTasks;
|
||||
|
||||
@Column(name = "DOWNLOAD_URL", length = 500)
|
||||
protected String downloadUrl;
|
||||
|
||||
@Column(name = "CHECKSUM", length = 32)
|
||||
protected String checksum;
|
||||
|
||||
public String getChecksum() {
|
||||
return checksum;
|
||||
}
|
||||
|
||||
public void setChecksum(String checksum) {
|
||||
this.checksum = checksum;
|
||||
}
|
||||
|
||||
public String getDownloadUrl() {
|
||||
return downloadUrl;
|
||||
}
|
||||
|
||||
public void setDownloadUrl(String downloadUrl) {
|
||||
this.downloadUrl = downloadUrl;
|
||||
}
|
||||
|
||||
public List<DownloadTask> getDownloadTasks() {
|
||||
return downloadTasks;
|
||||
}
|
||||
|
||||
public void setDownloadTasks(List<DownloadTask> downloadTasks) {
|
||||
this.downloadTasks = downloadTasks;
|
||||
}
|
||||
|
||||
public String getCompanyName() {
|
||||
return companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public Boolean getUninstallable() {
|
||||
return uninstallable;
|
||||
}
|
||||
|
||||
public void setUninstallable(Boolean uninstallable) {
|
||||
this.uninstallable = uninstallable;
|
||||
}
|
||||
|
||||
public FileDescriptor getApk() {
|
||||
return apk;
|
||||
}
|
||||
|
||||
public void setApk(FileDescriptor apk) {
|
||||
this.apk = apk;
|
||||
}
|
||||
|
||||
public FileDescriptor getIcon() {
|
||||
return icon;
|
||||
}
|
||||
|
||||
public void setIcon(FileDescriptor icon) {
|
||||
this.icon = icon;
|
||||
}
|
||||
|
||||
public String getAppVersion() {
|
||||
return appVersion;
|
||||
}
|
||||
|
||||
public void setAppVersion(String appVersion) {
|
||||
this.appVersion = appVersion;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getPackageName() {
|
||||
return packageName;
|
||||
}
|
||||
|
||||
public void setPackageName(String packageName) {
|
||||
this.packageName = packageName;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,106 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.BaseUuidEntity;
|
||||
import com.haulmont.cuba.core.entity.Creatable;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Table(name = "TMS_APPLICATION_SIMPLE")
|
||||
@NamePattern("%s|appName")
|
||||
@Entity(name = "tms_ApplicationSimple")
|
||||
public class ApplicationSimple extends BaseUuidEntity implements Creatable {
|
||||
private static final long serialVersionUID = -856427430430192794L;
|
||||
|
||||
@Column(name = "CREATE_TS")
|
||||
protected Date createTs;
|
||||
|
||||
@Column(name = "CREATED_BY", length = 50)
|
||||
protected String createdBy;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "APP_NAME", nullable = false)
|
||||
protected String appName;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "PACKAGE_NAME", nullable = false)
|
||||
protected String packageName;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "APP_VERSION", nullable = false, length = 50)
|
||||
protected String appVersion;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "DIAGNOSTIC_INFO_ID")
|
||||
protected DiagnosticInfo diagnosticInfo;
|
||||
|
||||
@JoinTable(name = "TMS_DELETE_TASK_APPLICATION_LINK",
|
||||
joinColumns = @JoinColumn(name = "APPLICATION_ID"),
|
||||
inverseJoinColumns = @JoinColumn(name = "DELETE_TASK_ID"))
|
||||
@ManyToMany
|
||||
protected List<DeleteTask> deleteTasks;
|
||||
|
||||
@Override
|
||||
public Date getCreateTs() {
|
||||
return createTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreateTs(Date createTs) {
|
||||
this.createTs = createTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public List<DeleteTask> getDeleteTasks() {
|
||||
return deleteTasks;
|
||||
}
|
||||
|
||||
public void setDeleteTasks(List<DeleteTask> deleteTasks) {
|
||||
this.deleteTasks = deleteTasks;
|
||||
}
|
||||
|
||||
public DiagnosticInfo getDiagnosticInfo() {
|
||||
return diagnosticInfo;
|
||||
}
|
||||
|
||||
public void setDiagnosticInfo(DiagnosticInfo diagnosticInfo) {
|
||||
this.diagnosticInfo = diagnosticInfo;
|
||||
}
|
||||
|
||||
public String getAppVersion() {
|
||||
return appVersion;
|
||||
}
|
||||
|
||||
public void setAppVersion(String appVersion) {
|
||||
this.appVersion = appVersion;
|
||||
}
|
||||
|
||||
public String getPackageName() {
|
||||
return packageName;
|
||||
}
|
||||
|
||||
public void setPackageName(String packageName) {
|
||||
this.packageName = packageName;
|
||||
}
|
||||
|
||||
public String getAppName() {
|
||||
return appName;
|
||||
}
|
||||
|
||||
public void setAppName(String appName) {
|
||||
this.appName = appName;
|
||||
}
|
||||
|
||||
}
|
||||
44
modules/global/src/com/cmobile/unifiedtms/entity/City.java
Normal file
44
modules/global/src/com/cmobile/unifiedtms/entity/City.java
Normal file
@ -0,0 +1,44 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.StandardEntity;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDelete;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@NamePattern("%s|name")
|
||||
@Table(name = "TMS_CITY")
|
||||
@Entity(name = "tms_City")
|
||||
public class City extends StandardEntity {
|
||||
private static final long serialVersionUID = 4686699293515578568L;
|
||||
|
||||
@NotNull
|
||||
@OnDeleteInverse(DeletePolicy.DENY)
|
||||
@OnDelete(DeletePolicy.UNLINK)
|
||||
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "STATES_ID")
|
||||
protected States states;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "NAME", nullable = false, length = 50)
|
||||
protected String name;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public States getStates() {
|
||||
return states;
|
||||
}
|
||||
|
||||
public void setStates(States states) {
|
||||
this.states = states;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,93 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.BaseUuidEntity;
|
||||
import com.haulmont.cuba.core.entity.Versioned;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDelete;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@NamePattern("%s|name")
|
||||
@Table(name = "TMS_CONTACT_PERSON")
|
||||
@Entity(name = "tms_ContactPerson")
|
||||
public class ContactPerson extends BaseUuidEntity implements Versioned {
|
||||
private static final long serialVersionUID = -8558223710992415174L;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "NAME", nullable = false, length = 100)
|
||||
protected String name;
|
||||
|
||||
@Column(name = "PHONE", length = 100)
|
||||
protected String phone;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "MOBILE", nullable = false, length = 100)
|
||||
protected String mobile;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "EMAIL", nullable = false)
|
||||
protected String email;
|
||||
|
||||
@OnDeleteInverse(DeletePolicy.CASCADE)
|
||||
@OnDelete(DeletePolicy.UNLINK)
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "MERCHANT_ID")
|
||||
protected Merchant merchant;
|
||||
|
||||
@Version
|
||||
@Column(name = "VERSION", nullable = false)
|
||||
protected Integer version;
|
||||
|
||||
@Override
|
||||
public Integer getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setVersion(Integer version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public Merchant getMerchant() {
|
||||
return merchant;
|
||||
}
|
||||
|
||||
public void setMerchant(Merchant merchant) {
|
||||
this.merchant = merchant;
|
||||
}
|
||||
|
||||
public String getMobile() {
|
||||
return mobile;
|
||||
}
|
||||
|
||||
public void setMobile(String mobile) {
|
||||
this.mobile = mobile;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.StandardEntity;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@NamePattern("%s|name")
|
||||
@Table(name = "TMS_COUNTRY")
|
||||
@Entity(name = "tms_Country")
|
||||
public class Country extends StandardEntity {
|
||||
private static final long serialVersionUID = 2184358567137236838L;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "CODE", nullable = false, unique = true, length = 2)
|
||||
protected String code;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "NAME", nullable = false, length = 50)
|
||||
protected String name;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
}
|
||||
100
modules/global/src/com/cmobile/unifiedtms/entity/DeleteTask.java
Normal file
100
modules/global/src/com/cmobile/unifiedtms/entity/DeleteTask.java
Normal file
@ -0,0 +1,100 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.cmobile.unifiedtms.entity.enums.TaskStatus;
|
||||
import com.haulmont.addon.sdbmt.entity.StandardTenantEntity;
|
||||
import com.haulmont.chile.core.annotations.MetaProperty;
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDelete;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@NamePattern("%s|name")
|
||||
@Table(name = "TMS_DELETE_TASK")
|
||||
@Entity(name = "tms_DeleteTask")
|
||||
public class DeleteTask extends StandardTenantEntity {
|
||||
private static final long serialVersionUID = -6504351468996643265L;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "NAME", nullable = false, length = 50)
|
||||
protected String name;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "STATUS", nullable = false)
|
||||
protected Integer status;
|
||||
|
||||
@Column(name = "OLD_STATUS", nullable = true)
|
||||
protected Integer oldStatus;
|
||||
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
@Column(name = "DELETE_TIME")
|
||||
protected Date deleteTime;
|
||||
|
||||
@OnDelete(DeletePolicy.UNLINK)
|
||||
@ManyToMany
|
||||
@MetaProperty
|
||||
@JoinTable(name = "TMS_DELETE_TASK_APPLICATION_SIMPLE_LINK",
|
||||
joinColumns = @JoinColumn(name = "DELETE_TASK_ID"),
|
||||
inverseJoinColumns = @JoinColumn(name = "APPLICATION_SIMPLE_ID"))
|
||||
protected List<ApplicationSimple> applications;
|
||||
|
||||
@JoinTable(name = "TMS_DELETE_TASK_TERMINAL_GROUP_LINK",
|
||||
joinColumns = @JoinColumn(name = "DELETE_TASK_ID"),
|
||||
inverseJoinColumns = @JoinColumn(name = "GROUP_ID"))
|
||||
@OnDeleteInverse(DeletePolicy.UNLINK)
|
||||
@OnDelete(DeletePolicy.UNLINK)
|
||||
@ManyToMany
|
||||
protected List<TerminalGroup> terminalGroups;
|
||||
|
||||
public void setApplications(List<ApplicationSimple> applications) {
|
||||
this.applications = applications;
|
||||
}
|
||||
|
||||
public List<ApplicationSimple> getApplications() {
|
||||
return applications;
|
||||
}
|
||||
|
||||
public TaskStatus getStatus() {
|
||||
return status == null ? null : TaskStatus.fromId(status);
|
||||
}
|
||||
|
||||
public void setStatus(TaskStatus status) {
|
||||
this.status = status == null ? null : status.getId();
|
||||
}
|
||||
|
||||
public TaskStatus getOldStatus() {
|
||||
return oldStatus == null ? null : TaskStatus.fromId(oldStatus);
|
||||
}
|
||||
|
||||
public void setOldStatus(TaskStatus oldStatus) {
|
||||
this.oldStatus = oldStatus == null ? null : oldStatus.getId();
|
||||
}
|
||||
|
||||
public List<TerminalGroup> getTerminalGroups() {
|
||||
return terminalGroups;
|
||||
}
|
||||
|
||||
public void setTerminalGroups(List<TerminalGroup> terminalGroups) {
|
||||
this.terminalGroups = terminalGroups;
|
||||
}
|
||||
|
||||
public Date getDeleteTime() {
|
||||
return deleteTime;
|
||||
}
|
||||
|
||||
public void setDeleteTime(Date deleteTime) {
|
||||
this.deleteTime = deleteTime;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,171 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.cmobile.unifiedtms.entity.enums.DeleteTaskActivity;
|
||||
import com.haulmont.cuba.core.entity.BaseUuidEntity;
|
||||
import com.haulmont.cuba.core.entity.Creatable;
|
||||
import com.haulmont.cuba.core.entity.Updatable;
|
||||
import com.haulmont.cuba.core.entity.Versioned;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDelete;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
|
||||
@Table(name = "TMS_DELETE_TASK_LOG")
|
||||
@Entity(name = "tms_DeleteTaskLog")
|
||||
public class DeleteTaskLog extends BaseUuidEntity implements Creatable, Updatable, Versioned {
|
||||
private static final long serialVersionUID = 4121894911005173586L;
|
||||
|
||||
@NotNull
|
||||
@OnDeleteInverse(DeletePolicy.CASCADE)
|
||||
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "TASK_ID")
|
||||
protected DeleteTask task;
|
||||
|
||||
@NotNull
|
||||
@OnDeleteInverse(DeletePolicy.CASCADE)
|
||||
@OnDelete(DeletePolicy.UNLINK)
|
||||
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "APPLICATION_SIMPLE_ID")
|
||||
protected ApplicationSimple application;
|
||||
|
||||
@NotNull
|
||||
@OnDeleteInverse(DeletePolicy.CASCADE)
|
||||
@OnDelete(DeletePolicy.UNLINK)
|
||||
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "TERMINAL_ID")
|
||||
protected Terminal terminal;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "ACTIVITY", nullable = false)
|
||||
protected Integer activity;
|
||||
|
||||
@Column(name = "OLD_ACTIVITY", nullable = true)
|
||||
protected Integer oldActivity;
|
||||
|
||||
@Column(name = "CREATE_TS")
|
||||
protected Date createTs;
|
||||
|
||||
@Column(name = "CREATED_BY", length = 50)
|
||||
protected String createdBy;
|
||||
|
||||
@Column(name = "UPDATE_TS")
|
||||
protected Date updateTs;
|
||||
|
||||
@Column(name = "UPDATED_BY", length = 50)
|
||||
protected String updatedBy;
|
||||
|
||||
@Version
|
||||
@Column(name = "VERSION", nullable = false)
|
||||
protected Integer version;
|
||||
|
||||
@Column(name = "LAST_BROADCAST_TS")
|
||||
protected Date lastBroadcastTs;
|
||||
|
||||
@Column(name = "MESSAGE", nullable = true)
|
||||
protected String message;
|
||||
|
||||
public void setActivity(DeleteTaskActivity activity) {
|
||||
this.activity = activity == null ? null : activity.getId();
|
||||
}
|
||||
|
||||
public DeleteTaskActivity getActivity() {
|
||||
return activity == null ? null : DeleteTaskActivity.fromId(activity);
|
||||
}
|
||||
|
||||
public void setOldActivity(DeleteTaskActivity oldActivity) {
|
||||
this.oldActivity = oldActivity == null ? null : oldActivity.getId();
|
||||
}
|
||||
|
||||
public DeleteTaskActivity getOldActivity() {
|
||||
return oldActivity == null ? null : DeleteTaskActivity.fromId(oldActivity);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setVersion(Integer version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUpdatedBy() {
|
||||
return updatedBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUpdatedBy(String updatedBy) {
|
||||
this.updatedBy = updatedBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Date getUpdateTs() {
|
||||
return updateTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUpdateTs(Date updateTs) {
|
||||
this.updateTs = updateTs;
|
||||
}
|
||||
|
||||
public Date getLastBroadcastTs() {
|
||||
return lastBroadcastTs;
|
||||
}
|
||||
|
||||
public void setLastBroadcastTs(Date lastBroadcastTs) {
|
||||
this.lastBroadcastTs = lastBroadcastTs;
|
||||
}
|
||||
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public Date getCreateTs() {
|
||||
return createTs;
|
||||
}
|
||||
|
||||
public void setCreateTs(Date createTs) {
|
||||
this.createTs = createTs;
|
||||
}
|
||||
|
||||
public ApplicationSimple getApplication() {
|
||||
return application;
|
||||
}
|
||||
|
||||
public void setApplication(ApplicationSimple application) {
|
||||
this.application = application;
|
||||
}
|
||||
|
||||
public Terminal getTerminal() {
|
||||
return terminal;
|
||||
}
|
||||
|
||||
public void setTerminal(Terminal terminal) {
|
||||
this.terminal = terminal;
|
||||
}
|
||||
|
||||
public DeleteTask getTask() {
|
||||
return task;
|
||||
}
|
||||
|
||||
public void setTask(DeleteTask task) {
|
||||
this.task = task;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,66 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.Creatable;
|
||||
import com.haulmont.cuba.core.entity.StandardEntity;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Lob;
|
||||
import javax.persistence.Table;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@NamePattern("%s|model")
|
||||
@Table(name = "TMS_DEVICE_MODEL")
|
||||
@Entity(name = "tms_DeviceModel")
|
||||
public class DeviceModel extends StandardEntity {
|
||||
private static final long serialVersionUID = 5005483143510234743L;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "MODEL", nullable = false, length = 50)
|
||||
protected String model;
|
||||
|
||||
@Lob
|
||||
@Column(name = "MODEL_INFORMATION")
|
||||
protected String modelInformation;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "VENDOR_NAME", nullable = false, length = 100)
|
||||
protected String vendorName;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "VENDOR_COUNTRY", nullable = false, length = 50)
|
||||
protected String vendorCountry;
|
||||
|
||||
public String getModelInformation() {
|
||||
return modelInformation;
|
||||
}
|
||||
|
||||
public void setModelInformation(String modelInformation) {
|
||||
this.modelInformation = modelInformation;
|
||||
}
|
||||
|
||||
public String getModel() {
|
||||
return model;
|
||||
}
|
||||
|
||||
public void setModel(String model) {
|
||||
this.model = model;
|
||||
}
|
||||
|
||||
public String getVendorCountry() {
|
||||
return vendorCountry;
|
||||
}
|
||||
|
||||
public void setVendorCountry(String vendorCountry) {
|
||||
this.vendorCountry = vendorCountry;
|
||||
}
|
||||
|
||||
public String getVendorName() {
|
||||
return vendorName;
|
||||
}
|
||||
|
||||
public void setVendorName(String vendorName) {
|
||||
this.vendorName = vendorName;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,303 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.cmobile.unifiedtms.ext.entity.Acquirer;
|
||||
import com.haulmont.addon.sdbmt.entity.StandardTenantEntity;
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.chile.core.annotations.NumberFormat;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDelete;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@NamePattern("%s|name")
|
||||
@Table(name = "TMS_DEVICE_PROFILE")
|
||||
@Entity(name = "tms_DeviceProfile")
|
||||
public class DeviceProfile extends StandardTenantEntity {
|
||||
private static final long serialVersionUID = 3648156946531995183L;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "NAME", nullable = false, length = 50)
|
||||
protected String name;
|
||||
|
||||
@NotNull
|
||||
@NumberFormat(pattern = "###,###")
|
||||
@Column(name = "HEARTBEAT_INTERVAL", nullable = false)
|
||||
protected Integer heartbeatInterval;
|
||||
|
||||
@NumberFormat(pattern = "###,###")
|
||||
@NotNull
|
||||
@Column(name = "DIAGNOSTIC_INTERVAL", nullable = false)
|
||||
protected Integer diagnosticInterval;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "MASK_HOME_BUTTON", nullable = false)
|
||||
protected Boolean maskHomeButton = false;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "MASK_STATUS_BAR", nullable = false)
|
||||
protected Boolean maskStatusBar = false;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "SCHEDULE_REBOOT", nullable = false)
|
||||
protected Boolean scheduleReboot = false;
|
||||
|
||||
@Temporal(TemporalType.TIME)
|
||||
@Column(name = "SCHEDULE_REBOOT_TIME")
|
||||
protected Date scheduleRebootTime;
|
||||
|
||||
@Column(name = "RELOCATION_ALERT")
|
||||
protected Boolean relocationAlert;
|
||||
|
||||
@NumberFormat(pattern = "###,###")
|
||||
@Column(name = "MOVING_THRESHOLD")
|
||||
protected Integer movingThreshold;
|
||||
|
||||
@Column(name = "ADMIN_PASSWORD", length = 8)
|
||||
protected String adminPassword;
|
||||
|
||||
@Column(name = "IS_DEFAULT")
|
||||
protected Boolean isDefault;
|
||||
|
||||
@JoinTable(name = "TMS_DEVICE_PROFILE_ACQUIRER_LINK",
|
||||
joinColumns = @JoinColumn(name = "DEVICE_PROFILE_ID"),
|
||||
inverseJoinColumns = @JoinColumn(name = "ACQUIRER_ID"))
|
||||
@OnDeleteInverse(DeletePolicy.DENY)
|
||||
@OnDelete(DeletePolicy.UNLINK)
|
||||
@ManyToMany
|
||||
protected List<Acquirer> acquirers;
|
||||
|
||||
@Column(name = "FRONT_APP")
|
||||
protected String frontApp;
|
||||
|
||||
@OrderBy("packageName asc")
|
||||
@OnDeleteInverse(DeletePolicy.UNLINK)
|
||||
@OnDelete(DeletePolicy.CASCADE)
|
||||
@OneToMany(mappedBy = "profile")
|
||||
protected List<DeviceProfileApp> apps;
|
||||
|
||||
@Column(name = "HOST_REPORT", nullable = true)
|
||||
protected Boolean hostReport;
|
||||
|
||||
@Column(name = "HOST_REPORT_TIMEOUT", nullable = true)
|
||||
protected Integer hostReportTimeout;
|
||||
|
||||
@Column(name = "HOST_REPORT_URL", nullable = true, length = 255)
|
||||
protected String hostReportUrl;
|
||||
|
||||
@Column(name = "HOST_REPORT_API_KEY", nullable = true, length = 64)
|
||||
protected String hostReportApiKey;
|
||||
|
||||
@Column(name = "HOST_LOGGING", nullable = true)
|
||||
protected Boolean hostLogging;
|
||||
|
||||
@Column(name = "HOST_LOGGING_TIMEOUT", nullable = true)
|
||||
protected Integer hostLoggingTimeout;
|
||||
|
||||
@Column(name = "HOST_LOGGING_URL", nullable = true, length = 255)
|
||||
protected String hostLoggingUrl;
|
||||
|
||||
@Column(name = "HOST_LOGGING_API_KEY", nullable = true, length = 64)
|
||||
protected String hostLoggingApiKey;
|
||||
|
||||
@Column(name = "HOST_LOGGING_INTERVAL", nullable = true)
|
||||
protected Integer hostLoggingInterval;
|
||||
|
||||
@Column(name = "AUTO_START_APP")
|
||||
protected Boolean autoStartApp;
|
||||
|
||||
public List<DeviceProfileApp> getApps() {
|
||||
return apps;
|
||||
}
|
||||
|
||||
public void setApps(List<DeviceProfileApp> apps) {
|
||||
this.apps = apps;
|
||||
}
|
||||
|
||||
public List<Acquirer> getAcquirers() {
|
||||
return acquirers;
|
||||
}
|
||||
|
||||
public void setAcquirers(List<Acquirer> acquirers) {
|
||||
this.acquirers = acquirers;
|
||||
}
|
||||
|
||||
public String getAdminPassword() {
|
||||
return adminPassword;
|
||||
}
|
||||
|
||||
public void setAdminPassword(String adminPassword) {
|
||||
this.adminPassword = adminPassword;
|
||||
}
|
||||
|
||||
public Boolean getIsDefault() {
|
||||
return isDefault;
|
||||
}
|
||||
|
||||
public void setIsDefault(Boolean isDefault) {
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
|
||||
public Date getScheduleRebootTime() {
|
||||
return scheduleRebootTime;
|
||||
}
|
||||
|
||||
public void setScheduleRebootTime(Date scheduleRebootTime) {
|
||||
this.scheduleRebootTime = scheduleRebootTime;
|
||||
}
|
||||
|
||||
public Boolean getScheduleReboot() {
|
||||
return scheduleReboot;
|
||||
}
|
||||
|
||||
public void setScheduleReboot(Boolean scheduleReboot) {
|
||||
this.scheduleReboot = scheduleReboot;
|
||||
}
|
||||
|
||||
public Boolean getMaskStatusBar() {
|
||||
return maskStatusBar;
|
||||
}
|
||||
|
||||
public void setMaskStatusBar(Boolean maskStatusBar) {
|
||||
this.maskStatusBar = maskStatusBar;
|
||||
}
|
||||
|
||||
public Boolean getMaskHomeButton() {
|
||||
return maskHomeButton;
|
||||
}
|
||||
|
||||
public void setMaskHomeButton(Boolean maskHomeButton) {
|
||||
this.maskHomeButton = maskHomeButton;
|
||||
}
|
||||
|
||||
public Integer getDiagnosticInterval() {
|
||||
return diagnosticInterval;
|
||||
}
|
||||
|
||||
public void setDiagnosticInterval(Integer diagnosticInterval) {
|
||||
this.diagnosticInterval = diagnosticInterval;
|
||||
}
|
||||
|
||||
public Integer getHeartbeatInterval() {
|
||||
return heartbeatInterval;
|
||||
}
|
||||
|
||||
public void setHeartbeatInterval(Integer heartbeatInterval) {
|
||||
this.heartbeatInterval = heartbeatInterval;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getMovingThreshold() {
|
||||
return movingThreshold;
|
||||
}
|
||||
|
||||
public void setMovingThreshold(Integer movingThreshold) {
|
||||
this.movingThreshold = movingThreshold;
|
||||
}
|
||||
|
||||
public Boolean getRelocationAlert() {
|
||||
return relocationAlert;
|
||||
}
|
||||
|
||||
public void setRelocationAlert(Boolean relocationAlert) {
|
||||
this.relocationAlert = relocationAlert;
|
||||
}
|
||||
|
||||
public String getFrontApp() {
|
||||
return frontApp;
|
||||
}
|
||||
|
||||
public void setFrontApp(String frontApp) {
|
||||
this.frontApp = frontApp;
|
||||
}
|
||||
|
||||
public Boolean getHostReport() {
|
||||
return hostReport;
|
||||
}
|
||||
|
||||
public void setHostReport(Boolean hostReport) {
|
||||
this.hostReport = hostReport;
|
||||
}
|
||||
|
||||
public Integer getHostReportTimeout() {
|
||||
return hostReportTimeout;
|
||||
}
|
||||
|
||||
public void setHostReportTimeout(Integer hostReportTimeout) {
|
||||
this.hostReportTimeout = hostReportTimeout;
|
||||
}
|
||||
|
||||
public String getHostReportUrl() {
|
||||
return hostReportUrl;
|
||||
}
|
||||
|
||||
public void setHostReportUrl(String hostReportUrl) {
|
||||
this.hostReportUrl = hostReportUrl;
|
||||
}
|
||||
|
||||
public String getHostReportApiKey() {
|
||||
return hostReportApiKey;
|
||||
}
|
||||
|
||||
public void setHostReportApiKey(String hostReportApiKey) {
|
||||
this.hostReportApiKey = hostReportApiKey;
|
||||
}
|
||||
|
||||
public Boolean getHostLogging() {
|
||||
return hostLogging;
|
||||
}
|
||||
|
||||
public void setHostLogging(Boolean hostLogging) {
|
||||
this.hostLogging = hostLogging;
|
||||
}
|
||||
|
||||
public Integer getHostLoggingTimeout() {
|
||||
return hostLoggingTimeout;
|
||||
}
|
||||
|
||||
public void setHostLoggingTimeout(Integer hostLoggingTimeout) {
|
||||
this.hostLoggingTimeout = hostLoggingTimeout;
|
||||
}
|
||||
|
||||
public String getHostLoggingUrl() {
|
||||
return hostLoggingUrl;
|
||||
}
|
||||
|
||||
public void setHostLoggingUrl(String hostLoggingUrl) {
|
||||
this.hostLoggingUrl = hostLoggingUrl;
|
||||
}
|
||||
|
||||
public String getHostLoggingApiKey() {
|
||||
return hostLoggingApiKey;
|
||||
}
|
||||
|
||||
public void setHostLoggingApiKey(String hostLoggingApiKey) {
|
||||
this.hostLoggingApiKey = hostLoggingApiKey;
|
||||
}
|
||||
|
||||
public Integer getHostLoggingInterval() {
|
||||
return hostLoggingInterval;
|
||||
}
|
||||
|
||||
public void setHostLoggingInterval(Integer hostLoggingInterval) {
|
||||
this.hostLoggingInterval = hostLoggingInterval;
|
||||
}
|
||||
|
||||
public Boolean getAutoStartApp() {
|
||||
return autoStartApp;
|
||||
}
|
||||
|
||||
public void setAutoStartApp(Boolean autoStartApp) {
|
||||
this.autoStartApp = autoStartApp;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.BaseUuidEntity;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDelete;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@Table(name = "TMS_DEVICE_PROFILE_APP")
|
||||
@NamePattern("%s|packageName")
|
||||
@Entity(name = "tms_DeviceProfileApp")
|
||||
public class DeviceProfileApp extends BaseUuidEntity {
|
||||
private static final long serialVersionUID = -856427430430192794L;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "PACKAGE_NAME", nullable = false)
|
||||
protected String packageName;
|
||||
|
||||
@NotNull
|
||||
@OnDeleteInverse(DeletePolicy.DENY)
|
||||
@OnDelete(DeletePolicy.CASCADE)
|
||||
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "PROFILE_ID")
|
||||
protected DeviceProfile profile;
|
||||
|
||||
public String getPackageName() {
|
||||
return packageName;
|
||||
}
|
||||
|
||||
public void setPackageName(String packageName) {
|
||||
this.packageName = packageName;
|
||||
}
|
||||
|
||||
public DeviceProfile getProfile() {
|
||||
return profile;
|
||||
}
|
||||
|
||||
public void setProfile(DeviceProfile profile) {
|
||||
this.profile = profile;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,224 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.List;
|
||||
|
||||
@Table(name = "TMS_DIAGNOSTIC_INFO")
|
||||
@Entity(name = "tms_DiagnosticInfo")
|
||||
public class DiagnosticInfo extends HeartBeat {
|
||||
private static final long serialVersionUID = -5303253400862171364L;
|
||||
|
||||
@Column(name = "MEID", length = 20)
|
||||
protected String meid;
|
||||
|
||||
@Lob
|
||||
@Column(name = "INSTALLED_APPS_STRING")
|
||||
protected String installedAppsString;
|
||||
|
||||
@Column(name = "TOTAL_MEMORY")
|
||||
protected Long totalMemory;
|
||||
|
||||
@Column(name = "AVAILABLE_MEMORY")
|
||||
protected Long availableMemory;
|
||||
|
||||
@Column(name = "TOTAL_FLASH_MEMORY")
|
||||
protected Long totalFlashMemory;
|
||||
|
||||
@Column(name = "AVAILABLE_FLASH_MEMORY")
|
||||
protected Long availableFlashMemory;
|
||||
|
||||
@Column(name = "TOTAL_MOBILE_DATA")
|
||||
protected Long totalMobileData;
|
||||
|
||||
@Column(name = "SWITCHING_TIMES")
|
||||
protected Integer switchingTimes;
|
||||
|
||||
@Column(name = "CURRENT_BOOT_TIME")
|
||||
protected Integer currentBootTime;
|
||||
|
||||
@Column(name = "TOTAL_BOOT_TIME")
|
||||
protected Integer totalBootTime;
|
||||
|
||||
@Column(name = "TOTAL_LENGTH_PRINTED")
|
||||
protected Double totalLengthPrinted;
|
||||
|
||||
@Column(name = "SWIPING_CARD_TIMES")
|
||||
protected Integer swipingCardTimes;
|
||||
|
||||
@Column(name = "DIP_INSERTING_TIMES")
|
||||
protected Integer dipInsertingTimes;
|
||||
|
||||
@Column(name = "NFC_CARD_READING_TIMES")
|
||||
protected Integer nfcCardReadingTimes;
|
||||
|
||||
@Column(name = "FRONT_CAMERA_OPEN_TIMES")
|
||||
protected Integer frontCameraOpenTimes;
|
||||
|
||||
@Column(name = "REAR_CAMERA_OPEN_TIMES")
|
||||
protected Integer rearCameraOpenTimes;
|
||||
|
||||
@Column(name = "SAM_AVAILABLE")
|
||||
protected Boolean samAvailable;
|
||||
|
||||
@Column(name = "CHARGE_TIMES")
|
||||
protected Integer chargeTimes;
|
||||
|
||||
@OnDeleteInverse(DeletePolicy.DENY)
|
||||
@OneToMany(mappedBy = "diagnosticInfo", cascade = CascadeType.PERSIST)
|
||||
protected List<ApplicationSimple> installedApps;
|
||||
|
||||
public void setTotalLengthPrinted(Double totalLengthPrinted) {
|
||||
this.totalLengthPrinted = totalLengthPrinted;
|
||||
}
|
||||
|
||||
public Double getTotalLengthPrinted() {
|
||||
return totalLengthPrinted;
|
||||
}
|
||||
|
||||
public String getInstalledAppsString() {
|
||||
return installedAppsString;
|
||||
}
|
||||
|
||||
public void setInstalledAppsString(String installedAppsString) {
|
||||
this.installedAppsString = installedAppsString;
|
||||
}
|
||||
|
||||
public void setInstalledApps(List<ApplicationSimple> installedApps) {
|
||||
this.installedApps = installedApps;
|
||||
}
|
||||
|
||||
public List<ApplicationSimple> getInstalledApps() {
|
||||
return installedApps;
|
||||
}
|
||||
|
||||
public void setTotalMemory(Long totalMemory) {
|
||||
this.totalMemory = totalMemory;
|
||||
}
|
||||
|
||||
public Long getTotalMemory() {
|
||||
return totalMemory;
|
||||
}
|
||||
|
||||
public void setAvailableMemory(Long availableMemory) {
|
||||
this.availableMemory = availableMemory;
|
||||
}
|
||||
|
||||
public Long getAvailableMemory() {
|
||||
return availableMemory;
|
||||
}
|
||||
|
||||
public void setTotalFlashMemory(Long totalFlashMemory) {
|
||||
this.totalFlashMemory = totalFlashMemory;
|
||||
}
|
||||
|
||||
public Long getTotalFlashMemory() {
|
||||
return totalFlashMemory;
|
||||
}
|
||||
|
||||
public void setAvailableFlashMemory(Long availableFlashMemory) {
|
||||
this.availableFlashMemory = availableFlashMemory;
|
||||
}
|
||||
|
||||
public Long getAvailableFlashMemory() {
|
||||
return availableFlashMemory;
|
||||
}
|
||||
|
||||
public void setTotalMobileData(Long totalMobileData) {
|
||||
this.totalMobileData = totalMobileData;
|
||||
}
|
||||
|
||||
public Long getTotalMobileData() {
|
||||
return totalMobileData;
|
||||
}
|
||||
|
||||
public void setCurrentBootTime(Integer currentBootTime) {
|
||||
this.currentBootTime = currentBootTime;
|
||||
}
|
||||
|
||||
public Integer getCurrentBootTime() {
|
||||
return currentBootTime;
|
||||
}
|
||||
|
||||
public void setTotalBootTime(Integer totalBootTime) {
|
||||
this.totalBootTime = totalBootTime;
|
||||
}
|
||||
|
||||
public Integer getTotalBootTime() {
|
||||
return totalBootTime;
|
||||
}
|
||||
|
||||
public Integer getChargeTimes() {
|
||||
return chargeTimes;
|
||||
}
|
||||
|
||||
public void setChargeTimes(Integer chargeTimes) {
|
||||
this.chargeTimes = chargeTimes;
|
||||
}
|
||||
|
||||
public Integer getRearCameraOpenTimes() {
|
||||
return rearCameraOpenTimes;
|
||||
}
|
||||
|
||||
public void setRearCameraOpenTimes(Integer rearCameraOpenTimes) {
|
||||
this.rearCameraOpenTimes = rearCameraOpenTimes;
|
||||
}
|
||||
|
||||
public Integer getFrontCameraOpenTimes() {
|
||||
return frontCameraOpenTimes;
|
||||
}
|
||||
|
||||
public void setFrontCameraOpenTimes(Integer frontCameraOpenTimes) {
|
||||
this.frontCameraOpenTimes = frontCameraOpenTimes;
|
||||
}
|
||||
|
||||
public Integer getNfcCardReadingTimes() {
|
||||
return nfcCardReadingTimes;
|
||||
}
|
||||
|
||||
public void setNfcCardReadingTimes(Integer nfcCardReadingTimes) {
|
||||
this.nfcCardReadingTimes = nfcCardReadingTimes;
|
||||
}
|
||||
|
||||
public Integer getDipInsertingTimes() {
|
||||
return dipInsertingTimes;
|
||||
}
|
||||
|
||||
public void setDipInsertingTimes(Integer dipInsertingTimes) {
|
||||
this.dipInsertingTimes = dipInsertingTimes;
|
||||
}
|
||||
|
||||
public Integer getSwipingCardTimes() {
|
||||
return swipingCardTimes;
|
||||
}
|
||||
|
||||
public void setSwipingCardTimes(Integer swipingCardTimes) {
|
||||
this.swipingCardTimes = swipingCardTimes;
|
||||
}
|
||||
|
||||
public Integer getSwitchingTimes() {
|
||||
return switchingTimes;
|
||||
}
|
||||
|
||||
public void setSwitchingTimes(Integer switchingTimes) {
|
||||
this.switchingTimes = switchingTimes;
|
||||
}
|
||||
|
||||
public String getMeid() {
|
||||
return meid;
|
||||
}
|
||||
|
||||
public void setMeid(String meid) {
|
||||
this.meid = meid;
|
||||
}
|
||||
|
||||
public Boolean getSamAvailable() {
|
||||
return samAvailable;
|
||||
}
|
||||
|
||||
public void setSamAvailable(Boolean samAvailable) {
|
||||
this.samAvailable = samAvailable;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,419 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.BaseUuidEntity;
|
||||
import com.haulmont.cuba.core.entity.Creatable;
|
||||
import com.haulmont.cuba.core.global.DesignSupport;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.Date;
|
||||
import java.util.UUID;
|
||||
|
||||
@DesignSupport("{'dbView':true,'imported':true,'generateDdl':false}")
|
||||
@NamePattern("%s|terminalId")
|
||||
@Table(name = "tms_v_terminal_diagnostic_info")
|
||||
@Entity(name = "tms_DiagnosticInfoReport")
|
||||
public class DiagnosticInfoReport extends BaseUuidEntity implements Creatable {
|
||||
private static final long serialVersionUID = 3273694768616434323L;
|
||||
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
@Column(name = "create_ts")
|
||||
protected Date createTs;
|
||||
|
||||
@Column(name = "created_by", length = 50)
|
||||
protected String createdBy;
|
||||
|
||||
@Column(name = "available_flash_memory")
|
||||
protected Long availableFlashMemory;
|
||||
|
||||
@Column(name = "available_memory")
|
||||
protected Long availableMemory;
|
||||
|
||||
@Column(name = "battery_percentage")
|
||||
protected Integer batteryPercentage;
|
||||
|
||||
@Column(name = "battery_temp")
|
||||
protected Double batteryTemp;
|
||||
|
||||
@Column(name = "charge_times")
|
||||
protected Integer chargeTimes;
|
||||
|
||||
@Column(name = "current_boot_time")
|
||||
protected Integer currentBootTime;
|
||||
|
||||
@Column(name = "dip_inserting_times")
|
||||
protected Integer dipInsertingTimes;
|
||||
|
||||
@Column(name = "front_camera_open_times")
|
||||
protected Integer frontCameraOpenTimes;
|
||||
|
||||
@Column(name = "latitude")
|
||||
protected Double latitude;
|
||||
|
||||
@Column(name = "longitude")
|
||||
protected Double longitude;
|
||||
|
||||
@Column(name = "meid", length = 20)
|
||||
protected String meid;
|
||||
|
||||
@Column(name = "nfc_card_reading_times")
|
||||
protected Integer nfcCardReadingTimes;
|
||||
|
||||
@Column(name = "rear_camera_open_times")
|
||||
protected Integer rearCameraOpenTimes;
|
||||
|
||||
@Column(name = "swiping_card_times")
|
||||
protected Integer swipingCardTimes;
|
||||
|
||||
@Column(name = "switching_times")
|
||||
protected Integer switchingTimes;
|
||||
|
||||
@Column(name = "TERMINAL_EXT_ID")
|
||||
protected UUID terminalExtId;
|
||||
|
||||
@Column(name = "tid")
|
||||
protected String tid;
|
||||
|
||||
@Column(name = "terminal_sn", length = 30)
|
||||
protected String terminalSn;
|
||||
|
||||
@Column(name = "total_boot_time")
|
||||
protected Integer totalBootTime;
|
||||
|
||||
@Column(name = "total_flash_memory")
|
||||
protected Long totalFlashMemory;
|
||||
|
||||
@Column(name = "total_length_printed")
|
||||
protected Double totalLengthPrinted;
|
||||
|
||||
@Column(name = "total_memory")
|
||||
protected Long totalMemory;
|
||||
|
||||
@Column(name = "total_mobile_data")
|
||||
protected Long totalMobileData;
|
||||
|
||||
@Column(name = "sam_available")
|
||||
protected Boolean samAvailable;
|
||||
|
||||
@Column(name = "android_os_version")
|
||||
protected String androidOSVersion;
|
||||
|
||||
@Column(name = "android_kernel_version")
|
||||
protected String androidKernelVersion;
|
||||
|
||||
@Column(name = "rom_version")
|
||||
protected String romVersion;
|
||||
|
||||
@Column(name = "firmware_version")
|
||||
protected String firmwareVersion;
|
||||
|
||||
@Column(name = "hardware_version")
|
||||
protected String hardwareVersion;
|
||||
|
||||
@Column(name = "sp_version")
|
||||
protected String spVersion;
|
||||
|
||||
@Column(name = "vf_service_version")
|
||||
protected String vfServiceVersion;
|
||||
|
||||
@Column(name = "vrk_sn")
|
||||
protected String vrkSn;
|
||||
|
||||
@Column(name = "installed_apps")
|
||||
protected String installedApps;
|
||||
|
||||
@Column(name = "cell_infos")
|
||||
protected String cellInfos;
|
||||
|
||||
@Override
|
||||
public Date getCreateTs() {
|
||||
return createTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreateTs(Date createTs) {
|
||||
this.createTs = createTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public Long getAvailableFlashMemory() {
|
||||
return availableFlashMemory;
|
||||
}
|
||||
|
||||
public void setAvailableFlashMemory(Long availableFlashMemory) {
|
||||
this.availableFlashMemory = availableFlashMemory;
|
||||
}
|
||||
|
||||
public Long getAvailableMemory() {
|
||||
return availableMemory;
|
||||
}
|
||||
|
||||
public void setAvailableMemory(Long availableMemory) {
|
||||
this.availableMemory = availableMemory;
|
||||
}
|
||||
|
||||
public Integer getBatteryPercentage() {
|
||||
return batteryPercentage;
|
||||
}
|
||||
|
||||
public void setBatteryPercentage(Integer batteryPercentage) {
|
||||
this.batteryPercentage = batteryPercentage;
|
||||
}
|
||||
|
||||
public Double getBatteryTemp() {
|
||||
return batteryTemp;
|
||||
}
|
||||
|
||||
public void setBatteryTemp(Double batteryTemp) {
|
||||
this.batteryTemp = batteryTemp;
|
||||
}
|
||||
|
||||
public Integer getChargeTimes() {
|
||||
return chargeTimes;
|
||||
}
|
||||
|
||||
public void setChargeTimes(Integer chargeTimes) {
|
||||
this.chargeTimes = chargeTimes;
|
||||
}
|
||||
|
||||
public Integer getCurrentBootTime() {
|
||||
return currentBootTime;
|
||||
}
|
||||
|
||||
public void setCurrentBootTime(Integer currentBootTime) {
|
||||
this.currentBootTime = currentBootTime;
|
||||
}
|
||||
|
||||
public Integer getDipInsertingTimes() {
|
||||
return dipInsertingTimes;
|
||||
}
|
||||
|
||||
public void setDipInsertingTimes(Integer dipInsertingTimes) {
|
||||
this.dipInsertingTimes = dipInsertingTimes;
|
||||
}
|
||||
|
||||
public Integer getFrontCameraOpenTimes() {
|
||||
return frontCameraOpenTimes;
|
||||
}
|
||||
|
||||
public void setFrontCameraOpenTimes(Integer frontCameraOpenTimes) {
|
||||
this.frontCameraOpenTimes = frontCameraOpenTimes;
|
||||
}
|
||||
|
||||
public Double getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(Double latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public Double getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(Double longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public String getMeid() {
|
||||
return meid;
|
||||
}
|
||||
|
||||
public void setMeid(String meid) {
|
||||
this.meid = meid;
|
||||
}
|
||||
|
||||
public Integer getNfcCardReadingTimes() {
|
||||
return nfcCardReadingTimes;
|
||||
}
|
||||
|
||||
public void setNfcCardReadingTimes(Integer nfcCardReadingTimes) {
|
||||
this.nfcCardReadingTimes = nfcCardReadingTimes;
|
||||
}
|
||||
|
||||
public Integer getRearCameraOpenTimes() {
|
||||
return rearCameraOpenTimes;
|
||||
}
|
||||
|
||||
public void setRearCameraOpenTimes(Integer rearCameraOpenTimes) {
|
||||
this.rearCameraOpenTimes = rearCameraOpenTimes;
|
||||
}
|
||||
|
||||
public Integer getSwipingCardTimes() {
|
||||
return swipingCardTimes;
|
||||
}
|
||||
|
||||
public void setSwipingCardTimes(Integer swipingCardTimes) {
|
||||
this.swipingCardTimes = swipingCardTimes;
|
||||
}
|
||||
|
||||
public Integer getSwitchingTimes() {
|
||||
return switchingTimes;
|
||||
}
|
||||
|
||||
public void setSwitchingTimes(Integer switchingTimes) {
|
||||
this.switchingTimes = switchingTimes;
|
||||
}
|
||||
|
||||
public String getTid() {
|
||||
return tid;
|
||||
}
|
||||
|
||||
public void setTid(String tid) {
|
||||
this.tid = tid;
|
||||
}
|
||||
|
||||
public UUID getTerminalExtId() {
|
||||
return terminalExtId;
|
||||
}
|
||||
|
||||
public void setTerminalExtId(UUID terminalExtId) {
|
||||
this.terminalExtId = terminalExtId;
|
||||
}
|
||||
|
||||
public String getTerminalSn() {
|
||||
return terminalSn;
|
||||
}
|
||||
|
||||
public void setTerminalSn(String terminalSn) {
|
||||
this.terminalSn = terminalSn;
|
||||
}
|
||||
|
||||
public Integer getTotalBootTime() {
|
||||
return totalBootTime;
|
||||
}
|
||||
|
||||
public void setTotalBootTime(Integer totalBootTime) {
|
||||
this.totalBootTime = totalBootTime;
|
||||
}
|
||||
|
||||
public Long getTotalFlashMemory() {
|
||||
return totalFlashMemory;
|
||||
}
|
||||
|
||||
public void setTotalFlashMemory(Long totalFlashMemory) {
|
||||
this.totalFlashMemory = totalFlashMemory;
|
||||
}
|
||||
|
||||
public Double getTotalLengthPrinted() {
|
||||
return totalLengthPrinted;
|
||||
}
|
||||
|
||||
public void setTotalLengthPrinted(Double totalLengthPrinted) {
|
||||
this.totalLengthPrinted = totalLengthPrinted;
|
||||
}
|
||||
|
||||
public Long getTotalMemory() {
|
||||
return totalMemory;
|
||||
}
|
||||
|
||||
public void setTotalMemory(Long totalMemory) {
|
||||
this.totalMemory = totalMemory;
|
||||
}
|
||||
|
||||
public Long getTotalMobileData() {
|
||||
return totalMobileData;
|
||||
}
|
||||
|
||||
public void setTotalMobileData(Long totalMobileData) {
|
||||
this.totalMobileData = totalMobileData;
|
||||
}
|
||||
|
||||
public Boolean getSamAvailable() {
|
||||
return samAvailable;
|
||||
}
|
||||
|
||||
public void setSamAvailable(Boolean samAvailable) {
|
||||
this.samAvailable = samAvailable;
|
||||
}
|
||||
|
||||
public String getAndroidOSVersion() {
|
||||
return androidOSVersion;
|
||||
}
|
||||
|
||||
public void setAndroidOSVersion(String androidOSVersion) {
|
||||
this.androidOSVersion = androidOSVersion;
|
||||
}
|
||||
|
||||
public String getAndroidKernelVersion() {
|
||||
return androidKernelVersion;
|
||||
}
|
||||
|
||||
public void setAndroidKernelVersion(String androidKernelVersion) {
|
||||
this.androidKernelVersion = androidKernelVersion;
|
||||
}
|
||||
|
||||
public String getRomVersion() {
|
||||
return romVersion;
|
||||
}
|
||||
|
||||
public void setRomVersion(String romVersion) {
|
||||
this.romVersion = romVersion;
|
||||
}
|
||||
|
||||
public String getFirmwareVersion() {
|
||||
return firmwareVersion;
|
||||
}
|
||||
|
||||
public void setFirmwareVersion(String firmwareVersion) {
|
||||
this.firmwareVersion = firmwareVersion;
|
||||
}
|
||||
|
||||
public String getHardwareVersion() {
|
||||
return hardwareVersion;
|
||||
}
|
||||
|
||||
public void setHardwareVersion(String hardwareVersion) {
|
||||
this.hardwareVersion = hardwareVersion;
|
||||
}
|
||||
|
||||
public String getSpVersion() {
|
||||
return spVersion;
|
||||
}
|
||||
|
||||
public void setSpVersion(String spVersion) {
|
||||
this.spVersion = spVersion;
|
||||
}
|
||||
|
||||
public String getVfServiceVersion() {
|
||||
return vfServiceVersion;
|
||||
}
|
||||
|
||||
public void setVfServiceVersion(String vfServiceVersion) {
|
||||
this.vfServiceVersion = vfServiceVersion;
|
||||
}
|
||||
|
||||
public String getVrkSn() {
|
||||
return vrkSn;
|
||||
}
|
||||
|
||||
public void setVrkSn(String vrkSn) {
|
||||
this.vrkSn = vrkSn;
|
||||
}
|
||||
|
||||
public String getInstalledApps() {
|
||||
return installedApps;
|
||||
}
|
||||
|
||||
public void setInstalledApps(String installedApps) {
|
||||
this.installedApps = installedApps;
|
||||
}
|
||||
|
||||
public String getCellInfos() {
|
||||
return cellInfos;
|
||||
}
|
||||
|
||||
public void setCellInfos(String cellInfos) {
|
||||
this.cellInfos = cellInfos;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.StandardEntity;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDelete;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@NamePattern("%s|name")
|
||||
@Table(name = "TMS_DISTRICT")
|
||||
@Entity(name = "tms_District")
|
||||
public class District extends StandardEntity {
|
||||
private static final long serialVersionUID = -1043079435144263046L;
|
||||
|
||||
@NotNull
|
||||
@OnDeleteInverse(DeletePolicy.DENY)
|
||||
@OnDelete(DeletePolicy.UNLINK)
|
||||
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "CITY_ID")
|
||||
protected City city;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "NAME", nullable = false, length = 50)
|
||||
protected String name;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public City getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(City city) {
|
||||
this.city = city;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,150 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.cmobile.unifiedtms.entity.enums.DownloadTimeType;
|
||||
import com.cmobile.unifiedtms.entity.enums.InstallationTimeType;
|
||||
import com.cmobile.unifiedtms.entity.enums.TaskNotificationType;
|
||||
import com.cmobile.unifiedtms.entity.enums.TaskStatus;
|
||||
import com.haulmont.addon.sdbmt.entity.StandardTenantEntity;
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDelete;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@NamePattern("%s|name")
|
||||
@Table(name = "TMS_DOWNLOAD_TASK")
|
||||
@Entity(name = "tms_DownloadTask")
|
||||
public class DownloadTask extends StandardTenantEntity {
|
||||
private static final long serialVersionUID = -6504351468996643265L;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "NAME", nullable = false, length = 50)
|
||||
protected String name;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "STATUS", nullable = false)
|
||||
protected Integer status;
|
||||
|
||||
@Column(name = "OLD_STATUS", nullable = true)
|
||||
protected Integer oldStatus;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "DOWNLOAD_TIME_TYPE", nullable = false)
|
||||
protected Integer downloadTimeType;
|
||||
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
@Column(name = "DOWNLOAD_TIME")
|
||||
protected Date downloadTime;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "INSTALLATION_TIME_TYPE", nullable = false)
|
||||
protected Integer installationTimeType;
|
||||
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
@Column(name = "INSTALLATION_TIME")
|
||||
protected Date installationTime;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "INSTALLATION_NOTIFICATION", nullable = false)
|
||||
protected Integer installationNotification;
|
||||
|
||||
@JoinTable(name = "TMS_DOWNLOAD_TASK_APPLICATION_LINK",
|
||||
joinColumns = @JoinColumn(name = "DOWNLOAD_TASK_ID"),
|
||||
inverseJoinColumns = @JoinColumn(name = "APPLICATION_ID"))
|
||||
@OnDeleteInverse(DeletePolicy.UNLINK)
|
||||
@OnDelete(DeletePolicy.UNLINK)
|
||||
@ManyToMany
|
||||
protected List<Application> applications;
|
||||
|
||||
@JoinTable(name = "TMS_DOWNLOAD_TASK_TERMINAL_GROUP_LINK",
|
||||
joinColumns = @JoinColumn(name = "DOWNLOAD_TASK_ID"),
|
||||
inverseJoinColumns = @JoinColumn(name = "GROUP_ID"))
|
||||
@OnDeleteInverse(DeletePolicy.UNLINK)
|
||||
@OnDelete(DeletePolicy.UNLINK)
|
||||
@ManyToMany
|
||||
protected List<TerminalGroup> terminalGroups;
|
||||
|
||||
public TaskStatus getStatus() {
|
||||
return status == null ? null : TaskStatus.fromId(status);
|
||||
}
|
||||
|
||||
public void setStatus(TaskStatus status) {
|
||||
this.status = status == null ? null : status.getId();
|
||||
}
|
||||
|
||||
public TaskStatus getOldStatus() {
|
||||
return oldStatus == null ? null : TaskStatus.fromId(oldStatus);
|
||||
}
|
||||
|
||||
public void setOldStatus(TaskStatus oldStatus) {
|
||||
this.oldStatus = oldStatus == null ? null : oldStatus.getId();
|
||||
}
|
||||
|
||||
public List<Application> getApplications() {
|
||||
return applications;
|
||||
}
|
||||
|
||||
public void setApplications(List<Application> applications) {
|
||||
this.applications = applications;
|
||||
}
|
||||
|
||||
public List<TerminalGroup> getTerminalGroups() {
|
||||
return terminalGroups;
|
||||
}
|
||||
|
||||
public void setTerminalGroups(List<TerminalGroup> terminalGroups) {
|
||||
this.terminalGroups = terminalGroups;
|
||||
}
|
||||
|
||||
public TaskNotificationType getInstallationNotification() {
|
||||
return installationNotification == null ? null : TaskNotificationType.fromId(installationNotification);
|
||||
}
|
||||
|
||||
public void setInstallationNotification(TaskNotificationType installationNotification) {
|
||||
this.installationNotification = installationNotification == null ? null : installationNotification.getId();
|
||||
}
|
||||
|
||||
public Date getInstallationTime() {
|
||||
return installationTime;
|
||||
}
|
||||
|
||||
public void setInstallationTime(Date installationTime) {
|
||||
this.installationTime = installationTime;
|
||||
}
|
||||
|
||||
public InstallationTimeType getInstallationTimeType() {
|
||||
return installationTimeType == null ? null : InstallationTimeType.fromId(installationTimeType);
|
||||
}
|
||||
|
||||
public void setInstallationTimeType(InstallationTimeType installationTimeType) {
|
||||
this.installationTimeType = installationTimeType == null ? null : installationTimeType.getId();
|
||||
}
|
||||
|
||||
public Date getDownloadTime() {
|
||||
return downloadTime;
|
||||
}
|
||||
|
||||
public void setDownloadTime(Date downloadTime) {
|
||||
this.downloadTime = downloadTime;
|
||||
}
|
||||
|
||||
public DownloadTimeType getDownloadTimeType() {
|
||||
return downloadTimeType == null ? null : DownloadTimeType.fromId(downloadTimeType);
|
||||
}
|
||||
|
||||
public void setDownloadTimeType(DownloadTimeType downloadTimeType) {
|
||||
this.downloadTimeType = downloadTimeType == null ? null : downloadTimeType.getId();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,172 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.cmobile.unifiedtms.entity.enums.DownloadTaskActivity;
|
||||
import com.haulmont.cuba.core.entity.BaseUuidEntity;
|
||||
import com.haulmont.cuba.core.entity.Creatable;
|
||||
import com.haulmont.cuba.core.entity.Updatable;
|
||||
import com.haulmont.cuba.core.entity.Versioned;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDelete;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
|
||||
@Table(name = "TMS_DOWNLOAD_TASK_LOG")
|
||||
@Entity(name = "tms_DownloadTaskLog")
|
||||
public class DownloadTaskLog extends BaseUuidEntity implements Creatable, Updatable, Versioned {
|
||||
private static final long serialVersionUID = 4115894911005173586L;
|
||||
|
||||
@NotNull
|
||||
@OnDeleteInverse(DeletePolicy.CASCADE)
|
||||
@OnDelete(DeletePolicy.UNLINK)
|
||||
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "TASK_ID")
|
||||
protected DownloadTask task;
|
||||
|
||||
@NotNull
|
||||
@OnDeleteInverse(DeletePolicy.CASCADE)
|
||||
@OnDelete(DeletePolicy.UNLINK)
|
||||
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "APPLICATION_ID")
|
||||
protected Application application;
|
||||
|
||||
@NotNull
|
||||
@OnDeleteInverse(DeletePolicy.CASCADE)
|
||||
@OnDelete(DeletePolicy.UNLINK)
|
||||
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "TERMINAL_ID")
|
||||
protected Terminal terminal;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "ACTIVITY", nullable = false)
|
||||
protected Integer activity;
|
||||
|
||||
@Column(name = "OLD_ACTIVITY", nullable = true)
|
||||
protected Integer oldActivity;
|
||||
|
||||
@Column(name = "CREATE_TS")
|
||||
protected Date createTs;
|
||||
|
||||
@Column(name = "CREATED_BY", length = 50)
|
||||
protected String createdBy;
|
||||
|
||||
@Column(name = "UPDATE_TS")
|
||||
protected Date updateTs;
|
||||
|
||||
@Column(name = "UPDATED_BY", length = 50)
|
||||
protected String updatedBy;
|
||||
|
||||
@Version
|
||||
@Column(name = "VERSION", nullable = false)
|
||||
protected Integer version;
|
||||
|
||||
@Column(name = "LAST_BROADCAST_TS")
|
||||
protected Date lastBroadcastTs;
|
||||
|
||||
@Column(name = "MESSAGE", nullable = true)
|
||||
protected String message;
|
||||
|
||||
@Override
|
||||
public Integer getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setVersion(Integer version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUpdatedBy() {
|
||||
return updatedBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUpdatedBy(String updatedBy) {
|
||||
this.updatedBy = updatedBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Date getUpdateTs() {
|
||||
return updateTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUpdateTs(Date updateTs) {
|
||||
this.updateTs = updateTs;
|
||||
}
|
||||
|
||||
public Date getLastBroadcastTs() {
|
||||
return lastBroadcastTs;
|
||||
}
|
||||
|
||||
public void setLastBroadcastTs(Date lastBroadcastTs) {
|
||||
this.lastBroadcastTs = lastBroadcastTs;
|
||||
}
|
||||
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public Date getCreateTs() {
|
||||
return createTs;
|
||||
}
|
||||
|
||||
public void setCreateTs(Date createTs) {
|
||||
this.createTs = createTs;
|
||||
}
|
||||
|
||||
public DownloadTaskActivity getActivity() {
|
||||
return activity == null ? null : DownloadTaskActivity.fromId(activity);
|
||||
}
|
||||
|
||||
public void setActivity(DownloadTaskActivity activity) {
|
||||
this.activity = activity == null ? null : activity.getId();
|
||||
}
|
||||
|
||||
public DownloadTaskActivity getOldActivity() {
|
||||
return oldActivity == null ? null : DownloadTaskActivity.fromId(oldActivity);
|
||||
}
|
||||
|
||||
public void setOldActivity(DownloadTaskActivity oldActivity) {
|
||||
this.oldActivity = oldActivity == null ? null : oldActivity.getId();
|
||||
}
|
||||
|
||||
public Application getApplication() {
|
||||
return application;
|
||||
}
|
||||
|
||||
public void setApplication(Application application) {
|
||||
this.application = application;
|
||||
}
|
||||
|
||||
public Terminal getTerminal() {
|
||||
return terminal;
|
||||
}
|
||||
|
||||
public void setTerminal(Terminal terminal) {
|
||||
this.terminal = terminal;
|
||||
}
|
||||
|
||||
public DownloadTask getTask() {
|
||||
return task;
|
||||
}
|
||||
|
||||
public void setTask(DownloadTask task) {
|
||||
this.task = task;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ExportReportBean implements Serializable {
|
||||
|
||||
private String filename;
|
||||
private byte[] fileContent;
|
||||
private boolean written;
|
||||
private boolean sent;
|
||||
|
||||
public ExportReportBean() {}
|
||||
|
||||
public String getFilename() {
|
||||
return filename;
|
||||
}
|
||||
|
||||
public void setFilename(String filename) {
|
||||
this.filename = filename;
|
||||
}
|
||||
|
||||
public byte[] getFileContent() {
|
||||
return fileContent;
|
||||
}
|
||||
|
||||
public void setFileContent(byte[] fileContent) {
|
||||
this.fileContent = fileContent;
|
||||
}
|
||||
|
||||
public boolean isWritten() {
|
||||
return written;
|
||||
}
|
||||
|
||||
public void setWritten(boolean written) {
|
||||
this.written = written;
|
||||
}
|
||||
|
||||
public boolean isSent() {
|
||||
return sent;
|
||||
}
|
||||
|
||||
public void setSent(boolean sent) {
|
||||
this.sent = sent;
|
||||
}
|
||||
}
|
||||
166
modules/global/src/com/cmobile/unifiedtms/entity/HeartBeat.java
Normal file
166
modules/global/src/com/cmobile/unifiedtms/entity/HeartBeat.java
Normal file
@ -0,0 +1,166 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.chile.core.annotations.NumberFormat;
|
||||
import com.haulmont.cuba.core.entity.BaseUuidEntity;
|
||||
import com.haulmont.cuba.core.entity.Creatable;
|
||||
import com.haulmont.cuba.core.entity.Versioned;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
|
||||
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
|
||||
@NamePattern("%s|terminal")
|
||||
@Table(name = "TMS_HEART_BEAT")
|
||||
@Entity(name = "tms_HeartBeat")
|
||||
public class HeartBeat extends BaseUuidEntity implements Creatable, Versioned {
|
||||
private static final long serialVersionUID = 6491584963030369358L;
|
||||
|
||||
@NotNull
|
||||
@OnDeleteInverse(DeletePolicy.CASCADE)
|
||||
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "TERMINAL_ID")
|
||||
protected Terminal terminal;
|
||||
|
||||
@NumberFormat(pattern = "###.##")
|
||||
@NotNull
|
||||
@Column(name = "BATTERY_TEMP", nullable = false)
|
||||
protected Double batteryTemp;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "BATTERY_PERCENTAGE", nullable = false)
|
||||
protected Integer batteryPercentage;
|
||||
|
||||
@Column(name = "LATITUDE")
|
||||
protected Double latitude;
|
||||
|
||||
@Column(name = "LONGITUDE")
|
||||
protected Double longitude;
|
||||
|
||||
@Column(name = "CREATE_TS")
|
||||
protected Date createTs;
|
||||
|
||||
@Column(name = "CREATED_BY", length = 50)
|
||||
protected String createdBy;
|
||||
|
||||
@Version
|
||||
@Column(name = "VERSION", nullable = false)
|
||||
protected Integer version;
|
||||
|
||||
@Override
|
||||
public Integer getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
@Column(name = "CELL_INFOS", length = 500, nullable = true)
|
||||
protected String cellInfos;
|
||||
|
||||
@Column(name = "CELL_NAME", length = 50, nullable = true)
|
||||
protected String cellName;
|
||||
|
||||
@Column(name = "CELL_TYPE", length = 10, nullable = true)
|
||||
protected String cellType;
|
||||
|
||||
@Column(name = "CELL_STRENGTH", nullable = true)
|
||||
protected Integer cellStrength;
|
||||
|
||||
@Override
|
||||
public void setVersion(Integer version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Date getCreateTs() {
|
||||
return createTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreateTs(Date createTs) {
|
||||
this.createTs = createTs;
|
||||
}
|
||||
|
||||
public Double getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(Double longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public Double getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(Double latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public Integer getBatteryPercentage() {
|
||||
return batteryPercentage;
|
||||
}
|
||||
|
||||
public void setBatteryPercentage(Integer batteryPercentage) {
|
||||
this.batteryPercentage = batteryPercentage;
|
||||
}
|
||||
|
||||
public Double getBatteryTemp() {
|
||||
return batteryTemp;
|
||||
}
|
||||
|
||||
public void setBatteryTemp(Double batteryTemp) {
|
||||
this.batteryTemp = batteryTemp;
|
||||
}
|
||||
|
||||
public Terminal getTerminal() {
|
||||
return terminal;
|
||||
}
|
||||
|
||||
public void setTerminal(Terminal terminal) {
|
||||
this.terminal = terminal;
|
||||
}
|
||||
|
||||
public String getCellInfos() {
|
||||
return cellInfos;
|
||||
}
|
||||
|
||||
public void setCellInfos(String cellInfos) {
|
||||
this.cellInfos = cellInfos;
|
||||
}
|
||||
|
||||
public String getCellName() {
|
||||
return cellName;
|
||||
}
|
||||
|
||||
public void setCellName(String cellName) {
|
||||
this.cellName = cellName;
|
||||
}
|
||||
|
||||
public String getCellType() {
|
||||
return cellType;
|
||||
}
|
||||
|
||||
public void setCellType(String cellType) {
|
||||
this.cellType = cellType;
|
||||
}
|
||||
|
||||
public Integer getCellStrength() {
|
||||
return cellStrength;
|
||||
}
|
||||
|
||||
public void setCellStrength(Integer cellStrength) {
|
||||
this.cellStrength = cellStrength;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,244 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.cuba.core.entity.BaseStringIdEntity;
|
||||
import com.haulmont.cuba.core.entity.Updatable;
|
||||
import com.haulmont.cuba.core.global.DesignSupport;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.Date;
|
||||
|
||||
@DesignSupport("{'dbView':true,'imported':true,'generateDdl':false}")
|
||||
@Table(name = "tms_v_terminal_hb_summary_report")
|
||||
@Entity(name = "tms_HeartbeatSummary")
|
||||
public class HeartbeatSummary extends BaseStringIdEntity implements Updatable {
|
||||
private static final long serialVersionUID = -8873579277694377762L;
|
||||
|
||||
@Id
|
||||
@Column(name = "id", nullable = false, length = 36)
|
||||
protected String id;
|
||||
|
||||
@Column(name = "group_name", length = 100)
|
||||
protected String groupName;
|
||||
|
||||
@Column(name = "retail_total")
|
||||
protected Integer retailTotal;
|
||||
|
||||
@Column(name = "retail_total_1h")
|
||||
protected Integer retailTotal1H;
|
||||
|
||||
@Column(name = "retail_total_1d")
|
||||
protected Integer retailTotal1D;
|
||||
|
||||
@Column(name = "retail_total_today")
|
||||
protected Integer retailTotalToday;
|
||||
|
||||
@Column(name = "retail_total_7d")
|
||||
protected Integer retailTotal7D;
|
||||
|
||||
@Column(name = "retail_total_more_7d")
|
||||
protected Integer retailTotalMore7D;
|
||||
|
||||
@Column(name = "retail_sigma")
|
||||
protected Integer retailTotalSigma;
|
||||
|
||||
@Column(name = "retail_reliability")
|
||||
protected Double retailReliability;
|
||||
|
||||
|
||||
|
||||
@Column(name = "chain_total")
|
||||
protected Integer chainTotal;
|
||||
|
||||
@Column(name = "chain_total_1h")
|
||||
protected Integer chainTotal1H;
|
||||
|
||||
@Column(name = "chain_total_1d")
|
||||
protected Integer chainTotal1D;
|
||||
|
||||
@Column(name = "chain_total_today")
|
||||
protected Integer chainTotalToday;
|
||||
|
||||
@Column(name = "chain_total_7d")
|
||||
protected Integer chainTotal7D;
|
||||
|
||||
@Column(name = "chain_total_more_7d")
|
||||
protected Integer chainTotalMore7D;
|
||||
|
||||
@Column(name = "chain_sigma")
|
||||
protected Integer chainTotalSigma;
|
||||
|
||||
@Column(name = "chain_reliability")
|
||||
protected Double chainReliability;
|
||||
|
||||
@Column(name = "update_ts")
|
||||
protected Date updateTs;
|
||||
|
||||
@Column(name = "updated_by")
|
||||
protected String updatedBy;
|
||||
|
||||
@Override
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Date getUpdateTs() {
|
||||
return updateTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUpdateTs(Date updateTs) {
|
||||
this.updateTs = updateTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUpdatedBy() {
|
||||
return updatedBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUpdatedBy(String updatedBy) {
|
||||
this.updatedBy = updatedBy;
|
||||
}
|
||||
|
||||
public String getGroupName() {
|
||||
return groupName;
|
||||
}
|
||||
|
||||
public void setGroupName(String groupName) {
|
||||
this.groupName = groupName;
|
||||
}
|
||||
|
||||
public Integer getRetailTotal() {
|
||||
return retailTotal;
|
||||
}
|
||||
|
||||
public void setRetailTotal(Integer retailTotal) {
|
||||
this.retailTotal = retailTotal;
|
||||
}
|
||||
|
||||
public Integer getRetailTotal1H() {
|
||||
return retailTotal1H;
|
||||
}
|
||||
|
||||
public void setRetailTotal1H(Integer retailTotal1H) {
|
||||
this.retailTotal1H = retailTotal1H;
|
||||
}
|
||||
|
||||
public Integer getRetailTotal1D() {
|
||||
return retailTotal1D;
|
||||
}
|
||||
|
||||
public void setRetailTotal1D(Integer retailTotal1D) {
|
||||
this.retailTotal1D = retailTotal1D;
|
||||
}
|
||||
|
||||
public Integer getRetailTotalToday() {
|
||||
return retailTotalToday;
|
||||
}
|
||||
|
||||
public void setRetailTotalToday(Integer retailTotalToday) {
|
||||
this.retailTotalToday = retailTotalToday;
|
||||
}
|
||||
|
||||
public Integer getRetailTotal7D() {
|
||||
return retailTotal7D;
|
||||
}
|
||||
|
||||
public void setRetailTotal7D(Integer retailTotal7D) {
|
||||
this.retailTotal7D = retailTotal7D;
|
||||
}
|
||||
|
||||
public Integer getRetailTotalMore7D() {
|
||||
return retailTotalMore7D;
|
||||
}
|
||||
|
||||
public void setRetailTotalMore7D(Integer retailTotalMore7D) {
|
||||
this.retailTotalMore7D = retailTotalMore7D;
|
||||
}
|
||||
|
||||
public Integer getRetailTotalSigma() {
|
||||
return retailTotalSigma;
|
||||
}
|
||||
|
||||
public void setRetailTotalSigma(Integer retailTotalSigma) {
|
||||
this.retailTotalSigma = retailTotalSigma;
|
||||
}
|
||||
|
||||
public Double getRetailReliability() {
|
||||
return retailReliability;
|
||||
}
|
||||
|
||||
public void setRetailReliability(Double retailReliability) {
|
||||
this.retailReliability = retailReliability;
|
||||
}
|
||||
|
||||
public Integer getChainTotal() {
|
||||
return chainTotal;
|
||||
}
|
||||
|
||||
public void setChainTotal(Integer chainTotal) {
|
||||
this.chainTotal = chainTotal;
|
||||
}
|
||||
|
||||
public Integer getChainTotal1H() {
|
||||
return chainTotal1H;
|
||||
}
|
||||
|
||||
public void setChainTotal1H(Integer chainTotal1H) {
|
||||
this.chainTotal1H = chainTotal1H;
|
||||
}
|
||||
|
||||
public Integer getChainTotal1D() {
|
||||
return chainTotal1D;
|
||||
}
|
||||
|
||||
public void setChainTotal1D(Integer chainTotal1D) {
|
||||
this.chainTotal1D = chainTotal1D;
|
||||
}
|
||||
|
||||
public Integer getChainTotalToday() {
|
||||
return chainTotalToday;
|
||||
}
|
||||
|
||||
public void setChainTotalToday(Integer chainTotalToday) {
|
||||
this.chainTotalToday = chainTotalToday;
|
||||
}
|
||||
|
||||
public Integer getChainTotal7D() {
|
||||
return chainTotal7D;
|
||||
}
|
||||
|
||||
public void setChainTotal7D(Integer chainTotal7D) {
|
||||
this.chainTotal7D = chainTotal7D;
|
||||
}
|
||||
|
||||
public Integer getChainTotalMore7D() {
|
||||
return chainTotalMore7D;
|
||||
}
|
||||
|
||||
public void setChainTotalMore7D(Integer chainTotalMore7D) {
|
||||
this.chainTotalMore7D = chainTotalMore7D;
|
||||
}
|
||||
|
||||
public Integer getChainTotalSigma() {
|
||||
return chainTotalSigma;
|
||||
}
|
||||
|
||||
public void setChainTotalSigma(Integer chainTotalSigma) {
|
||||
this.chainTotalSigma = chainTotalSigma;
|
||||
}
|
||||
|
||||
public Double getChainReliability() {
|
||||
return chainReliability;
|
||||
}
|
||||
|
||||
public void setChainReliability(Double chainReliability) {
|
||||
this.chainReliability = chainReliability;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,213 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.license4j.ValidationStatus;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
|
||||
public class LicenseModel implements Serializable {
|
||||
|
||||
private Long licenseID;
|
||||
private String userFullname;
|
||||
private String userRegisteredTo;
|
||||
private String userCompany;
|
||||
private String userCity;
|
||||
private String userCountry;
|
||||
private String userStreet;
|
||||
private String userZipCode;
|
||||
private String userEmail;
|
||||
private String userFax;
|
||||
private String userTelephone;
|
||||
private Date licenseExpireDate;
|
||||
private Date licenseGeneratedDateTime;
|
||||
private String licenseProductName;
|
||||
private String licenseSignature;
|
||||
private String licenseValidProductEdition;
|
||||
private String licenseValidProductID;
|
||||
private String licenseValidProductVersion;
|
||||
private String licenseHardwareID;
|
||||
private Properties licenseProperties;
|
||||
private Map<String, Object> licenseFeatures = new HashMap<>();
|
||||
private ValidationStatus validationStatus;
|
||||
|
||||
public LicenseModel() {}
|
||||
|
||||
public Long getLicenseID() {
|
||||
return licenseID;
|
||||
}
|
||||
|
||||
public ValidationStatus getValidationStatus() {
|
||||
return validationStatus;
|
||||
}
|
||||
|
||||
public void setValidationStatus(ValidationStatus validationStatus) {
|
||||
this.validationStatus = validationStatus;
|
||||
}
|
||||
|
||||
public void setLicenseID(Long licenseID) {
|
||||
this.licenseID = licenseID;
|
||||
}
|
||||
|
||||
public String getUserFullname() {
|
||||
return userFullname;
|
||||
}
|
||||
|
||||
public void setUserFullname(String userFullname) {
|
||||
this.userFullname = userFullname;
|
||||
}
|
||||
|
||||
public String getUserRegisteredTo() {
|
||||
return userRegisteredTo;
|
||||
}
|
||||
|
||||
public void setUserRegisteredTo(String userRegisteredTo) {
|
||||
this.userRegisteredTo = userRegisteredTo;
|
||||
}
|
||||
|
||||
public String getUserCompany() {
|
||||
return userCompany;
|
||||
}
|
||||
|
||||
public void setUserCompany(String userCompany) {
|
||||
this.userCompany = userCompany;
|
||||
}
|
||||
|
||||
public String getUserCity() {
|
||||
return userCity;
|
||||
}
|
||||
|
||||
public void setUserCity(String userCity) {
|
||||
this.userCity = userCity;
|
||||
}
|
||||
|
||||
public String getUserCountry() {
|
||||
return userCountry;
|
||||
}
|
||||
|
||||
public void setUserCountry(String userCountry) {
|
||||
this.userCountry = userCountry;
|
||||
}
|
||||
|
||||
public String getUserStreet() {
|
||||
return userStreet;
|
||||
}
|
||||
|
||||
public void setUserStreet(String userStreet) {
|
||||
this.userStreet = userStreet;
|
||||
}
|
||||
|
||||
public String getUserZipCode() {
|
||||
return userZipCode;
|
||||
}
|
||||
|
||||
public void setUserZipCode(String userZipCode) {
|
||||
this.userZipCode = userZipCode;
|
||||
}
|
||||
|
||||
public String getUserEmail() {
|
||||
return userEmail;
|
||||
}
|
||||
|
||||
public void setUserEmail(String userEmail) {
|
||||
this.userEmail = userEmail;
|
||||
}
|
||||
|
||||
public String getUserFax() {
|
||||
return userFax;
|
||||
}
|
||||
|
||||
public void setUserFax(String userFax) {
|
||||
this.userFax = userFax;
|
||||
}
|
||||
|
||||
public String getUserTelephone() {
|
||||
return userTelephone;
|
||||
}
|
||||
|
||||
public void setUserTelephone(String userTelephone) {
|
||||
this.userTelephone = userTelephone;
|
||||
}
|
||||
|
||||
public Date getLicenseExpireDate() {
|
||||
return licenseExpireDate;
|
||||
}
|
||||
|
||||
public void setLicenseExpireDate(Date licenseExpireDate) {
|
||||
this.licenseExpireDate = licenseExpireDate;
|
||||
}
|
||||
|
||||
public Date getLicenseGeneratedDateTime() {
|
||||
return licenseGeneratedDateTime;
|
||||
}
|
||||
|
||||
public void setLicenseGeneratedDateTime(Date licenseGeneratedDateTime) {
|
||||
this.licenseGeneratedDateTime = licenseGeneratedDateTime;
|
||||
}
|
||||
|
||||
public String getLicenseProductName() {
|
||||
return licenseProductName;
|
||||
}
|
||||
|
||||
public void setLicenseProductName(String licenseProductName) {
|
||||
this.licenseProductName = licenseProductName;
|
||||
}
|
||||
|
||||
public String getLicenseSignature() {
|
||||
return licenseSignature;
|
||||
}
|
||||
|
||||
public void setLicenseSignature(String licenseSignature) {
|
||||
this.licenseSignature = licenseSignature;
|
||||
}
|
||||
|
||||
public String getLicenseValidProductEdition() {
|
||||
return licenseValidProductEdition;
|
||||
}
|
||||
|
||||
public void setLicenseValidProductEdition(String licenseValidProductEdition) {
|
||||
this.licenseValidProductEdition = licenseValidProductEdition;
|
||||
}
|
||||
|
||||
public String getLicenseValidProductID() {
|
||||
return licenseValidProductID;
|
||||
}
|
||||
|
||||
public void setLicenseValidProductID(String licenseValidProductID) {
|
||||
this.licenseValidProductID = licenseValidProductID;
|
||||
}
|
||||
|
||||
public String getLicenseValidProductVersion() {
|
||||
return licenseValidProductVersion;
|
||||
}
|
||||
|
||||
public void setLicenseValidProductVersion(String licenseValidProductVersion) {
|
||||
this.licenseValidProductVersion = licenseValidProductVersion;
|
||||
}
|
||||
|
||||
public String getLicenseHardwareID() {
|
||||
return licenseHardwareID;
|
||||
}
|
||||
|
||||
public void setLicenseHardwareID(String licenseHardwareID) {
|
||||
this.licenseHardwareID = licenseHardwareID;
|
||||
}
|
||||
|
||||
public Properties getLicenseProperties() {
|
||||
return licenseProperties;
|
||||
}
|
||||
|
||||
public void setLicenseProperties(Properties licenseProperties) {
|
||||
this.licenseProperties = licenseProperties;
|
||||
}
|
||||
|
||||
public Map<String, Object> getLicenseFeatures() {
|
||||
return licenseFeatures;
|
||||
}
|
||||
|
||||
public void setLicenseFeatures(Map<String, Object> licenseFeatures) {
|
||||
this.licenseFeatures = licenseFeatures;
|
||||
}
|
||||
}
|
||||
107
modules/global/src/com/cmobile/unifiedtms/entity/Merchant.java
Normal file
107
modules/global/src/com/cmobile/unifiedtms/entity/Merchant.java
Normal file
@ -0,0 +1,107 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.addon.sdbmt.entity.StandardTenantEntity;
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDelete;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@NamePattern("%s|name")
|
||||
@Table(name = "TMS_MERCHANT")
|
||||
@Entity(name = "tms_Merchant")
|
||||
public class Merchant extends StandardTenantEntity {
|
||||
private static final long serialVersionUID = -2335692941575749058L;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "NAME", nullable = false, length = 100)
|
||||
protected String name;
|
||||
|
||||
@NotNull
|
||||
@OnDeleteInverse(DeletePolicy.DENY)
|
||||
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "TYPE_ID")
|
||||
protected MerchantType type;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "COMPANY_NAME", nullable = false, length = 100)
|
||||
protected String companyName;
|
||||
|
||||
@NotNull
|
||||
@OnDeleteInverse(DeletePolicy.DENY)
|
||||
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "DISTRICT_ID")
|
||||
protected District district;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "ADDRESS", nullable = false)
|
||||
protected String address;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "ZIPCODE", nullable = false, length = 5)
|
||||
protected String zipcode;
|
||||
|
||||
@OnDeleteInverse(DeletePolicy.UNLINK)
|
||||
@OnDelete(DeletePolicy.CASCADE)
|
||||
@OneToMany(mappedBy = "merchant")
|
||||
protected List<ContactPerson> contactPersons;
|
||||
|
||||
public List<ContactPerson> getContactPersons() {
|
||||
return contactPersons;
|
||||
}
|
||||
|
||||
public void setContactPersons(List<ContactPerson> contactPersons) {
|
||||
this.contactPersons = contactPersons;
|
||||
}
|
||||
|
||||
public MerchantType getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(MerchantType type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getZipcode() {
|
||||
return zipcode;
|
||||
}
|
||||
|
||||
public void setZipcode(String zipcode) {
|
||||
this.zipcode = zipcode;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public District getDistrict() {
|
||||
return district;
|
||||
}
|
||||
|
||||
public void setDistrict(District district) {
|
||||
this.district = district;
|
||||
}
|
||||
|
||||
public String getCompanyName() {
|
||||
return companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.StandardEntity;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@NamePattern("%s|name")
|
||||
@Table(name = "TMS_MERCHANT_TYPE")
|
||||
@Entity(name = "tms_MerchantType")
|
||||
public class MerchantType extends StandardEntity {
|
||||
private static final long serialVersionUID = -3884805971252828180L;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "NAME", nullable = false, length = 100)
|
||||
protected String name;
|
||||
|
||||
@Column(name = "DESCRIPTION")
|
||||
protected String description;
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,53 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.cmobile.unifiedtms.entity.enums.TaskStatus;
|
||||
import com.cmobile.unifiedtms.entity.enums.TrxType;
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.StandardEntity;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@NamePattern("%s|code")
|
||||
@Table(name = "TMS_RESPONSE_CODE")
|
||||
@Entity(name = "tms_ResponseCode")
|
||||
public class ResponseCode extends StandardEntity {
|
||||
private static final long serialVersionUID = 2184358567137236838L;
|
||||
|
||||
@Column(name = "TYPE", nullable = false, unique = false, length = 10)
|
||||
protected String type;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "CODE", nullable = false, unique = false, length = 2)
|
||||
protected String code;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "DESCRIPTION", nullable = false, length = 255)
|
||||
protected String desc;
|
||||
|
||||
public TrxType getType() {
|
||||
return type == null ? null : TrxType.fromId(type);
|
||||
}
|
||||
|
||||
public void setType(TrxType type) {
|
||||
this.type = type == null ? null : type.getId();
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
}
|
||||
44
modules/global/src/com/cmobile/unifiedtms/entity/States.java
Normal file
44
modules/global/src/com/cmobile/unifiedtms/entity/States.java
Normal file
@ -0,0 +1,44 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.StandardEntity;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDelete;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@NamePattern("%s|name")
|
||||
@Table(name = "TMS_STATES")
|
||||
@Entity(name = "tms_States")
|
||||
public class States extends StandardEntity {
|
||||
private static final long serialVersionUID = 2291545791294287824L;
|
||||
|
||||
@NotNull
|
||||
@OnDeleteInverse(DeletePolicy.DENY)
|
||||
@OnDelete(DeletePolicy.UNLINK)
|
||||
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "COUNTRY_ID")
|
||||
protected Country country;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "NAME", nullable = false, length = 50)
|
||||
protected String name;
|
||||
|
||||
public Country getCountry() {
|
||||
return country;
|
||||
}
|
||||
|
||||
public void setCountry(Country country) {
|
||||
this.country = country;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
343
modules/global/src/com/cmobile/unifiedtms/entity/Terminal.java
Normal file
343
modules/global/src/com/cmobile/unifiedtms/entity/Terminal.java
Normal file
@ -0,0 +1,343 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.cmobile.unifiedtms.entity.enums.TerminalHeartBeatStatus;
|
||||
import com.haulmont.addon.sdbmt.entity.StandardTenantEntity;
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDelete;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
@NamePattern("%s|sn")
|
||||
@Table(name = "TMS_TERMINAL", indexes = {
|
||||
@Index(name = "IDX_TMS_TERMINAL_UNQ", columnList = "SN, IMEI", unique = true)
|
||||
})
|
||||
@Entity(name = "tms_Terminal")
|
||||
public class Terminal extends StandardTenantEntity {
|
||||
private static final long serialVersionUID = -7294193473253942325L;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "SN", nullable = false, unique = true, length = 30)
|
||||
protected String sn;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "IMEI", nullable = false, unique = true, length = 25)
|
||||
protected String imei;
|
||||
|
||||
@NotNull
|
||||
@OnDeleteInverse(DeletePolicy.DENY)
|
||||
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "MODEL_ID")
|
||||
protected DeviceModel model;
|
||||
|
||||
@JoinTable(name = "TMS_TERMINAL_GROUP_LINK", joinColumns = @JoinColumn(name = "TERMINAL_ID"), inverseJoinColumns = @JoinColumn(name = "TERMINAL_GROUP_ID"))
|
||||
@ManyToMany
|
||||
@OnDeleteInverse(DeletePolicy.UNLINK)
|
||||
@OnDelete(DeletePolicy.UNLINK)
|
||||
protected List<TerminalGroup> group;
|
||||
|
||||
@NotNull
|
||||
@OnDeleteInverse(DeletePolicy.DENY)
|
||||
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "MERCHANT_ID")
|
||||
protected Merchant merchant;
|
||||
|
||||
@OnDeleteInverse(DeletePolicy.DENY)
|
||||
@OnDelete(DeletePolicy.UNLINK)
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "PROFILE_ID")
|
||||
protected DeviceProfile profile;
|
||||
|
||||
@JoinTable(name = "TMS_DOWNLOAD_TASK_TERMINAL_LINK",
|
||||
joinColumns = @JoinColumn(name = "TERMINAL_ID"),
|
||||
inverseJoinColumns = @JoinColumn(name = "DOWNLOAD_TASK_ID"))
|
||||
@OnDeleteInverse(DeletePolicy.UNLINK)
|
||||
@OnDelete(DeletePolicy.UNLINK)
|
||||
@ManyToMany
|
||||
protected List<DownloadTask> downloadTasks;
|
||||
|
||||
@OneToOne(fetch = FetchType.LAZY, mappedBy = "terminal")
|
||||
protected TerminalLink terminalLink;
|
||||
|
||||
@Column(name = "IMPORT_DEFAULT")
|
||||
protected Boolean importDefault;
|
||||
|
||||
@Column(name = "HEARTBEAT_STATUS")
|
||||
protected Integer heartBeatStatus;
|
||||
|
||||
@Column(name = "LAST_HEARTBEAT_TIME")
|
||||
protected Date lastHeartBeatTime;
|
||||
|
||||
@Column(name = "LAST_HEARTBEAT_ID")
|
||||
protected UUID lastHeartBeatId;
|
||||
|
||||
@Column(name = "LAST_INIT_TIME")
|
||||
protected Date lastInitTime;
|
||||
|
||||
@Column(name = "LAST_INIT_AID_TIME")
|
||||
protected Date lastInitAidTime;
|
||||
|
||||
@Column(name = "LAST_INIT_CAPK_TIME")
|
||||
protected Date lastInitCapkTime;
|
||||
|
||||
@Column(name = "LAST_INIT_CONTACTLESS_AID_TIME")
|
||||
protected Date lastInitContactlessAidTime;
|
||||
|
||||
@Column(name = "LAST_INIT_CARDS_TIME")
|
||||
protected Date lastInitCardsTime;
|
||||
|
||||
@Column(name = "LAST_INIT_TERMINAL_TIME")
|
||||
protected Date lastInitTerminalTime;
|
||||
|
||||
@Column(name = "LATITUDE")
|
||||
protected Double latitude;
|
||||
|
||||
@Column(name = "LONGITUDE")
|
||||
protected Double longitude;
|
||||
|
||||
@Column(name = "LAST_DIAGNOSTIC_TIME")
|
||||
protected Date lastDiagnosticTime;
|
||||
|
||||
@Column(name = "LAST_DIAGNOSTIC_ID")
|
||||
protected UUID lastDiagnosticId;
|
||||
|
||||
@Column(name = "APP_VERSION", nullable = true, length = 50)
|
||||
protected String appVersion;
|
||||
|
||||
@Column(name = "LAUNCHER_VERSION", nullable = true, length = 50)
|
||||
protected String launcherVersion;
|
||||
|
||||
@Column(name = "VFS_VERSION", nullable = true, length = 50)
|
||||
protected String vfsVersion;
|
||||
|
||||
@Column(name = "VFSS_VERSION", nullable = true, length = 50)
|
||||
protected String vfssVersion;
|
||||
|
||||
@Column(name = "CELL_NAME")
|
||||
protected String cellName;
|
||||
|
||||
public Boolean getImportDefault() {
|
||||
return importDefault;
|
||||
}
|
||||
|
||||
public void setImportDefault(Boolean importDefault) {
|
||||
this.importDefault = importDefault;
|
||||
}
|
||||
|
||||
public TerminalLink getTerminalLink() {
|
||||
return terminalLink;
|
||||
}
|
||||
|
||||
public void setTerminalLink(TerminalLink terminalLink) {
|
||||
this.terminalLink = terminalLink;
|
||||
}
|
||||
|
||||
public List<DownloadTask> getDownloadTasks() {
|
||||
return downloadTasks;
|
||||
}
|
||||
|
||||
public void setDownloadTasks(List<DownloadTask> downloadTasks) {
|
||||
this.downloadTasks = downloadTasks;
|
||||
}
|
||||
|
||||
public DeviceProfile getProfile() {
|
||||
return profile;
|
||||
}
|
||||
|
||||
public void setProfile(DeviceProfile profile) {
|
||||
this.profile = profile;
|
||||
}
|
||||
|
||||
public void setGroup(List<TerminalGroup> group) {
|
||||
this.group = group;
|
||||
}
|
||||
|
||||
public List<TerminalGroup> getGroup() {
|
||||
return group;
|
||||
}
|
||||
|
||||
public DeviceModel getModel() {
|
||||
return model;
|
||||
}
|
||||
|
||||
public void setModel(DeviceModel model) {
|
||||
this.model = model;
|
||||
}
|
||||
|
||||
public Merchant getMerchant() {
|
||||
return merchant;
|
||||
}
|
||||
|
||||
public void setMerchant(Merchant merchant) {
|
||||
this.merchant = merchant;
|
||||
}
|
||||
|
||||
public String getImei() {
|
||||
return imei;
|
||||
}
|
||||
|
||||
public void setImei(String imei) {
|
||||
this.imei = imei;
|
||||
}
|
||||
|
||||
public String getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public void setSn(String sn) {
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public TerminalHeartBeatStatus getHeartBeatStatus() {
|
||||
return heartBeatStatus != null ? null : TerminalHeartBeatStatus.fromId(heartBeatStatus);
|
||||
}
|
||||
|
||||
public void setHeartBeatStatus(TerminalHeartBeatStatus heartBeatStatus) {
|
||||
this.heartBeatStatus = heartBeatStatus == null ? null : heartBeatStatus.getId();
|
||||
}
|
||||
|
||||
public Date getLastHeartBeatTime() {
|
||||
return lastHeartBeatTime;
|
||||
}
|
||||
|
||||
public void setLastHeartBeatTime(Date lastHeartBeatTime) {
|
||||
this.lastHeartBeatTime = lastHeartBeatTime;
|
||||
}
|
||||
|
||||
public UUID getLastHeartBeatId() {
|
||||
return lastHeartBeatId;
|
||||
}
|
||||
|
||||
public void setLastHeartBeatId(UUID lastHeartBeatId) {
|
||||
this.lastHeartBeatId = lastHeartBeatId;
|
||||
}
|
||||
|
||||
public Date getLastInitTime() {
|
||||
return lastInitTime;
|
||||
}
|
||||
|
||||
public void setLastInitTime(Date lastInitTime) {
|
||||
this.lastInitTime = lastInitTime;
|
||||
}
|
||||
|
||||
public Date getLastInitAidTime() {
|
||||
return lastInitAidTime;
|
||||
}
|
||||
|
||||
public void setLastInitAidTime(Date lastInitAidTime) {
|
||||
this.lastInitAidTime = lastInitAidTime;
|
||||
}
|
||||
|
||||
public Date getLastInitCapkTime() {
|
||||
return lastInitCapkTime;
|
||||
}
|
||||
|
||||
public void setLastInitCapkTime(Date lastInitCapkTime) {
|
||||
this.lastInitCapkTime = lastInitCapkTime;
|
||||
}
|
||||
|
||||
public Date getLastInitContactlessAidTime() {
|
||||
return lastInitContactlessAidTime;
|
||||
}
|
||||
|
||||
public void setLastInitContactlessAidTime(Date lastInitContactlessAidTime) {
|
||||
this.lastInitContactlessAidTime = lastInitContactlessAidTime;
|
||||
}
|
||||
|
||||
public Date getLastInitCardsTime() {
|
||||
return lastInitCardsTime;
|
||||
}
|
||||
|
||||
public void setLastInitCardsTime(Date lastInitCardsTime) {
|
||||
this.lastInitCardsTime = lastInitCardsTime;
|
||||
}
|
||||
|
||||
public Date getLastInitTerminalTime() {
|
||||
return lastInitTerminalTime;
|
||||
}
|
||||
|
||||
public void setLastInitTerminalTime(Date lastInitTerminalTime) {
|
||||
this.lastInitTerminalTime = lastInitTerminalTime;
|
||||
}
|
||||
|
||||
public Double getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(Double latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public Double getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(Double longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public Date getLastDiagnosticTime() {
|
||||
return lastDiagnosticTime;
|
||||
}
|
||||
|
||||
public void setLastDiagnosticTime(Date lastDiagnosticTime) {
|
||||
this.lastDiagnosticTime = lastDiagnosticTime;
|
||||
}
|
||||
|
||||
public UUID getLastDiagnosticId() {
|
||||
return lastDiagnosticId;
|
||||
}
|
||||
|
||||
public void setLastDiagnosticId(UUID lastDiagnosticId) {
|
||||
this.lastDiagnosticId = lastDiagnosticId;
|
||||
}
|
||||
|
||||
public String getAppVersion() {
|
||||
return appVersion;
|
||||
}
|
||||
|
||||
public void setAppVersion(String appVersion) {
|
||||
this.appVersion = appVersion;
|
||||
}
|
||||
|
||||
public String getLauncherVersion() {
|
||||
return launcherVersion;
|
||||
}
|
||||
|
||||
public void setLauncherVersion(String launcherVersion) {
|
||||
this.launcherVersion = launcherVersion;
|
||||
}
|
||||
|
||||
public String getVfsVersion() {
|
||||
return vfsVersion;
|
||||
}
|
||||
|
||||
public void setVfsVersion(String vfsVersion) {
|
||||
this.vfsVersion = vfsVersion;
|
||||
}
|
||||
|
||||
public String getVfssVersion() {
|
||||
return vfssVersion;
|
||||
}
|
||||
|
||||
public void setVfssVersion(String vfssVersion) {
|
||||
this.vfssVersion = vfssVersion;
|
||||
}
|
||||
|
||||
public void setHeartBeatStatus(Integer heartBeatStatus) {
|
||||
this.heartBeatStatus = heartBeatStatus;
|
||||
}
|
||||
|
||||
public String getCellName() {
|
||||
return cellName;
|
||||
}
|
||||
|
||||
public void setCellName(String cellName) {
|
||||
this.cellName = cellName;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,108 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.BaseUuidEntity;
|
||||
import com.haulmont.cuba.core.entity.Creatable;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.Date;
|
||||
|
||||
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
|
||||
@NamePattern("%s|sn")
|
||||
@Table(name = "TMS_TERMINAL_ACK_UPDATE")
|
||||
@Entity(name = "tms_TerminalAckUpdate")
|
||||
public class TerminalAckUpdate extends BaseUuidEntity implements Creatable {
|
||||
private static final long serialVersionUID = 6491584963030369358L;
|
||||
|
||||
@Column(name = "SN")
|
||||
protected String sn;
|
||||
|
||||
@Column(name = "LAST_INIT_TIME")
|
||||
protected Date lastInitTime;
|
||||
|
||||
@Column(name = "SYNC_START_TIME")
|
||||
protected Date syncStartTime;
|
||||
|
||||
@Column(name = "SYNC_END_TIME")
|
||||
protected Date syncEndTime;
|
||||
|
||||
@Column(name = "RETRY_COUNT")
|
||||
protected Integer retryCount;
|
||||
|
||||
@Column(name = "CREATE_TS")
|
||||
protected Date createTs;
|
||||
|
||||
@Column(name = "CREATED_BY", length = 50)
|
||||
protected String createdBy;
|
||||
|
||||
@Column(name = "STATUS")
|
||||
protected String status;
|
||||
|
||||
@Override
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Date getCreateTs() {
|
||||
return createTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreateTs(Date createTs) {
|
||||
this.createTs = createTs;
|
||||
}
|
||||
|
||||
public String getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public void setSn(String sn) {
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public Date getLastInitTime() {
|
||||
return lastInitTime;
|
||||
}
|
||||
|
||||
public void setLastInitTime(Date lastInitTime) {
|
||||
this.lastInitTime = lastInitTime;
|
||||
}
|
||||
|
||||
public Date getSyncStartTime() {
|
||||
return syncStartTime;
|
||||
}
|
||||
|
||||
public void setSyncStartTime(Date syncStartTime) {
|
||||
this.syncStartTime = syncStartTime;
|
||||
}
|
||||
|
||||
public Date getSyncEndTime() {
|
||||
return syncEndTime;
|
||||
}
|
||||
|
||||
public void setSyncEndTime(Date syncEndTime) {
|
||||
this.syncEndTime = syncEndTime;
|
||||
}
|
||||
|
||||
public Integer getRetryCount() {
|
||||
return retryCount;
|
||||
}
|
||||
|
||||
public void setRetryCount(Integer retryCount) {
|
||||
this.retryCount = retryCount;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,56 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.StandardEntity;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDelete;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@NamePattern("%s|name")
|
||||
@Table(name = "TMS_TERMINAL_GROUP")
|
||||
@Entity(name = "tms_TerminalGroup")
|
||||
public class TerminalGroup extends StandardEntity {
|
||||
private static final long serialVersionUID = 8125274631131458996L;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "NAME", nullable = false, length = 100)
|
||||
protected String name;
|
||||
|
||||
@Column(name = "DESCRIPTION")
|
||||
protected String description;
|
||||
@JoinTable(name = "TMS_TERMINAL_GROUP_LINK",
|
||||
joinColumns = @JoinColumn(name = "TERMINAL_GROUP_ID"),
|
||||
inverseJoinColumns = @JoinColumn(name = "TERMINAL_ID"))
|
||||
@OnDeleteInverse(DeletePolicy.UNLINK)
|
||||
@OnDelete(DeletePolicy.UNLINK)
|
||||
@ManyToMany
|
||||
protected List<Terminal> terminals;
|
||||
|
||||
public List<Terminal> getTerminals() {
|
||||
return terminals;
|
||||
}
|
||||
|
||||
public void setTerminals(List<Terminal> terminals) {
|
||||
this.terminals = terminals;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.chile.core.annotations.MetaClass;
|
||||
import com.haulmont.chile.core.annotations.MetaProperty;
|
||||
import com.haulmont.cuba.core.entity.BaseStringIdEntity;
|
||||
|
||||
import javax.persistence.Id;
|
||||
|
||||
@MetaClass(name = "tms_TerminalGroupImport")
|
||||
public class TerminalGroupImport extends BaseStringIdEntity {
|
||||
private static final long serialVersionUID = -1489621948034643389L;
|
||||
|
||||
@Id
|
||||
@MetaProperty(mandatory = true)
|
||||
protected String sn;
|
||||
|
||||
@MetaProperty
|
||||
protected String tid;
|
||||
|
||||
@MetaProperty
|
||||
protected Boolean snFound;
|
||||
|
||||
@MetaProperty
|
||||
protected Boolean tidFound;
|
||||
|
||||
public Boolean getTidFound() {
|
||||
return tidFound;
|
||||
}
|
||||
|
||||
public void setTidFound(Boolean tidFound) {
|
||||
this.tidFound = tidFound;
|
||||
}
|
||||
|
||||
public Boolean getSnFound() {
|
||||
return snFound;
|
||||
}
|
||||
|
||||
public void setSnFound(Boolean snFound) {
|
||||
this.snFound = snFound;
|
||||
}
|
||||
|
||||
public String getTid() {
|
||||
return tid;
|
||||
}
|
||||
|
||||
public void setTid(String tid) {
|
||||
this.tid = tid;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setId(String id) {
|
||||
this.sn = id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getId() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public String getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public void setSn(String sn) {
|
||||
this.sn = sn;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,164 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.cuba.core.entity.BaseUuidEntity;
|
||||
import com.haulmont.cuba.core.entity.Creatable;
|
||||
import com.haulmont.cuba.core.entity.Versioned;
|
||||
import com.haulmont.cuba.core.global.DesignSupport;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.Date;
|
||||
import java.util.UUID;
|
||||
|
||||
@DesignSupport("{'dbView':true,'imported':true,'generateDdl':false}")
|
||||
@Table(name = "tms_v_terminal_heart_beat")
|
||||
@Entity(name = "tms_TerminalHeartBeat")
|
||||
public class TerminalHeartBeat extends BaseUuidEntity implements Versioned, Creatable {
|
||||
private static final long serialVersionUID = -3539537453020368691L;
|
||||
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
@Column(name = "create_ts")
|
||||
protected Date createTs;
|
||||
|
||||
@Column(name = "created_by", length = 50)
|
||||
protected String createdBy;
|
||||
|
||||
@Version
|
||||
@Column(name = "version")
|
||||
protected Integer version;
|
||||
|
||||
@Column(name = "battery_percentage")
|
||||
protected Integer batteryPercentage;
|
||||
|
||||
@Column(name = "battery_temp")
|
||||
protected Double batteryTemp;
|
||||
|
||||
@Column(name = "latitude")
|
||||
protected Double latitude;
|
||||
|
||||
@Column(name = "longitude")
|
||||
protected Double longitude;
|
||||
|
||||
@Column(name = "terminal_sn", length = 30)
|
||||
protected String terminalSn;
|
||||
|
||||
@Column(name = "cell_name")
|
||||
protected String cellName;
|
||||
|
||||
@Column(name = "cell_type")
|
||||
protected String cellType;
|
||||
|
||||
@Column(name = "cell_strength")
|
||||
protected Integer cellStrength;
|
||||
|
||||
@Column(name = "wifi_name")
|
||||
protected String wifiName;
|
||||
|
||||
@Column(name = "wifi_strength")
|
||||
protected Integer wifiStrength;
|
||||
|
||||
public String getTerminalSn() {
|
||||
return terminalSn;
|
||||
}
|
||||
|
||||
public void setTerminalSn(String terminalSn) {
|
||||
this.terminalSn = terminalSn;
|
||||
}
|
||||
|
||||
public Double getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(Double longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public Double getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(Double latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public Double getBatteryTemp() {
|
||||
return batteryTemp;
|
||||
}
|
||||
|
||||
public void setBatteryTemp(Double batteryTemp) {
|
||||
this.batteryTemp = batteryTemp;
|
||||
}
|
||||
|
||||
public Integer getBatteryPercentage() {
|
||||
return batteryPercentage;
|
||||
}
|
||||
|
||||
public void setBatteryPercentage(Integer batteryPercentage) {
|
||||
this.batteryPercentage = batteryPercentage;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setVersion(Integer version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public Date getCreateTs() {
|
||||
return createTs;
|
||||
}
|
||||
|
||||
public void setCreateTs(Date createTs) {
|
||||
this.createTs = createTs;
|
||||
}
|
||||
|
||||
public String getCellName() {
|
||||
return cellName;
|
||||
}
|
||||
|
||||
public void setCellName(String cellName) {
|
||||
this.cellName = cellName;
|
||||
}
|
||||
|
||||
public String getCellType() {
|
||||
return cellType;
|
||||
}
|
||||
|
||||
public void setCellType(String cellType) {
|
||||
this.cellType = cellType;
|
||||
}
|
||||
|
||||
public Integer getCellStrength() {
|
||||
return cellStrength;
|
||||
}
|
||||
|
||||
public void setCellStrength(Integer cellStrength) {
|
||||
this.cellStrength = cellStrength;
|
||||
}
|
||||
|
||||
public String getWifiName() {
|
||||
return wifiName;
|
||||
}
|
||||
|
||||
public void setWifiName(String wifiName) {
|
||||
this.wifiName = wifiName;
|
||||
}
|
||||
|
||||
public Integer getWifiStrength() {
|
||||
return wifiStrength;
|
||||
}
|
||||
|
||||
public void setWifiStrength(Integer wifiStrength) {
|
||||
this.wifiStrength = wifiStrength;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,209 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jaka
|
||||
*/
|
||||
public class TerminalImportBean implements Serializable {
|
||||
|
||||
private String sn;
|
||||
private String imei;
|
||||
private String modelName;
|
||||
private String merchantName;
|
||||
private String profileName;
|
||||
private String _groupNames;
|
||||
private String templateTerminalId;
|
||||
private String terminalId;
|
||||
private String merchantId;
|
||||
private String merchantName1;
|
||||
private String merchantName2;
|
||||
private String merchantName3;
|
||||
private String merchantName4;
|
||||
private String merchantName5;
|
||||
|
||||
/**
|
||||
* @return the sn
|
||||
*/
|
||||
public String getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param sn the sn to set
|
||||
*/
|
||||
public void setSn(String sn) {
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the imei
|
||||
*/
|
||||
public String getImei() {
|
||||
return imei;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param imei the imei to set
|
||||
*/
|
||||
public void setImei(String imei) {
|
||||
this.imei = imei;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the modelName
|
||||
*/
|
||||
public String getModelName() {
|
||||
return modelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param modelName the modelName to set
|
||||
*/
|
||||
public void setModelName(String modelName) {
|
||||
this.modelName = modelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the merchantName
|
||||
*/
|
||||
public String getMerchantName() {
|
||||
return merchantName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param merchantName the merchantName to set
|
||||
*/
|
||||
public void setMerchantName(String merchantName) {
|
||||
this.merchantName = merchantName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the profileName
|
||||
*/
|
||||
public String getProfileName() {
|
||||
return profileName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param profileName the profileName to set
|
||||
*/
|
||||
public void setProfileName(String profileName) {
|
||||
this.profileName = profileName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the _groupNames
|
||||
*/
|
||||
public String getGroupNames() {
|
||||
return _groupNames;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param _groupNames the _groupNames to set
|
||||
*/
|
||||
public void setGroupNames(String _groupNames) {
|
||||
this._groupNames = _groupNames;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the templateTerminalId
|
||||
*/
|
||||
public String getTemplateTerminalId() {
|
||||
return templateTerminalId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param templateTerminalId the templateTerminalId to set
|
||||
*/
|
||||
public void setTemplateTerminalId(String templateTerminalId) {
|
||||
this.templateTerminalId = templateTerminalId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the terminalId
|
||||
*/
|
||||
public String getTerminalId() {
|
||||
return terminalId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param terminalId the terminalId to set
|
||||
*/
|
||||
public void setTerminalId(String terminalId) {
|
||||
this.terminalId = terminalId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the merchantId
|
||||
*/
|
||||
public String getMerchantId() {
|
||||
return merchantId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param merchantId the merchantId to set
|
||||
*/
|
||||
public void setMerchantId(String merchantId) {
|
||||
this.merchantId = merchantId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the merchantName1
|
||||
*/
|
||||
public String getMerchantName1() {
|
||||
return merchantName1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param merchantName1 the merchantName1 to set
|
||||
*/
|
||||
public void setMerchantName1(String merchantName1) {
|
||||
this.merchantName1 = merchantName1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the merchantName2
|
||||
*/
|
||||
public String getMerchantName2() {
|
||||
return merchantName2;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param merchantName2 the merchantName2 to set
|
||||
*/
|
||||
public void setMerchantName2(String merchantName2) {
|
||||
this.merchantName2 = merchantName2;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the merchantName3
|
||||
*/
|
||||
public String getMerchantName3() {
|
||||
return merchantName3;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param merchantName3 the merchantName3 to set
|
||||
*/
|
||||
public void setMerchantName3(String merchantName3) {
|
||||
this.merchantName3 = merchantName3;
|
||||
}
|
||||
|
||||
public String getMerchantName4() {
|
||||
return merchantName4;
|
||||
}
|
||||
|
||||
public void setMerchantName4(String merchantName4) {
|
||||
this.merchantName4 = merchantName4;
|
||||
}
|
||||
|
||||
public String getMerchantName5() {
|
||||
return merchantName5;
|
||||
}
|
||||
|
||||
public void setMerchantName5(String merchantName5) {
|
||||
this.merchantName5 = merchantName5;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,305 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.BaseUuidEntity;
|
||||
import com.haulmont.cuba.core.entity.Creatable;
|
||||
import com.haulmont.cuba.core.global.DesignSupport;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.Date;
|
||||
import java.util.UUID;
|
||||
|
||||
@DesignSupport("{'dbView':true,'imported':true,'generateDdl':false}")
|
||||
@NamePattern("%s|terminalSn")
|
||||
@Table(name = "tms_v_terminal_last_diagnostic_info")
|
||||
@Entity(name = "tms_TerminalLastDiagnosticInfo")
|
||||
public class TerminalLastDiagnosticInfo extends BaseUuidEntity implements Creatable {
|
||||
private static final long serialVersionUID = 3273694768616434323L;
|
||||
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
@Column(name = "create_ts")
|
||||
protected Date createTs;
|
||||
|
||||
@Column(name = "created_by", length = 50)
|
||||
protected String createdBy;
|
||||
|
||||
@Column(name = "available_flash_memory")
|
||||
protected Long availableFlashMemory;
|
||||
|
||||
@Column(name = "available_memory")
|
||||
protected Long availableMemory;
|
||||
|
||||
@Column(name = "battery_percentage")
|
||||
protected Integer batteryPercentage;
|
||||
|
||||
@Column(name = "battery_temp")
|
||||
protected Double batteryTemp;
|
||||
|
||||
@Column(name = "charge_times")
|
||||
protected Integer chargeTimes;
|
||||
|
||||
@Column(name = "current_boot_time")
|
||||
protected Integer currentBootTime;
|
||||
|
||||
@Column(name = "dip_inserting_times")
|
||||
protected Integer dipInsertingTimes;
|
||||
|
||||
@Column(name = "front_camera_open_times")
|
||||
protected Integer frontCameraOpenTimes;
|
||||
|
||||
@Column(name = "installed_apps", length = 1000)
|
||||
protected String installedApps;
|
||||
|
||||
@Column(name = "latitude")
|
||||
protected Double latitude;
|
||||
|
||||
@Column(name = "longitude")
|
||||
protected Double longitude;
|
||||
|
||||
@Column(name = "meid", length = 20)
|
||||
protected String meid;
|
||||
|
||||
@Column(name = "nfc_card_reading_times")
|
||||
protected Integer nfcCardReadingTimes;
|
||||
|
||||
@Column(name = "rear_camera_open_times")
|
||||
protected Integer rearCameraOpenTimes;
|
||||
|
||||
@Column(name = "swiping_card_times")
|
||||
protected Integer swipingCardTimes;
|
||||
|
||||
@Column(name = "switching_times")
|
||||
protected Integer switchingTimes;
|
||||
|
||||
@Column(name = "terminal_id")
|
||||
protected UUID terminal;
|
||||
|
||||
@Column(name = "terminal_sn", length = 30)
|
||||
protected String terminalSn;
|
||||
|
||||
@Column(name = "total_boot_time")
|
||||
protected Integer totalBootTime;
|
||||
|
||||
@Column(name = "total_flash_memory")
|
||||
protected Long totalFlashMemory;
|
||||
|
||||
@Column(name = "total_length_printed")
|
||||
protected Double totalLengthPrinted;
|
||||
|
||||
@Column(name = "total_memory")
|
||||
protected Long totalMemory;
|
||||
|
||||
@Column(name = "total_mobile_data")
|
||||
protected Long totalMobileData;
|
||||
|
||||
@Column(name = "TERMINAL_EXT_ID")
|
||||
protected String terminalExtId;
|
||||
|
||||
public String getTerminalExtId() {
|
||||
return terminalExtId;
|
||||
}
|
||||
|
||||
public void setTerminalExtId(String terminalExtId) {
|
||||
this.terminalExtId = terminalExtId;
|
||||
}
|
||||
|
||||
public void setTotalLengthPrinted(Double totalLengthPrinted) {
|
||||
this.totalLengthPrinted = totalLengthPrinted;
|
||||
}
|
||||
|
||||
public Double getTotalLengthPrinted() {
|
||||
return totalLengthPrinted;
|
||||
}
|
||||
|
||||
public void setAvailableFlashMemory(Long availableFlashMemory) {
|
||||
this.availableFlashMemory = availableFlashMemory;
|
||||
}
|
||||
|
||||
public Long getAvailableFlashMemory() {
|
||||
return availableFlashMemory;
|
||||
}
|
||||
|
||||
public void setAvailableMemory(Long availableMemory) {
|
||||
this.availableMemory = availableMemory;
|
||||
}
|
||||
|
||||
public Long getAvailableMemory() {
|
||||
return availableMemory;
|
||||
}
|
||||
|
||||
public void setTotalFlashMemory(Long totalFlashMemory) {
|
||||
this.totalFlashMemory = totalFlashMemory;
|
||||
}
|
||||
|
||||
public Long getTotalFlashMemory() {
|
||||
return totalFlashMemory;
|
||||
}
|
||||
|
||||
public void setTotalMemory(Long totalMemory) {
|
||||
this.totalMemory = totalMemory;
|
||||
}
|
||||
|
||||
public Long getTotalMemory() {
|
||||
return totalMemory;
|
||||
}
|
||||
|
||||
public void setTotalMobileData(Long totalMobileData) {
|
||||
this.totalMobileData = totalMobileData;
|
||||
}
|
||||
|
||||
public Long getTotalMobileData() {
|
||||
return totalMobileData;
|
||||
}
|
||||
|
||||
public Integer getTotalBootTime() {
|
||||
return totalBootTime;
|
||||
}
|
||||
|
||||
public void setTotalBootTime(Integer totalBootTime) {
|
||||
this.totalBootTime = totalBootTime;
|
||||
}
|
||||
|
||||
public String getTerminalSn() {
|
||||
return terminalSn;
|
||||
}
|
||||
|
||||
public void setTerminalSn(String terminalSn) {
|
||||
this.terminalSn = terminalSn;
|
||||
}
|
||||
|
||||
public UUID getTerminal() {
|
||||
return terminal;
|
||||
}
|
||||
|
||||
public void setTerminal(UUID terminal) {
|
||||
this.terminal = terminal;
|
||||
}
|
||||
|
||||
public Integer getSwitchingTimes() {
|
||||
return switchingTimes;
|
||||
}
|
||||
|
||||
public void setSwitchingTimes(Integer switchingTimes) {
|
||||
this.switchingTimes = switchingTimes;
|
||||
}
|
||||
|
||||
public Integer getSwipingCardTimes() {
|
||||
return swipingCardTimes;
|
||||
}
|
||||
|
||||
public void setSwipingCardTimes(Integer swipingCardTimes) {
|
||||
this.swipingCardTimes = swipingCardTimes;
|
||||
}
|
||||
|
||||
public Integer getRearCameraOpenTimes() {
|
||||
return rearCameraOpenTimes;
|
||||
}
|
||||
|
||||
public void setRearCameraOpenTimes(Integer rearCameraOpenTimes) {
|
||||
this.rearCameraOpenTimes = rearCameraOpenTimes;
|
||||
}
|
||||
|
||||
public Integer getNfcCardReadingTimes() {
|
||||
return nfcCardReadingTimes;
|
||||
}
|
||||
|
||||
public void setNfcCardReadingTimes(Integer nfcCardReadingTimes) {
|
||||
this.nfcCardReadingTimes = nfcCardReadingTimes;
|
||||
}
|
||||
|
||||
public String getMeid() {
|
||||
return meid;
|
||||
}
|
||||
|
||||
public void setMeid(String meid) {
|
||||
this.meid = meid;
|
||||
}
|
||||
|
||||
public Double getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(Double longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public Double getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(Double latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public String getInstalledApps() {
|
||||
return installedApps;
|
||||
}
|
||||
|
||||
public void setInstalledApps(String installedApps) {
|
||||
this.installedApps = installedApps;
|
||||
}
|
||||
|
||||
public Integer getFrontCameraOpenTimes() {
|
||||
return frontCameraOpenTimes;
|
||||
}
|
||||
|
||||
public void setFrontCameraOpenTimes(Integer frontCameraOpenTimes) {
|
||||
this.frontCameraOpenTimes = frontCameraOpenTimes;
|
||||
}
|
||||
|
||||
public Integer getDipInsertingTimes() {
|
||||
return dipInsertingTimes;
|
||||
}
|
||||
|
||||
public void setDipInsertingTimes(Integer dipInsertingTimes) {
|
||||
this.dipInsertingTimes = dipInsertingTimes;
|
||||
}
|
||||
|
||||
public Integer getCurrentBootTime() {
|
||||
return currentBootTime;
|
||||
}
|
||||
|
||||
public void setCurrentBootTime(Integer currentBootTime) {
|
||||
this.currentBootTime = currentBootTime;
|
||||
}
|
||||
|
||||
public Integer getChargeTimes() {
|
||||
return chargeTimes;
|
||||
}
|
||||
|
||||
public void setChargeTimes(Integer chargeTimes) {
|
||||
this.chargeTimes = chargeTimes;
|
||||
}
|
||||
|
||||
public Double getBatteryTemp() {
|
||||
return batteryTemp;
|
||||
}
|
||||
|
||||
public void setBatteryTemp(Double batteryTemp) {
|
||||
this.batteryTemp = batteryTemp;
|
||||
}
|
||||
|
||||
public Integer getBatteryPercentage() {
|
||||
return batteryPercentage;
|
||||
}
|
||||
|
||||
public void setBatteryPercentage(Integer batteryPercentage) {
|
||||
this.batteryPercentage = batteryPercentage;
|
||||
}
|
||||
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public Date getCreateTs() {
|
||||
return createTs;
|
||||
}
|
||||
|
||||
public void setCreateTs(Date createTs) {
|
||||
this.createTs = createTs;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,197 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.cuba.core.entity.BaseUuidEntity;
|
||||
import com.haulmont.cuba.core.entity.Creatable;
|
||||
import com.haulmont.cuba.core.entity.Versioned;
|
||||
import com.haulmont.cuba.core.global.DesignSupport;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.Date;
|
||||
import java.util.UUID;
|
||||
|
||||
@DesignSupport("{'dbView':true,'imported':true,'generateDdl':false}")
|
||||
@Table(name = "tms_v_terminal_last_heart_beat")
|
||||
@Entity(name = "tms_TerminalLastHeartBeat")
|
||||
public class TerminalLastHeartBeat extends BaseUuidEntity implements Versioned, Creatable {
|
||||
private static final long serialVersionUID = -3539537453020368691L;
|
||||
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
@Column(name = "create_ts")
|
||||
protected Date createTs;
|
||||
|
||||
@Column(name = "created_by", length = 50)
|
||||
protected String createdBy;
|
||||
|
||||
@Version
|
||||
@Column(name = "version")
|
||||
protected Integer version;
|
||||
|
||||
@Column(name = "battery_percentage")
|
||||
protected Integer batteryPercentage;
|
||||
|
||||
@Column(name = "battery_temp")
|
||||
protected Double batteryTemp;
|
||||
|
||||
@Column(name = "latitude")
|
||||
protected Double latitude;
|
||||
|
||||
@Column(name = "longitude")
|
||||
protected Double longitude;
|
||||
|
||||
@Column(name = "terminal_id")
|
||||
protected UUID terminalId;
|
||||
|
||||
@Column(name = "TERMINAL_EXT_ID")
|
||||
protected String terminalExtId;
|
||||
|
||||
@Column(name = "terminal_sn", length = 30)
|
||||
protected String terminalSn;
|
||||
|
||||
@Column(name = "state")
|
||||
protected String state;
|
||||
|
||||
@Column(name = "cell_name")
|
||||
protected String cellName;
|
||||
|
||||
@Column(name = "cell_type")
|
||||
protected String cellType;
|
||||
|
||||
@Column(name = "cell_strength")
|
||||
protected Integer cellStrength;
|
||||
|
||||
@Column(name = "wifi_name")
|
||||
protected String wifiName;
|
||||
|
||||
@Column(name = "wifi_strength")
|
||||
protected Integer wifiStrength;
|
||||
|
||||
public String getTerminalExtId() {
|
||||
return terminalExtId;
|
||||
}
|
||||
|
||||
public void setTerminalExtId(String terminalExtId) {
|
||||
this.terminalExtId = terminalExtId;
|
||||
}
|
||||
|
||||
public void setTerminalId(UUID terminalId) {
|
||||
this.terminalId = terminalId;
|
||||
}
|
||||
|
||||
public UUID getTerminalId() {
|
||||
return terminalId;
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getTerminalSn() {
|
||||
return terminalSn;
|
||||
}
|
||||
|
||||
public void setTerminalSn(String terminalSn) {
|
||||
this.terminalSn = terminalSn;
|
||||
}
|
||||
|
||||
public Double getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(Double longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public Double getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(Double latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public Double getBatteryTemp() {
|
||||
return batteryTemp;
|
||||
}
|
||||
|
||||
public void setBatteryTemp(Double batteryTemp) {
|
||||
this.batteryTemp = batteryTemp;
|
||||
}
|
||||
|
||||
public Integer getBatteryPercentage() {
|
||||
return batteryPercentage;
|
||||
}
|
||||
|
||||
public void setBatteryPercentage(Integer batteryPercentage) {
|
||||
this.batteryPercentage = batteryPercentage;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setVersion(Integer version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public Date getCreateTs() {
|
||||
return createTs;
|
||||
}
|
||||
|
||||
public void setCreateTs(Date createTs) {
|
||||
this.createTs = createTs;
|
||||
}
|
||||
|
||||
public String getCellName() {
|
||||
return cellName;
|
||||
}
|
||||
|
||||
public void setCellName(String cellName) {
|
||||
this.cellName = cellName;
|
||||
}
|
||||
|
||||
public String getCellType() {
|
||||
return cellType;
|
||||
}
|
||||
|
||||
public void setCellType(String cellType) {
|
||||
this.cellType = cellType;
|
||||
}
|
||||
|
||||
public Integer getCellStrength() {
|
||||
return cellStrength;
|
||||
}
|
||||
|
||||
public void setCellStrength(Integer cellStrength) {
|
||||
this.cellStrength = cellStrength;
|
||||
}
|
||||
|
||||
public String getWifiName() {
|
||||
return wifiName;
|
||||
}
|
||||
|
||||
public void setWifiName(String wifiName) {
|
||||
this.wifiName = wifiName;
|
||||
}
|
||||
|
||||
public Integer getWifiStrength() {
|
||||
return wifiStrength;
|
||||
}
|
||||
|
||||
public void setWifiStrength(Integer wifiStrength) {
|
||||
this.wifiStrength = wifiStrength;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,75 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.BaseUuidEntity;
|
||||
import com.haulmont.cuba.core.entity.Creatable;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.Date;
|
||||
|
||||
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
|
||||
@NamePattern("%s|sn")
|
||||
@Table(name = "TMS_TERMINAL_LAST_STEP_UPDATE")
|
||||
@Entity(name = "tms_TerminalLastStepUpdate")
|
||||
public class TerminalLastStepUpdate extends BaseUuidEntity implements Creatable {
|
||||
private static final long serialVersionUID = 6491584963030369358L;
|
||||
|
||||
@Column(name = "SN")
|
||||
protected String sn;
|
||||
|
||||
@Column(name = "STEP_NAME")
|
||||
protected String stepName;
|
||||
|
||||
@Column(name = "LAST_INIT_TIME")
|
||||
protected Date lastInitTime;
|
||||
|
||||
@Column(name = "CREATE_TS")
|
||||
protected Date createTs;
|
||||
|
||||
@Column(name = "CREATED_BY", length = 50)
|
||||
protected String createdBy;
|
||||
|
||||
@Override
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Date getCreateTs() {
|
||||
return createTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreateTs(Date createTs) {
|
||||
this.createTs = createTs;
|
||||
}
|
||||
|
||||
public Date getLastInitTime() {
|
||||
return lastInitTime;
|
||||
}
|
||||
|
||||
public void setLastInitTime(Date lastInitTime) {
|
||||
this.lastInitTime = lastInitTime;
|
||||
}
|
||||
|
||||
public String getStepName() {
|
||||
return stepName;
|
||||
}
|
||||
|
||||
public void setStepName(String stepName) {
|
||||
this.stepName = stepName;
|
||||
}
|
||||
|
||||
public String getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public void setSn(String sn) {
|
||||
this.sn = sn;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,89 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.BaseUuidEntity;
|
||||
import com.haulmont.cuba.core.entity.Creatable;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
|
||||
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
|
||||
@NamePattern("%s|sn")
|
||||
@Table(name = "TMS_TERMINAL_LAST_UPDATE")
|
||||
@Entity(name = "tms_TerminalLastUpdate")
|
||||
public class TerminalLastUpdate extends BaseUuidEntity implements Creatable {
|
||||
private static final long serialVersionUID = 6491584963030369358L;
|
||||
|
||||
@Column(name = "SN")
|
||||
protected String sn;
|
||||
|
||||
@Column(name = "HAS_UPDATE")
|
||||
protected Boolean hasUpdate;
|
||||
|
||||
@Column(name = "FORCE_UPDATE")
|
||||
protected Boolean forceUpdate;
|
||||
|
||||
@Column(name = "LAST_INIT_TIME")
|
||||
protected Date lastInitTime;
|
||||
|
||||
@Column(name = "CREATE_TS")
|
||||
protected Date createTs;
|
||||
|
||||
@Column(name = "CREATED_BY", length = 50)
|
||||
protected String createdBy;
|
||||
|
||||
@Override
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Date getCreateTs() {
|
||||
return createTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreateTs(Date createTs) {
|
||||
this.createTs = createTs;
|
||||
}
|
||||
|
||||
public Date getLastInitTime() {
|
||||
return lastInitTime;
|
||||
}
|
||||
|
||||
public void setLastInitTime(Date lastInitTime) {
|
||||
this.lastInitTime = lastInitTime;
|
||||
}
|
||||
|
||||
public Boolean getHasUpdate() {
|
||||
return hasUpdate;
|
||||
}
|
||||
|
||||
public void setHasUpdate(Boolean hasUpdate) {
|
||||
this.hasUpdate = hasUpdate;
|
||||
}
|
||||
|
||||
public Boolean getForceUpdate() {
|
||||
return forceUpdate;
|
||||
}
|
||||
|
||||
public void setForceUpdate(Boolean forceUpdate) {
|
||||
this.forceUpdate = forceUpdate;
|
||||
}
|
||||
|
||||
public String getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public void setSn(String sn) {
|
||||
this.sn = sn;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,109 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.cmobile.unifiedtms.ext.entity.TerminalExt;
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.*;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.persistence.Entity;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
|
||||
@NamePattern("%s|terminal")
|
||||
@Table(name = "TMS_TERMINAL_LINK")
|
||||
@Entity(name = "tms_TerminalLink")
|
||||
public class TerminalLink extends BaseUuidEntity implements Creatable, Updatable, Versioned {
|
||||
private static final long serialVersionUID = -2787884093282328769L;
|
||||
|
||||
@NotNull
|
||||
@OneToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "TERMINAL_ID")
|
||||
protected Terminal terminal;
|
||||
|
||||
@NotNull
|
||||
@OneToOne(fetch = FetchType.LAZY, optional = false)
|
||||
@JoinColumn(name = "TERMINAL_EXT_ID")
|
||||
protected TerminalExt terminalExt;
|
||||
|
||||
@Version
|
||||
@Column(name = "VERSION", nullable = false)
|
||||
protected Integer version;
|
||||
|
||||
@Column(name = "CREATE_TS")
|
||||
protected Date createTs;
|
||||
|
||||
@Column(name = "CREATED_BY", length = 50)
|
||||
protected String createdBy;
|
||||
|
||||
@Column(name = "UPDATE_TS")
|
||||
protected Date updateTs;
|
||||
|
||||
@Column(name = "UPDATED_BY", length = 50)
|
||||
protected String updatedBy;
|
||||
|
||||
public TerminalExt getTerminalExt() {
|
||||
return terminalExt;
|
||||
}
|
||||
|
||||
public void setTerminalExt(TerminalExt terminalExt) {
|
||||
this.terminalExt = terminalExt;
|
||||
}
|
||||
|
||||
public Terminal getTerminal() {
|
||||
return terminal;
|
||||
}
|
||||
|
||||
public void setTerminal(Terminal terminal) {
|
||||
this.terminal = terminal;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setVersion(Integer version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Date getCreateTs() {
|
||||
return createTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreateTs(Date createTs) {
|
||||
this.createTs = createTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Date getUpdateTs() {
|
||||
return updateTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUpdateTs(Date updateTs) {
|
||||
this.updateTs = updateTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUpdatedBy() {
|
||||
return updatedBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUpdatedBy(String updatedBy) {
|
||||
this.updatedBy = updatedBy;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,96 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.*;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDelete;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.persistence.Entity;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@NamePattern("%s|file")
|
||||
@Table(name = "TMS_TERMINAL_PROFILING")
|
||||
@Entity(name = "tms_TerminalProfiling")
|
||||
public class TerminalProfiling extends BaseUuidEntity implements Versioned, Creatable {
|
||||
private static final long serialVersionUID = 2184358567137236838L;
|
||||
|
||||
@OnDeleteInverse(DeletePolicy.DENY)
|
||||
@OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.PERSIST)
|
||||
@JoinColumn(name = "FILE")
|
||||
protected FileDescriptor file;
|
||||
|
||||
@Version
|
||||
@Column(
|
||||
name = "VERSION",
|
||||
nullable = false
|
||||
)
|
||||
protected Integer version;
|
||||
@Column(
|
||||
name = "CREATE_TS"
|
||||
)
|
||||
protected Date createTs;
|
||||
@Column(
|
||||
name = "CREATED_BY",
|
||||
length = 50
|
||||
)
|
||||
protected String createdBy;
|
||||
|
||||
@OnDeleteInverse(DeletePolicy.DENY)
|
||||
@OnDelete(DeletePolicy.CASCADE)
|
||||
@OneToMany(mappedBy = "profiling", cascade = CascadeType.PERSIST, orphanRemoval = true)
|
||||
protected List<TerminalProfilingItem> items;
|
||||
|
||||
public FileDescriptor getFile() {
|
||||
return file;
|
||||
}
|
||||
|
||||
public void setFile(FileDescriptor file) {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Date getCreateTs() {
|
||||
return createTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreateTs(Date date) {
|
||||
this.createTs = date;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setVersion(Integer integer) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public List<TerminalProfilingItem> getItems() {
|
||||
if(items == null) {
|
||||
items = new ArrayList<>();
|
||||
}
|
||||
return items;
|
||||
}
|
||||
|
||||
public void setItems(List<TerminalProfilingItem> items) {
|
||||
this.items = items;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,236 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.cmobile.unifiedtms.ext.entity.Acquirer;
|
||||
import com.haulmont.chile.core.annotations.NamePattern;
|
||||
import com.haulmont.cuba.core.entity.BaseUuidEntity;
|
||||
import com.haulmont.cuba.core.entity.Creatable;
|
||||
import com.haulmont.cuba.core.entity.FileDescriptor;
|
||||
import com.haulmont.cuba.core.entity.Versioned;
|
||||
import com.haulmont.cuba.core.entity.annotation.Lookup;
|
||||
import com.haulmont.cuba.core.entity.annotation.LookupType;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDelete;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
|
||||
@NamePattern("%s|sn")
|
||||
@Table(name = "TMS_TERMINAL_PROFILING_ITEMS")
|
||||
@Entity(name = "tms_TerminalProfilingItems")
|
||||
public class TerminalProfilingItem extends BaseUuidEntity implements Creatable {
|
||||
private static final long serialVersionUID = 2184358567137236838L;
|
||||
|
||||
@OnDeleteInverse(DeletePolicy.CASCADE)
|
||||
@OnDelete(DeletePolicy.DENY)
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "PROFILING_ID")
|
||||
protected TerminalProfiling profiling;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "sn", nullable = false, length = 30)
|
||||
protected String sn;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "imei", nullable = false, length = 25)
|
||||
protected String imei;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "model_name", nullable = false, length = 50)
|
||||
protected String modelName;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "merchant_name", nullable = false, length = 100)
|
||||
protected String merchantName;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "profile_name", nullable = false, length = 50)
|
||||
protected String profileName;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "group_names", nullable = false, length = 255)
|
||||
protected String groupNames;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "terminal_id_template", nullable = false, length = 8)
|
||||
protected String terminalIdTemplate;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "terminal_id", nullable = false, length = 8)
|
||||
protected String terminalId;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "merchant_id", nullable = false, length = 15)
|
||||
protected String merchantId;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "merchant_name1", nullable = false, length = 30)
|
||||
protected String merchantName1;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "merchant_name2", nullable = true, length = 30)
|
||||
protected String merchantName2;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "merchant_name3", nullable = true, length = 30)
|
||||
protected String merchantName3;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "merchant_name4", nullable = true, length = 30)
|
||||
protected String merchantName4;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "merchant_name5", nullable = true, length = 30)
|
||||
protected String merchantName5;
|
||||
|
||||
@Column(
|
||||
name = "CREATE_TS"
|
||||
)
|
||||
protected Date createTs;
|
||||
@Column(
|
||||
name = "CREATED_BY",
|
||||
length = 50
|
||||
)
|
||||
protected String createdBy;
|
||||
|
||||
@Override
|
||||
public Date getCreateTs() {
|
||||
return createTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreateTs(Date date) {
|
||||
this.createTs = date;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public TerminalProfiling getProfiling() {
|
||||
return profiling;
|
||||
}
|
||||
|
||||
public void setProfiling(TerminalProfiling profiling) {
|
||||
this.profiling = profiling;
|
||||
}
|
||||
|
||||
public String getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public void setSn(String sn) {
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public String getImei() {
|
||||
return imei;
|
||||
}
|
||||
|
||||
public void setImei(String imei) {
|
||||
this.imei = imei;
|
||||
}
|
||||
|
||||
public String getModelName() {
|
||||
return modelName;
|
||||
}
|
||||
|
||||
public void setModelName(String modelName) {
|
||||
this.modelName = modelName;
|
||||
}
|
||||
|
||||
public String getMerchantName() {
|
||||
return merchantName;
|
||||
}
|
||||
|
||||
public void setMerchantName(String merchantName) {
|
||||
this.merchantName = merchantName;
|
||||
}
|
||||
|
||||
public String getProfileName() {
|
||||
return profileName;
|
||||
}
|
||||
|
||||
public void setProfileName(String profileName) {
|
||||
this.profileName = profileName;
|
||||
}
|
||||
|
||||
public String getGroupNames() {
|
||||
return groupNames;
|
||||
}
|
||||
|
||||
public void setGroupNames(String groupNames) {
|
||||
this.groupNames = groupNames;
|
||||
}
|
||||
|
||||
public String getTerminalIdTemplate() {
|
||||
return terminalIdTemplate;
|
||||
}
|
||||
|
||||
public void setTerminalIdTemplate(String terminalIdTemplate) {
|
||||
this.terminalIdTemplate = terminalIdTemplate;
|
||||
}
|
||||
|
||||
public String getTerminalId() {
|
||||
return terminalId;
|
||||
}
|
||||
|
||||
public void setTerminalId(String terminalId) {
|
||||
this.terminalId = terminalId;
|
||||
}
|
||||
|
||||
public String getMerchantId() {
|
||||
return merchantId;
|
||||
}
|
||||
|
||||
public void setMerchantId(String merchantId) {
|
||||
this.merchantId = merchantId;
|
||||
}
|
||||
|
||||
public String getMerchantName1() {
|
||||
return merchantName1;
|
||||
}
|
||||
|
||||
public void setMerchantName1(String merchantName1) {
|
||||
this.merchantName1 = merchantName1;
|
||||
}
|
||||
|
||||
public String getMerchantName2() {
|
||||
return merchantName2;
|
||||
}
|
||||
|
||||
public void setMerchantName2(String merchantName2) {
|
||||
this.merchantName2 = merchantName2;
|
||||
}
|
||||
|
||||
public String getMerchantName3() {
|
||||
return merchantName3;
|
||||
}
|
||||
|
||||
public void setMerchantName3(String merchantName3) {
|
||||
this.merchantName3 = merchantName3;
|
||||
}
|
||||
|
||||
public String getMerchantName4() {
|
||||
return merchantName4;
|
||||
}
|
||||
|
||||
public void setMerchantName4(String merchantName4) {
|
||||
this.merchantName4 = merchantName4;
|
||||
}
|
||||
|
||||
public String getMerchantName5() {
|
||||
return merchantName5;
|
||||
}
|
||||
|
||||
public void setMerchantName5(String merchantName5) {
|
||||
this.merchantName5 = merchantName5;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,477 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.cuba.core.entity.BaseStringIdEntity;
|
||||
import com.haulmont.cuba.core.global.DesignSupport;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.Date;
|
||||
|
||||
@DesignSupport("{'dbView':true,'imported':true,'generateDdl':false}")
|
||||
@Table(name = "tms_v_terminal_report")
|
||||
@Entity(name = "tms_TerminalReport")
|
||||
public class TerminalReport extends BaseStringIdEntity {
|
||||
private static final long serialVersionUID = -8873579277694377762L;
|
||||
|
||||
@Id
|
||||
@Column(name = "sn", nullable = false, length = 30)
|
||||
protected String sn;
|
||||
|
||||
@Column(name = "app_version", length = 30)
|
||||
protected String appVersion;
|
||||
|
||||
@Column(name = "auto_logon")
|
||||
protected Boolean autoLogon;
|
||||
|
||||
@Column(name = "beep_pin_keypad")
|
||||
protected Boolean beepPinKeypad;
|
||||
|
||||
@Column(name = "feature_card_verification")
|
||||
protected Boolean featureCardVerification;
|
||||
|
||||
@Column(name = "feature_contactless")
|
||||
protected Boolean featureContactless;
|
||||
|
||||
@Column(name = "feature_installment")
|
||||
protected Boolean featureInstallment;
|
||||
|
||||
@Column(name = "feature_manual_key_in")
|
||||
protected Boolean featureManualKeyIn;
|
||||
|
||||
@Column(name = "feature_qris")
|
||||
protected Boolean featureQris;
|
||||
|
||||
@Column(name = "feature_sale")
|
||||
protected Boolean featureSale;
|
||||
|
||||
@Column(name = "feature_sale_completion")
|
||||
protected Boolean featureSaleCompletion;
|
||||
|
||||
@Column(name = "feature_sale_fare_non_fare")
|
||||
protected Boolean featureSaleFareNonFare;
|
||||
|
||||
@Column(name = "feature_sale_redemption")
|
||||
protected Boolean featureSaleRedemption;
|
||||
|
||||
@Column(name = "feature_sale_tip")
|
||||
protected Boolean featureSaleTip;
|
||||
|
||||
@Column(name = "imei", length = 25)
|
||||
protected String imei;
|
||||
|
||||
@Column(name = "installment1_options", length = 20)
|
||||
protected String installment1Options;
|
||||
|
||||
@Column(name = "installment2_options", length = 20)
|
||||
protected String installment2Options;
|
||||
|
||||
@Column(name = "installment3_options", length = 20)
|
||||
protected String installment3Options;
|
||||
|
||||
@Column(name = "launcher_version", length = 30)
|
||||
protected String launcherVersion;
|
||||
|
||||
@Column(name = "merchant_id", length = 15)
|
||||
protected String merchant;
|
||||
|
||||
@Column(name = "merchant_name1", length = 30)
|
||||
protected String merchantName1;
|
||||
|
||||
@Column(name = "merchant_name2", length = 30)
|
||||
protected String merchantName2;
|
||||
|
||||
@Column(name = "merchant_name3", length = 30)
|
||||
protected String merchantName3;
|
||||
|
||||
@Column(name = "next_logon")
|
||||
protected Integer nextLogon;
|
||||
|
||||
@Column(name = "random_pin_keypad")
|
||||
protected Boolean randomPinKeypad;
|
||||
|
||||
@Lob
|
||||
@Column(name = "state")
|
||||
protected String state;
|
||||
|
||||
@Column(name = "terminal_id", length = 8)
|
||||
protected String terminal;
|
||||
|
||||
@Column(name = "vfs_version")
|
||||
protected String vfsVersion;
|
||||
|
||||
@Column(name = "vfss_version")
|
||||
protected String vfssVersion;
|
||||
|
||||
@Column(name = "last_diagnostic_time")
|
||||
protected Date lastDiagnosticTime;
|
||||
|
||||
@Column(name = "last_heartbeat_time")
|
||||
protected Date lastHeartbeatTime;
|
||||
|
||||
@Column(name = "cell_name")
|
||||
protected String cellName;
|
||||
|
||||
@Column(name = "cell_type")
|
||||
protected String cellType;
|
||||
|
||||
@Column(name = "cell_strength")
|
||||
protected Integer cellStrength;
|
||||
|
||||
@Column(name = "wifi_name")
|
||||
protected String wifiName;
|
||||
|
||||
@Column(name = "wifi_strength")
|
||||
protected Integer wifiStrength;
|
||||
|
||||
@Column(name = "sam_available")
|
||||
protected Boolean samAvailable;
|
||||
|
||||
@Column(name = "push_logon")
|
||||
protected Integer pushLogon;
|
||||
|
||||
@Column(name = "host_report")
|
||||
protected Boolean hostReport;
|
||||
|
||||
@Column(name = "host_logging")
|
||||
protected Boolean hostLogging;
|
||||
|
||||
@Column(name = "apps")
|
||||
protected String apps;
|
||||
|
||||
public String getVfssVersion() {
|
||||
return vfssVersion;
|
||||
}
|
||||
|
||||
public void setVfssVersion(String vfssVersion) {
|
||||
this.vfssVersion = vfssVersion;
|
||||
}
|
||||
|
||||
public String getVfsVersion() {
|
||||
return vfsVersion;
|
||||
}
|
||||
|
||||
public void setVfsVersion(String vfsVersion) {
|
||||
this.vfsVersion = vfsVersion;
|
||||
}
|
||||
|
||||
public String getTerminal() {
|
||||
return terminal;
|
||||
}
|
||||
|
||||
public void setTerminal(String terminal) {
|
||||
this.terminal = terminal;
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public Boolean getRandomPinKeypad() {
|
||||
return randomPinKeypad;
|
||||
}
|
||||
|
||||
public void setRandomPinKeypad(Boolean randomPinKeypad) {
|
||||
this.randomPinKeypad = randomPinKeypad;
|
||||
}
|
||||
|
||||
public Integer getNextLogon() {
|
||||
return nextLogon;
|
||||
}
|
||||
|
||||
public void setNextLogon(Integer nextLogon) {
|
||||
this.nextLogon = nextLogon;
|
||||
}
|
||||
|
||||
public String getMerchantName3() {
|
||||
return merchantName3;
|
||||
}
|
||||
|
||||
public void setMerchantName3(String merchantName3) {
|
||||
this.merchantName3 = merchantName3;
|
||||
}
|
||||
|
||||
public String getMerchantName2() {
|
||||
return merchantName2;
|
||||
}
|
||||
|
||||
public void setMerchantName2(String merchantName2) {
|
||||
this.merchantName2 = merchantName2;
|
||||
}
|
||||
|
||||
public String getMerchantName1() {
|
||||
return merchantName1;
|
||||
}
|
||||
|
||||
public void setMerchantName1(String merchantName1) {
|
||||
this.merchantName1 = merchantName1;
|
||||
}
|
||||
|
||||
public String getMerchant() {
|
||||
return merchant;
|
||||
}
|
||||
|
||||
public void setMerchant(String merchant) {
|
||||
this.merchant = merchant;
|
||||
}
|
||||
|
||||
public String getLauncherVersion() {
|
||||
return launcherVersion;
|
||||
}
|
||||
|
||||
public void setLauncherVersion(String launcherVersion) {
|
||||
this.launcherVersion = launcherVersion;
|
||||
}
|
||||
|
||||
public String getInstallment3Options() {
|
||||
return installment3Options;
|
||||
}
|
||||
|
||||
public void setInstallment3Options(String installment3Options) {
|
||||
this.installment3Options = installment3Options;
|
||||
}
|
||||
|
||||
public String getInstallment2Options() {
|
||||
return installment2Options;
|
||||
}
|
||||
|
||||
public void setInstallment2Options(String installment2Options) {
|
||||
this.installment2Options = installment2Options;
|
||||
}
|
||||
|
||||
public String getInstallment1Options() {
|
||||
return installment1Options;
|
||||
}
|
||||
|
||||
public void setInstallment1Options(String installment1Options) {
|
||||
this.installment1Options = installment1Options;
|
||||
}
|
||||
|
||||
public String getImei() {
|
||||
return imei;
|
||||
}
|
||||
|
||||
public void setImei(String imei) {
|
||||
this.imei = imei;
|
||||
}
|
||||
|
||||
public Boolean getFeatureSaleTip() {
|
||||
return featureSaleTip;
|
||||
}
|
||||
|
||||
public void setFeatureSaleTip(Boolean featureSaleTip) {
|
||||
this.featureSaleTip = featureSaleTip;
|
||||
}
|
||||
|
||||
public Boolean getFeatureSaleRedemption() {
|
||||
return featureSaleRedemption;
|
||||
}
|
||||
|
||||
public void setFeatureSaleRedemption(Boolean featureSaleRedemption) {
|
||||
this.featureSaleRedemption = featureSaleRedemption;
|
||||
}
|
||||
|
||||
public Boolean getFeatureSaleFareNonFare() {
|
||||
return featureSaleFareNonFare;
|
||||
}
|
||||
|
||||
public void setFeatureSaleFareNonFare(Boolean featureSaleFareNonFare) {
|
||||
this.featureSaleFareNonFare = featureSaleFareNonFare;
|
||||
}
|
||||
|
||||
public Boolean getFeatureSaleCompletion() {
|
||||
return featureSaleCompletion;
|
||||
}
|
||||
|
||||
public void setFeatureSaleCompletion(Boolean featureSaleCompletion) {
|
||||
this.featureSaleCompletion = featureSaleCompletion;
|
||||
}
|
||||
|
||||
public Boolean getFeatureSale() {
|
||||
return featureSale;
|
||||
}
|
||||
|
||||
public void setFeatureSale(Boolean featureSale) {
|
||||
this.featureSale = featureSale;
|
||||
}
|
||||
|
||||
public Boolean getFeatureQris() {
|
||||
return featureQris;
|
||||
}
|
||||
|
||||
public void setFeatureQris(Boolean featureQris) {
|
||||
this.featureQris = featureQris;
|
||||
}
|
||||
|
||||
public Boolean getFeatureManualKeyIn() {
|
||||
return featureManualKeyIn;
|
||||
}
|
||||
|
||||
public void setFeatureManualKeyIn(Boolean featureManualKeyIn) {
|
||||
this.featureManualKeyIn = featureManualKeyIn;
|
||||
}
|
||||
|
||||
public Boolean getFeatureInstallment() {
|
||||
return featureInstallment;
|
||||
}
|
||||
|
||||
public void setFeatureInstallment(Boolean featureInstallment) {
|
||||
this.featureInstallment = featureInstallment;
|
||||
}
|
||||
|
||||
public Boolean getFeatureContactless() {
|
||||
return featureContactless;
|
||||
}
|
||||
|
||||
public void setFeatureContactless(Boolean featureContactless) {
|
||||
this.featureContactless = featureContactless;
|
||||
}
|
||||
|
||||
public Boolean getFeatureCardVerification() {
|
||||
return featureCardVerification;
|
||||
}
|
||||
|
||||
public void setFeatureCardVerification(Boolean featureCardVerification) {
|
||||
this.featureCardVerification = featureCardVerification;
|
||||
}
|
||||
|
||||
public Boolean getBeepPinKeypad() {
|
||||
return beepPinKeypad;
|
||||
}
|
||||
|
||||
public void setBeepPinKeypad(Boolean beepPinKeypad) {
|
||||
this.beepPinKeypad = beepPinKeypad;
|
||||
}
|
||||
|
||||
public Boolean getAutoLogon() {
|
||||
return autoLogon;
|
||||
}
|
||||
|
||||
public void setAutoLogon(Boolean autoLogon) {
|
||||
this.autoLogon = autoLogon;
|
||||
}
|
||||
|
||||
public String getAppVersion() {
|
||||
return appVersion;
|
||||
}
|
||||
|
||||
public void setAppVersion(String appVersion) {
|
||||
this.appVersion = appVersion;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setId(String id) {
|
||||
this.sn = id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getId() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public String getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public void setSn(String sn) {
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public Date getLastDiagnosticTime() {
|
||||
return lastDiagnosticTime;
|
||||
}
|
||||
|
||||
public void setLastDiagnosticTime(Date lastDiagnosticTime) {
|
||||
this.lastDiagnosticTime = lastDiagnosticTime;
|
||||
}
|
||||
|
||||
public Date getLastHeartbeatTime() {
|
||||
return lastHeartbeatTime;
|
||||
}
|
||||
|
||||
public void setLastHeartbeatTime(Date lastHeartbeatTime) {
|
||||
this.lastHeartbeatTime = lastHeartbeatTime;
|
||||
}
|
||||
|
||||
public String getCellName() {
|
||||
return cellName;
|
||||
}
|
||||
|
||||
public void setCellName(String cellName) {
|
||||
this.cellName = cellName;
|
||||
}
|
||||
|
||||
public String getCellType() {
|
||||
return cellType;
|
||||
}
|
||||
|
||||
public void setCellType(String cellType) {
|
||||
this.cellType = cellType;
|
||||
}
|
||||
|
||||
public Integer getCellStrength() {
|
||||
return cellStrength;
|
||||
}
|
||||
|
||||
public void setCellStrength(Integer cellStrength) {
|
||||
this.cellStrength = cellStrength;
|
||||
}
|
||||
|
||||
public Integer getPushLogon() {
|
||||
return pushLogon;
|
||||
}
|
||||
|
||||
public void setPushLogon(Integer pushLogon) {
|
||||
this.pushLogon = pushLogon;
|
||||
}
|
||||
|
||||
public Boolean getHostReport() {
|
||||
return hostReport;
|
||||
}
|
||||
|
||||
public void setHostReport(Boolean hostReport) {
|
||||
this.hostReport = hostReport;
|
||||
}
|
||||
|
||||
public Boolean getHostLogging() {
|
||||
return hostLogging;
|
||||
}
|
||||
|
||||
public void setHostLogging(Boolean hostLogging) {
|
||||
this.hostLogging = hostLogging;
|
||||
}
|
||||
|
||||
public String getApps() {
|
||||
return apps;
|
||||
}
|
||||
|
||||
public void setApps(String apps) {
|
||||
this.apps = apps;
|
||||
}
|
||||
|
||||
public String getWifiName() {
|
||||
return wifiName;
|
||||
}
|
||||
|
||||
public void setWifiName(String wifiName) {
|
||||
this.wifiName = wifiName;
|
||||
}
|
||||
|
||||
public Integer getWifiStrength() {
|
||||
return wifiStrength;
|
||||
}
|
||||
|
||||
public void setWifiStrength(Integer wifiStrength) {
|
||||
this.wifiStrength = wifiStrength;
|
||||
}
|
||||
|
||||
public Boolean getSamAvailable() {
|
||||
return samAvailable;
|
||||
}
|
||||
|
||||
public void setSamAvailable(Boolean samAvailable) {
|
||||
this.samAvailable = samAvailable;
|
||||
}
|
||||
}
|
||||
168
modules/global/src/com/cmobile/unifiedtms/entity/VHeartBeat.java
Normal file
168
modules/global/src/com/cmobile/unifiedtms/entity/VHeartBeat.java
Normal file
@ -0,0 +1,168 @@
|
||||
package com.cmobile.unifiedtms.entity;
|
||||
|
||||
import com.haulmont.cuba.core.entity.BaseUuidEntity;
|
||||
import com.haulmont.cuba.core.entity.Creatable;
|
||||
import com.haulmont.cuba.core.entity.Versioned;
|
||||
import com.haulmont.cuba.core.global.DesignSupport;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.Date;
|
||||
import java.util.UUID;
|
||||
|
||||
@DesignSupport("{'dbView':true,'imported':true,'generateDdl':false}")
|
||||
@Table(name = "tms_v_terminal_heart_beat")
|
||||
@Entity(name = "tms_VTerminalHeartBeat")
|
||||
public class VHeartBeat extends BaseUuidEntity implements Versioned, Creatable {
|
||||
private static final long serialVersionUID = -3539537453020368691L;
|
||||
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
@Column(name = "create_ts")
|
||||
protected Date createTs;
|
||||
|
||||
@Column(name = "created_by", length = 50)
|
||||
protected String createdBy;
|
||||
|
||||
@Version
|
||||
@Column(name = "version")
|
||||
protected Integer version;
|
||||
|
||||
@Column(name = "battery_percentage")
|
||||
protected Integer batteryPercentage;
|
||||
|
||||
@Column(name = "battery_temp")
|
||||
protected Double batteryTemp;
|
||||
|
||||
@Column(name = "latitude")
|
||||
protected Double latitude;
|
||||
|
||||
@Column(name = "longitude")
|
||||
protected Double longitude;
|
||||
|
||||
@Column(name = "terminal_sn", length = 30)
|
||||
protected String terminalSn;
|
||||
|
||||
@Column(name = "cell_name")
|
||||
protected String cellName;
|
||||
|
||||
@Column(name = "cell_type")
|
||||
protected String cellType;
|
||||
|
||||
@Column(name = "cell_strength")
|
||||
protected Integer cellStrength;
|
||||
|
||||
@Column(name = "wifi_name")
|
||||
protected String wifiName;
|
||||
|
||||
@Column(name = "wifi_strength")
|
||||
protected Integer wifiStrength;
|
||||
|
||||
@Override
|
||||
public Date getCreateTs() {
|
||||
return createTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreateTs(Date createTs) {
|
||||
this.createTs = createTs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setVersion(Integer version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public Integer getBatteryPercentage() {
|
||||
return batteryPercentage;
|
||||
}
|
||||
|
||||
public void setBatteryPercentage(Integer batteryPercentage) {
|
||||
this.batteryPercentage = batteryPercentage;
|
||||
}
|
||||
|
||||
public Double getBatteryTemp() {
|
||||
return batteryTemp;
|
||||
}
|
||||
|
||||
public void setBatteryTemp(Double batteryTemp) {
|
||||
this.batteryTemp = batteryTemp;
|
||||
}
|
||||
|
||||
public Double getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(Double latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public Double getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(Double longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public String getTerminalSn() {
|
||||
return terminalSn;
|
||||
}
|
||||
|
||||
public void setTerminalSn(String terminalSn) {
|
||||
this.terminalSn = terminalSn;
|
||||
}
|
||||
|
||||
public String getCellName() {
|
||||
return cellName;
|
||||
}
|
||||
|
||||
public void setCellName(String cellName) {
|
||||
this.cellName = cellName;
|
||||
}
|
||||
|
||||
public String getCellType() {
|
||||
return cellType;
|
||||
}
|
||||
|
||||
public void setCellType(String cellType) {
|
||||
this.cellType = cellType;
|
||||
}
|
||||
|
||||
public Integer getCellStrength() {
|
||||
return cellStrength;
|
||||
}
|
||||
|
||||
public void setCellStrength(Integer cellStrength) {
|
||||
this.cellStrength = cellStrength;
|
||||
}
|
||||
|
||||
public String getWifiName() {
|
||||
return wifiName;
|
||||
}
|
||||
|
||||
public void setWifiName(String wifiName) {
|
||||
this.wifiName = wifiName;
|
||||
}
|
||||
|
||||
public Integer getWifiStrength() {
|
||||
return wifiStrength;
|
||||
}
|
||||
|
||||
public void setWifiStrength(Integer wifiStrength) {
|
||||
this.wifiStrength = wifiStrength;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
package com.cmobile.unifiedtms.entity.chartdata;
|
||||
|
||||
import com.haulmont.chile.core.annotations.MetaClass;
|
||||
import com.haulmont.chile.core.annotations.MetaProperty;
|
||||
import com.haulmont.cuba.core.entity.BaseUuidEntity;
|
||||
|
||||
@MetaClass(name = "tms_CountryGrowth")
|
||||
public class CountryGrowth extends BaseUuidEntity {
|
||||
@MetaProperty
|
||||
protected String country;
|
||||
|
||||
@MetaProperty
|
||||
protected Double year2014;
|
||||
|
||||
@MetaProperty
|
||||
protected Double year2015;
|
||||
|
||||
public Double getYear2015() {
|
||||
return year2015;
|
||||
}
|
||||
|
||||
public void setYear2015(Double year2015) {
|
||||
this.year2015 = year2015;
|
||||
}
|
||||
|
||||
public Double getYear2014() {
|
||||
return year2014;
|
||||
}
|
||||
|
||||
public void setYear2014(Double year2014) {
|
||||
this.year2014 = year2014;
|
||||
}
|
||||
|
||||
public String getCountry() {
|
||||
return country;
|
||||
}
|
||||
|
||||
public void setCountry(String country) {
|
||||
this.country = country;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
package com.cmobile.unifiedtms.entity.chartdata;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class PieChartData implements Serializable {
|
||||
|
||||
private String id;
|
||||
private String title;
|
||||
private Map<String, Object> values = new HashMap<>();
|
||||
|
||||
public PieChartData(String id, String title) {
|
||||
this.id = id;
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public Map<String, Object> getValues() {
|
||||
return values;
|
||||
}
|
||||
|
||||
public void clearValues() {
|
||||
values.clear();
|
||||
}
|
||||
|
||||
public void addValue(String key, Object value) {
|
||||
values.put(key, value);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package com.cmobile.unifiedtms.entity.enums;
|
||||
|
||||
import com.haulmont.chile.core.datatypes.impl.EnumClass;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public enum DeleteTaskActivity implements EnumClass<Integer> {
|
||||
|
||||
INITIAL(0),
|
||||
ACCEPTED(5),
|
||||
NOT_STARTED(1),
|
||||
DELETE_STARTED(2),
|
||||
DELETE_SUCCESS(3),
|
||||
DELETE_FAIL(4),
|
||||
EXPIRED(99);
|
||||
|
||||
private Integer id;
|
||||
|
||||
DeleteTaskActivity(Integer value) {
|
||||
this.id = value;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static DeleteTaskActivity fromId(Integer id) {
|
||||
for (DeleteTaskActivity at : DeleteTaskActivity.values()) {
|
||||
if (at.getId().equals(id)) {
|
||||
return at;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package com.cmobile.unifiedtms.entity.enums;
|
||||
|
||||
import com.haulmont.chile.core.datatypes.impl.EnumClass;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public enum DownloadTaskActivity implements EnumClass<Integer> {
|
||||
|
||||
INITIAL(0),
|
||||
ACCEPTED(8),
|
||||
NOT_STARTED(1),
|
||||
DOWNLOAD_STARTED(2),
|
||||
DOWNLOAD_SUCCESS(3),
|
||||
DOWNLOAD_FAIL(4),
|
||||
INSTALL_STARTED(5),
|
||||
INSTALL_SUCCESS(6),
|
||||
INSTALL_FAIL(7),
|
||||
EXPIRED(99);
|
||||
|
||||
private Integer id;
|
||||
|
||||
DownloadTaskActivity(Integer value) {
|
||||
this.id = value;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static DownloadTaskActivity fromId(Integer id) {
|
||||
for (DownloadTaskActivity at : DownloadTaskActivity.values()) {
|
||||
if (at.getId().equals(id)) {
|
||||
return at;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
package com.cmobile.unifiedtms.entity.enums;
|
||||
|
||||
import com.haulmont.chile.core.datatypes.impl.EnumClass;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public enum DownloadTaskType implements EnumClass<Integer> {
|
||||
|
||||
APP_DOWNLOAD(1),
|
||||
APP_DELETE(2);
|
||||
|
||||
private Integer id;
|
||||
|
||||
DownloadTaskType(Integer value) {
|
||||
this.id = value;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static DownloadTaskType fromId(Integer id) {
|
||||
for (DownloadTaskType at : DownloadTaskType.values()) {
|
||||
if (at.getId().equals(id)) {
|
||||
return at;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
package com.cmobile.unifiedtms.entity.enums;
|
||||
|
||||
import com.haulmont.chile.core.datatypes.impl.EnumClass;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public enum DownloadTimeType implements EnumClass<Integer> {
|
||||
|
||||
NEXT_CONTACT(1),
|
||||
DATETIME(2);
|
||||
|
||||
private Integer id;
|
||||
|
||||
DownloadTimeType(Integer value) {
|
||||
this.id = value;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static DownloadTimeType fromId(Integer id) {
|
||||
for (DownloadTimeType at : DownloadTimeType.values()) {
|
||||
if (at.getId().equals(id)) {
|
||||
return at;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
package com.cmobile.unifiedtms.entity.enums;
|
||||
|
||||
import com.haulmont.chile.core.datatypes.impl.EnumClass;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public enum ExportType implements EnumClass<String> {
|
||||
|
||||
CSV("CSV"),
|
||||
XLS("XLS");
|
||||
|
||||
private String id;
|
||||
|
||||
ExportType(String value) {
|
||||
this.id = value;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static ExportType fromId(String id) {
|
||||
for (ExportType at : ExportType.values()) {
|
||||
if (at.getId().equals(id)) {
|
||||
return at;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
package com.cmobile.unifiedtms.entity.enums;
|
||||
|
||||
import com.haulmont.chile.core.datatypes.impl.EnumClass;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public enum InstallationTimeType implements EnumClass<Integer> {
|
||||
|
||||
IMMEDIATE_AFTER_DOWNLOAD(1),
|
||||
DATETIME(2);
|
||||
|
||||
private Integer id;
|
||||
|
||||
InstallationTimeType(Integer value) {
|
||||
this.id = value;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static InstallationTimeType fromId(Integer id) {
|
||||
for (InstallationTimeType at : InstallationTimeType.values()) {
|
||||
if (at.getId().equals(id)) {
|
||||
return at;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package com.cmobile.unifiedtms.entity.enums;
|
||||
|
||||
import com.haulmont.chile.core.datatypes.impl.EnumClass;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public enum ReportType implements EnumClass<String> {
|
||||
|
||||
DIAGNOSTIC_REPORT("Diagnostic Report"),
|
||||
//ACTIVE_REPORT("Active Report"),
|
||||
//OFFLINE_REPORT("Offline Report"),
|
||||
ACK_REPORT("ACK Update Report");
|
||||
|
||||
private String id;
|
||||
|
||||
ReportType(String value) {
|
||||
this.id = value;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static ReportType fromId(String id) {
|
||||
for (ReportType at : ReportType.values()) {
|
||||
if (at.getId().equals(id)) {
|
||||
return at;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
package com.cmobile.unifiedtms.entity.enums;
|
||||
|
||||
import com.haulmont.chile.core.datatypes.impl.EnumClass;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public enum TaskNotificationType implements EnumClass<Integer> {
|
||||
|
||||
SILENT(1),
|
||||
NEED_CONFIRMATION(2);
|
||||
|
||||
private Integer id;
|
||||
|
||||
TaskNotificationType(Integer value) {
|
||||
this.id = value;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static TaskNotificationType fromId(Integer id) {
|
||||
for (TaskNotificationType at : TaskNotificationType.values()) {
|
||||
if (at.getId().equals(id)) {
|
||||
return at;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package com.cmobile.unifiedtms.entity.enums;
|
||||
|
||||
import com.haulmont.chile.core.datatypes.impl.EnumClass;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public enum TaskStatus implements EnumClass<Integer> {
|
||||
|
||||
NOT_STARTED(1),
|
||||
IN_PROGRESS(2),
|
||||
CANCELLED(3),
|
||||
DONE(4);
|
||||
|
||||
private Integer id;
|
||||
|
||||
TaskStatus(Integer value) {
|
||||
this.id = value;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static TaskStatus fromId(Integer id) {
|
||||
for (TaskStatus at : TaskStatus.values()) {
|
||||
if (at.getId().equals(id)) {
|
||||
return at;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package com.cmobile.unifiedtms.entity.enums;
|
||||
|
||||
import com.haulmont.chile.core.datatypes.impl.EnumClass;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public enum TerminalHeartBeatStatus implements EnumClass<Integer> {
|
||||
|
||||
ONLINE(1),
|
||||
OFFLINE(2),
|
||||
NOT_CONNECTED(3);
|
||||
|
||||
private Integer id;
|
||||
|
||||
TerminalHeartBeatStatus(Integer value) {
|
||||
this.id = value;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static TerminalHeartBeatStatus fromId(Integer id) {
|
||||
for (TerminalHeartBeatStatus at : TerminalHeartBeatStatus.values()) {
|
||||
if (at.getId().equals(id)) {
|
||||
return at;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package com.cmobile.unifiedtms.entity.enums;
|
||||
|
||||
import com.haulmont.chile.core.datatypes.impl.EnumClass;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public enum TrxType implements EnumClass<String> {
|
||||
|
||||
CREDIT("CREDIT"),
|
||||
DEBIT("DEBIT"),
|
||||
PREPAID("PREPAID"),
|
||||
QRIS("QRIS");
|
||||
|
||||
private String id;
|
||||
|
||||
TrxType(String value) {
|
||||
this.id = value;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static TrxType fromId(String id) {
|
||||
for (TrxType at : TrxType.values()) {
|
||||
if (at.getId().equals(id)) {
|
||||
return at;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
DownloadTime=Download time
|
||||
DownloadTimeType.NEXT_CONTACT=Next Contact
|
||||
DownloadTimeType.DATETIME=Date & Time
|
||||
InstallationTimeType=Installation time type
|
||||
InstallationTimeType.IMMEDIATE_AFTER_DOWNLOAD=Immediate After Download
|
||||
InstallationTimeType.DATETIME=Datetime
|
||||
TaskNotificationType=Installation notification type
|
||||
TaskNotificationType.SILENT=Silent
|
||||
TaskNotificationType.NEED_CONFIRMATION=Need Cashier's Confirmation
|
||||
DownloadTaskActivity=Download task activity
|
||||
DownloadTaskActivity.INITIAL=Initial
|
||||
DownloadTaskActivity.NOT_STARTED=Not Started
|
||||
DownloadTaskActivity.DOWNLOAD_STARTED=Download Started
|
||||
DownloadTaskActivity.DOWNLOAD_SUCCESS=Download Success
|
||||
DownloadTaskActivity.DOWNLOAD_FAIL=Download Fail
|
||||
DownloadTaskActivity.INSTALL_STARTED=Install Start
|
||||
DownloadTaskActivity.INSTALL_SUCCESS=Install Success
|
||||
DownloadTaskActivity.INSTALL_FAIL=Install Fail
|
||||
DownloadTaskActivity.EXPIRED=Expired
|
||||
TaskStatus=Download task status
|
||||
TaskStatus.NOT_STARTED=Not Started
|
||||
TaskStatus.IN_PROGRESS=In Progress
|
||||
TaskStatus.CANCELLED=Cancelled
|
||||
TaskStatus.DONE=Done
|
||||
DownloadTaskType=Download task type
|
||||
DownloadTaskType.APP_DOWNLOAD=App download
|
||||
DownloadTaskType.APP_DELETE=App delete
|
||||
TerminalHeartBeatStatus=Terminal heart beat status
|
||||
TerminalHeartBeatStatus.ONLINE=Online
|
||||
TerminalHeartBeatStatus.OFFLINE=Offline
|
||||
TerminalHeartBeatStatus.NOT_CONNECTED=Not connected
|
||||
DeleteTaskActivity=Delete task activity
|
||||
DeleteTaskActivity.INITIAL=Initial
|
||||
DeleteTaskActivity.NOT_STARTED=Not Started
|
||||
DeleteTaskActivity.DELETE_STARTED=Delete Started
|
||||
DeleteTaskActivity.DELETE_SUCCESS=Delete Success
|
||||
DeleteTaskActivity.DELETE_FAIL=Delete Fail
|
||||
DeleteTaskActivity.EXPIRED=Expired
|
||||
ReportType=Report type
|
||||
ReportType.ACTIVE_REPORT=Active report
|
||||
ReportType.DIAGNOSTIC_REPORT=Diagnostic report
|
||||
ReportType.OFFLINE_REPORT=Offline report
|
||||
ReportType.ACK_REPORT=ACK report
|
||||
|
||||
|
||||
@ -0,0 +1,358 @@
|
||||
Country=Country
|
||||
Country.code=Code
|
||||
Country.name=Name
|
||||
States=States
|
||||
States.name=Name
|
||||
States.country=Country
|
||||
City=City
|
||||
City.states=States
|
||||
City.name=Name
|
||||
District=District
|
||||
District.city=City
|
||||
District.name=Name
|
||||
MerchantType.name=Name
|
||||
MerchantType.description=Description
|
||||
Merchant=Merchant
|
||||
Merchant.name=Name
|
||||
Merchant.companyName=Company name
|
||||
Merchant.district=District
|
||||
Merchant.address=Address
|
||||
Merchant.zipcode=Zipcode
|
||||
Merchant.type=Type
|
||||
Merchant.contactPersons=Contact persons
|
||||
Terminal=Terminal
|
||||
Terminal.sn=SN
|
||||
Terminal.imei=Imei
|
||||
Terminal.merchant=Merchant
|
||||
Terminal.model=Model
|
||||
DeviceModel=Device model
|
||||
DeviceModel.vendorName=Vendor name
|
||||
DeviceModel.vendorCountry=Vendor country
|
||||
DeviceModel.model=Model
|
||||
DeviceModel.modelInformation=Model information
|
||||
TerminalGroup=Terminal group
|
||||
TerminalGroup.name=Name
|
||||
TerminalGroup.description=Description
|
||||
TerminalGroup.terminals=Terminals
|
||||
Terminal.group=Group
|
||||
Terminal.profile=Profile
|
||||
Application=Application
|
||||
Application.packageName=Package name
|
||||
Application.name=Name
|
||||
Application.description=Description
|
||||
Application.appVersion=App version
|
||||
Application.icon=Icon
|
||||
Application.apk=Apk
|
||||
Application.uninstallable=Uninstallable
|
||||
Application.companyName=Company name
|
||||
Application.downloadTasks=Download tasks
|
||||
ContactPerson=Contact person
|
||||
ContactPerson.name=Name
|
||||
ContactPerson.phone=Phone
|
||||
ContactPerson.email=Email
|
||||
ContactPerson.mobile=Mobile
|
||||
ContactPerson.merchant=Merchant
|
||||
ContactPerson.version=Version
|
||||
DeviceProfile=Device profile
|
||||
DeviceProfile.name=Name
|
||||
DeviceProfile.heartbeatInterval=Heartbeat Interval
|
||||
DeviceProfile.diagnosticInterval=Diagnostic Interval
|
||||
DeviceProfile.maskHomeButton=Mask Home Button
|
||||
DeviceProfile.maskStatusBar=Mask Status Bar
|
||||
DeviceProfile.scheduleReboot=Schedule Reboot
|
||||
DeviceProfile.scheduleRebootTime=Schedule Reboot Time
|
||||
DeviceProfile.isDefault=Is Default
|
||||
DeviceProfile.adminPassword=Admin password
|
||||
DeviceProfile.relocationAlert=Relocation Alert
|
||||
DeviceProfile.movingThreshold=Moving Threshold (m)
|
||||
DeviceProfile.acquirers=Acquirers
|
||||
HeartBeat=Heart Beat
|
||||
HeartBeat.terminal=Terminal
|
||||
HeartBeat.batteryTemp=Battery temp
|
||||
HeartBeat.batteryPercentage=Battery percentage
|
||||
HeartBeat.latitude=Latitude
|
||||
HeartBeat.longitude=Longitude
|
||||
HeartBeat.createTs=Create ts
|
||||
HeartBeat.createdBy=Created by
|
||||
HeartBeat.version=Version
|
||||
DiagnosticInfo=Diagnostic info
|
||||
DiagnosticInfo.meid=Meid
|
||||
DiagnosticInfo.totalMemory=Total memory
|
||||
DiagnosticInfo.availableMemory=Available memory
|
||||
DiagnosticInfo.totalFlashMemory=Total flash memory
|
||||
DiagnosticInfo.availableFlashMemory=Available flash memory
|
||||
DiagnosticInfo.totalMobileData=Total mobile data
|
||||
DiagnosticInfo.switchingTimes=Switching times
|
||||
DiagnosticInfo.currentBootTime=Current boot times
|
||||
DiagnosticInfo.totalBootTime=Total boot time
|
||||
DiagnosticInfo.totalLengthPrinted=Total length printed
|
||||
DiagnosticInfo.swipingCardTimes=Swiping card times
|
||||
DiagnosticInfo.dipInsertingTimes=Dip inserting times
|
||||
DiagnosticInfo.nfcCardReadingTimes=Nfc card reading times
|
||||
DiagnosticInfo.frontCameraOpenTimes=Front camera open times
|
||||
DiagnosticInfo.rearCameraOpenTimes=Rear camera open times
|
||||
DiagnosticInfo.samAvailable=SAM Available
|
||||
DiagnosticInfo.chargeTimes=Charge times
|
||||
DiagnosticInfo.installedAppsString=Installed apps string
|
||||
DownloadTask=Download task
|
||||
DownloadTask.name=Name
|
||||
DownloadTask.downloadTimeType=Download time type
|
||||
DownloadTask.downloadTime=Download time
|
||||
DownloadTask.installationTimeType=Installation time type
|
||||
DownloadTask.installationTime=Installation time
|
||||
DownloadTask.installationNotification=Installation notification
|
||||
DownloadTask.applications=Applications
|
||||
DownloadTask.terminalGroups=Terminal Groups
|
||||
DownloadTaskLog=Download task log
|
||||
DownloadTaskLog.task=Task
|
||||
DownloadTaskLog.application=Application
|
||||
DownloadTaskLog.activity=Activity
|
||||
DownloadTaskLog.createTs=Create ts
|
||||
DownloadTaskLog.createdBy=Created by
|
||||
DownloadTaskLog.updateTs=Update ts
|
||||
DownloadTaskLog.updatedBy=Updated by
|
||||
DownloadTaskLog.version=Version
|
||||
DownloadTaskLog.message=Message
|
||||
DownloadTask.status=Status
|
||||
DownloadTask.operations=Operation
|
||||
TerminalLastHeartBeat=Terminal last heart beat
|
||||
TerminalLastHeartBeat.createdBy=Created by
|
||||
TerminalLastHeartBeat.latitude=Latitude
|
||||
TerminalLastHeartBeat.batteryTemp=Battery temp
|
||||
TerminalLastHeartBeat.createTs=Last Update
|
||||
TerminalLastHeartBeat.batteryPercentage=Battery percentage
|
||||
TerminalLastHeartBeat.terminalId=Terminal ID (UUID)
|
||||
TerminalLastHeartBeat.terminalSn=Terminal SN
|
||||
TerminalLastHeartBeat.terminalExtId=Terminal ID
|
||||
TerminalLastHeartBeat.version=Version
|
||||
TerminalLastHeartBeat.longitude=Longitude
|
||||
TerminalLastHeartBeat.state=State
|
||||
TerminalLastHeartBeat.cellName=Cell Name
|
||||
TerminalLastHeartBeat.cellType=Cell Type
|
||||
TerminalLastHeartBeat.cellStrength=Cell Strength
|
||||
TerminalLastHeartBeat.wifiName=Wifi SSID
|
||||
TerminalLastHeartBeat.wifiStrength=Wifi Strength
|
||||
TerminalLastHeartBeat.updateTs=Update ts
|
||||
TerminalLastHeartBeat.updatedBy=Updated by
|
||||
TerminalLastDiagnosticInfo=Terminal last diagnostic info
|
||||
TerminalLastDiagnosticInfo.availableFlashMemory=Available flash memory
|
||||
TerminalLastDiagnosticInfo.meid=Meid
|
||||
TerminalLastDiagnosticInfo.nfcCardReadingTimes=Nfc card reading times
|
||||
TerminalLastDiagnosticInfo.latitude=Latitude
|
||||
TerminalLastDiagnosticInfo.terminalSn=Terminal sn
|
||||
TerminalLastDiagnosticInfo.rearCameraOpenTimes=Rear camera open times
|
||||
TerminalLastDiagnosticInfo.totalBootTime=Total boot time
|
||||
TerminalLastDiagnosticInfo.installedApps=Installed apps
|
||||
TerminalLastDiagnosticInfo.batteryTemp=Battery temp
|
||||
TerminalLastDiagnosticInfo.createTs=Create ts
|
||||
TerminalLastDiagnosticInfo.longitude=Longitude
|
||||
TerminalLastDiagnosticInfo.switchingTimes=Switching times
|
||||
TerminalLastDiagnosticInfo.swipingCardTimes=Swiping card times
|
||||
TerminalLastDiagnosticInfo.terminal=Terminal
|
||||
TerminalLastDiagnosticInfo.totalLengthPrinted=Total length printed
|
||||
TerminalLastDiagnosticInfo.totalMobileData=Total mobile data
|
||||
TerminalLastDiagnosticInfo.totalMemory=Total memory
|
||||
TerminalLastDiagnosticInfo.availableMemory=Available memory
|
||||
TerminalLastDiagnosticInfo.currentBootTime=Current boot time
|
||||
TerminalLastDiagnosticInfo.createdBy=Created by
|
||||
TerminalLastDiagnosticInfo.chargeTimes=Charge times
|
||||
TerminalLastDiagnosticInfo.totalFlashMemory=Total flash memory
|
||||
TerminalLastDiagnosticInfo.batteryPercentage=Battery percentage
|
||||
TerminalLastDiagnosticInfo.dipInsertingTimes=Dip inserting times
|
||||
TerminalLastDiagnosticInfo.frontCameraOpenTimes=Front camera open times
|
||||
TerminalLastDiagnosticInfo.terminalExtId=TID
|
||||
ApplicationSimple=Application simple
|
||||
ApplicationSimple.appName=App name
|
||||
ApplicationSimple.packageName=Package name
|
||||
ApplicationSimple.appVersion=App version
|
||||
ApplicationSimple.diagnosticInfo=Diagnostic info
|
||||
ApplicationSimple.deleteTasks=Delete tasks
|
||||
Application.downloadUrl=Download url
|
||||
Application.checksum=Checksum
|
||||
DeleteTask=Delete task
|
||||
DeleteTask.name=Name
|
||||
DeleteTask.deleteTime=Delete time
|
||||
DeleteTask.applications=Applications
|
||||
DeleteTask.terminalGroups=Terminal Groups
|
||||
DeleteTask.operations=Operation
|
||||
DeleteTaskLog=Download task log
|
||||
DeleteTaskLog.task=Task
|
||||
DeleteTaskLog.application=Application
|
||||
DeleteTaskLog.activity=Activity
|
||||
DeleteTaskLog.createTs=Create ts
|
||||
DeleteTaskLog.createdBy=Created by
|
||||
DeleteTaskLog.updateTs=Update ts
|
||||
DeleteTaskLog.updatedBy=Updated by
|
||||
DeleteTaskLog.version=Version
|
||||
DeleteTaskLog.message=Message
|
||||
DeleteTask.status=Status
|
||||
Aid=Aid
|
||||
Aid.clOptions=Cl options
|
||||
Aid.targetPercentage=Target percentage
|
||||
Aid.remark=Remark
|
||||
Aid.threshold=Threshold
|
||||
Aid.txnType=Txn type
|
||||
Aid.maxTargetPercentage=Max target percentage
|
||||
Aid.deletedBy=Deleted by
|
||||
Aid.floorLimit=Floor limit
|
||||
Aid.deleteTs=Delete ts
|
||||
Aid.clFloorLimit=Cl floor limit
|
||||
Aid.createTs=Create ts
|
||||
Aid.tacDefault=Tac default
|
||||
Aid.clKernelToUse=Cl kernel to use
|
||||
Aid.updatedBy=Updated by
|
||||
Aid.aidPriority=Aid priority
|
||||
Aid.tacOnline=Tac online
|
||||
Aid.categoryCode=Category code
|
||||
Aid.version=Version
|
||||
Aid.appSelect=App select
|
||||
Aid.ddol=Ddol
|
||||
Aid.aidVersion=Aid version
|
||||
Aid.tacDenial=Tac denial
|
||||
Aid.createdBy=Created by
|
||||
Aid.trxType9C=Trx type9c
|
||||
Aid.name=Name
|
||||
Aid.tdol=Tdol
|
||||
Aid.updateTs=Update ts
|
||||
Aid.aid=Aid
|
||||
Aid.clCvmLimit=Cl cvm limit
|
||||
Aid.clTrxLimit=Cl trx limit
|
||||
Card.updatedBy=Updated by
|
||||
Card.version=Version
|
||||
Card.deletedBy=Deleted by
|
||||
Card.deleteTs=Delete ts
|
||||
Card.createdBy=Created by
|
||||
Card.createTs=Create ts
|
||||
Card.updateTs=Update ts
|
||||
TerminalLink=Terminal link
|
||||
TerminalLink.terminal=Terminal
|
||||
TerminalLink.terminalExt=Terminal ext
|
||||
Terminal.terminalLink=Terminal link
|
||||
Terminal.importDefault=Import default
|
||||
|
||||
TerminalReport=Terminal Report
|
||||
TerminalReport.featureManualKeyIn=Manual Key In
|
||||
TerminalReport.appVersion=App Version
|
||||
TerminalReport.autoLogon=Auto Logon
|
||||
TerminalReport.merchantName2=Merchant Address
|
||||
TerminalReport.featureSaleFareNonFare=Sale Fare Non Fare
|
||||
TerminalReport.merchantName1=Merchant
|
||||
TerminalReport.randomPinKeypad=Random Pin Keypad
|
||||
TerminalReport.nextLogon=Next Logon (In Hours)
|
||||
TerminalReport.featureSaleTip=Sale Tip
|
||||
TerminalReport.launcherVersion=Launcher Version
|
||||
TerminalReport.updateTs=Last Update
|
||||
TerminalReport.installment2Options=Installment Plan 2
|
||||
TerminalReport.installment3Options=Installment Plan 3
|
||||
TerminalReport.featureSale=Sale
|
||||
TerminalReport.sn=Serial Number
|
||||
TerminalReport.state=State
|
||||
TerminalReport.featureCardVerification=Card Verification
|
||||
TerminalReport.installment1Options=Installment Plan 1
|
||||
TerminalReport.featureSaleRedemption=Sale Redemption
|
||||
TerminalReport.featureContactless=Contactless
|
||||
TerminalReport.featureQris=QRIS
|
||||
TerminalReport.merchant=Merchant ID
|
||||
TerminalReport.terminal=Terminal ID
|
||||
TerminalReport.beepPinKeypad=Beep Pin Keypad
|
||||
TerminalReport.merchantName3=Kab & Kodepos
|
||||
TerminalReport.featureInstallment=Installment
|
||||
TerminalReport.imei=IMEI
|
||||
TerminalReport.featureSaleCompletion=Sale Completion
|
||||
TerminalReport.vfsVersion=VF Service
|
||||
TerminalReport.vfssVersion=VFSSystem Service
|
||||
TerminalReport.lastDiagnosticTime=Last Update Diagnostic
|
||||
TerminalReport.lastHeartbeatTime=Last Update Heartbeat
|
||||
TerminalReport.cellName=Cell Name
|
||||
TerminalReport.cellType=Cell Type
|
||||
TerminalReport.cellStrength=Cell Strength
|
||||
TerminalReport.wifiName=Wifi SSID
|
||||
TerminalReport.wifiStrength=Wifi Strength
|
||||
TerminalReport.samAvailable=SAM Available
|
||||
TerminalGroupImport=Terminal group import
|
||||
TerminalGroupImport.sn=Sn
|
||||
TerminalGroupImport.tid=Tid
|
||||
TerminalGroupImport.snFound=Sn found
|
||||
TerminalGroupImport.tidFound=Tid found
|
||||
ExportType.CSV = CSV
|
||||
ExportType.XLS = XLS
|
||||
TrxType.DEBIT = DEBIT
|
||||
TrxType.CREDIT = CREDIT
|
||||
TrxType.PREPAID = PREPAID
|
||||
TrxType.QRIS = QRIS
|
||||
ResponseCode.type=Trx Type
|
||||
ResponseCode.code=RC
|
||||
ResponseCode.desc=Description
|
||||
DeviceProfileApp.packageName=Package Name
|
||||
DeviceProfileApp.profile=Profile
|
||||
DeviceProfile.apps=Apps
|
||||
DeviceProfile.frontApp=Front Application
|
||||
DeviceProfile.hostReport=Host Report
|
||||
DeviceProfile.hostReportUrl=Host Report URL
|
||||
DeviceProfile.hostReportApiKey=Host Report API Key
|
||||
DeviceProfile.hostReportTimeout=Host Report Timeout
|
||||
DeviceProfile.hostLogging=Host Logging
|
||||
DeviceProfile.hostLoggingUrl=Host Logging URL
|
||||
DeviceProfile.hostLoggingApiKey=Host Logging API Key
|
||||
DeviceProfile.hostLoggingTimeout=Host Logging Timeout
|
||||
DeviceProfile.autoStartApp=Auto start app
|
||||
HeartbeatSummary=Heartbeat Summary
|
||||
HeartbeatSummary.groupName=Group Vendor
|
||||
HeartbeatSummary.retailTotal=Total
|
||||
HeartbeatSummary.retailTotal1H=<1 hour
|
||||
HeartbeatSummary.retailTotal1D=1-24 hours
|
||||
HeartbeatSummary.retailTotalToday=Today
|
||||
HeartbeatSummary.retailTotal7D=1-7 days
|
||||
HeartbeatSummary.retailTotalMore7D=>7 days
|
||||
HeartbeatSummary.retailTotalSigma=Σ
|
||||
HeartbeatSummary.retailReliability=Reliability (%)
|
||||
HeartbeatSummary.chainTotal=Total
|
||||
HeartbeatSummary.chainTotal1H=<1 hour
|
||||
HeartbeatSummary.chainTotal1D=1-24 hours
|
||||
HeartbeatSummary.chainTotalToday=Today
|
||||
HeartbeatSummary.chainTotal7D=1-7 days
|
||||
HeartbeatSummary.chainTotalMore7D=>7 days
|
||||
HeartbeatSummary.chainTotalSigma=Σ
|
||||
HeartbeatSummary.chainReliability=Reliability (%)
|
||||
HeartbeatSummary.updatedBy=Generated By
|
||||
HeartbeatSummary.updateTs=Generate Time
|
||||
VHeartBeat=Terminal Heart Beat
|
||||
VHeartBeat.createdBy=Created by
|
||||
VHeartBeat.latitude=Latitude
|
||||
VHeartBeat.batteryTemp=Battery Temp
|
||||
VHeartBeat.createTs=Last Update
|
||||
VHeartBeat.batteryPercentage=Battery Percentage
|
||||
VHeartBeat.terminalSn=Terminal SN
|
||||
VHeartBeat.version=Version
|
||||
VHeartBeat.longitude=Longitude
|
||||
VHeartBeat.cellName=Cell Name
|
||||
VHeartBeat.cellType=Cell Type
|
||||
VHeartBeat.cellStrength=Cell Strength
|
||||
VHeartBeat.wifiName=Wifi SSID
|
||||
VHeartBeat.wifiStrength=Wifi Strength
|
||||
|
||||
|
||||
TerminalProfiling=Terminal Profiling
|
||||
TerminalProfiling.createdBy=Created by
|
||||
TerminalProfiling.createTs=Create ts
|
||||
TerminalProfiling.version=Version
|
||||
TerminalProfiling.file=File
|
||||
TerminalProfiling.items=Items
|
||||
TerminalProfilingItem=Terminal Profiling Item
|
||||
TerminalProfilingItem.createdBy=Created by
|
||||
TerminalProfilingItem.createTs=Create ts
|
||||
TerminalProfilingItem.sn=SN
|
||||
TerminalProfilingItem.imei=Imei
|
||||
TerminalProfilingItem.modelName=Model Name
|
||||
TerminalProfilingItem.merchantName=Merchant Name
|
||||
TerminalProfilingItem.profileName=Profile Name
|
||||
TerminalProfilingItem.groupNames=Group Names
|
||||
TerminalProfilingItem.terminalIdTemplate=Terminal Id Template
|
||||
TerminalProfilingItem.terminalId=Terminal Id
|
||||
TerminalProfilingItem.merchantId=Merchant Id
|
||||
TerminalProfilingItem.merchantName1=Merchant Name 1
|
||||
TerminalProfilingItem.merchantName2=Merchant Name 2
|
||||
TerminalProfilingItem.merchantName3=Merchant Name 3
|
||||
TerminalProfilingItem.merchantName4=Merchant Name 4
|
||||
TerminalProfilingItem.merchantName5=Merchant Name 5
|
||||
|
||||
@ -0,0 +1,55 @@
|
||||
package com.cmobile.unifiedtms.entity.misc;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
import com.google.gson.annotations.Expose;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
@Generated("jsonschema2pojo")
|
||||
public class CellInfo {
|
||||
|
||||
@SerializedName("name")
|
||||
@Expose
|
||||
private String name;
|
||||
@SerializedName("cid")
|
||||
@Expose
|
||||
private String cid;
|
||||
@SerializedName("type")
|
||||
@Expose
|
||||
private String type;
|
||||
@SerializedName("strength")
|
||||
@Expose
|
||||
private Integer strength;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCid() {
|
||||
return cid;
|
||||
}
|
||||
|
||||
public void setCid(String cid) {
|
||||
this.cid = cid;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getStrength() {
|
||||
return strength;
|
||||
}
|
||||
|
||||
public void setStrength(Integer strength) {
|
||||
this.strength = strength;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
package com.cmobile.unifiedtms.entity.misc;
|
||||
|
||||
public class ExpirableObject<T> {
|
||||
|
||||
private long storageTime = -1L;
|
||||
private long expiryTime = -1L;
|
||||
private T object;
|
||||
|
||||
public ExpirableObject(T object, long expiryTime) {
|
||||
this.object = object;
|
||||
this.expiryTime = expiryTime;
|
||||
this.storageTime = System.currentTimeMillis();
|
||||
}
|
||||
|
||||
public T getObject() {
|
||||
if(!isExpired()) {
|
||||
return object;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean isExpired() {
|
||||
long current = System.currentTimeMillis();
|
||||
return (current > (this.storageTime + this.expiryTime));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
package com.cmobile.unifiedtms.entity.misc;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class FileDownloadWrapper implements Serializable {
|
||||
|
||||
private String downloadUrl;
|
||||
private String checksum;
|
||||
private boolean uploaded;
|
||||
|
||||
public FileDownloadWrapper() {}
|
||||
|
||||
public boolean isUploaded() {
|
||||
return uploaded;
|
||||
}
|
||||
|
||||
public void setUploaded(boolean uploaded) {
|
||||
this.uploaded = uploaded;
|
||||
}
|
||||
|
||||
public String getDownloadUrl() {
|
||||
return downloadUrl;
|
||||
}
|
||||
|
||||
public void setDownloadUrl(String downloadUrl) {
|
||||
this.downloadUrl = downloadUrl;
|
||||
}
|
||||
|
||||
public String getChecksum() {
|
||||
return checksum;
|
||||
}
|
||||
|
||||
public void setChecksum(String checksum) {
|
||||
this.checksum = checksum;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,60 @@
|
||||
package com.cmobile.unifiedtms.entity.misc;
|
||||
|
||||
import com.cmobile.unifiedtms.entity.Terminal;
|
||||
import com.cmobile.unifiedtms.entity.TerminalLink;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class TerminalGroupImportObjectWrapper implements Serializable {
|
||||
|
||||
private String tid;
|
||||
private String sn;
|
||||
private Terminal terminal;
|
||||
private boolean snFound;
|
||||
private boolean tidFound;
|
||||
|
||||
public TerminalGroupImportObjectWrapper() {
|
||||
}
|
||||
|
||||
public String getTid() {
|
||||
return tid;
|
||||
}
|
||||
|
||||
public void setTid(String tid) {
|
||||
this.tid = tid;
|
||||
}
|
||||
|
||||
public String getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public void setSn(String sn) {
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public Terminal getTerminal() {
|
||||
return terminal;
|
||||
}
|
||||
|
||||
public void setTerminal(Terminal terminal) {
|
||||
this.terminal = terminal;
|
||||
}
|
||||
|
||||
public boolean isSnFound() {
|
||||
return snFound;
|
||||
}
|
||||
|
||||
public void setSnFound(boolean snFound) {
|
||||
this.snFound = snFound;
|
||||
}
|
||||
|
||||
public boolean isTidFound() {
|
||||
return tidFound;
|
||||
}
|
||||
|
||||
public void setTidFound(boolean tidFound) {
|
||||
this.tidFound = tidFound;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
package com.cmobile.unifiedtms.entity.misc;
|
||||
|
||||
import com.cmobile.unifiedtms.entity.TerminalLink;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class TerminalImporterObjectWrapper implements Serializable {
|
||||
|
||||
private List<TerminalLink> terminalLinks;
|
||||
|
||||
public TerminalImporterObjectWrapper() {
|
||||
}
|
||||
|
||||
public TerminalImporterObjectWrapper(List<TerminalLink> terminalLinks) {
|
||||
this.terminalLinks = terminalLinks;
|
||||
}
|
||||
|
||||
public List<TerminalLink> getTerminalLinks() {
|
||||
if(terminalLinks == null) {
|
||||
terminalLinks = new ArrayList<>();
|
||||
}
|
||||
return terminalLinks;
|
||||
}
|
||||
|
||||
public void setTerminalLinks(List<TerminalLink> terminalLinks) {
|
||||
this.terminalLinks = terminalLinks;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.cmobile.unifiedtms.entity.misc;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
|
||||
public class TerminalUpdateCacheObj implements Serializable {
|
||||
|
||||
private String sn;
|
||||
private CountDownLatch countDownLatch;
|
||||
private String status; // started, ongoing, finished
|
||||
private String lastStepName;
|
||||
private Date createdTime;
|
||||
private Date lastStepUpdateTime;
|
||||
|
||||
public TerminalUpdateCacheObj(String sn) {
|
||||
this.sn = sn;
|
||||
this.countDownLatch = new CountDownLatch(5);
|
||||
this.status = "Started";
|
||||
this.createdTime = new Date();
|
||||
}
|
||||
|
||||
public String getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public CountDownLatch getCountDownLatch() {
|
||||
return countDownLatch;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void continueStep(String stepName) {
|
||||
if(stepName != null && !stepName.equals(this.lastStepName)) {
|
||||
this.lastStepName = stepName;
|
||||
this.lastStepUpdateTime = new Date();
|
||||
this.countDownLatch.countDown();
|
||||
if(this.countDownLatch.getCount() == 0) {
|
||||
this.considerDone();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void considerDone() {
|
||||
this.status = "Finished";
|
||||
}
|
||||
|
||||
public String getLastStepName() {
|
||||
return lastStepName;
|
||||
}
|
||||
|
||||
public Date getCreatedTime() {
|
||||
return createdTime;
|
||||
}
|
||||
|
||||
public Date getLastStepUpdateTime() {
|
||||
return lastStepUpdateTime;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,214 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class DiagnosticInfo {
|
||||
|
||||
private String imei;
|
||||
private String meid;
|
||||
private Double batteryTemp;
|
||||
private Integer batteryPercentage;
|
||||
private String totalMemory;
|
||||
private String availableMemory;
|
||||
private String totalFlashMemory;
|
||||
private String availableFlashMemory;
|
||||
private String totalMobileData;
|
||||
private String switchingTimes;
|
||||
private String currentBootTime;
|
||||
private String totalBootTime;
|
||||
private String totalLengthPrinted;
|
||||
private Integer swipingCardTimes;
|
||||
private Integer dipInsertingTimes;
|
||||
private Integer nfcCardReadingTimes;
|
||||
private Integer frontCameraOpenTimes;
|
||||
private Integer rearCameraOpenTimes;
|
||||
private Integer chargeTimes;
|
||||
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
|
||||
|
||||
public String getImei() {
|
||||
return imei;
|
||||
}
|
||||
|
||||
public void setImei(String imei) {
|
||||
this.imei = imei;
|
||||
}
|
||||
|
||||
public String getMeid() {
|
||||
return meid;
|
||||
}
|
||||
|
||||
public void setMeid(String meid) {
|
||||
this.meid = meid;
|
||||
}
|
||||
|
||||
public Double getBatteryTemp() {
|
||||
return batteryTemp;
|
||||
}
|
||||
|
||||
public void setBatteryTemp(Double batteryTemp) {
|
||||
this.batteryTemp = batteryTemp;
|
||||
}
|
||||
|
||||
public Integer getBatteryPercentage() {
|
||||
return batteryPercentage;
|
||||
}
|
||||
|
||||
public void setBatteryPercentage(Integer batteryPercentage) {
|
||||
this.batteryPercentage = batteryPercentage;
|
||||
}
|
||||
|
||||
public String getTotalMemory() {
|
||||
return totalMemory;
|
||||
}
|
||||
|
||||
public void setTotalMemory(String totalMemory) {
|
||||
this.totalMemory = totalMemory;
|
||||
}
|
||||
|
||||
public String getAvailableMemory() {
|
||||
return availableMemory;
|
||||
}
|
||||
|
||||
public void setAvailableMemory(String availableMemory) {
|
||||
this.availableMemory = availableMemory;
|
||||
}
|
||||
|
||||
public String getTotalFlashMemory() {
|
||||
return totalFlashMemory;
|
||||
}
|
||||
|
||||
public void setTotalFlashMemory(String totalFlashMemory) {
|
||||
this.totalFlashMemory = totalFlashMemory;
|
||||
}
|
||||
|
||||
public String getAvailableFlashMemory() {
|
||||
return availableFlashMemory;
|
||||
}
|
||||
|
||||
public void setAvailableFlashMemory(String availableFlashMemory) {
|
||||
this.availableFlashMemory = availableFlashMemory;
|
||||
}
|
||||
|
||||
public String getTotalMobileData() {
|
||||
return totalMobileData;
|
||||
}
|
||||
|
||||
public void setTotalMobileData(String totalMobileData) {
|
||||
this.totalMobileData = totalMobileData;
|
||||
}
|
||||
|
||||
public String getSwitchingTimes() {
|
||||
return switchingTimes;
|
||||
}
|
||||
|
||||
public void setSwitchingTimes(String switchingTimes) {
|
||||
this.switchingTimes = switchingTimes;
|
||||
}
|
||||
|
||||
public String getCurrentBootTime() {
|
||||
return currentBootTime;
|
||||
}
|
||||
|
||||
public void setCurrentBootTime(String currentBootTime) {
|
||||
this.currentBootTime = currentBootTime;
|
||||
}
|
||||
|
||||
public String getTotalBootTime() {
|
||||
return totalBootTime;
|
||||
}
|
||||
|
||||
public void setTotalBootTime(String totalBootTime) {
|
||||
this.totalBootTime = totalBootTime;
|
||||
}
|
||||
|
||||
public String getTotalLengthPrinted() {
|
||||
return totalLengthPrinted;
|
||||
}
|
||||
|
||||
public void setTotalLengthPrinted(String totalLengthPrinted) {
|
||||
this.totalLengthPrinted = totalLengthPrinted;
|
||||
}
|
||||
|
||||
public Integer getSwipingCardTimes() {
|
||||
return swipingCardTimes;
|
||||
}
|
||||
|
||||
public void setSwipingCardTimes(Integer swipingCardTimes) {
|
||||
this.swipingCardTimes = swipingCardTimes;
|
||||
}
|
||||
|
||||
public Integer getDipInsertingTimes() {
|
||||
return dipInsertingTimes;
|
||||
}
|
||||
|
||||
public void setDipInsertingTimes(Integer dipInsertingTimes) {
|
||||
this.dipInsertingTimes = dipInsertingTimes;
|
||||
}
|
||||
|
||||
public Integer getNfcCardReadingTimes() {
|
||||
return nfcCardReadingTimes;
|
||||
}
|
||||
|
||||
public void setNfcCardReadingTimes(Integer nfcCardReadingTimes) {
|
||||
this.nfcCardReadingTimes = nfcCardReadingTimes;
|
||||
}
|
||||
|
||||
public Integer getFrontCameraOpenTimes() {
|
||||
return frontCameraOpenTimes;
|
||||
}
|
||||
|
||||
public void setFrontCameraOpenTimes(Integer frontCameraOpenTimes) {
|
||||
this.frontCameraOpenTimes = frontCameraOpenTimes;
|
||||
}
|
||||
|
||||
public Integer getRearCameraOpenTimes() {
|
||||
return rearCameraOpenTimes;
|
||||
}
|
||||
|
||||
public void setRearCameraOpenTimes(Integer rearCameraOpenTimes) {
|
||||
this.rearCameraOpenTimes = rearCameraOpenTimes;
|
||||
}
|
||||
|
||||
public Integer getChargeTimes() {
|
||||
return chargeTimes;
|
||||
}
|
||||
|
||||
public void setChargeTimes(Integer chargeTimes) {
|
||||
this.chargeTimes = chargeTimes;
|
||||
}
|
||||
|
||||
public Map<String, Object> getAdditionalProperties() {
|
||||
return this.additionalProperties;
|
||||
}
|
||||
|
||||
public void setAdditionalProperty(String name, Object value) {
|
||||
this.additionalProperties.put(name, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "DiagnosticInfo{" +
|
||||
"imei='" + imei + '\'' +
|
||||
", meid='" + meid + '\'' +
|
||||
", batteryTemp=" + batteryTemp +
|
||||
", batteryPercentage=" + batteryPercentage +
|
||||
", totalMemory='" + totalMemory + '\'' +
|
||||
", availableMemory='" + availableMemory + '\'' +
|
||||
", totalFlashMemory='" + totalFlashMemory + '\'' +
|
||||
", availableFlashMemory='" + availableFlashMemory + '\'' +
|
||||
", totalMobileData='" + totalMobileData + '\'' +
|
||||
", switchingTimes='" + switchingTimes + '\'' +
|
||||
", currentBootTime='" + currentBootTime + '\'' +
|
||||
", totalBootTime='" + totalBootTime + '\'' +
|
||||
", totalLengthPrinted='" + totalLengthPrinted + '\'' +
|
||||
", swipingCardTimes=" + swipingCardTimes +
|
||||
", dipInsertingTimes=" + dipInsertingTimes +
|
||||
", nfcCardReadingTimes=" + nfcCardReadingTimes +
|
||||
", frontCameraOpenTimes=" + frontCameraOpenTimes +
|
||||
", rearCameraOpenTimes=" + rearCameraOpenTimes +
|
||||
", chargeTimes=" + chargeTimes +
|
||||
", additionalProperties=" + additionalProperties +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,87 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
public class HeartBeatRequest {
|
||||
|
||||
private String reqId;
|
||||
private String requestTime;
|
||||
private String deviceSn;
|
||||
private DiagnosticInfo diagnosticInfo;
|
||||
private LocationInfo locationInfo;
|
||||
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
|
||||
|
||||
public String getReqId() {
|
||||
return reqId;
|
||||
}
|
||||
|
||||
public void setReqId(String reqId) {
|
||||
this.reqId = reqId;
|
||||
}
|
||||
|
||||
public String getRequestTime() {
|
||||
return requestTime;
|
||||
}
|
||||
|
||||
public void setRequestTime(String requestTime) {
|
||||
this.requestTime = requestTime;
|
||||
}
|
||||
|
||||
public String getDeviceSn() {
|
||||
return deviceSn;
|
||||
}
|
||||
|
||||
public void setDeviceSn(String deviceSn) {
|
||||
this.deviceSn = deviceSn;
|
||||
}
|
||||
|
||||
public DiagnosticInfo getDiagnosticInfo() {
|
||||
return diagnosticInfo;
|
||||
}
|
||||
|
||||
public void setDiagnosticInfo(DiagnosticInfo diagnosticInfo) {
|
||||
this.diagnosticInfo = diagnosticInfo;
|
||||
}
|
||||
|
||||
public LocationInfo getLocationInfo() {
|
||||
return locationInfo;
|
||||
}
|
||||
|
||||
public void setLocationInfo(LocationInfo locationInfo) {
|
||||
this.locationInfo = locationInfo;
|
||||
}
|
||||
|
||||
public Map<String, Object> getAdditionalProperties() {
|
||||
return this.additionalProperties;
|
||||
}
|
||||
|
||||
public void setAdditionalProperty(String name, Object value) {
|
||||
this.additionalProperties.put(name, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
HeartBeatRequest that = (HeartBeatRequest) o;
|
||||
return reqId.equals(that.reqId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(reqId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "HeartBeatRequest{" +
|
||||
"reqId='" + reqId + '\'' +
|
||||
", requestTime='" + requestTime + '\'' +
|
||||
", deviceSn='" + deviceSn + '\'' +
|
||||
", diagnosticInfo=" + diagnosticInfo +
|
||||
", locationInfo=" + locationInfo +
|
||||
", additionalProperties=" + additionalProperties +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
public class LocationInfo {
|
||||
|
||||
private Double lat;
|
||||
private Double lng;
|
||||
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
|
||||
|
||||
public Double getLat() {
|
||||
return lat;
|
||||
}
|
||||
|
||||
public void setLat(Double lat) {
|
||||
this.lat = lat;
|
||||
}
|
||||
|
||||
public Double getLng() {
|
||||
return lng;
|
||||
}
|
||||
|
||||
public void setLng(Double lng) {
|
||||
this.lng = lng;
|
||||
}
|
||||
|
||||
public Map<String, Object> getAdditionalProperties() {
|
||||
return this.additionalProperties;
|
||||
}
|
||||
|
||||
public void setAdditionalProperty(String name, Object value) {
|
||||
this.additionalProperties.put(name, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "LocationInfo{" +
|
||||
"lat=" + lat +
|
||||
", lng=" + lng +
|
||||
", additionalProperties=" + additionalProperties +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,76 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.request;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AckParameterRequest implements Serializable {
|
||||
|
||||
private String sn;
|
||||
private Object lastInitTime;
|
||||
private Object syncStartTime;
|
||||
private Object syncEndTime;
|
||||
private Integer retryCount;
|
||||
private String status;
|
||||
|
||||
public AckParameterRequest() {
|
||||
}
|
||||
|
||||
public String getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public void setSn(String sn) {
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public Object getLastInitTime() {
|
||||
return lastInitTime;
|
||||
}
|
||||
|
||||
public void setLastInitTime(Object lastInitTime) {
|
||||
this.lastInitTime = lastInitTime;
|
||||
}
|
||||
|
||||
public Object getSyncStartTime() {
|
||||
return syncStartTime;
|
||||
}
|
||||
|
||||
public void setSyncStartTime(Object syncStartTime) {
|
||||
this.syncStartTime = syncStartTime;
|
||||
}
|
||||
|
||||
public Object getSyncEndTime() {
|
||||
return syncEndTime;
|
||||
}
|
||||
|
||||
public void setSyncEndTime(Object syncEndTime) {
|
||||
this.syncEndTime = syncEndTime;
|
||||
}
|
||||
|
||||
public Integer getRetryCount() {
|
||||
return retryCount;
|
||||
}
|
||||
|
||||
public void setRetryCount(Integer retryCount) {
|
||||
this.retryCount = retryCount;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "AckParameterRequest{" +
|
||||
"sn='" + sn + '\'' +
|
||||
", lastInitTime=" + lastInitTime +
|
||||
", syncStartTime=" + syncStartTime +
|
||||
", syncEndTime=" + syncEndTime +
|
||||
", retryCount=" + retryCount +
|
||||
", status=" + status +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,91 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.request;
|
||||
|
||||
import com.cmobile.unifiedtms.entity.restmodel.result.data.DeviceModelSimple;
|
||||
import com.cmobile.unifiedtms.entity.restmodel.result.data.DeviceProfileSimple;
|
||||
import com.cmobile.unifiedtms.entity.restmodel.result.data.MerchantSimple;
|
||||
import com.cmobile.unifiedtms.entity.restmodel.result.data.TerminalGroupSimple;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
public class AddApplicationRequest implements Serializable {
|
||||
|
||||
// will be extracted from apkFileId
|
||||
private String packageName;
|
||||
private String companyName;
|
||||
private String name;
|
||||
private String description;
|
||||
// will be extracted from apkFileId
|
||||
private String appVersion;
|
||||
private UUID iconFileId;
|
||||
private UUID apkFileId;
|
||||
private Boolean uninstallable;
|
||||
|
||||
public AddApplicationRequest() {
|
||||
}
|
||||
|
||||
public String getPackageName() {
|
||||
return packageName;
|
||||
}
|
||||
|
||||
public void setPackageName(String packageName) {
|
||||
this.packageName = packageName;
|
||||
}
|
||||
|
||||
public String getCompanyName() {
|
||||
return companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getAppVersion() {
|
||||
return appVersion;
|
||||
}
|
||||
|
||||
public void setAppVersion(String appVersion) {
|
||||
this.appVersion = appVersion;
|
||||
}
|
||||
|
||||
public UUID getIconFileId() {
|
||||
return iconFileId;
|
||||
}
|
||||
|
||||
public void setIconFileId(UUID iconFileId) {
|
||||
this.iconFileId = iconFileId;
|
||||
}
|
||||
|
||||
public UUID getApkFileId() {
|
||||
return apkFileId;
|
||||
}
|
||||
|
||||
public void setApkFileId(UUID apkFileId) {
|
||||
this.apkFileId = apkFileId;
|
||||
}
|
||||
|
||||
public Boolean getUninstallable() {
|
||||
return uninstallable;
|
||||
}
|
||||
|
||||
public void setUninstallable(Boolean uninstallable) {
|
||||
this.uninstallable = uninstallable;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,82 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.request;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
public class AddDownloadTaskRequest implements Serializable {
|
||||
|
||||
private String name;
|
||||
private Integer downloadTimeType;
|
||||
private String downloadTime;
|
||||
private Integer installationTimeType;
|
||||
private String installationTime;
|
||||
private Integer installationNotification;
|
||||
private List<UUID> applicationIds;
|
||||
private List<UUID> terminalGroupIds;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getDownloadTimeType() {
|
||||
return downloadTimeType;
|
||||
}
|
||||
|
||||
public void setDownloadTimeType(Integer downloadTimeType) {
|
||||
this.downloadTimeType = downloadTimeType;
|
||||
}
|
||||
|
||||
public String getDownloadTime() {
|
||||
return downloadTime;
|
||||
}
|
||||
|
||||
public void setDownloadTime(String downloadTime) {
|
||||
this.downloadTime = downloadTime;
|
||||
}
|
||||
|
||||
public Integer getInstallationTimeType() {
|
||||
return installationTimeType;
|
||||
}
|
||||
|
||||
public void setInstallationTimeType(Integer installationTimeType) {
|
||||
this.installationTimeType = installationTimeType;
|
||||
}
|
||||
|
||||
public String getInstallationTime() {
|
||||
return installationTime;
|
||||
}
|
||||
|
||||
public void setInstallationTime(String installationTime) {
|
||||
this.installationTime = installationTime;
|
||||
}
|
||||
|
||||
public Integer getInstallationNotification() {
|
||||
return installationNotification;
|
||||
}
|
||||
|
||||
public void setInstallationNotification(Integer installationNotification) {
|
||||
this.installationNotification = installationNotification;
|
||||
}
|
||||
|
||||
public List<UUID> getApplicationIds() {
|
||||
return applicationIds;
|
||||
}
|
||||
|
||||
public void setApplicationIds(List<UUID> applicationIds) {
|
||||
this.applicationIds = applicationIds;
|
||||
}
|
||||
|
||||
public List<UUID> getTerminalGroupIds() {
|
||||
return terminalGroupIds;
|
||||
}
|
||||
|
||||
public void setTerminalGroupIds(List<UUID> terminalGroupIds) {
|
||||
this.terminalGroupIds = terminalGroupIds;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.request;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
public class AddProfileRequest implements Serializable {
|
||||
|
||||
private String name;
|
||||
|
||||
public AddProfileRequest() {
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.request;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class AddTerminalGroupRequest implements Serializable {
|
||||
|
||||
private String name;
|
||||
private String description;
|
||||
private List<String> terminals;
|
||||
|
||||
public AddTerminalGroupRequest() {
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public List<String> getTerminals() {
|
||||
if(terminals == null) {
|
||||
terminals = Collections.EMPTY_LIST;
|
||||
}
|
||||
return terminals;
|
||||
}
|
||||
|
||||
public void setTerminals(List<String> terminals) {
|
||||
this.terminals = terminals;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,72 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.request;
|
||||
|
||||
import com.cmobile.unifiedtms.entity.DeviceProfile;
|
||||
import com.cmobile.unifiedtms.entity.restmodel.result.data.DeviceModelSimple;
|
||||
import com.cmobile.unifiedtms.entity.restmodel.result.data.DeviceProfileSimple;
|
||||
import com.cmobile.unifiedtms.entity.restmodel.result.data.MerchantSimple;
|
||||
import com.cmobile.unifiedtms.entity.restmodel.result.data.TerminalGroupSimple;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
public class AddTerminalRequest implements Serializable {
|
||||
|
||||
private String sn;
|
||||
private String imei;
|
||||
private UUID merchantId;
|
||||
private UUID modelId;
|
||||
private UUID profileId;
|
||||
private List<UUID> groupIds;
|
||||
|
||||
public AddTerminalRequest() {
|
||||
}
|
||||
|
||||
public String getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public void setSn(String sn) {
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public String getImei() {
|
||||
return imei;
|
||||
}
|
||||
|
||||
public void setImei(String imei) {
|
||||
this.imei = imei;
|
||||
}
|
||||
|
||||
public UUID getMerchantId() {
|
||||
return merchantId;
|
||||
}
|
||||
|
||||
public void setMerchantId(UUID merchantId) {
|
||||
this.merchantId = merchantId;
|
||||
}
|
||||
|
||||
public UUID getModelId() {
|
||||
return modelId;
|
||||
}
|
||||
|
||||
public void setModelId(UUID modelId) {
|
||||
this.modelId = modelId;
|
||||
}
|
||||
|
||||
public UUID getProfileId() {
|
||||
return profileId;
|
||||
}
|
||||
|
||||
public void setProfileId(UUID profileId) {
|
||||
this.profileId = profileId;
|
||||
}
|
||||
|
||||
public List<UUID> getGroupIds() {
|
||||
return groupIds;
|
||||
}
|
||||
|
||||
public void setGroupIds(List<UUID> groupIds) {
|
||||
this.groupIds = groupIds;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.request;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class CheckUpdateRequest implements Serializable {
|
||||
|
||||
private String sn;
|
||||
private Object lastInitTime;
|
||||
|
||||
public CheckUpdateRequest() {
|
||||
}
|
||||
|
||||
public String getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public void setSn(String sn) {
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public Object getLastInitTime() {
|
||||
return lastInitTime;
|
||||
}
|
||||
|
||||
public void setLastInitTime(Object lastInitTime) {
|
||||
this.lastInitTime = lastInitTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CheckUpdateRequest{" +
|
||||
"sn='" + sn + '\'' +
|
||||
", lastInitTime=" + lastInitTime +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.request;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.UUID;
|
||||
|
||||
public class DeleteRequest implements Serializable {
|
||||
|
||||
private UUID id;
|
||||
|
||||
public DeleteRequest() {
|
||||
}
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.request;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.UUID;
|
||||
|
||||
public class DetailRequest implements Serializable {
|
||||
|
||||
private UUID id;
|
||||
|
||||
public DetailRequest() {
|
||||
}
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.request;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public class EditTerminalGroupRequest extends AddTerminalGroupRequest {
|
||||
|
||||
private UUID id;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public EditTerminalGroupRequest() {}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.request;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public class EditTerminalRequest extends AddTerminalRequest {
|
||||
|
||||
private UUID id;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public EditTerminalRequest() {}
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.request;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class InitProfileRequest implements Serializable {
|
||||
|
||||
private String sn;
|
||||
private Date lastInitTime;
|
||||
|
||||
public InitProfileRequest() {
|
||||
}
|
||||
|
||||
public String getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public void setSn(String sn) {
|
||||
this.sn = sn;
|
||||
}
|
||||
|
||||
public Date getLastInitTime() {
|
||||
return lastInitTime;
|
||||
}
|
||||
|
||||
public void setLastInitTime(Date lastInitTime) {
|
||||
this.lastInitTime = lastInitTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "InitProfileRequest{" +
|
||||
"sn='" + sn + '\'' +
|
||||
", lastInitTime=" + lastInitTime +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.request;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class PaginatedRequest implements Serializable {
|
||||
|
||||
private int pageNum = -1;
|
||||
private int totalPerPage = 10;
|
||||
|
||||
public PaginatedRequest() {
|
||||
}
|
||||
|
||||
public PaginatedRequest(int pageNum) {
|
||||
this.pageNum = pageNum;
|
||||
}
|
||||
|
||||
public PaginatedRequest(int pageNum, int totalPerPage) {
|
||||
this.pageNum = pageNum;
|
||||
this.totalPerPage = totalPerPage;
|
||||
}
|
||||
|
||||
public int getPageNum() {
|
||||
return pageNum;
|
||||
}
|
||||
|
||||
public void setPageNum(int pageNum) {
|
||||
this.pageNum = pageNum;
|
||||
}
|
||||
|
||||
public int getTotalPerPage() {
|
||||
return totalPerPage;
|
||||
}
|
||||
|
||||
public void setTotalPerPage(int totalPerPage) {
|
||||
this.totalPerPage = totalPerPage;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.request;
|
||||
|
||||
import com.cmobile.unifiedtms.entity.restmodel.result.data.TerminalSimple;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
public class TerminalAssignRequest implements Serializable {
|
||||
|
||||
private UUID groupId;
|
||||
private String sn;
|
||||
|
||||
public TerminalAssignRequest() {
|
||||
}
|
||||
|
||||
public UUID getGroupId() {
|
||||
return groupId;
|
||||
}
|
||||
|
||||
public void setGroupId(UUID groupId) {
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public String getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public void setSn(String sn) {
|
||||
this.sn = sn;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.request;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.UUID;
|
||||
|
||||
public class TerminalDetailRequest implements Serializable {
|
||||
|
||||
private String sn;
|
||||
|
||||
public TerminalDetailRequest() {
|
||||
}
|
||||
|
||||
public String getSn() {
|
||||
return sn;
|
||||
}
|
||||
|
||||
public void setSn(String sn) {
|
||||
this.sn = sn;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class BaseDetailExtResult<T, T2> extends BaseResult {
|
||||
|
||||
private T data;
|
||||
private T2 dataExt;
|
||||
private Date initTime;
|
||||
|
||||
public BaseDetailExtResult() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the data
|
||||
*/
|
||||
public T getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param data the data to set
|
||||
*/
|
||||
public void setData(T data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public T2 getDataExt() {
|
||||
return dataExt;
|
||||
}
|
||||
|
||||
public void setDataExt(T2 dataExt) {
|
||||
this.dataExt = dataExt;
|
||||
}
|
||||
|
||||
public Date getInitTime() {
|
||||
return initTime;
|
||||
}
|
||||
|
||||
public void setInitTime(Date initTime) {
|
||||
this.initTime = initTime;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result;
|
||||
|
||||
public class BaseDetailResult<T> extends BaseResult {
|
||||
|
||||
private T data;
|
||||
|
||||
public BaseDetailResult() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the data
|
||||
*/
|
||||
public T getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param data the data to set
|
||||
*/
|
||||
public void setData(T data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result;
|
||||
|
||||
public class BaseIdResult<T> extends BaseResult {
|
||||
|
||||
private T id;
|
||||
|
||||
public BaseIdResult() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the data
|
||||
*/
|
||||
public T getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param id the data to set
|
||||
*/
|
||||
public void setId(T id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,56 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class BaseListExtResult<T, T2> extends BaseResult {
|
||||
|
||||
private List<T> rows;
|
||||
private T2 data;
|
||||
private Date initTime;
|
||||
|
||||
public BaseListExtResult() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the rows
|
||||
*/
|
||||
public List<T> getRows() {
|
||||
if(rows == null) {
|
||||
rows = Collections.EMPTY_LIST;
|
||||
}
|
||||
return rows;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param rows the rows to set
|
||||
*/
|
||||
public void setRows(List<T> rows) {
|
||||
this.rows = rows;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the data
|
||||
*/
|
||||
public T2 getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param data the data to set
|
||||
*/
|
||||
public void setData(T2 data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public Date getInitTime() {
|
||||
return initTime;
|
||||
}
|
||||
|
||||
public void setInitTime(Date initTime) {
|
||||
this.initTime = initTime;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,31 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class BaseListResult<T> extends BaseResult {
|
||||
|
||||
private List<T> rows;
|
||||
|
||||
public BaseListResult() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the rows
|
||||
*/
|
||||
public List<T> getRows() {
|
||||
if(rows == null) {
|
||||
rows = Collections.EMPTY_LIST;
|
||||
}
|
||||
return rows;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param rows the rows to set
|
||||
*/
|
||||
public void setRows(List<T> rows) {
|
||||
this.rows = rows;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,76 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class BasePaginatedResult<T> extends BaseResult {
|
||||
|
||||
private int pageSize;
|
||||
private int totalPage;
|
||||
private int total;
|
||||
private List<T> rows;
|
||||
|
||||
public BasePaginatedResult() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the pageSize
|
||||
*/
|
||||
public int getPageSize() {
|
||||
return pageSize;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param pageSize the pageSize to set
|
||||
*/
|
||||
public void setPageSize(int pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the totalPage
|
||||
*/
|
||||
public int getTotalPage() {
|
||||
return totalPage;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param totalPage the totalPage to set
|
||||
*/
|
||||
public void setTotalPage(int totalPage) {
|
||||
this.totalPage = totalPage;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the total
|
||||
*/
|
||||
public int getTotal() {
|
||||
return total;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param total the total to set
|
||||
*/
|
||||
public void setTotal(int total) {
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the rows
|
||||
*/
|
||||
public List<T> getRows() {
|
||||
if(rows == null) {
|
||||
rows = Collections.EMPTY_LIST;
|
||||
}
|
||||
return rows;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param rows the rows to set
|
||||
*/
|
||||
public void setRows(List<T> rows) {
|
||||
this.rows = rows;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,38 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class BaseResult implements Serializable {
|
||||
|
||||
private String responseCode;
|
||||
private String responseDesc;
|
||||
|
||||
/**
|
||||
* @return the responseCode
|
||||
*/
|
||||
public String getResponseCode() {
|
||||
return responseCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param responseCode the responseCode to set
|
||||
*/
|
||||
public void setResponseCode(String responseCode) {
|
||||
this.responseCode = responseCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the responseDesc
|
||||
*/
|
||||
public String getResponseDesc() {
|
||||
return responseDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param responseDesc the responseDesc to set
|
||||
*/
|
||||
public void setResponseDesc(String responseDesc) {
|
||||
this.responseDesc = responseDesc;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result.data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class AppSimple implements Serializable {
|
||||
|
||||
private String appName;
|
||||
private String packageName;
|
||||
private String appVersion;
|
||||
|
||||
public String getAppName() {
|
||||
return appName;
|
||||
}
|
||||
|
||||
public void setAppName(String appName) {
|
||||
this.appName = appName;
|
||||
}
|
||||
|
||||
public String getPackageName() {
|
||||
return packageName;
|
||||
}
|
||||
|
||||
public void setPackageName(String packageName) {
|
||||
this.packageName = packageName;
|
||||
}
|
||||
|
||||
public String getAppVersion() {
|
||||
return appVersion;
|
||||
}
|
||||
|
||||
public void setAppVersion(String appVersion) {
|
||||
this.appVersion = appVersion;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,79 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result.data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class CheckParameterUpdateExt implements Serializable {
|
||||
|
||||
private boolean updateTerminal;
|
||||
private boolean updateAcquirer;
|
||||
private boolean updateCard;
|
||||
private boolean updateAid;
|
||||
private boolean updateCtlsAid;
|
||||
private boolean updateCapk;
|
||||
private boolean updateResponseCode;
|
||||
private boolean keepBatch;
|
||||
|
||||
public boolean isUpdateTerminal() {
|
||||
return updateTerminal;
|
||||
}
|
||||
|
||||
public void setUpdateTerminal(boolean updateTerminal) {
|
||||
this.updateTerminal = updateTerminal;
|
||||
}
|
||||
|
||||
public boolean isUpdateAcquirer() {
|
||||
return updateAcquirer;
|
||||
}
|
||||
|
||||
public void setUpdateAcquirer(boolean updateAcquirer) {
|
||||
this.updateAcquirer = updateAcquirer;
|
||||
}
|
||||
|
||||
public boolean isUpdateCard() {
|
||||
return updateCard;
|
||||
}
|
||||
|
||||
public void setUpdateCard(boolean updateCard) {
|
||||
this.updateCard = updateCard;
|
||||
}
|
||||
|
||||
public boolean isUpdateAid() {
|
||||
return updateAid;
|
||||
}
|
||||
|
||||
public void setUpdateAid(boolean updateAid) {
|
||||
this.updateAid = updateAid;
|
||||
}
|
||||
|
||||
public boolean isUpdateCtlsAid() {
|
||||
return updateCtlsAid;
|
||||
}
|
||||
|
||||
public void setUpdateCtlsAid(boolean updateCtlsAid) {
|
||||
this.updateCtlsAid = updateCtlsAid;
|
||||
}
|
||||
|
||||
public boolean isUpdateCapk() {
|
||||
return updateCapk;
|
||||
}
|
||||
|
||||
public void setUpdateCapk(boolean updateCapk) {
|
||||
this.updateCapk = updateCapk;
|
||||
}
|
||||
|
||||
public boolean isUpdateResponseCode() {
|
||||
return updateResponseCode;
|
||||
}
|
||||
|
||||
public void setUpdateResponseCode(boolean updateResponseCode) {
|
||||
this.updateResponseCode = updateResponseCode;
|
||||
}
|
||||
|
||||
public boolean isKeepBatch() {
|
||||
return keepBatch;
|
||||
}
|
||||
|
||||
public void setKeepBatch(boolean keepBatch) {
|
||||
this.keepBatch = keepBatch;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result.data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
|
||||
public class DeviceModelDetail implements Serializable {
|
||||
|
||||
private UUID id;
|
||||
private String model;
|
||||
private String modelInformation;
|
||||
private String vendorName;
|
||||
private String vendorCountry;
|
||||
|
||||
public DeviceModelDetail() {}
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getModel() {
|
||||
return model;
|
||||
}
|
||||
|
||||
public void setModel(String model) {
|
||||
this.model = model;
|
||||
}
|
||||
|
||||
public String getModelInformation() {
|
||||
return modelInformation;
|
||||
}
|
||||
|
||||
public void setModelInformation(String modelInformation) {
|
||||
this.modelInformation = modelInformation;
|
||||
}
|
||||
|
||||
public String getVendorName() {
|
||||
return vendorName;
|
||||
}
|
||||
|
||||
public void setVendorName(String vendorName) {
|
||||
this.vendorName = vendorName;
|
||||
}
|
||||
|
||||
public String getVendorCountry() {
|
||||
return vendorCountry;
|
||||
}
|
||||
|
||||
public void setVendorCountry(String vendorCountry) {
|
||||
this.vendorCountry = vendorCountry;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
DeviceModelDetail that = (DeviceModelDetail) o;
|
||||
return id.equals(that.id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,52 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result.data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
|
||||
public class DeviceModelSimple implements Serializable {
|
||||
|
||||
private UUID id;
|
||||
private String model;
|
||||
private String vendorName;
|
||||
|
||||
public DeviceModelSimple() {}
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getModel() {
|
||||
return model;
|
||||
}
|
||||
|
||||
public void setModel(String model) {
|
||||
this.model = model;
|
||||
}
|
||||
|
||||
public String getVendorName() {
|
||||
return vendorName;
|
||||
}
|
||||
|
||||
public void setVendorName(String vendorName) {
|
||||
this.vendorName = vendorName;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
DeviceModelSimple that = (DeviceModelSimple) o;
|
||||
return id.equals(that.id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,130 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result.data;
|
||||
|
||||
import com.haulmont.chile.core.annotations.NumberFormat;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
|
||||
public class DeviceProfileDetail implements Serializable {
|
||||
|
||||
private UUID id;
|
||||
private String name;
|
||||
private Integer heartbeatInterval;
|
||||
private Integer diagnosticInterval;
|
||||
private Boolean maskHomeButton = false;
|
||||
private Boolean maskStatusBar = false;
|
||||
private Boolean scheduleReboot = false;
|
||||
private Date scheduleRebootTime;
|
||||
private Boolean relocationAlert;
|
||||
private Integer movingThreshold;
|
||||
private Boolean isDefault;
|
||||
|
||||
public DeviceProfileDetail() {}
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getHeartbeatInterval() {
|
||||
return heartbeatInterval;
|
||||
}
|
||||
|
||||
public void setHeartbeatInterval(Integer heartbeatInterval) {
|
||||
this.heartbeatInterval = heartbeatInterval;
|
||||
}
|
||||
|
||||
public Integer getDiagnosticInterval() {
|
||||
return diagnosticInterval;
|
||||
}
|
||||
|
||||
public void setDiagnosticInterval(Integer diagnosticInterval) {
|
||||
this.diagnosticInterval = diagnosticInterval;
|
||||
}
|
||||
|
||||
public Boolean getMaskHomeButton() {
|
||||
return maskHomeButton;
|
||||
}
|
||||
|
||||
public void setMaskHomeButton(Boolean maskHomeButton) {
|
||||
this.maskHomeButton = maskHomeButton;
|
||||
}
|
||||
|
||||
public Boolean getMaskStatusBar() {
|
||||
return maskStatusBar;
|
||||
}
|
||||
|
||||
public void setMaskStatusBar(Boolean maskStatusBar) {
|
||||
this.maskStatusBar = maskStatusBar;
|
||||
}
|
||||
|
||||
public Boolean getScheduleReboot() {
|
||||
return scheduleReboot;
|
||||
}
|
||||
|
||||
public void setScheduleReboot(Boolean scheduleReboot) {
|
||||
this.scheduleReboot = scheduleReboot;
|
||||
}
|
||||
|
||||
public Date getScheduleRebootTime() {
|
||||
return scheduleRebootTime;
|
||||
}
|
||||
|
||||
public void setScheduleRebootTime(Date scheduleRebootTime) {
|
||||
this.scheduleRebootTime = scheduleRebootTime;
|
||||
}
|
||||
|
||||
public Boolean getRelocationAlert() {
|
||||
return relocationAlert;
|
||||
}
|
||||
|
||||
public void setRelocationAlert(Boolean relocationAlert) {
|
||||
this.relocationAlert = relocationAlert;
|
||||
}
|
||||
|
||||
public Integer getMovingThreshold() {
|
||||
return movingThreshold;
|
||||
}
|
||||
|
||||
public void setMovingThreshold(Integer movingThreshold) {
|
||||
this.movingThreshold = movingThreshold;
|
||||
}
|
||||
|
||||
public Boolean getDefault() {
|
||||
return isDefault;
|
||||
}
|
||||
|
||||
public void setDefault(Boolean aDefault) {
|
||||
isDefault = aDefault;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
DeviceProfileDetail that = (DeviceProfileDetail) o;
|
||||
return id.equals(that.id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,58 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result.data;
|
||||
|
||||
import com.haulmont.chile.core.annotations.NumberFormat;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
|
||||
public class DeviceProfileSimple implements Serializable {
|
||||
|
||||
private UUID id;
|
||||
private String name;
|
||||
private Boolean isDefault;
|
||||
|
||||
public DeviceProfileSimple() {}
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Boolean getDefault() {
|
||||
return isDefault;
|
||||
}
|
||||
|
||||
public void setDefault(Boolean aDefault) {
|
||||
this.isDefault = aDefault;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
DeviceProfileSimple that = (DeviceProfileSimple) o;
|
||||
return id.equals(that.id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,164 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result.data;
|
||||
|
||||
import com.cmobile.unifiedtms.entity.ApplicationSimple;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class DiagnosticSimple extends HearbeatSimple {
|
||||
|
||||
private String meid;
|
||||
private Long totalMemory;
|
||||
private Long availableMemory;
|
||||
private Long totalFlashMemory;
|
||||
private Long availableFlashMemory;
|
||||
private Long totalMobileData;
|
||||
private Integer switchingTimes;
|
||||
private Integer currentBootTime;
|
||||
private Integer totalBootTime;
|
||||
private Double totalLengthPrinted;
|
||||
private Integer swipingCardTimes;
|
||||
private Integer dipInsertingTimes;
|
||||
private Integer nfcCardReadingTimes;
|
||||
private Integer frontCameraOpenTimes;
|
||||
private Integer rearCameraOpenTimes;
|
||||
private Integer chargeTimes;
|
||||
private List<AppSimple> installedApps;
|
||||
|
||||
public String getMeid() {
|
||||
return meid;
|
||||
}
|
||||
|
||||
public void setMeid(String meid) {
|
||||
this.meid = meid;
|
||||
}
|
||||
|
||||
public Long getTotalMemory() {
|
||||
return totalMemory;
|
||||
}
|
||||
|
||||
public void setTotalMemory(Long totalMemory) {
|
||||
this.totalMemory = totalMemory;
|
||||
}
|
||||
|
||||
public Long getAvailableMemory() {
|
||||
return availableMemory;
|
||||
}
|
||||
|
||||
public void setAvailableMemory(Long availableMemory) {
|
||||
this.availableMemory = availableMemory;
|
||||
}
|
||||
|
||||
public Long getTotalFlashMemory() {
|
||||
return totalFlashMemory;
|
||||
}
|
||||
|
||||
public void setTotalFlashMemory(Long totalFlashMemory) {
|
||||
this.totalFlashMemory = totalFlashMemory;
|
||||
}
|
||||
|
||||
public Long getAvailableFlashMemory() {
|
||||
return availableFlashMemory;
|
||||
}
|
||||
|
||||
public void setAvailableFlashMemory(Long availableFlashMemory) {
|
||||
this.availableFlashMemory = availableFlashMemory;
|
||||
}
|
||||
|
||||
public Long getTotalMobileData() {
|
||||
return totalMobileData;
|
||||
}
|
||||
|
||||
public void setTotalMobileData(Long totalMobileData) {
|
||||
this.totalMobileData = totalMobileData;
|
||||
}
|
||||
|
||||
public Integer getSwitchingTimes() {
|
||||
return switchingTimes;
|
||||
}
|
||||
|
||||
public void setSwitchingTimes(Integer switchingTimes) {
|
||||
this.switchingTimes = switchingTimes;
|
||||
}
|
||||
|
||||
public Integer getCurrentBootTime() {
|
||||
return currentBootTime;
|
||||
}
|
||||
|
||||
public void setCurrentBootTime(Integer currentBootTime) {
|
||||
this.currentBootTime = currentBootTime;
|
||||
}
|
||||
|
||||
public Integer getTotalBootTime() {
|
||||
return totalBootTime;
|
||||
}
|
||||
|
||||
public void setTotalBootTime(Integer totalBootTime) {
|
||||
this.totalBootTime = totalBootTime;
|
||||
}
|
||||
|
||||
public Double getTotalLengthPrinted() {
|
||||
return totalLengthPrinted;
|
||||
}
|
||||
|
||||
public void setTotalLengthPrinted(Double totalLengthPrinted) {
|
||||
this.totalLengthPrinted = totalLengthPrinted;
|
||||
}
|
||||
|
||||
public Integer getSwipingCardTimes() {
|
||||
return swipingCardTimes;
|
||||
}
|
||||
|
||||
public void setSwipingCardTimes(Integer swipingCardTimes) {
|
||||
this.swipingCardTimes = swipingCardTimes;
|
||||
}
|
||||
|
||||
public Integer getDipInsertingTimes() {
|
||||
return dipInsertingTimes;
|
||||
}
|
||||
|
||||
public void setDipInsertingTimes(Integer dipInsertingTimes) {
|
||||
this.dipInsertingTimes = dipInsertingTimes;
|
||||
}
|
||||
|
||||
public Integer getNfcCardReadingTimes() {
|
||||
return nfcCardReadingTimes;
|
||||
}
|
||||
|
||||
public void setNfcCardReadingTimes(Integer nfcCardReadingTimes) {
|
||||
this.nfcCardReadingTimes = nfcCardReadingTimes;
|
||||
}
|
||||
|
||||
public Integer getFrontCameraOpenTimes() {
|
||||
return frontCameraOpenTimes;
|
||||
}
|
||||
|
||||
public void setFrontCameraOpenTimes(Integer frontCameraOpenTimes) {
|
||||
this.frontCameraOpenTimes = frontCameraOpenTimes;
|
||||
}
|
||||
|
||||
public Integer getRearCameraOpenTimes() {
|
||||
return rearCameraOpenTimes;
|
||||
}
|
||||
|
||||
public void setRearCameraOpenTimes(Integer rearCameraOpenTimes) {
|
||||
this.rearCameraOpenTimes = rearCameraOpenTimes;
|
||||
}
|
||||
|
||||
public Integer getChargeTimes() {
|
||||
return chargeTimes;
|
||||
}
|
||||
|
||||
public void setChargeTimes(Integer chargeTimes) {
|
||||
this.chargeTimes = chargeTimes;
|
||||
}
|
||||
|
||||
public List<AppSimple> getInstalledApps() {
|
||||
return installedApps;
|
||||
}
|
||||
|
||||
public void setInstalledApps(List<AppSimple> installedApps) {
|
||||
this.installedApps = installedApps;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,106 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result.data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
public class DownloadTaskDetail implements Serializable {
|
||||
|
||||
private UUID id;
|
||||
private String name;
|
||||
private Integer downloadTimeType;
|
||||
private String downloadTime;
|
||||
private Integer installationTimeType;
|
||||
private String installationTime;
|
||||
private Integer installationNotification;
|
||||
private List<UUID> applicationIds;
|
||||
private List<UUID> terminalGroupIds;
|
||||
private Integer status;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getDownloadTimeType() {
|
||||
return downloadTimeType;
|
||||
}
|
||||
|
||||
public void setDownloadTimeType(Integer downloadTimeType) {
|
||||
this.downloadTimeType = downloadTimeType;
|
||||
}
|
||||
|
||||
public String getDownloadTime() {
|
||||
return downloadTime;
|
||||
}
|
||||
|
||||
public void setDownloadTime(String downloadTime) {
|
||||
this.downloadTime = downloadTime;
|
||||
}
|
||||
|
||||
public Integer getInstallationTimeType() {
|
||||
return installationTimeType;
|
||||
}
|
||||
|
||||
public void setInstallationTimeType(Integer installationTimeType) {
|
||||
this.installationTimeType = installationTimeType;
|
||||
}
|
||||
|
||||
public String getInstallationTime() {
|
||||
return installationTime;
|
||||
}
|
||||
|
||||
public void setInstallationTime(String installationTime) {
|
||||
this.installationTime = installationTime;
|
||||
}
|
||||
|
||||
public Integer getInstallationNotification() {
|
||||
return installationNotification;
|
||||
}
|
||||
|
||||
public void setInstallationNotification(Integer installationNotification) {
|
||||
this.installationNotification = installationNotification;
|
||||
}
|
||||
|
||||
public List<UUID> getApplicationIds() {
|
||||
if(applicationIds == null) {
|
||||
applicationIds = new ArrayList<>();
|
||||
}
|
||||
return applicationIds;
|
||||
}
|
||||
|
||||
public void setApplicationIds(List<UUID> applicationIds) {
|
||||
this.applicationIds = applicationIds;
|
||||
}
|
||||
|
||||
public List<UUID> getTerminalGroupIds() {
|
||||
if(terminalGroupIds == null) {
|
||||
terminalGroupIds = new ArrayList<>();
|
||||
}
|
||||
return terminalGroupIds;
|
||||
}
|
||||
|
||||
public void setTerminalGroupIds(List<UUID> terminalGroupIds) {
|
||||
this.terminalGroupIds = terminalGroupIds;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result.data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
public class DownloadTaskSimple implements Serializable {
|
||||
|
||||
private UUID id;
|
||||
private String name;
|
||||
private Integer status;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result.data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class Feature implements Serializable {
|
||||
|
||||
private String title;
|
||||
private boolean value;
|
||||
|
||||
public Feature() {
|
||||
}
|
||||
|
||||
public Feature(String title, boolean value) {
|
||||
this.title = title;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public boolean isValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(boolean value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,119 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result.data;
|
||||
|
||||
import com.cmobile.unifiedtms.entity.Terminal;
|
||||
import com.haulmont.chile.core.annotations.NumberFormat;
|
||||
import com.haulmont.cuba.core.entity.annotation.OnDeleteInverse;
|
||||
import com.haulmont.cuba.core.global.DeletePolicy;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
|
||||
public class HearbeatSimple implements Serializable {
|
||||
|
||||
private String terminalSN;
|
||||
private Double batteryTemp;
|
||||
private Integer batteryPercentage;
|
||||
private Double latitude;
|
||||
private Double longitude;
|
||||
private Date updateTime;
|
||||
protected String cellName;
|
||||
protected String cellType;
|
||||
protected Integer cellStrength;
|
||||
protected String wifiName;
|
||||
protected Integer wifiStrength;
|
||||
|
||||
public String getTerminalSN() {
|
||||
return terminalSN;
|
||||
}
|
||||
|
||||
public void setTerminalSN(String terminalSN) {
|
||||
this.terminalSN = terminalSN;
|
||||
}
|
||||
|
||||
public Double getBatteryTemp() {
|
||||
return batteryTemp;
|
||||
}
|
||||
|
||||
public void setBatteryTemp(Double batteryTemp) {
|
||||
this.batteryTemp = batteryTemp;
|
||||
}
|
||||
|
||||
public Integer getBatteryPercentage() {
|
||||
return batteryPercentage;
|
||||
}
|
||||
|
||||
public void setBatteryPercentage(Integer batteryPercentage) {
|
||||
this.batteryPercentage = batteryPercentage;
|
||||
}
|
||||
|
||||
public Double getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(Double latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public Double getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(Double longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public String getCellName() {
|
||||
return cellName;
|
||||
}
|
||||
|
||||
public void setCellName(String cellName) {
|
||||
this.cellName = cellName;
|
||||
}
|
||||
|
||||
public String getCellType() {
|
||||
return cellType;
|
||||
}
|
||||
|
||||
public void setCellType(String cellType) {
|
||||
this.cellType = cellType;
|
||||
}
|
||||
|
||||
public Integer getCellStrength() {
|
||||
return cellStrength;
|
||||
}
|
||||
|
||||
public void setCellStrength(Integer cellStrength) {
|
||||
this.cellStrength = cellStrength;
|
||||
}
|
||||
|
||||
public String getWifiName() {
|
||||
return wifiName;
|
||||
}
|
||||
|
||||
public void setWifiName(String wifiName) {
|
||||
this.wifiName = wifiName;
|
||||
}
|
||||
|
||||
public Integer getWifiStrength() {
|
||||
return wifiStrength;
|
||||
}
|
||||
|
||||
public void setWifiStrength(Integer wifiStrength) {
|
||||
this.wifiStrength = wifiStrength;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result.data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
|
||||
public class MerchantSimple implements Serializable {
|
||||
|
||||
private UUID id;
|
||||
private String name;
|
||||
private String companyName;
|
||||
|
||||
public MerchantSimple() {}
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCompanyName() {
|
||||
return companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
MerchantSimple that = (MerchantSimple) o;
|
||||
return id.equals(that.id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,60 @@
|
||||
package com.cmobile.unifiedtms.entity.restmodel.result.data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
|
||||
public class ResponseCodeSimple implements Serializable {
|
||||
|
||||
private UUID id;
|
||||
private String type;
|
||||
private String code;
|
||||
private String desc;
|
||||
|
||||
public ResponseCodeSimple() {}
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
ResponseCodeSimple that = (ResponseCodeSimple) o;
|
||||
return id.equals(that.id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id);
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user