Example usage for org.apache.commons.lang3 StringUtils equalsIgnoreCase

List of usage examples for org.apache.commons.lang3 StringUtils equalsIgnoreCase

Introduction

In this page you can find the example usage for org.apache.commons.lang3 StringUtils equalsIgnoreCase.

Prototype

public static boolean equalsIgnoreCase(final CharSequence str1, final CharSequence str2) 

Source Link

Document

Compares two CharSequences, returning true if they represent equal sequences of characters, ignoring case.

null s are handled without exceptions.

Usage

From source file:com.inkubator.hrm.web.search.EmpRotasiSearchParameter.java

public String getJabatanBaru() {
    if (StringUtils.equalsIgnoreCase(getKeyParam(), "jabatanBaru")) {
        jabatanBaru = getParameter();//from  ww w .  j a v  a  2s . c  om
    } else {
        jabatanBaru = null;
    }
    return jabatanBaru;
}

From source file:com.inkubator.hrm.web.search.WtFingerExceptionSearchParameter.java

public String getCodeJabatan() {
    if (StringUtils.equalsIgnoreCase(getKeyParam(), "codeJabatan")) {
        codeJabatan = getParameter();//from ww  w  .ja v  a2 s. c  o  m
    } else {
        codeJabatan = null;
    }
    return codeJabatan;
}

From source file:com.xpn.xwiki.user.api.XWikiRightService.java

/**
 * @param userReference the user reference
 * @return true if the passed reference belong to superadmin
 * @since 9.2RC1/*from ww w.  j  a va 2  s.c  o  m*/
 */
static boolean isGuest(EntityReference userReference) {
    return userReference != null
            && StringUtils.equalsIgnoreCase(userReference.getName(), XWikiRightService.GUEST_USER);
}

From source file:com.inkubator.hrm.web.search.EmpDataSearchParameter.java

public String getJabatanKode() {
    if (StringUtils.equalsIgnoreCase(getKeyParam(), "jabatanKode")) {
        jabatanKode = getParameter();//from ww  w .  j a  va 2 s. c om
    } else {
        jabatanKode = null;
    }
    return jabatanKode;
}

From source file:com.inkubator.hrm.web.search.ApprovalDefinitionSearchParameter.java

public String getProcessName() {
    if (StringUtils.equalsIgnoreCase(getKeyParam(), "processName")) {
        processName = getParameter();//from ww  w.  j  a  va  2 s.  c  o m
    } else {
        processName = null;
    }
    return processName;
}

From source file:com.github.lburgazzoli.examples.karaf.hz.cmd.HazelcastListCommand.java

@Override
public void execute() throws Exception {
    if (StringUtils.isNotBlank(arg)) {
        if (StringUtils.equalsIgnoreCase(HazelcastCommandConstants.LIST_MEMBERS, arg)) {
            doExecuteMemberList(getService().getInstance());
        } else if (StringUtils.equalsIgnoreCase(HazelcastCommandConstants.LIST_OBJECTS, arg)) {
            doExecuteDistributedObjectList(getService().getInstance());
        } else if (StringUtils.equalsIgnoreCase(HazelcastCommandConstants.LIST_PARTITIONS, arg)) {
            doExecutePartitionList(getService().getInstance());
        }/*w w w.j  a v  a2  s.com*/
    }
}

From source file:com.inkubator.hrm.web.search.JabatanSearchParameter.java

public String getDepartementName() {
    if (StringUtils.equalsIgnoreCase(getKeyParam(), "departementName")) {
        departementName = getParameter();
    } else {//from w  w  w .j  av  a2  s .  c  o  m
        departementName = null;
    }

    return departementName;
}

From source file:com.mirth.connect.connectors.http.HttpConnectorServlet.java

@Override
public ConnectionTestResponse testConnection(String channelId, String channelName,
        HttpDispatcherProperties properties) {
    try {/*from w  w  w. java 2 s. c o  m*/
        URL url = new URL(replacer.replaceValues(properties.getHost(), channelId, channelName));
        int port = url.getPort();
        // If no port was provided, default to port 80 or 443.
        return ConnectorUtil.testConnection(url.getHost(),
                (port == -1) ? (StringUtils.equalsIgnoreCase(url.getProtocol(), "https") ? 443 : 80) : port,
                TIMEOUT);
    } catch (Exception e) {
        throw new MirthApiException(e);
    }
}

From source file:ke.co.tawi.babblesms.server.utils.comparator.PhonesByNetworkPredicate.java

/**
 * @see org.apache.commons.collections.Predicate#evaluate(java.lang.Object)
 *//* www  .ja v a2  s  . c o m*/
@Override
public boolean evaluate(Object obj) {

    if (obj instanceof Phone) {
        Phone p = (Phone) obj;

        return StringUtils.equalsIgnoreCase(networkUuid, p.getNetworkuuid());
    }

    return false;
}

From source file:de.qaware.seu.as.code.plugins.credentials.ClearCredentialsTask.java

/**
 * Is executed from gradle when running the 'clearCredentials' task.
 *//*from   ww  w .j a  v a2s  .c o  m*/
@TaskAction
public void onAction() {
    String service = getService();
    if (StringUtils.isNotBlank(service)) {
        getConsole().format("%n");
        String answer = getConsole().readLine("Clear credentials for service %s (y/N)?", service);
        if (StringUtils.equalsIgnoreCase(answer, "y")) {
            getStorage().clearCredentials(service);
        }
    }
}