Example usage for java.lang Boolean FALSE

List of usage examples for java.lang Boolean FALSE

Introduction

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

Prototype

Boolean FALSE

To view the source code for java.lang Boolean FALSE.

Click Source Link

Document

The Boolean object corresponding to the primitive value false .

Usage

From source file:org.cleverbus.core.common.asynch.confirm.JobStarterForConfirmationPooling.java

public void start() throws Exception {
    synchronized (lock) {
        if (isRunning) {
            Log.debug("Job hasn't been started because previous job has still been running.");
            return;
        }/*  w ww.j a v  a2 s .com*/

        isRunning = Boolean.TRUE;
    }

    try {
        pollExecutor.run();
    } catch (Exception ex) {
        Log.error("Error occurred during polling confirmations.", ex);
    } finally {
        isRunning = Boolean.FALSE;
    }
}

From source file:com.inkubator.hrm.web.recruitment.RecruitMppPeriodFormController.java

@PostConstruct
@Override//from  w  w w. ja  v a2  s.  c  o  m
public void initialization() {
    super.initialization();
    try {
        String recruitMppId = FacesUtil.getRequestParameter("recruitMppId");
        model = new RecruitMppPeriodModel();
        isUpdate = Boolean.FALSE;
        if (StringUtils.isNotEmpty(recruitMppId)) {
            RecruitMppPeriod recruitMppPeriod = recruitMppPeriodService
                    .getEntiyByPK(Long.parseLong(recruitMppId));
            if (recruitMppPeriod != null) {
                model = getModelFromEntity(recruitMppPeriod);
                isUpdate = Boolean.TRUE;
            }
        }

    } catch (Exception e) {
        LOGGER.error("Error", e);
    }
}

From source file:za.co.dwarfsun.jcmanager.test.repository.JobInfoRepositoryTest.java

@Test(dependsOnMethods = "createJobInfo", enabled = true)
public void readJobInfo() {
    repo = ctx.getBean(JobInfoRepository.class);
    JobInfo jobInfo = repo.findOne(id);/*from w w w  .ja  v  a 2  s .com*/
    Assert.assertEquals(jobInfo.isComplete(), Boolean.FALSE);
}

From source file:httpRequests.GetPost.java

private Boolean OneAPIAvailable() {
    for (Boolean b : currentAvailability)
        if (b)//  w  w  w  . j  a  v  a  2  s . c  om
            return Boolean.TRUE;
    return Boolean.FALSE;
}

From source file:com.inkubator.hrm.web.organisation.CompanyCommisionerFormController.java

@PostConstruct
@Override/*from  w ww.  j  a v  a  2 s  . c o  m*/
public void initialization() {
    super.initialization();
    try {
        String companyId = FacesUtil.getRequestParameter("companyId");
        model = new CompanyCommisionerModel();
        isUpdate = Boolean.FALSE;
        String commisionerId = FacesUtil.getRequestParameter("commisionerId");
        if (StringUtils.isNotEmpty(commisionerId)) {
            CompanyCommisioner commisioner = companyCommisionerService
                    .getEntiyByPK(Long.parseLong(commisionerId));
            if (commisioner != null) {
                model = getModelFromEntity(commisioner);
                isUpdate = Boolean.TRUE;
            }
        }

        model.setCompanyId(Long.parseLong(companyId));
    } catch (Exception e) {
        LOGGER.error("Error", e);
    }
}

From source file:org.apache.streams.gnip.powertrack.PowerTrackActivitySerializer.java

public PowerTrackActivitySerializer() {
    mapper = new ObjectMapper();
    mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, Boolean.FALSE);
    mapper.configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, Boolean.TRUE);
    mapper.configure(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT, Boolean.TRUE);
}

From source file:com.inkubator.hrm.web.recruitment.RecruitmenSelectionSeriesFormController.java

@PostConstruct
@Override/*from w ww.j  a v  a2s  .  co  m*/
public void initialization() {
    super.initialization();
    try {
        String recruitSelectionSeriesId = FacesUtil.getRequestParameter("recruitSelectionSeriesId");
        model = new RecruitmenSelectionSeriesModel();
        isUpdate = Boolean.FALSE;
        if (StringUtils.isNotEmpty(recruitSelectionSeriesId)) {
            RecruitmenSelectionSeries recruitmenSelectionSeries = recruitAdvertisementCategoryService
                    .getEntiyByPK(Long.parseLong(recruitSelectionSeriesId));
            if (recruitmenSelectionSeries != null) {
                model = getModelFromEntity(recruitmenSelectionSeries);
                isUpdate = Boolean.TRUE;
            }
        }

    } catch (Exception e) {
        LOGGER.error("Error", e);
    }
}

From source file:se.inera.certificate.web.security.CitizenImpl.java

@Override
public Boolean hasConsent() {
    if (consentIsKnown()) {
        return consent;
    } else {//from www. j  a  v a 2 s  .com
        return Boolean.FALSE;
    }
}

From source file:ca.ualberta.t14.gametrader.ProfileController.java

public ProfileController(User model, Context context) {
    this.context = context;
    this.model = model;
    network = new NetworkController(context);
    canAdd = Boolean.FALSE;
    observers = new ArrayList<AppObserver>();
}

From source file:org.darkware.wpman.util.serialization.ThemeEnabledDeserializer.java

@Override
public Boolean deserialize(final JsonParser jsonParser, final DeserializationContext deserializationContext)
        throws IOException, JsonProcessingException {
    // Make sure the value isn't already a boolean-ish string.
    String strValue = jsonParser.getValueAsString();

    if ("network".equals(strValue))
        return Boolean.TRUE;
    if ("no".equals(strValue))
        return Boolean.FALSE;

    return Boolean.FALSE;
}