package com.keelsolution.web.dmi.dto.edit; import com.keelsolution.web.dmi.noun.EntityNnMPairsDto; import com.keelsolution.web.dmi.property.MasterProductPropertyDataDto; public class MasterProductViewDto extends AbstractRecordViewDto { private static final long serialVersionUID = 1L; private MasterProductRdcDto parentMasterProductRdc; private boolean released; private boolean catalouge; private String url; private boolean lastVersion; private EntityNnMPairsDto nnMPairs; public boolean isReleased() { return released; } public void setReleased(boolean released) { this.released = released; } public boolean isCatalouge() { return catalouge; } public void setCatalouge(boolean catalouge) { this.catalouge = catalouge; } public EntityNnMPairsDto getNnMPairs() { return nnMPairs; } public void setNnMPairs(EntityNnMPairsDto nnMPairs) { this.nnMPairs = nnMPairs; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public MasterProductRdcDto getParentMasterProductRdc() { return parentMasterProductRdc; } public void setParentMasterProductRdc(MasterProductRdcDto parentMasterProductRdc) { this.parentMasterProductRdc = parentMasterProductRdc; } @Override public MasterProductPropertyDataDto getPropertiesData() { return super.getPropertiesData(); } @Override public void setPropertiesData(MasterProductPropertyDataDto propertiesData) { super.setPropertiesData(propertiesData); } public boolean isLastVersion() { return lastVersion; } public void setLastVersion(boolean lastVersion) { this.lastVersion = lastVersion; } } package com.keelsolution.web.dmi.dto.edit; import com.google.common.base.Objects; import com.keelsolution.entities_new.versioning.UpdateStatus; import com.keelsolution.web.dmi.dto.AbstractNamedDto; import com.keelsolution.web.dmi.property.PropertyDataDto; public abstract class AbstractRecordViewDto> extends AbstractNamedDto { private static final long serialVersionUID = 1L; private String updateOn; private String createOn; private String updateBy; private String createBy; private UpdateStatus updateStatus; private T propertiesData; private T recentPropertiesData; public String getUpdateOn() { return updateOn; } public void setUpdateOn(String updateOn) { this.updateOn = updateOn; } public String getCreateOn() { return createOn; } public void setCreateOn(String createOn) { this.createOn = createOn; } public String getUpdateBy() { return updateBy; } public void setUpdateBy(String updateBy) { this.updateBy = updateBy; } public String getCreateBy() { return createBy; } public void setCreateBy(String createBy) { this.createBy = createBy; } public UpdateStatus getUpdateStatus() { return updateStatus; } public void setUpdateStatus(UpdateStatus updateStatus) { this.updateStatus = updateStatus; } public T getPropertiesData() { return propertiesData; } public void setPropertiesData(T propertiesData) { this.propertiesData = propertiesData; } public T getRecentPropertiesData() { return recentPropertiesData; } public void setRecentPropertiesData(T recentPropertiesData) { this.recentPropertiesData = recentPropertiesData; } @Override public String toString() { return Objects.toStringHelper(this.getClass()) .add("updateOn", updateOn).add("createOn", createOn) .add("updateBy", updateBy).add("createBy", createBy) .add("updateStatus", updateStatus) .add("propertiesData", propertiesData) .add("recentPropertiesData", recentPropertiesData) .omitNullValues().toString(); } } package com.keelsolution.web.dmi.dto; public abstract class AbstractNamedDto extends AbstractIdDto { private static final long serialVersionUID = 1L; private String name; private String description; public AbstractNamedDto() { super(); } public AbstractNamedDto(Integer id, int revision, String name, String description) { super(id, revision); this.name = name; this.description = description; } 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; } } package com.keelsolution.web.dmi.dto; import java.io.Serializable; public abstract class AbstractIdDto implements Serializable { private static final long serialVersionUID = 1L; private Integer id; private int revision; public AbstractIdDto() { super(); } public AbstractIdDto(Integer id, Integer revision) { super(); this.id = id; this.revision = revision; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public int getRevision() { return revision; } public void setRevision(int revision) { this.revision = revision; } }