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


Java KewAttributeDefinitionBo类代码示例

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


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

示例1: testKewTypeBoFullPersist

import org.kuali.rice.kew.impl.type.KewAttributeDefinitionBo; //导入依赖的package包/类
@Test
public void testKewTypeBoFullPersist() {
    KewTypeBoBuilder builder = new KewTypeBoBuilder("testType", "testNamespace").setServiceName("testService");
    KewTypeBo kewTypeBo = builder.build();

    for (int i=1; i<=3; i++) {
        KewAttributeDefinitionBo attributeDefn = new KewAttributeDefinitionBo();
        attributeDefn.setName("attrDef"+i);
        attributeDefn.setDescription("this is a description of attrDef" + i);
        attributeDefn.setComponentName("componentName" + i);
        attributeDefn.setLabel("label" + i);
        attributeDefn.setNamespace(kewTypeBo.getNamespace());

        attributeDefn = dataObjectService.save(attributeDefn);

        KewTypeAttributeBo typeAttribute = new KewTypeAttributeBo();
        typeAttribute.setSequenceNumber(i);
        typeAttribute.setAttributeDefinition(attributeDefn);
        kewTypeBo.getAttributes().add(typeAttribute);
        typeAttribute.setType(kewTypeBo);
    }

    dataObjectService.save(kewTypeBo);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:25,代码来源:PeopleFlowBoTest.java

示例2: testKewTypeBoFullPersist

import org.kuali.rice.kew.impl.type.KewAttributeDefinitionBo; //导入依赖的package包/类
@Test
public void testKewTypeBoFullPersist() {
    KewTypeBoBuilder builder = new KewTypeBoBuilder("testType", "testNamespace").setServiceName("testService");
    KewTypeBo kewTypeBo = builder.build();

    for (int i=1; i<=3; i++) {
        KewAttributeDefinitionBo attributeDefn = new KewAttributeDefinitionBo();
        attributeDefn.setName("attrDef"+i);
        attributeDefn.setDescription("this is a description of attrDef" + i);
        attributeDefn.setComponentName("componentName" + i);
        attributeDefn.setLabel("label" + i);
        attributeDefn.setNamespace(kewTypeBo.getNamespace());

        boService.save(attributeDefn);

        KewTypeAttributeBo typeAttribute = new KewTypeAttributeBo();
        typeAttribute.setSequenceNumber(i);
        typeAttribute.setAttributeDefinition(attributeDefn);
        kewTypeBo.getAttributes().add(typeAttribute);
    }

    boService.save(kewTypeBo);
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:24,代码来源:PeopleFlowBoTest.java

示例3: from

import org.kuali.rice.kew.impl.type.KewAttributeDefinitionBo; //导入依赖的package包/类
public static PeopleFlowAttributeBo from(KewAttributeDefinition attributeDefinition, String id, PeopleFlowBo peopleFlow,
        String value) {

    if (null == attributeDefinition) {
        return null;
    }

    PeopleFlowAttributeBo peopleFlowAttributeBo = new PeopleFlowAttributeBo();
    peopleFlowAttributeBo.setId(id);
    peopleFlowAttributeBo.setPeopleFlow(peopleFlow);
    peopleFlowAttributeBo.setValue(value);
    peopleFlowAttributeBo.setAttributeDefinition(KewAttributeDefinitionBo.from(attributeDefinition));

    return peopleFlowAttributeBo;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:16,代码来源:PeopleFlowAttributeBo.java

示例4: setAttributeDefinition

import org.kuali.rice.kew.impl.type.KewAttributeDefinitionBo; //导入依赖的package包/类
/**
 * @see #getAttributeDefinitionId()
 */
public void setAttributeDefinition(KewAttributeDefinitionBo attributeDefinition) {
    this.attributeDefinition = attributeDefinition;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:PeopleFlowAttributeBo.java

示例5: getAttributeDefinition

import org.kuali.rice.kew.impl.type.KewAttributeDefinitionBo; //导入依赖的package包/类
/**
 * Returns a {@link KewAttributeDefinitionBo}
 * @return {@link KewAttributeDefinitionBo}
 */
public KewAttributeDefinitionBo getAttributeDefinition() {
    return attributeDefinition;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:8,代码来源:PeopleFlowAttributeBo.java


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