/** * Create new instace of <code>AbstractStructure</code>. * @param dto data transfer object contain data that * assign on fields of new instance */ public AbstractStructure(AbstractStructureDto dto) { if (dto != null) { this.id = getLongId(dto); this.sequenceNumber = dto.getSequenceNumber(); this.description = dto.getDescription(); this.createdTime = dto.getCreatedTime(); this.lastModifyTime = dto.getLastModifyTime(); this.activatedTime = dto.getActivatedTime(); this.deactivatedTime = dto.getDeactivatedTime(); this.createdUsername = dto.getCreatedUsername(); this.modifiedUsername = dto.getModifiedUsername(); this.activatedUsername = dto.getActivatedUsername(); this.deactivatedUsername = dto.getDeactivatedUsername(); this.status = dto.getStatus(); this.endpointCount = dto.getEndpointCount(); Long appId = getLongId(dto.getApplicationId()); this.application = appId != null ? new Application(appId) : null; Long groupId = getLongId(dto.getEndpointGroupId()); this.endpointGroup = groupId != null ? new EndpointGroup(groupId) : null; this.version = dto.getVersion(); } }
modifiedUsername.setValue(struct.getModifiedUsername()); if (!isEmpty(struct.getActivatedUsername())) { dateTimeActivatedLabel.setVisible(true); activatedDateTime.setVisible(true); activatedUsername.setVisible(true); activatedDateTime.setValue(millisecondsToDateTimeString(struct.getActivatedTime())); activatedUsername.setValue(struct.getActivatedUsername());