List of usage examples for org.apache.commons.lang StringUtils equals
public static boolean equals(String str1, String str2)
Compares two Strings, returning true
if they are equal.
From source file:gov.nih.nci.cabig.caaers.domain.dto.TermDTO.java
public boolean isSame(TermDTO other) { return StringUtils.equals(this.code, other.code) && StringUtils.equals(this.otherSpecify, other.otherSpecify); }
From source file:com.alibaba.cobar.client.router.rules.ibatis.IBatisSqlActionRule.java
public boolean isDefinedAt(IBatisRoutingFact routeFact) { Validate.notNull(routeFact); return StringUtils.equals(getTypePattern(), routeFact.getAction()); }
From source file:edu.cornell.mannlib.vitro.webapp.search.documentBuilding.ExcludeNonFlagVitro.java
@Override public String checkForExclusion(Individual ind) { if (ind == null) { return DONT_EXCLUDE; }/*from w w w .j a va 2 s . c om*/ List<String> mostSpecificTypeUris = ind.getMostSpecificTypeURIs(); if (mostSpecificTypeUris == null) { return DONT_EXCLUDE; } String message = skipIfVitro(ind, mostSpecificTypeUris); if (!StringUtils.equals(DONT_EXCLUDE, message)) { log.debug("msg=" + message + ", individual=" + ind.getURI() + " (" + ind.getLabel() + "), types=" + mostSpecificTypeUris); } return message; }
From source file:com.meidusa.amoeba.mongodb.packet.CursorEntry.java
public boolean equals(Object object) { if (object instanceof CursorEntry) { CursorEntry entry = (CursorEntry) object; return (cursorID == entry.cursorID) && (StringUtils.equals(fullCollectionName, entry.fullCollectionName)); }//from w ww . j av a 2s. co m return false; }
From source file:de.dominikschadow.myths.CSRFTokenHandler.java
public static boolean isValid(HttpServletRequest request) throws ServletException, NoSuchAlgorithmException, NoSuchProviderException { if (request.getSession(false) == null) { throw new ServletException(MISSING_SESSION); }/*ww w .j av a 2 s .co m*/ return StringUtils.equals(getToken(request.getSession(false)), request.getParameter(CSRF_TOKEN)); }
From source file:com.inkubator.hrm.web.workingtime.MedicalCareDetailController.java
@PostConstruct @Override/*from ww w . j av a2s . c om*/ public void initialization() { try { super.initialization(); String execution = FacesUtil.getRequestParameter("execution"); String param = execution.substring(0, 1); if (StringUtils.equals(param, "e")) { /* parameter (id) ini datangnya dari leave implementation View */ selectedMedicalCare = medicalCareService .getEntityWithDetail(Long.parseLong(execution.substring(1))); } } catch (Exception ex) { LOGGER.error("Error", ex); } }
From source file:fi.helsinki.opintoni.web.rest.privateapi.portfolio.keyword.Keyword.java
@Override public boolean equals(Object o) { if (this == o) { return true; }/* w w w . j a v a2s .c o m*/ if (o == null || getClass() != o.getClass()) { return false; } Keyword that = (Keyword) o; return StringUtils.equals(title, that.title); }
From source file:io.udvi.amqp.mq.transport.endpoint.HeaderPropertiesImpl.java
static HeaderPropertiesImpl decode(CAMQPSyncDecoder decoder) { String symbolRead = decoder.readSymbol(); assert (StringUtils.equals(symbolRead, CAMQPDefinitionHeader.descriptor)); CAMQPDefinitionHeader header = CAMQPDefinitionHeader.decode(decoder); return new HeaderPropertiesImpl(header); }
From source file:de.thischwa.pmcms.model.domain.pojo.Template.java
public boolean isLayoutTemplate() { return StringUtils.equals(LAYOUT, getName()); }
From source file:com.lingxiang2014.controller.admin.ProfileController.java
@RequestMapping(value = "/check_current_password", method = RequestMethod.GET) public @ResponseBody boolean checkCurrentPassword(String currentPassword) { if (StringUtils.isEmpty(currentPassword)) { return false; }//from w w w .j a va2 s . c om Admin admin = adminService.getCurrent(); if (StringUtils.equals(DigestUtils.md5Hex(currentPassword), admin.getPassword())) { return true; } else { return false; } }