public void setUserConfigurationHash(byte[] userConfigurationHash) { this.userConfigurationHash = getArrayCopy(userConfigurationHash); }
public void setProfileHash(byte[] profileHash) { this.profileHash = getArrayCopy(profileHash); }
public void setEndpointKeyHash(byte[] endpointKeyHash) { this.endpointKeyHash = getArrayCopy(endpointKeyHash); }
public void setTopicHash(byte[] topicHash) { this.topicHash = getArrayCopy(topicHash); }
public void setEndpointKey(byte[] endpointKey) { this.endpointKey = getArrayCopy(endpointKey); }
public void setConfigurationHash(byte[] configurationHash) { this.configurationHash = getArrayCopy(configurationHash); }
public void setConfigurationHash(byte[] configurationHash) { this.configurationHash = getArrayCopy(configurationHash); }
/** * Create new instance of <code>MongoNotification</code>. * @param dto data transfer object contain data that * assign on fields of new instance */ public MongoNotification(NotificationDto dto) { this.id = dto.getId(); this.applicationId = dto.getApplicationId(); this.schemaId = dto.getSchemaId(); this.topicId = dto.getTopicId(); this.nfVersion = dto.getNfVersion(); this.lastModifyTime = dto.getLastTimeModify(); this.type = dto.getType(); this.body = getArrayCopy(dto.getBody()); this.expiredAt = dto.getExpiredAt(); this.secNum = dto.getSecNum(); }
@Override public NotificationDto toDto() { NotificationDto dto = new NotificationDto(); dto.setId(id); dto.setApplicationId(applicationId); dto.setSchemaId(schemaId); dto.setTopicId(topicId); dto.setLastTimeModify(lastModifyTime); dto.setNfVersion(nfVersion); dto.setType(type); dto.setBody(getArrayCopy(body)); dto.setExpiredAt(expiredAt); dto.setSecNum(secNum); return dto; } }