List of usage examples for org.apache.commons.lang3 StringUtils SPACE
String SPACE
To view the source code for org.apache.commons.lang3 StringUtils SPACE.
Click Source Link
From source file:de.lebenshilfe_muenster.uk_gebaerden_muensterland.sign_browser.search.SignSearchTest.java
private void checkActivityTitle(String query) { onView(allOf(withText(getStringResource(R.string.search_results) + StringUtils.SPACE + query), withParent((withId(android.support.design.R.id.action_bar))))).check(matches(isDisplayed())); }
From source file:de.lebenshilfe_muenster.uk_gebaerden_muensterland.activities.MainActivity.java
private void showSignTrainer(LearningMode learningMode) { Log.d(TAG, "showSignTrainer() learningMode: " + learningMode + StringUtils.SPACE + hashCode()); if (LearningMode.ACTIVE == learningMode) { setFragment(new SignTrainerActiveFragment(), getString(R.string.sign_trainer_active)); setActionBarTitle(getString(R.string.sign_trainer_active)); } else if (LearningMode.PASSIVE == learningMode) { setFragment(new SignTrainerPassiveFragment(), getString(R.string.sign_trainer_passive)); setActionBarTitle(getString(R.string.sign_trainer_passive)); } else {//from w ww. j a v a 2s .c om throw new NotImplementedException(String.format("LearningMode %s not yet implemented.", learningMode)); } }
From source file:com.netflix.genie.common.dto.JobTest.java
/** * Test to make sure can build a valid Job with optional parameters. *///from w ww . j a va2s.c o m @Test public void canBuildJobWithOptionals() { final Job.Builder builder = new Job.Builder(NAME, USER, VERSION); builder.withCommandArgs(COMMAND_ARGS); final String archiveLocation = UUID.randomUUID().toString(); builder.withArchiveLocation(archiveLocation); final String clusterName = UUID.randomUUID().toString(); builder.withClusterName(clusterName); final String commandName = UUID.randomUUID().toString(); builder.withCommandName(commandName); final Instant finished = Instant.now(); builder.withFinished(finished); final Instant started = Instant.now(); builder.withStarted(started); builder.withStatus(JobStatus.SUCCEEDED); final String statusMsg = UUID.randomUUID().toString(); builder.withStatusMsg(statusMsg); final Instant created = Instant.now(); builder.withCreated(created); final String description = UUID.randomUUID().toString(); builder.withDescription(description); final String id = UUID.randomUUID().toString(); builder.withId(id); final Set<String> tags = Sets.newHashSet(UUID.randomUUID().toString(), UUID.randomUUID().toString(), UUID.randomUUID().toString()); builder.withTags(tags); final Instant updated = Instant.now(); builder.withUpdated(updated); final String grouping = UUID.randomUUID().toString(); builder.withGrouping(grouping); final String groupingInstance = UUID.randomUUID().toString(); builder.withGroupingInstance(groupingInstance); final Job job = builder.build(); Assert.assertThat(job.getName(), Matchers.is(NAME)); Assert.assertThat(job.getUser(), Matchers.is(USER)); Assert.assertThat(job.getVersion(), Matchers.is(VERSION)); Assert.assertThat(job.getCommandArgs().orElseThrow(IllegalArgumentException::new), Matchers.is(StringUtils.join(COMMAND_ARGS, StringUtils.SPACE))); Assert.assertThat(job.getArchiveLocation().orElseThrow(IllegalArgumentException::new), Matchers.is(archiveLocation)); Assert.assertThat(job.getClusterName().orElseThrow(IllegalArgumentException::new), Matchers.is(clusterName)); Assert.assertThat(job.getCommandName().orElseThrow(IllegalArgumentException::new), Matchers.is(commandName)); Assert.assertThat(job.getFinished().orElseThrow(IllegalArgumentException::new), Matchers.is(finished)); Assert.assertThat(job.getStarted().orElseThrow(IllegalArgumentException::new), Matchers.is(started)); Assert.assertThat(job.getStatus(), Matchers.is(JobStatus.SUCCEEDED)); Assert.assertThat(job.getStatusMsg().orElseThrow(IllegalArgumentException::new), Matchers.is(statusMsg)); Assert.assertThat(job.getCreated().orElseThrow(IllegalArgumentException::new), Matchers.is(created)); Assert.assertThat(job.getDescription().orElseThrow(IllegalArgumentException::new), Matchers.is(description)); Assert.assertThat(job.getId().orElseThrow(IllegalArgumentException::new), Matchers.is(id)); Assert.assertThat(job.getTags(), Matchers.is(tags)); Assert.assertThat(job.getUpdated().orElseThrow(IllegalArgumentException::new), Matchers.is(updated)); Assert.assertThat(job.getRuntime(), Matchers.is(Duration.ofMillis(finished.toEpochMilli() - started.toEpochMilli()))); Assert.assertThat(job.getGrouping().orElseThrow(IllegalArgumentException::new), Matchers.is(grouping)); Assert.assertThat(job.getGroupingInstance().orElseThrow(IllegalArgumentException::new), Matchers.is(groupingInstance)); }
From source file:com.netflix.genie.common.dto.JobRequestTest.java
/** * Test to make sure can build a valid JobRequest with optional parameters. *//*from w w w. ja v a 2 s. c o m*/ @Test public void canBuildJobRequestWithOptionals() { final JobRequest.Builder builder = new JobRequest.Builder(NAME, USER, VERSION, CLUSTER_CRITERIAS, COMMAND_CRITERIA); builder.withCommandArgs(COMMAND_ARGS); final int cpu = 5; builder.withCpu(cpu); final boolean disableLogArchival = true; builder.withDisableLogArchival(disableLogArchival); final String email = UUID.randomUUID().toString() + "@netflix.com"; builder.withEmail(email); final Set<String> configs = Sets.newHashSet(UUID.randomUUID().toString(), UUID.randomUUID().toString(), UUID.randomUUID().toString()); builder.withConfigs(configs); final Set<String> dependencies = Sets.newHashSet(UUID.randomUUID().toString(), UUID.randomUUID().toString(), UUID.randomUUID().toString()); builder.withDependencies(dependencies); final String group = UUID.randomUUID().toString(); builder.withGroup(group); final int memory = 2048; builder.withMemory(memory); final String setupFile = UUID.randomUUID().toString(); builder.withSetupFile(setupFile); final Instant created = Instant.now(); builder.withCreated(created); final String description = UUID.randomUUID().toString(); builder.withDescription(description); final String id = UUID.randomUUID().toString(); builder.withId(id); final Set<String> tags = Sets.newHashSet(UUID.randomUUID().toString(), UUID.randomUUID().toString(), UUID.randomUUID().toString()); builder.withTags(tags); final Instant updated = Instant.now(); builder.withUpdated(updated); final List<String> applications = Lists.newArrayList(UUID.randomUUID().toString(), UUID.randomUUID().toString(), UUID.randomUUID().toString(), UUID.randomUUID().toString()); builder.withApplications(applications); final int timeout = 8970243; builder.withTimeout(timeout); final String grouping = UUID.randomUUID().toString(); builder.withGrouping(grouping); final String groupingInstance = UUID.randomUUID().toString(); builder.withGroupingInstance(groupingInstance); final JobRequest request = builder.build(); Assert.assertThat(request.getName(), Matchers.is(NAME)); Assert.assertThat(request.getUser(), Matchers.is(USER)); Assert.assertThat(request.getVersion(), Matchers.is(VERSION)); Assert.assertThat(request.getCommandArgs().orElseThrow(IllegalArgumentException::new), Matchers.is(StringUtils.join(COMMAND_ARGS, StringUtils.SPACE))); Assert.assertThat(request.getClusterCriterias(), Matchers.is(CLUSTER_CRITERIAS)); Assert.assertThat(request.getCommandCriteria(), Matchers.is(COMMAND_CRITERIA)); Assert.assertThat(request.getCpu().orElseThrow(IllegalArgumentException::new), Matchers.is(cpu)); Assert.assertThat(request.isDisableLogArchival(), Matchers.is(disableLogArchival)); Assert.assertThat(request.getEmail().orElseThrow(IllegalArgumentException::new), Matchers.is(email)); Assert.assertThat(request.getConfigs(), Matchers.is(configs)); Assert.assertThat(request.getDependencies(), Matchers.is(dependencies)); Assert.assertThat(request.getGroup().orElseThrow(IllegalArgumentException::new), Matchers.is(group)); Assert.assertThat(request.getMemory().orElseThrow(IllegalArgumentException::new), Matchers.is(memory)); Assert.assertThat(request.getSetupFile().orElseThrow(IllegalArgumentException::new), Matchers.is(setupFile)); Assert.assertThat(request.getCreated().orElseThrow(IllegalArgumentException::new), Matchers.is(created)); Assert.assertThat(request.getDescription().orElseThrow(IllegalArgumentException::new), Matchers.is(description)); Assert.assertThat(request.getId().orElseThrow(IllegalArgumentException::new), Matchers.is(id)); Assert.assertThat(request.getTags(), Matchers.is(tags)); Assert.assertThat(request.getUpdated().orElseThrow(IllegalArgumentException::new), Matchers.is(updated)); Assert.assertThat(request.getApplications(), Matchers.is(applications)); Assert.assertThat(request.getTimeout().orElseThrow(IllegalArgumentException::new), Matchers.is(timeout)); Assert.assertThat(request.getGrouping().orElseThrow(IllegalArgumentException::new), Matchers.is(grouping)); Assert.assertThat(request.getGroupingInstance().orElseThrow(IllegalArgumentException::new), Matchers.is(groupingInstance)); }
From source file:com.netflix.genie.web.controllers.JobRestControllerIntegrationTest.java
private void checkJob(final int documentationId, final String id, final List<String> commandArgs, final boolean archiveJob) { final RestDocumentationFilter getResultFilter = RestAssuredRestDocumentation.document( "{class-name}/" + documentationId + "/getJob/", Snippets.ID_PATH_PARAM, // Path parameters Snippets.HAL_CONTENT_TYPE_HEADER, // Response Headers Snippets.getJobResponsePayload(), // Response fields Snippets.JOB_LINKS // Links );/*from ww w .jav a 2 s .c o m*/ RestAssured.given(this.getRequestSpecification()).filter(getResultFilter).when().port(this.port) .get(JOBS_API + "/{id}", id).then().statusCode(Matchers.is(HttpStatus.OK.value())) .contentType(Matchers.is(MediaTypes.HAL_JSON_UTF8_VALUE)).body(ID_PATH, Matchers.is(id)) .body(CREATED_PATH, Matchers.notNullValue()).body(UPDATED_PATH, Matchers.notNullValue()) .body(VERSION_PATH, Matchers.is(JOB_VERSION)).body(USER_PATH, Matchers.is(JOB_USER)) .body(NAME_PATH, Matchers.is(JOB_NAME)).body(DESCRIPTION_PATH, Matchers.is(JOB_DESCRIPTION)) .body(METADATA_PATH + "." + SCHEDULER_JOB_NAME_KEY, Matchers.is(this.schedulerJobName)) .body(METADATA_PATH + "." + SCHEDULER_RUN_ID_KEY, Matchers.is(this.schedulerRunId)) .body(COMMAND_ARGS_PATH, Matchers.is(StringUtils.join(commandArgs, StringUtils.SPACE))) .body(STATUS_PATH, Matchers.is(JobStatus.SUCCEEDED.toString())) .body(STATUS_MESSAGE_PATH, Matchers.is(JOB_STATUS_MSG)) .body(STARTED_PATH, Matchers.not(Instant.EPOCH)).body(FINISHED_PATH, Matchers.notNullValue()) // TODO: Flipped during V4 migration to always be on to replecate expected behavior of V3 until clients // can be migrated // .body(ARCHIVE_LOCATION_PATH, archiveJob ? Matchers.notNullValue() : Matchers.isEmptyOrNullString()) .body(ARCHIVE_LOCATION_PATH, Matchers.notNullValue()) .body(CLUSTER_NAME_PATH, Matchers.is(CLUSTER1_NAME)).body(COMMAND_NAME_PATH, Matchers.is(CMD1_NAME)) .body(TAGS_PATH, Matchers.contains(JOB_TAG_1, JOB_TAG_2)) .body(GROUPING_PATH, Matchers.is(JOB_GROUPING)) .body(GROUPING_INSTANCE_PATH, Matchers.is(JOB_GROUPING_INSTANCE)) .body(LINKS_PATH + ".keySet().size()", Matchers.is(9)) .body(LINKS_PATH, Matchers.hasKey(SELF_LINK_KEY)).body(LINKS_PATH, Matchers.hasKey("request")) .body(LINKS_PATH, Matchers.hasKey("execution")).body(LINKS_PATH, Matchers.hasKey("output")) .body(LINKS_PATH, Matchers.hasKey("status")).body(LINKS_PATH, Matchers.hasKey("cluster")) .body(LINKS_PATH, Matchers.hasKey("command")).body(LINKS_PATH, Matchers.hasKey("applications")) .body(LINKS_PATH, Matchers.hasKey("metadata")) .body(JOB_CLUSTER_LINK_PATH, EntityLinkMatcher.matchUri(JOBS_API, "cluster", null, id)) .body(JOB_COMMAND_LINK_PATH, EntityLinkMatcher.matchUri(JOBS_API, "command", null, id)) .body(JOB_APPLICATIONS_LINK_PATH, EntityLinkMatcher.matchUri(JOBS_API, APPLICATIONS_LINK_KEY, null, id)); }
From source file:com.netflix.genie.web.jpa.services.JpaJobPersistenceServiceImpl.java
private JobEntity toEntity(final String id, final com.netflix.genie.common.dto.JobRequest jobRequest, final com.netflix.genie.common.dto.JobMetadata jobMetadata, final Job job, final JobExecution jobExecution) { final JobEntity jobEntity = new JobEntity(); // Fields from the original Job Request jobEntity.setUniqueId(id);/*from w w w. j a v a 2 s . c o m*/ jobEntity.setName(jobRequest.getName()); jobEntity.setUser(jobRequest.getUser()); jobEntity.setVersion(jobRequest.getVersion()); jobEntity.setStatus(JobStatus.INIT); jobRequest.getDescription().ifPresent(jobEntity::setDescription); jobRequest.getMetadata() .ifPresent(metadata -> EntityDtoConverters.setJsonField(metadata, jobEntity::setMetadata)); JpaServiceUtils.setEntityMetadata(GenieObjectMapper.getMapper(), jobRequest, jobEntity); jobRequest.getCommandArgs().ifPresent(commandArgs -> jobEntity.setCommandArgs( Lists.newArrayList(StringUtils.splitByWholeSeparator(commandArgs, StringUtils.SPACE)))); jobRequest.getGroup().ifPresent(jobEntity::setGenieUserGroup); final FileEntity setupFile = jobRequest.getSetupFile().isPresent() ? this.createAndGetFileEntity(jobRequest.getSetupFile().get()) : null; if (setupFile != null) { jobEntity.setSetupFile(setupFile); } final List<CriterionEntity> clusterCriteria = Lists .newArrayListWithExpectedSize(jobRequest.getClusterCriterias().size()); for (final ClusterCriteria clusterCriterion : jobRequest.getClusterCriterias()) { clusterCriteria.add(new CriterionEntity(null, null, null, null, this.createAndGetTagEntities(clusterCriterion.getTags()))); } jobEntity.setClusterCriteria(clusterCriteria); jobEntity.setCommandCriterion(new CriterionEntity(null, null, null, null, this.createAndGetTagEntities(jobRequest.getCommandCriteria()))); jobEntity.setConfigs(this.createAndGetFileEntities(jobRequest.getConfigs())); jobEntity.setDependencies(this.createAndGetFileEntities(jobRequest.getDependencies())); jobEntity.setArchivingDisabled(jobRequest.isDisableLogArchival()); jobRequest.getEmail().ifPresent(jobEntity::setEmail); if (!jobRequest.getTags().isEmpty()) { jobEntity.setTags(this.createAndGetTagEntities(jobRequest.getTags())); } jobRequest.getCpu().ifPresent(jobEntity::setRequestedCpu); jobRequest.getMemory().ifPresent(jobEntity::setRequestedMemory); if (!jobRequest.getApplications().isEmpty()) { jobEntity.setRequestedApplications(jobRequest.getApplications()); } jobRequest.getTimeout().ifPresent(jobEntity::setRequestedTimeout); jobRequest.getGrouping().ifPresent(jobEntity::setGrouping); jobRequest.getGroupingInstance().ifPresent(jobEntity::setGroupingInstance); // Fields collected as metadata jobMetadata.getClientHost().ifPresent(jobEntity::setRequestApiClientHostname); jobMetadata.getUserAgent().ifPresent(jobEntity::setRequestApiClientUserAgent); jobMetadata.getNumAttachments().ifPresent(jobEntity::setNumAttachments); jobMetadata.getTotalSizeOfAttachments().ifPresent(jobEntity::setTotalSizeOfAttachments); jobMetadata.getStdErrSize().ifPresent(jobEntity::setStdErrSize); jobMetadata.getStdOutSize().ifPresent(jobEntity::setStdOutSize); // Fields a user cares about (job dto) job.getArchiveLocation().ifPresent(jobEntity::setArchiveLocation); job.getStarted().ifPresent(jobEntity::setStarted); job.getFinished().ifPresent(jobEntity::setFinished); jobEntity.setStatus(job.getStatus()); job.getStatusMsg().ifPresent(jobEntity::setStatusMsg); // Fields set by system as part of job execution jobEntity.setAgentHostname(jobExecution.getHostName()); jobExecution.getProcessId().ifPresent(jobEntity::setProcessId); jobExecution.getCheckDelay().ifPresent(jobEntity::setCheckDelay); jobExecution.getTimeout().ifPresent(jobEntity::setTimeout); jobExecution.getMemory().ifPresent(jobEntity::setMemoryUsed); // Flag to signal to rest of system that this job is V3. Temporary until everything moved to v4 jobEntity.setV4(false); return jobEntity; }
From source file:com.netflix.genie.web.controllers.JobRestControllerIntegrationTest.java
private void checkJobRequest(final int documentationId, final String id, final List<String> commandArgs, final String setupFile, final String clusterTag, final String commandTag, final String configFile1, final String depFile1, final boolean archiveJob) { final RestDocumentationFilter getResultFilter = RestAssuredRestDocumentation.document( "{class-name}/" + documentationId + "/getJobRequest/", Snippets.ID_PATH_PARAM, // Path parameters Snippets.HAL_CONTENT_TYPE_HEADER, // Response Headers Snippets.getJobRequestResponsePayload(), // Response fields Snippets.JOB_REQUEST_LINKS // Links );/* w ww . ja v a 2s .co m*/ RestAssured.given(this.getRequestSpecification()).filter(getResultFilter).when().port(this.port) .get(JOBS_API + "/{id}/request", id).then().statusCode(Matchers.is(HttpStatus.OK.value())) .contentType(Matchers.is(MediaTypes.HAL_JSON_UTF8_VALUE)).body(ID_PATH, Matchers.is(id)) .body(CREATED_PATH, Matchers.notNullValue()).body(UPDATED_PATH, Matchers.notNullValue()) .body(NAME_PATH, Matchers.is(JOB_NAME)).body(VERSION_PATH, Matchers.is(JOB_VERSION)) .body(USER_PATH, Matchers.is(JOB_USER)).body(DESCRIPTION_PATH, Matchers.is(JOB_DESCRIPTION)) .body(METADATA_PATH + "." + SCHEDULER_JOB_NAME_KEY, Matchers.is(this.schedulerJobName)) .body(METADATA_PATH + "." + SCHEDULER_RUN_ID_KEY, Matchers.is(this.schedulerRunId)) .body(COMMAND_ARGS_PATH, Matchers.is(StringUtils.join(commandArgs, StringUtils.SPACE))) .body(SETUP_FILE_PATH, Matchers.is(setupFile)).body(CLUSTER_CRITERIAS_PATH, Matchers.hasSize(1)) .body(CLUSTER_CRITERIAS_PATH + "[0].tags", Matchers.hasSize(1)) .body(CLUSTER_CRITERIAS_PATH + "[0].tags[0]", Matchers.is(clusterTag)) .body(COMMAND_CRITERIA_PATH, Matchers.hasSize(1)) .body(COMMAND_CRITERIA_PATH + "[0]", Matchers.is(commandTag)).body(GROUP_PATH, Matchers.nullValue()) .body(DISABLE_LOG_ARCHIVAL_PATH, Matchers.is(!archiveJob)).body(CONFIGS_PATH, Matchers.hasSize(1)) .body(CONFIGS_PATH + "[0]", Matchers.is(configFile1)).body(DEPENDENCIES_PATH, Matchers.hasSize(1)) .body(DEPENDENCIES_PATH + "[0]", Matchers.is(depFile1)).body(EMAIL_PATH, Matchers.nullValue()) .body(CPU_PATH, Matchers.nullValue()).body(MEMORY_PATH, Matchers.nullValue()) .body(APPLICATIONS_PATH, Matchers.empty()).body(TAGS_PATH, Matchers.contains(JOB_TAG_1, JOB_TAG_2)) .body(GROUPING_PATH, Matchers.is(JOB_GROUPING)) .body(GROUPING_INSTANCE_PATH, Matchers.is(JOB_GROUPING_INSTANCE)); }
From source file:org.eclipse.hawkbit.ui.artifacts.smtable.SoftwareModuleAddUpdateWindow.java
private void createRequiredComponents() { nameTextField = createTextField("textfield.name", UIComponentIdProvider.SOFT_MODULE_NAME); versionTextField = createTextField("textfield.version", UIComponentIdProvider.SOFT_MODULE_VERSION); vendorTextField = createTextField("textfield.vendor", UIComponentIdProvider.SOFT_MODULE_VENDOR); vendorTextField.setRequired(false);//from w w w. j av a 2 s . c om vendorTextField.setNullRepresentation(""); descTextArea = new TextAreaBuilder().caption(i18n.getMessage("textfield.description")) .style("text-area-style").prompt(i18n.getMessage("textfield.description")) .id(UIComponentIdProvider.ADD_SW_MODULE_DESCRIPTION).buildTextComponent(); descTextArea.setNullRepresentation(""); typeComboBox = SPUIComponentProvider.getComboBox(i18n.getMessage("upload.swmodule.type"), "", null, null, true, null, i18n.getMessage("upload.swmodule.type")); typeComboBox.setId(UIComponentIdProvider.SW_MODULE_TYPE); typeComboBox.setStyleName( SPUIDefinitions.COMBO_BOX_SPECIFIC_STYLE + StringUtils.SPACE + ValoTheme.COMBOBOX_TINY); typeComboBox.setNewItemsAllowed(Boolean.FALSE); typeComboBox.setImmediate(Boolean.TRUE); }
From source file:org.eclipse.hawkbit.ui.management.footer.CountMessageLabel.java
private void displayTargetCountStatus() { final TargetTableFilters targFilParams = managementUIState.getTargetTableFilters(); final StringBuilder message = getTotalTargetMessage(); if (targFilParams.hasFilter()) { message.append(HawkbitCommonUtil.SP_STRING_PIPE); message.append(i18n.getMessage("label.filter.targets")); if (managementUIState.getTargetsTruncated() != null) { message.append(targetTable.size() + managementUIState.getTargetsTruncated()); } else {/*from ww w . j av a 2s . c o m*/ message.append(targetTable.size()); } message.append(HawkbitCommonUtil.SP_STRING_PIPE); final String status = i18n.getMessage("label.filter.status"); final String overdue = i18n.getMessage("label.filter.overdue"); final String tags = i18n.getMessage("label.filter.tags"); final String text = i18n.getMessage("label.filter.text"); final String dists = i18n.getMessage("label.filter.dist"); final String custom = i18n.getMessage("label.filter.custom"); final StringBuilder filterMesgBuf = new StringBuilder(i18n.getMessage("label.filter")); filterMesgBuf.append(StringUtils.SPACE); filterMesgBuf.append(getStatusMsg(targFilParams.getClickedStatusTargetTags(), status)); filterMesgBuf.append(getOverdueStateMsg(targFilParams.isOverdueFilterEnabled(), overdue)); filterMesgBuf.append( getTagsMsg(targFilParams.isNoTagSelected(), targFilParams.getClickedTargetTags(), tags)); filterMesgBuf.append(targFilParams.getSearchText().map(search -> text).orElse(StringUtils.SPACE)); filterMesgBuf.append(targFilParams.getDistributionSet().map(set -> dists).orElse(StringUtils.SPACE)); filterMesgBuf .append(targFilParams.getTargetFilterQuery().map(query -> custom).orElse(StringUtils.SPACE)); final String filterMesageChk = filterMesgBuf.toString().trim(); String filterMesage = filterMesageChk; if (filterMesage.endsWith(",")) { filterMesage = filterMesageChk.substring(0, filterMesageChk.length() - 1); } message.append(filterMesage); } if ((targetTable.size() + Optional.ofNullable(managementUIState.getTargetsTruncated()) .orElse(0L)) > SPUIDefinitions.MAX_TABLE_ENTRIES) { message.append(HawkbitCommonUtil.SP_STRING_PIPE); message.append(i18n.getMessage("label.filter.shown")); message.append(SPUIDefinitions.MAX_TABLE_ENTRIES); } setCaption(message.toString()); }
From source file:org.eclipse.hawkbit.ui.management.footer.CountMessageLabel.java
/** * Get Status Message./*w w w . j a v a2s .c om*/ * * @param status * as status * @return String as msg. */ private static String getStatusMsg(final List<TargetUpdateStatus> status, final String param) { return status.isEmpty() ? StringUtils.SPACE : param; }