本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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;
}
}
示例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;
}
}
示例7: getTemplate
import org.kuali.rice.kim.api.common.template.Template; //导入方法依赖的package包/类
@Override
public Template.Builder getTemplate() {
return template;
}