Example usage for java.lang Boolean TRUE

List of usage examples for java.lang Boolean TRUE

Introduction

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

Prototype

Boolean TRUE

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

Click Source Link

Document

The Boolean object corresponding to the primitive value true .

Usage

From source file:interactivespaces.expression.OgnlFilterExpression.java

@Override
public boolean accept(Object object) {
    try {/*from w  w w .  j  a v  a 2s .c  om*/
        Boolean value = Ognl.getValue(expression, context, object);
        return Boolean.TRUE.equals(value);
    } catch (OgnlException e) {
        throw new InteractiveSpacesException(String.format("Could not evaluate expression %s", expression), e);
    }
}

From source file:com.dssmp.agent.config.AgentOptions.java

public static AgentOptions parse(String[] args) {
    AgentOptions opts = new AgentOptions();
    JCommander jc = new JCommander(opts);
    jc.setProgramName("agent");
    try {//from  w ww . j av a2s . c  om
        jc.parse(args);
    } catch (ParameterException e) {
        System.err.println(e.getMessage());
        jc.usage();
        System.exit(1);
    }
    if (Boolean.TRUE.equals(opts.help)) {
        jc.usage();
        System.exit(0);
    }
    return opts;
}

From source file:com.tacticlogistics.crm.model.bo.ClientesBO.java

public List<Clientes> getListClientesActivos() throws Exception {
    List<HibernateOrder> conditionOrderList = new LinkedList<>();
    HibernateOrder hibernateOrder = new HibernateOrder("codigo", HibernateOrderEnum.ASC);
    conditionOrderList.add(hibernateOrder);

    Clientes object = new Clientes();
    object.setActivo(Boolean.TRUE);

    List<Clientes> list = dao.getRQLList(object, conditionOrderList);
    return list;// w w  w  .  j  a v a 2s.c o m
}

From source file:org.malaguna.cmdit.service.commands.usrmgt.ActiveUser.java

@Override
public Command runCommand() throws Exception {
    object = getUserDao().findById(object.getPid());
    object.setActive(Boolean.TRUE);
    getUserDao().persist(object);//from  ww  w. j  a  v  a  2 s  .  co  m

    createLogComment("user.active.log", object);

    return this;
}

From source file:io.github.albertopires.mjc.JConsoleM.java

private static ServerConfiguration obterConfiguracaoWildfly(String host) {
    ServerConfiguration serverConfiguration = new ServerConfiguration();
    serverConfiguration.setHost(host);//  ww  w . j  a  v a 2  s  . com
    serverConfiguration.setPort("9995");
    serverConfiguration.setUser("jconsole");
    serverConfiguration.setPassword("*100SvnGit");
    serverConfiguration.setAuthenticate(Boolean.TRUE);
    serverConfiguration.setJdkVersion(JdkVersion.JDK8);
    return serverConfiguration;
}

From source file:com.googlecode.psiprobe.controllers.apps.ListAppInitParamsController.java

protected ModelAndView handleContext(String contextName, Context context, HttpServletRequest request,
        HttpServletResponse response) throws Exception {
    ModelAndView mv = new ModelAndView(getViewName(), "appInitParams",
            ApplicationUtils.getApplicationInitParams(context, getContainerWrapper()));
    if (SecurityUtils.hasAttributeValueRole(getServletContext(), request)) {
        mv.addObject("allowedToViewValues", Boolean.TRUE);
    }/*  w ww  .jav a  2s.  c om*/

    return mv;
}

From source file:com.zaubersoftware.mule.module.jenkins.config.JenkinsNamespaceHandlerTestCase.java

public void testExistsFlow() throws Exception {
    String payload = "test-project";
    MuleEvent event = getTestEvent(payload);
    SimpleFlowConstruct flow = lookupFlowConstruct("exists");

    MuleEvent responseEvent = flow.process(event);

    assertEquals(Boolean.TRUE, responseEvent.getMessage().getPayload(Boolean.class));
}

From source file:be.ugent.maf.cellmissy.gui.view.renderer.jfreechart.DirectionAutocorrelationLineAndShapeRenderer.java

@Override
public Boolean getSeriesLinesVisible(int series) {
    if (series == 0) {
        return Boolean.TRUE;
    }//from  w  w  w. j  av a 2s . c o  m
    return Boolean.FALSE;
}

From source file:com.kdubb.socialshowcaseboot.facebook.PostToWallAfterConnectInterceptor.java

public void preConnect(ConnectionFactory<Facebook> connectionFactory, MultiValueMap<String, String> parameters,
        WebRequest request) {/*  www . j ava  2 s  .  co m*/
    if (StringUtils.hasText(request.getParameter(POST_TO_WALL_PARAMETER))) {
        request.setAttribute(POST_TO_WALL_ATTRIBUTE, Boolean.TRUE, WebRequest.SCOPE_SESSION);
    }
}

From source file:com.googlecode.psiprobe.controllers.apps.ListAppAttributesController.java

protected ModelAndView handleContext(String contextName, Context context, HttpServletRequest request,
        HttpServletResponse response) throws Exception {
    List appAttrs = ApplicationUtils.getApplicationAttributes(context);
    ModelAndView mv = new ModelAndView(getViewName(), "appAttributes", appAttrs);

    if (SecurityUtils.hasAttributeValueRole(getServletContext(), request)) {
        mv.addObject("displayValues", Boolean.TRUE);
    }//from   w  w w .  j a v a2  s .  co  m
    return mv;
}