当前位置: 首页>>代码示例>>Java>>正文


Java ToStringStyle类代码示例

本文整理汇总了Java中org.apache.commons.lang3.builder.ToStringStyle的典型用法代码示例。如果您正苦于以下问题:Java ToStringStyle类的具体用法?Java ToStringStyle怎么用?Java ToStringStyle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ToStringStyle类属于org.apache.commons.lang3.builder包,在下文中一共展示了ToStringStyle类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: toString

import org.apache.commons.lang3.builder.ToStringStyle; //导入依赖的package包/类
@Override
public String toString() {
    final ToStringBuilder toStringBuilder = new ToStringBuilder(null, ToStringStyle.SHORT_PREFIX_STYLE);
    toStringBuilder.append("id", this.id);
    toStringBuilder.append("name", this.name);
    toStringBuilder.append("description", this.description);
    toStringBuilder.append("serviceId", this.serviceId);
    toStringBuilder.append("usernameAttributeProvider", this.usernameAttributeProvider);
    toStringBuilder.append("theme", this.theme);
    toStringBuilder.append("evaluationOrder", this.evaluationOrder);
    toStringBuilder.append("logoutType", this.logoutType);
    toStringBuilder.append("attributeReleasePolicy", this.attributeReleasePolicy);
    toStringBuilder.append("accessStrategy", this.accessStrategy);
    toStringBuilder.append("publicKey", this.publicKey);
    toStringBuilder.append("proxyPolicy", this.proxyPolicy);
    toStringBuilder.append("logo", this.logo);
    toStringBuilder.append("logoutUrl", this.logoutUrl);
    toStringBuilder.append("requiredHandlers", this.requiredHandlers);
    toStringBuilder.append("properties", this.properties);

    return toStringBuilder.toString();
}
 
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:23,代码来源:AbstractRegisteredService.java

示例2: doGetAuthenticationInfo

import org.apache.commons.lang3.builder.ToStringStyle; //导入依赖的package包/类
@Override
	protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken authenticationToken) throws AuthenticationException {
		//UsernamePasswordToken对象用来存放提交的登录信息
        UsernamePasswordToken token=(UsernamePasswordToken) authenticationToken;

        log.info("验证当前Subject时获取到token为:" + ReflectionToStringBuilder.toString(token, ToStringStyle.MULTI_LINE_STYLE)); 
//        return new SimpleAuthenticationInfo("hsjhsj","8e24137dee97c9bbddb9a0cd6e043be4" , getName());
        return new SimpleAuthenticationInfo("hsjhsj","" , getName());
        //查出是否有此用户
//        TbUser user=null;
//        if(user!=null){
            // 若存在,将此用户存放到登录认证info中,无需自己做密码对比,Shiro会为我们进行密码对比校验
//            return new SimpleAuthenticationInfo(user.getUsername(), , getName());
//        }
//        return null;
	}
 
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:17,代码来源:ShiroRealm.java

示例3: toString

import org.apache.commons.lang3.builder.ToStringStyle; //导入依赖的package包/类
/**
 * toString produces a human readable representation of the WsFederationCredential.
 *
 * @return a human readable representation of the WsFederationCredential
 */
@Override
public String toString() {

    return new ToStringBuilder(this, ToStringStyle.NO_CLASS_NAME_STYLE)
            .append("ID", this.id)
            .append("Issuer", this.issuer)
            .append("Audience", this.audience)
            .append("Authentication Method", this.authenticationMethod)
            .append("Issued On", this.issuedOn)
            .append("Valid After", this.notBefore)
            .append("Valid Before", this.notOnOrAfter)
            .append("Attributes", this.attributes)
            .build();

}
 
开发者ID:mrluo735,项目名称:cas-5.1.0,代码行数:21,代码来源:WsFederationCredential.java

示例4: toString

import org.apache.commons.lang3.builder.ToStringStyle; //导入依赖的package包/类
@Override
public String toString() {
    final ToStringBuilder toStringBuilder = new ToStringBuilder(null, ToStringStyle.SHORT_PREFIX_STYLE);
    toStringBuilder.append("id", this.id);
    toStringBuilder.append("name", this.name);
    toStringBuilder.append("description", this.description);
    toStringBuilder.append("serviceId", this.serviceId);
    toStringBuilder.append("usernameAttributeProvider", this.usernameAttributeProvider);
    toStringBuilder.append("theme", this.theme);
    toStringBuilder.append("evaluationOrder", this.evaluationOrder);
    toStringBuilder.append("logoutType", this.logoutType);
    toStringBuilder.append("attributeReleasePolicy", this.attributeReleasePolicy);
    toStringBuilder.append("accessStrategy", this.accessStrategy);
    toStringBuilder.append("publicKey", this.publicKey);
    toStringBuilder.append("proxyPolicy", this.proxyPolicy);
    toStringBuilder.append("logo", this.logo);
    toStringBuilder.append("logoutUrl", this.logoutUrl);
    toStringBuilder.append("requiredHandlers", this.requiredHandlers);
    toStringBuilder.append("properties", this.properties);
    toStringBuilder.append("multifactorPolicy", this.multifactorPolicy);
    toStringBuilder.append("informationUrl", this.informationUrl);
    toStringBuilder.append("privacyUrl", this.privacyUrl);
    return toStringBuilder.toString();
}
 
开发者ID:mrluo735,项目名称:cas-5.1.0,代码行数:25,代码来源:AbstractRegisteredService.java

示例5: toString

