Commit 953a24f5 authored by Roberto Loayza's avatar Roberto Loayza

Aumento del uso del periodo para la eliminación de data sensible según agente.

parent b5175844
...@@ -6,6 +6,7 @@ import lombok.Getter; ...@@ -6,6 +6,7 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import lombok.ToString; import lombok.ToString;
import java.math.BigInteger;
import java.util.List; import java.util.List;
/** /**
...@@ -56,6 +57,9 @@ public class AgentBean { ...@@ -56,6 +57,9 @@ public class AgentBean {
@Expose @Expose
private String type; private String type;
@Expose
private int period;
@Expose @Expose
private List<DeploymentChannelBean> deploymentChannels; private List<DeploymentChannelBean> deploymentChannels;
......
...@@ -13,6 +13,7 @@ import org.hibernate.annotations.Type; ...@@ -13,6 +13,7 @@ import org.hibernate.annotations.Type;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigInteger;
import java.util.List; import java.util.List;
@Entity @Entity
...@@ -45,7 +46,7 @@ public class Agent implements Serializable { ...@@ -45,7 +46,7 @@ public class Agent implements Serializable {
private String timezone; private String timezone;
@Column(name = "agen_delete_sensible_period") @Column(name = "agen_delete_sensible_period")
private String period; private int period;
@Lob @Lob
@Type(type = "org.hibernate.type.TextType") @Type(type = "org.hibernate.type.TextType")
......
...@@ -142,6 +142,7 @@ public class AgentService extends CustomPaginationService<Agent> { ...@@ -142,6 +142,7 @@ public class AgentService extends CustomPaginationService<Agent> {
agentBD.setVersion(agent.getVersion()); agentBD.setVersion(agent.getVersion());
agentBD.setType(AgentTypeEnum.fromString(agent.getType())); agentBD.setType(AgentTypeEnum.fromString(agent.getType()));
agentBD.setAvatar(agent.getAvatar()); agentBD.setAvatar(agent.getAvatar());
agentBD.setPeriod(agent.getPeriod());
if (agent.getCountryId() != null) { if (agent.getCountryId() != null) {
Optional<Country> countryFound = countryRepository.findById(agent.getCountryId()); Optional<Country> countryFound = countryRepository.findById(agent.getCountryId());
...@@ -360,6 +361,7 @@ public class AgentService extends CustomPaginationService<Agent> { ...@@ -360,6 +361,7 @@ public class AgentService extends CustomPaginationService<Agent> {
bean.setType(agent.getType().getName()); bean.setType(agent.getType().getName());
bean.setStatus(agent.getStatus().getName()); bean.setStatus(agent.getStatus().getName());
bean.setAvatar(agent.getAvatar()); bean.setAvatar(agent.getAvatar());
bean.setPeriod(agent.getPeriod());
if (agent.getCountry() != null) { if (agent.getCountry() != null) {
bean.setCountryName(agent.getCountry().getName()); bean.setCountryName(agent.getCountry().getName());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment