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


Java Template.Builder方法代码示例

本文整理汇总了Java中org.kuali.rice.kim.api.common.template.Template.Builder方法的典型用法代码示例。如果您正苦于以下问题:Java Template.Builder方法的具体用法?Java Template.Builder怎么用?Java Template.Builder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.kuali.rice.kim.api.common.template.Template的用法示例。


在下文中一共展示了Template.Builder方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: findPermissionTemplates

import org.kuali.rice.kim.api.common.template.Template; //导入方法依赖的package包/类
@Override
public TemplateQueryResults findPermissionTemplates(final QueryByCriteria queryByCriteria)
        throws RiceIllegalArgumentException {
    incomingParamCheck(queryByCriteria, "queryByCriteria");

    QueryResults<PermissionTemplateBo> results = dataObjectService.findMatching(PermissionTemplateBo.class, queryByCriteria);

    TemplateQueryResults.Builder builder = TemplateQueryResults.Builder.create();
    builder.setMoreResultsAvailable(results.isMoreResultsAvailable());
    builder.setTotalRowCount(results.getTotalRowCount());

    final List<Template.Builder> ims = new ArrayList<Template.Builder>();
    for (PermissionTemplateBo bo : results.getResults()) {
        ims.add(Template.Builder.create(bo));
    }

    builder.setResults(ims);
    return builder.build();
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:20,代码来源:PermissionServiceImpl.java

示例2: findResponsibilityTemplates

import org.kuali.rice.kim.api.common.template.Template; //导入方法依赖的package包/类
@Override
public TemplateQueryResults findResponsibilityTemplates(final QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException {
    incomingParamCheck(queryByCriteria, "queryByCriteria");

    QueryResults<ResponsibilityTemplateBo> results = getDataObjectService().
            findMatching(ResponsibilityTemplateBo.class, queryByCriteria);

    TemplateQueryResults.Builder builder = TemplateQueryResults.Builder.create();
    builder.setMoreResultsAvailable(results.isMoreResultsAvailable());
    builder.setTotalRowCount(results.getTotalRowCount());

    final List<Template.Builder> ims = new ArrayList<Template.Builder>();
    for (ResponsibilityTemplateBo bo : results.getResults()) {
        ims.add(Template.Builder.create(bo));
    }

    builder.setResults(ims);
    return builder.build();
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:20,代码来源:ResponsibilityServiceImpl.java

示例3: findPermissionTemplates

import org.kuali.rice.kim.api.common.template.Template; //导入方法依赖的package包/类
@Override
public TemplateQueryResults findPermissionTemplates(final QueryByCriteria queryByCriteria)
        throws RiceIllegalArgumentException {
    incomingParamCheck(queryByCriteria, "queryByCriteria");

    GenericQueryResults<PermissionTemplateBo> results = criteriaLookupService.lookup(PermissionTemplateBo.class, queryByCriteria);

    TemplateQueryResults.Builder builder = TemplateQueryResults.Builder.create();
    builder.setMoreResultsAvailable(results.isMoreResultsAvailable());
    builder.setTotalRowCount(results.getTotalRowCount());

    final List<Template.Builder> ims = new ArrayList<Template.Builder>();
    for (PermissionTemplateBo bo : results.getResults()) {
        ims.add(Template.Builder.create(bo));
    }

    builder.setResults(ims);
    return builder.build();
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:20,代码来源:PermissionServiceImpl.java

示例4: findResponsibilityTemplates

import org.kuali.rice.kim.api.common.template.Template; //导入方法依赖的package包/类
@Override
public TemplateQueryResults findResponsibilityTemplates(final QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException {
    incomingParamCheck(queryByCriteria, "queryByCriteria");

    GenericQueryResults<ResponsibilityTemplateBo> results = criteriaLookupService.lookup(ResponsibilityTemplateBo.class, queryByCriteria);

    TemplateQueryResults.Builder builder = TemplateQueryResults.Builder.create();
    builder.setMoreResultsAvailable(results.isMoreResultsAvailable());
    builder.setTotalRowCount(results.getTotalRowCount());

    final List<Template.Builder> ims = new ArrayList<Template.Builder>();
    for (ResponsibilityTemplateBo bo : results.getResults()) {
        ims.add(Template.Builder.create(bo));
    }

    builder.setResults(ims);
    return builder.build();
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:19,代码来源:ResponsibilityServiceImpl.java

示例5: setTemplate

import org.kuali.rice.kim.api.common.template.Template; //导入方法依赖的package包/类
public void setTemplate(final Template.Builder template) {
	if (template == null) {
              throw new IllegalArgumentException("template is null");
          }
          if (StringUtils.isNotBlank(template.getName())
                  && StringUtils.isNotBlank(template.getNamespaceCode())) {
	    this.template = template;
          } else {
              this.template = null;
          }
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:12,代码来源:Permission.java

示例6: setTemplate

import org.kuali.rice.kim.api.common.template.Template; //导入方法依赖的package包/类
public void setTemplate(final Template.Builder template) {
	if (template == null) {
              throw new IllegalArgumentException("template is null");
          }
          if (StringUtils.isNotBlank(template.getName())
                  && StringUtils.isNotBlank(template.getNamespaceCode())) {
	    this.template = template;
          } else {
              this.template = null;
          }

}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:13,代码来源:Responsibility.java

示例7: getTemplate

import org.kuali.rice.kim.api.common.template.Template; //导入方法依赖的package包/类
@Override
public Template.Builder getTemplate() {
	return template;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:5,代码来源:Permission.java


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