import org.apache.commons.lang3.builder.ToStringStyle; //导入依赖的package包/类
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("compareSubject", getCompareSubject())
            .append("fieldName", this.fieldName)
            .append("leftVal", this.leftVal)
            .append("rightVal", this.rightVal)
            .append("leftObjectDetail", this.left)
            .append("rightObjectDetail", this.right)
            .toString();
}
 
开发者ID:goldmansachs,项目名称:obevo,代码行数:12,代码来源:FieldCompareBreak.java

示例6: toString

import org.apache.commons.lang3.builder.ToStringStyle; //导入依赖的package包/类
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE)
            .appendSuper(super.toString())
            .append("file", file)
            .toString();
}
 
开发者ID:mrluo735,项目名称:cas-5.1.0,代码行数:8,代码来源:CasConfigurationDeletedEvent.java

示例7: doBatch

import org.apache.commons.lang3.builder.ToStringStyle; //导入依赖的package包/类
@Override
public int[] doBatch(final SqlContext sqlContext, final PreparedStatement preparedStatement, final int[] result) {
	String userName = getParam(sqlContext, USER_NAME_KEY);
	if (userName == null) {
		// ユーザ名が設定されていない時
		userName = DEFAULT_USER_NAME;
	}

	String funcId = getParam(sqlContext, FUNC_ID_KEY);
	if (funcId == null) {
		// 機能IDが設定されていない時
		funcId = DEFAULT_FUNC_ID;
	}
	int rowCount = -1;
	if (LOG.isDebugEnabled()) {
		try {
			rowCount = preparedStatement.getUpdateCount();
		} catch (SQLException ex) {
			// ここでの例外は実処理に影響を及ぼさないよう握りつぶす
		}
	}
	LOG.debug(ToStringBuilder.reflectionToString(
			new AuditData(userName, funcId, sqlContext.getSqlId(), sqlContext.getSqlName(), sqlContext
					.getExecutableSql(), rowCount), ToStringStyle.JSON_STYLE));

	return result;
}
 
开发者ID:future-architect,项目名称:uroborosql,代码行数:28,代码来源:AuditLogSqlFilter.java

示例8: toString

import org.apache.commons.lang3.builder.ToStringStyle; //导入依赖的package包/类
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .appendSuper(super.toString())
            .append("crdtId", getCrdtId())
            .append("element", element)
            .toString();
}
 
开发者ID:netopyr,项目名称:wurmloch-crdt,代码行数:9,代码来源:USet.java

示例9: modelBaseRecordClassGenerated

import org.apache.commons.lang3.builder.ToStringStyle; //导入依赖的package包/类
@Override
public boolean modelBaseRecordClassGenerated(TopLevelClass topLevelClass, IntrospectedTable introspectedTable) {
    Method method = new Method("toString");
    method.setReturnType(new FullyQualifiedJavaType(String.class.getCanonicalName()));
    method.setVisibility(JavaVisibility.PUBLIC);
    method.addAnnotation("@Override");
    method.addBodyLine("return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);");
    topLevelClass.addImportedType(new FullyQualifiedJavaType(ToStringBuilder.class.getCanonicalName()));
    topLevelClass.addImportedType(new FullyQualifiedJavaType(ToStringStyle.class.getCanonicalName()));
    topLevelClass.addMethod(method);
    return topLevelClassComment(topLevelClass, introspectedTable, true);
}
 
开发者ID:yinheli,项目名称:mybatis-generator-tool,代码行数:13,代码来源:CommentPlugin.java

示例10: toString

import org.apache.commons.lang3.builder.ToStringStyle; //导入依赖的package包/类
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("id", id)
            .append("sequence", sequence)
            .append("time", time)
            .append("origin", origin)
            .append("information", information)
            .toString();
}
 
开发者ID:psd2-in-a-box,项目名称:mid-tier,代码行数:11,代码来源:Event.java

示例11: toString

import org.apache.commons.lang3.builder.ToStringStyle; //导入依赖的package包/类
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("objectCompareBreakSide", objectCompareBreakSide)
            .append("compareSubject", getCompareSubject())
            .toString();
}
 
开发者ID:goldmansachs,项目名称:obevo,代码行数:8,代码来源:ObjectCompareBreak.java

示例12: toString

import org.apache.commons.lang3.builder.ToStringStyle; //导入依赖的package包/类
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("name", name)
            .append("schema", schema)
            .toString();
}
 
开发者ID:goldmansachs,项目名称:obevo,代码行数:8,代码来源:DaPackagePojoImpl.java

示例13: toString

import org.apache.commons.lang3.builder.ToStringStyle; //导入依赖的package包/类
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("dn", dn)
            .append("userName", userName)
            .append("fullName", fullName)
            .append("email", email)
            .toString();
}
 
开发者ID:klenkes74,项目名称:openshift-ldapsync,代码行数:10,代码来源:User.java

示例14: toString

import org.apache.commons.lang3.builder.ToStringStyle; //导入依赖的package包/类
@Override
public String toString() {
	return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE).
       append("email", email).
       append("timestamp", timestamp).
       append("token", token).
       toString();
}
 
开发者ID:xtianus,项目名称:yadaframework,代码行数:9,代码来源:YadaRegistrationRequest.java

示例15: toString

import org.apache.commons.lang3.builder.ToStringStyle; //导入依赖的package包/类
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("firstName", firstName)
            .append("lastName", lastName)
            .toString();
}
 
开发者ID:sbouclier,项目名称:java-rest-books,代码行数:8,代码来源:Author.java


注:本文中的org.apache.commons.lang3.builder.ToStringStyle类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。