List of usage examples for java.lang Boolean FALSE
Boolean FALSE
To view the source code for java.lang Boolean FALSE.
Click Source Link
From source file:de.hybris.platform.importcockpit.services.impex.generator.operations.impl.DefaultDataGeneratorOperationTest.java
@Before public void setUp() { MockitoAnnotations.initMocks(this); when(Boolean.valueOf(inputDataLine.isEmpty())).thenReturn(Boolean.FALSE); when(Boolean.valueOf(atomicTypeMapping.hasChildren())).thenReturn(Boolean.TRUE); }
From source file:cz.fi.muni.pa165.library.web.PrintedBookController.java
@RequestMapping(value = "/pbook/addformular/{number}", method = RequestMethod.GET) public String addformular(ModelMap model, @PathVariable("number") int number) { PrintedBookDTO pb = new PrintedBookDTO(); pb.setCondition(Condition.New); pb.setState(Boolean.FALSE); BookDTO b = bookService.findBookById(number); pb.setBook(b);/*from w ww.j a va 2 s. com*/ pbookService.insertPrintedBook(pb); Set<PrintedBookDTO> set = b.getBooks(); set.add(pb); b.setBooks(set); bookService.updateBook(b); return "redirect:/book/id/" + String.valueOf(number); }
From source file:fedora.server.security.servletfilters.Base.java
public static final boolean booleanValue(String string) throws Exception { if (Boolean.TRUE.toString().equals(string) || Boolean.FALSE.toString().equals(string)) { return (new Boolean(string)).booleanValue(); } else {/*from w w w . j a va 2 s . com*/ throw new Exception("does not represent a boolean"); } }
From source file:de.hybris.platform.cronjob.jalo.PLA_12481_Test.java
@Before public void prepareComposite() { final CompositeJobModel job = modelService.create(CompositeJobModel.class); job.setCode("CompJob"); compCronJob = createCompositeCronJob(job, "CompCJ"); legacyMode = StringUtils.isEmpty(Config.getParameter("relation.handle.legacy")) ? null : Boolean.valueOf(Config.getParameter("relation.handle.legacy")); Config.setParameter("relation.handle.legacy", Boolean.FALSE.toString()); }
From source file:br.com.joaops.smt.configuration.MyConnectionProviderImpl.java
@Override public boolean supportsAggressiveRelease() { return Boolean.FALSE; }
From source file:com.omnigon.aem.handlebars.helpers.OrHelper.java
private Boolean isValidValue(Object value) { if (value == null || StringUtils.EMPTY.equals(value) || Boolean.FALSE.equals(value)) { return Boolean.FALSE; }//from w w w . j a v a 2s . co m return Boolean.TRUE; }
From source file:is.idega.idegaweb.egov.gumbo.licenses.LicensesUtil.java
public Boolean sendPDFByEmail(String to, String shipID) { if (StringUtil.isEmpty(to) || StringUtil.isEmpty(shipID)) return Boolean.FALSE; if (to.equals("notset")) { to = IWMainApplication.getDefaultIWApplicationContext().getApplicationSettings() .getProperty("default.rejected.application.receiver", "ingvar@fiskistofa.is"); }//from ww w . j a va 2 s. c om File xformInPDF = null; try { IWContext iwc = CoreUtil.getIWContext(); if (iwc == null) return Boolean.FALSE; Object submissionId = iwc.getSessionAttribute(ExecuteAction.XFORM_SUBMISSION_UUID_PARAM); if (!(submissionId instanceof String)) return Boolean.FALSE; String formSubmissionId = (String) submissionId; String pdfName = getLocalizedFormName(getFormSubmission(formSubmissionId), getCurrentLocale()); String path = CoreConstants.CONTENT_PATH + "/xforms/pdf/" + formSubmissionId; String linkToPDF = xFormConverter.getGeneratedPDFFromXForm(null, null, formSubmissionId, path, pdfName, false); if (StringUtil.isEmpty(linkToPDF)) return Boolean.FALSE; IWResourceBundle iwrb = IWMainApplication.getDefaultIWMainApplication() .getBundle(GumboConstants.IW_BUNDLE_IDENTIFIER).getResourceBundle(getCurrentLocale()); String subject = iwrb.getLocalizedString("sending_failure_message", "Uggi: Error when trying to send application for ship") + ": " + shipID; xformInPDF = new File(pdfName.concat(".pdf")); if (!xformInPDF.exists()) xformInPDF.createNewFile(); IWSlideService slide = getServiceInstance(IWSlideService.class); FileUtil.streamToFile(slide.getInputStream(linkToPDF), xformInPDF); SendMail.send("fiskistofa@fiskistofa.is", to, null, null, null, subject, "", xformInPDF); return Boolean.TRUE; } catch (Exception e) { getLogger().log(Level.WARNING, "Error sending saved XForm in PDF by email", e); } finally { if (xformInPDF != null) xformInPDF.delete(); } return Boolean.FALSE; }
From source file:com.omertron.rottentomatoesapi.TestLogger.java
/** * Configure the logger with a simple in-memory file for the required log level * * @param level The logging level required * @return True if successful//from w w w . jav a2s . c o m */ public static boolean Configure(String level) { StringBuilder config = new StringBuilder("handlers = java.util.logging.ConsoleHandler\n"); config.append(".level = ").append(level).append(CRLF); config.append("java.util.logging.ConsoleHandler.level = ").append(level).append(CRLF); // Only works with Java 7 or later config.append("java.util.logging.SimpleFormatter.format = [%1$tH:%1$tM:%1$tS %4$6s] %2$s - %5$s %6$s%n") .append(CRLF); // Exclude logging messages // Note: This does not work for apache config.append("org.apache.http.level = SEVERE").append(CRLF); InputStream ins = new ByteArrayInputStream(config.toString().getBytes()); try { LogManager.getLogManager().readConfiguration(ins); // Exclude http logging System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog"); System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.http", "warn"); } catch (IOException ex) { LOG.warn("Failed to configure log manager due to an IO problem", ex); return Boolean.FALSE; } finally { try { ins.close(); } catch (IOException ex) { LOG.info("Failed to close input stream", ex); } } LOG.debug("Logger initialized to '{}' level", level); return Boolean.TRUE; }
From source file:org.cleverbus.core.common.asynch.queue.JobStarterForMessagePooling.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; }//from w ww .j a va 2 s . co m isRunning = Boolean.TRUE; } try { messageExecutor.run(); } catch (Exception ex) { Log.error("Error occurred during polling messages.", ex); } finally { isRunning = Boolean.FALSE; } }
From source file:com.codepine.api.testrail.internal.IntToBooleanDeserializer.java
@Override public Boolean deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { return jp.getValueAsInt(0) <= 0 ? Boolean.FALSE : Boolean.TRUE; }