List of usage examples for java.lang Boolean TRUE
Boolean TRUE
To view the source code for java.lang Boolean TRUE.
Click Source Link
From source file:com.tamnd.app.jpa.AccountJPATest.java
@Before public void setUp() { account = new Account(); account.setUserName("tamnd2"); account.setPassword("123456"); account.setEnable(Boolean.TRUE); Set<AccountRole> roles = new HashSet(0); roles.add(new AccountRole(account, "USER")); account.setUserRole(roles);/* www . java 2s . c o m*/ repo.createAccount(account); }
From source file:edu.emory.cci.aiw.i2b2etl.dest.metadata.conceptid.PropDefConceptId.java
/** * Returns a concept propId with the given proposition propId, property name and value.// ww w . j a va 2s .co m * * @param propId a proposition propId {@link String}. Cannot be * <code>null</code>. * @param propertyName a property name {@link String}. * @param value a {@link Value}. * @return a {@link PropDefConceptId}. */ public static PropDefConceptId getInstance(String propId, String propertyName, Value value, Metadata metadata) { List<Object> key = new ArrayList<>(4); key.add(propId); key.add(propertyName); key.add(value); key.add(Boolean.TRUE); //distinguishes these from properties represented as a modifier. PropDefConceptId conceptId = (PropDefConceptId) metadata.getFromConceptIdCache(key); if (conceptId == null) { conceptId = new PropDefConceptId(propId, propertyName, value, metadata); metadata.putInConceptIdCache(key, conceptId); } return conceptId; }
From source file:be.bittich.quote.service.impl.QuoteServiceImplTest.java
protected static Quote createQuote(Author author, User user) { Quote q1 = new Quote(); q1.setContent("izi izi"); q1.setCreatedDate(new Date()); q1.setIdauthor(author);/* w w w . j a v a 2s . c om*/ q1.setIduser(user); q1.setVisible(Boolean.TRUE); return q1; }
From source file:com.ankang.report.config.ReportConfig.java
public static void loadReportConfig(String classPath) { if ((null == classPath || REPORT.equals(classPath)) && !isLoad) { classPath = REPORT;/*w w w .j a v a2 s. com*/ isLoad = Boolean.TRUE; } logger.info("load properties " + classPath); ClassPathResource cp = new ClassPathResource(classPath); try { if (cp.exists()) { ps.load(cp.getInputStream()); convertMap((Map) ps); ps.clear(); } } catch (IOException e) { throw new ReportException("File read exception file.[%s]", classPath); } }
From source file:com.acc.storefront.filters.AnonymousCheckoutFilter.java
@Override protected void doFilterInternal(final HttpServletRequest request, final HttpServletResponse response, final FilterChain filterChain) throws ServletException, IOException { if (!request.isSecure() && Boolean.TRUE.equals(getSessionService().getAttribute(WebConstants.ANONYMOUS_CHECKOUT)) && getCheckoutCustomerStrategy().isAnonymousCheckout()) { final CartModel cartModel = getCartService().getSessionCart(); cartModel.setDeliveryAddress(null); cartModel.setDeliveryMode(null); cartModel.setPaymentInfo(null);/*ww w .ja va 2s . c o m*/ getCartService().saveOrder(cartModel); getSessionService().removeAttribute(WebConstants.ANONYMOUS_CHECKOUT); getSessionService().removeAttribute(WebConstants.ANONYMOUS_CHECKOUT_GUID); } filterChain.doFilter(request, response); }
From source file:com.springsource.greenhouse.connect.TwitterConnectInterceptor.java
public void preConnect(ConnectionFactory<Twitter> connectionFactory, MultiValueMap<String, String> params, WebRequest request) {//from ww w. jav a 2 s . c o m if (StringUtils.hasText(request.getParameter(POST_TWEET_PARAMETER))) { request.setAttribute(POST_TWEET_ATTRIBUTE, Boolean.TRUE, WebRequest.SCOPE_SESSION); } }
From source file:edu.scripps.fl.hibernate.BooleanListStringType.java
public String getStringFromList(List<Boolean> ids) { if (null == ids) return null; StringBuffer sb = new StringBuffer(); for (Boolean bool : ids) { if (bool == null) sb.append(' '); else if (Boolean.TRUE.equals(bool)) sb.append('1'); else//ww w .j av a 2s.c o m sb.append('0'); } return sb.toString(); }
From source file:httpRequests.GetPost.java
public void ResetAPIIndex() { apiIndex = 0; for (int i = 0; i < currentAvailability.size(); i++) currentAvailability.set(i, Boolean.TRUE); }
From source file:fr.aliasource.webmail.server.proxy.client.http.DispositionNotificationMethod.java
public void sendDispositionNotification(MessageId messageId, String folderName) { Map<String, String> params = new HashMap<String, String>(); params.put("token", token); params.put("accept", Boolean.TRUE.toString()); params.put("folder", folderName); params.put("messageId", String.valueOf(messageId.getMessageId())); executeVoid(params);/*ww w.ja v a 2 s. c om*/ }
From source file:org.jasig.cas.event.advice.AuthenticationHandlerMethodInterceptorTests.java
public void testAuthenticationEventWithBooleanTrue() throws Throwable { this.advice.invoke(new BooleanMethodInvocation(Boolean.TRUE)); assertNotNull(this.event); assertTrue(this.event.isSuccessfulAuthentication()); }