當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。