List of usage examples for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE
ToStringStyle SHORT_PREFIX_STYLE
To view the source code for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE.
Click Source Link
From source file:com.yougou.kaidian.user.service.impl.ApiKeyServiceImpl.java
@Transactional(rollbackFor = Exception.class) @Override//from ww w . jav a2s. co m public boolean generateApiKeyAndBandingAndAuthorize(String merchantCode, ApiKey apiKey) throws Exception { boolean flag = false; try { //1 ?appkey this.saveApiKey(apiKey); //2 appkey ApiKeyMetadata metadata = new ApiKeyMetadata(); metadata.setId(UUIDGenerator.getUUID()); metadata.setKeyId(apiKey.getId()); metadata.setMetadataKey("MERCHANTS"); metadata.setMetadataVal(merchantCode); this.bindingApiKeyToMerchant(metadata); //3 ?appkey List<ApiLicense> licenses = new ArrayList<ApiLicense>(); ApiLicense license = null; for (String apiId : UserConstant.APIIDS) { license = new ApiLicense(); license.setId(UUIDGenerator.getUUID()); license.setApiId(apiId); license.setKeyId(apiKey.getId()); license.setLicensed(new Date()); license.setLicensor(merchantCode); licenses.add(license); } this.authorizeApiKeyToMerchant(licenses); flag = true; } catch (Exception e) { logger.error("{}appkey{}?", new Object[] { merchantCode, ToStringBuilder.reflectionToString(apiKey, ToStringStyle.SHORT_PREFIX_STYLE), e }); throw new Exception("appkey??", e); } return flag; }
From source file:de.kaiserpfalzEdv.piracc.backend.auth.RoleQuery.java
@Override public String toString() { ToStringBuilder result = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); if (id != null) result.append("id", id); if (created != null) result.append("created", created); if (modified != null) result.append("modified", modified); if (isNotBlank(name)) result.append("name", name); if (isNotBlank(commonName)) result.append("commonName", commonName); return result.toString(); }
From source file:com.norconex.importer.handler.filter.impl.EmptyMetadataFilter.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).appendSuper(super.toString()) .append("fields", fields).toString(); }
From source file:com.norconex.collector.core.data.BaseCrawlData.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("reference", reference) .append("parentRootReference", parentRootReference) .append("isRootParentReference", isRootParentReference).append("state", state) .append("metaChecksum", metaChecksum).append("contentChecksum", contentChecksum).toString(); }
From source file:ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamCoords.java
@Override public String toString() { ToStringBuilder b = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); b.append("paramName", getParamName()); b.append("resourceId", getResource().getId()); // TODO: add a field so we don't need to resolve this b.append("lat", getLatitude()); b.append("lon", getLongitude()); return b.build(); }
From source file:com.comcast.viper.flume2storm.location.SimpleServiceProvider.java
/** * @see java.lang.Object#toString()//from w w w. jav a 2s. c om */ @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) .append("connectionParameters", connectionParameters).build(); }
From source file:de.kaiserpfalzEdv.office.core.license.impl.LicenseImpl.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append(issuer).append(software) .append(id).build();//from w w w .j av a 2 s . co m }
From source file:com.comcast.viper.flume2storm.event.F2SEvent.java
/** * @see java.lang.Object#toString()/*w w w. j av a 2s . com*/ */ @Override public String toString() { ToStringBuilder toStringBuilder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) .append("headers", headers); String bodyStr = StringUtils.toEncodedString(body, F2SEventFactory.DEFAULT_CHARACTER_SET); if (StringUtils.isAsciiPrintable(bodyStr)) { toStringBuilder.append("body", bodyStr); } else { toStringBuilder.append(Hex.encodeHexString(body)); } return toStringBuilder.toString(); }
From source file:com.norconex.collector.core.crawler.event.CrawlerEvent.java
@Override public String toString() { if (toString == null) { toString = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("crawlData", crawlData) .append("subject", subject).append("eventType", eventType).toString(); }/*from w w w . ja v a2s .c om*/ return toString; }
From source file:ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamToken.java
@Override public String toString() { ToStringBuilder b = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); b.append("paramName", getParamName()); b.append("resourceId", getResource().getId()); // TODO: add a field so we don't need to resolve this b.append("system", getSystem()); b.append("value", getValue()); return b.build(); }