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:com.wabacus.system.datatype.BooleanType.java
public Object label2value(String label) { if (label == null || label.trim().equals("")) return Boolean.FALSE; return Boolean.valueOf(label.trim()); }
From source file:com.eureka.v1_0.account.information.impl.ResetPasswordServiceImpl.java
@Override @Transactional// w ww .j a v a 2 s . c o m public ResetPassword post(ResetPassword resetPassword) throws Exception { if (resetPassword != null) { try { resetPassword .setAccount(this.accountService.getByName(resetPassword.getAccount().getAccountName())); resetPassword.setResetPasswordToken(RandomStringUtils.randomAlphanumeric(128)); resetPassword.setResetStatus(Boolean.FALSE); resetPassword.setStartDate(Calendar.getInstance().getTime()); this.em.persist(resetPassword); return resetPassword; } finally { if (em != null) { em.close(); } } } throw new NullPointerException("ResetPassword object cannot be NULL. Please send a valid object"); }
From source file:NumberUtil.java
/** * Convert an Object to a Boolean.//from w ww. j a v a2s .c o m */ public static Boolean toBoolean(Object value) { if (value == null) return null; if (value instanceof Boolean) return (Boolean) value; if ("TRUE".equalsIgnoreCase(value.toString())) return Boolean.TRUE; if ("".equals(value.toString())) return null; return Boolean.FALSE; }
From source file:com.haulmont.cuba.gui.app.security.role.edit.tabs.EntityNameFilter.java
@Override public boolean test(@Nullable T target) { if (target != null) { if (Boolean.TRUE.equals(assignedOnlyCheckBox.getValue()) && !target.isAssigned()) { return false; }/*from w w w.j ava 2 s .co m*/ if (Boolean.FALSE.equals(systemLevelCheckBox.getValue()) && (target instanceof EntityPermissionTarget) && !target.isAssigned()) { Class entityClass = ((EntityPermissionTarget) target).getEntityClass(); MetaClass metaClass = metadata.getSession().getClassNN(entityClass); if (metadata.getTools().isSystemLevel(metaClass)) { return false; } } String filterValue = StringUtils.trimToEmpty(entityFilter.<String>getValue()); return StringUtils.isBlank(filterValue) || StringUtils.containsIgnoreCase(target.getCaption(), filterValue); } return false; }
From source file:be.fedict.eid.idp.model.applet.SecureCardReaderServiceBean.java
@Override public String getTransactionMessage() { Boolean transactionMessageSigning = this.configuration.getValue(ConfigProperty.TRANSACTION_MESSAGE_SIGNING, Boolean.class); if (null == transactionMessageSigning) { return null; }//from ww w. j ava 2 s. c o m if (Boolean.FALSE.equals(transactionMessageSigning)) { return null; } RPEntity relyingPartyEntity = AppletUtil.getSessionAttribute(Constants.RP_SESSION_ATTRIBUTE); String applicationName; if (null != relyingPartyEntity) { applicationName = relyingPartyEntity.getName(); } else { applicationName = AppletUtil.getSessionAttribute(Constants.RP_DOMAIN_SESSION_ATTRIBUTE); } Calendar calendar = Calendar.getInstance(); String transactionMessage = applicationName + " @ " + calendar.get(Calendar.DAY_OF_MONTH) + "/" + (calendar.get(Calendar.MONTH) + 1) + "/" + calendar.get(Calendar.YEAR) + " " + calendar.get(Calendar.HOUR_OF_DAY) + ":" + calendar.get(Calendar.MINUTE) + ":" + calendar.get(Calendar.SECOND); LOG.debug("transaction message: " + transactionMessage); return transactionMessage; }
From source file:io.cloudslang.schema.context.ScoreDatabaseContext.java
@Bean Properties jpaProperties() {//ww w . java 2s. com Properties props = new Properties(); props.setProperty("hibernate.format_sql", Boolean.TRUE.toString()); props.setProperty("hibernate.hbm2ddl.auto", System.getProperty("hibernate.hbm2ddl.auto", "validate")); props.setProperty("hibernate.cache.use_query_cache", Boolean.FALSE.toString()); props.setProperty("hibernate.generate_statistics", Boolean.FALSE.toString()); props.setProperty("hibernate.cache.use_second_level_cache", Boolean.FALSE.toString()); props.setProperty("hibernate.order_updates", Boolean.TRUE.toString()); props.setProperty("hibernate.order_inserts", Boolean.TRUE.toString()); props.setProperty("hibernate.dialect_resolvers", "io.cloudslang.engine.dialects.ScoreDialectResolver"); return props; }
From source file:gov.nih.nci.integration.caaers.invoker.CaAERSServiceInvocationStrategyFactory.java
private static synchronized void init(final String[] caaersLibLocation, final String... caaersConfig) { final ExecutorCompletionService<Boolean> ecs = new ExecutorCompletionService<Boolean>( Executors.newSingleThreadExecutor()); ecs.submit(new Callable<Boolean>() { @Override//from w w w . j ava 2s . c om public Boolean call() throws MalformedURLException, BeansException { final CustomClasspathXmlApplicationContext ctx = new CustomClasspathXmlApplicationContext( caaersLibLocation, caaersConfig); caaersRegistrationServiceInvocationStrategy = (ServiceInvocationStrategy) ctx .getBean("caAersRegistrationServiceInvocationStrategy"); caaersUpdateRegistrationServiceInvocationStrategy = (ServiceInvocationStrategy) ctx .getBean("caAersUpdateRegistrationServiceInvocationStrategy"); caaersAdverseEventServiceInvocationStrategy = (ServiceInvocationStrategy) ctx .getBean("caAersAdverseEventServiceInvocationStrategy"); return Boolean.TRUE; } }); try { initStatus = ecs.take().get(); // CHECKSTYLE:OFF } catch (Exception e) { // NOPMD LOG.error("CaAERSServiceInvocationStrategyFactory.Exception inside init(). ", e); initStatus = Boolean.FALSE; } }
From source file:com.mycompany.projetsportmanager.spring.configuration.DefaultProfileConfiguration.java
/** * Returns the Generate DDL flag. * @return the Generate DDL flag. */ @Bean public Boolean generateDdl() { return Boolean.FALSE; }
From source file:com.tapas.evidence.repository.ResponsiblePersonRepositoryImpl.java
@Override @SuppressWarnings("unchecked") public List<ResponsiblePerson> findAll() { final Long tenantId = ((EvidenceUserDetails) SecurityContextHolder.getContext().getAuthentication() .getPrincipal()).getTenantId(); Query query = this.entityManager.createNamedQuery(ResponsiblePerson.QUERY_NAME_FIND_ALL_BY_DELETED_FLAG); query.setParameter("deleted", Boolean.FALSE); query.setParameter("tenantId", tenantId); return query.getResultList(); }
From source file:org.wte4j.examples.showcase.server.config.DatabaseConfig.java
@Bean public HsqlServerBean hsqlServer() { boolean overwrite = env.getProperty(RESET_DATABSE_ENV_PROPERTY, Boolean.class, Boolean.FALSE); File directory = env.getProperty(DATABASE_DIRECTORY_ENV_PROPERTY, File.class, DEFAULT_DATABASE_DIRECTORY); ShowCaseDbInitializer dbInitializer = new ShowCaseDbInitializer(resourceloader); return dbInitializer.createDatabase(directory.toPath(), overwrite); }