Example usage for java.lang Boolean toString

List of usage examples for java.lang Boolean toString

Introduction

In this page you can find the example usage for java.lang Boolean toString.

Prototype

public String toString() 

Source Link

Document

Returns a String object representing this Boolean's value.

Usage

From source file:jp.primecloud.auto.sdk.client.component.StopComponent.java

public void execute(Long componentNo, List<Long> instanceNos, Boolean isStopInstance) {
    Map<String, String> parameters = new LinkedHashMap<String, String>();
    parameters.put("ComponentNo", componentNo.toString());
    parameters.put("InstanceNos", StringUtils.join(instanceNos, ","));

    if (isStopInstance != null) {
        parameters.put("IsStopInstance", isStopInstance.toString());
    }/* w ww. jav  a2  s.c o  m*/

    requester.execute("/StopComponent", parameters);
}

From source file:de.hybris.platform.test.HJMPOptimisticConcurrencyPerformanceTest.java

private Boolean setConcurrentModificationCheckEnabled(final Boolean enabled) {
    final String previous = Config.getParameter(CFG_KEY);
    Config.setParameter(CFG_KEY, enabled != null ? enabled.toString() : null);

    return StringUtils.isEmpty(previous) ? null : Boolean.valueOf(previous);
}

From source file:com.yoncabt.abys.core.util.EBRConf.java

public Boolean getValue(String key, Boolean defaultValue) {
    String ret = getValueFromAll(key, defaultValue == null ? null : defaultValue.toString());
    return ret == null ? null : Boolean.valueOf(ret);
}

From source file:ua.aits.sdolyna.controller.SystemController.java

@RequestMapping(value = { "/Sdolyna/system/do/removefile", "/system/do/removefile",
        "/Sdolyna/system/do/removefile/", "/system/do/removefile/" }, method = RequestMethod.GET)
public @ResponseBody String removeFileOrDir(HttpServletRequest request) {
    String path = request.getParameter("path");
    File temp = new File(Constants.home + path);
    Boolean result = temp.delete();
    return result.toString();
}

From source file:com.magnet.android.mms.request.GenericResponseParserPrimitiveTest.java

@SmallTest
public void testJavaLangObjResponse() throws MobileException, URISyntaxException, JSONException {

    Boolean boolValue = true;
    GenericResponseParser<Boolean> barser = new GenericResponseParser<Boolean>(Boolean.class);
    Boolean bresult = (Boolean) barser.parseResponse(boolValue.toString().getBytes());
    assertEquals(boolValue, bresult);//from   w w w  .j a v  a2 s  .c  o m
}

From source file:com.jaeksoft.searchlib.analysis.filter.RemoveIncludedTermFilter.java

public void setProperties(String tokenType, Boolean removeMatchingFlags) throws SearchLibException {
    if (tokenType != null)
        getProperty(ClassPropertyEnum.TOKEN_TYPE).setValue(tokenType);
    if (removeMatchingFlags != null)
        getProperty(ClassPropertyEnum.REMOVE_MATCHING_FLAGS).setValue(removeMatchingFlags.toString());
}

From source file:com.opensearchserver.client.v1.WebCrawlerApi1.java

/**
 * Enable or disable pattern inclusion and exclusion
 * //from   ww  w. ja va2 s .  co m
 * @param indexName
 *            The name of the index
 * @param inclusionStatus
 *            Enable or disable inclusion list
 * @param exclusionStatus
 *            Enable or disable inclusion list
 * @return the result of the call
 * @throws IOException
 *             if any IO error occurs
 * @throws URISyntaxException
 *             if the URI is not valid
 */
public CommonResult setPatternStatus(String indexName, Boolean inclusionStatus, Boolean exclusionStatus)
        throws IOException, URISyntaxException {
    URIBuilder uriBuilder = client.getBaseUrl("index/", indexName, "/crawler/web/patterns/status");
    if (inclusionStatus != null)
        uriBuilder.addParameter("inclusion", inclusionStatus.toString());
    if (exclusionStatus != null)
        uriBuilder.addParameter("exclusion", exclusionStatus.toString());
    Request request = Request.Put(uriBuilder.build());
    return client.execute(request, null, null, CommonResult.class, 200);
}

From source file:de.codecentric.batch.web.JobOperationsController.java

@RequestMapping(value = "/jobs/executions/{executionId}", method = RequestMethod.DELETE)
public String stop(@PathVariable long executionId)
        throws NoSuchJobExecutionException, JobExecutionNotRunningException {
    if (LOG.isDebugEnabled()) {
        LOG.debug("Stop JobExecution with id: " + executionId);
    }// ww w . j a va  2s  .  co m
    Boolean successful = jobOperator.stop(executionId);
    return successful.toString();
}

From source file:com.ewcms.core.site.web.AclAction.java

private Map<String, Object> inheritItem(Boolean inherit) {
    Map<String, Object> map = new HashMap<String, Object>();

    map.put("name", "??");
    map.put("value", inherit.toString());
    map.put("group", "");
    Map<String, Object> editor = new HashMap<String, Object>();
    map.put("editor", editor);

    editor.put("type", "checkbox");
    Map<String, Object> checkboxData = new HashMap<String, Object>();
    editor.put("options", checkboxData);
    checkboxData.put("on", Boolean.TRUE);
    checkboxData.put("off", Boolean.FALSE);

    return map;//from   w  w w . ja  va  2  s .  c om
}

From source file:com.google.mr4c.hadoop.MR4CMRJob.java

private void setRemote(MR4CConfig bbConf, Boolean remote) {
    if (remote != null) {
        setProperty(bbConf, Category.HADOOP, HadoopConfig.PROP_REMOTE, remote.toString());
    } else {//w w w  .j  a v  a2  s.  c  o m
        clearProperty(bbConf, Category.HADOOP, HadoopConfig.PROP_REMOTE);
    }
}