本文整理匯總了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);
}
示例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);
}
示例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;
}
示例4: setAttributeDefinition
import org.kuali.rice.kew.impl.type.KewAttributeDefinitionBo; //導入依賴的package包/類
/**
* @see #getAttributeDefinitionId()
*/
public void setAttributeDefinition(KewAttributeDefinitionBo attributeDefinition) {
this.attributeDefinition = attributeDefinition;
}
示例5: getAttributeDefinition
import org.kuali.rice.kew.impl.type.KewAttributeDefinitionBo; //導入依賴的package包/類
/**
* Returns a {@link KewAttributeDefinitionBo}
* @return {@link KewAttributeDefinitionBo}
*/
public KewAttributeDefinitionBo getAttributeDefinition() {
return attributeDefinition;
}