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


Java MultiDocumentAttachment类代码示例

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


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

示例1: testMissingNestedObjectCreation

import org.kuali.rice.krad.bo.MultiDocumentAttachment; //导入依赖的package包/类
@Test
public void testMissingNestedObjectCreation() throws Exception {
    PojoPlugin.initBeanUtils();
    MaintenanceDocumentBase m = new MaintenanceDocumentBase();
    m.setAttachments(new ArrayList<MultiDocumentAttachment>());
    assertNotNull(m.getAttachments());
    Object o = ObjectUtils.getPropertyValue(m, "attachments[0]");
    assertNotNull(o);
    assertTrue(o instanceof MultiDocumentAttachment);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:11,代码来源:ObjectUtilsTest.java

示例2: deleteDocumentAttachmentList

import org.kuali.rice.krad.bo.MultiDocumentAttachment; //导入依赖的package包/类
@Deprecated
public void deleteDocumentAttachmentList() {
    if (CollectionUtils.isNotEmpty(attachments)) {
        for (MultiDocumentAttachment attachment : attachments) {
            KRADServiceLocatorWeb.getLegacyDataAdapter().delete(attachment);
        }
        attachments = null;
    }
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:10,代码来源:MaintenanceDocumentBase.java

示例3: convertDocToBoAttachment

import org.kuali.rice.krad.bo.MultiDocumentAttachment; //导入依赖的package包/类
private PersistableAttachment convertDocToBoAttachment(MultiDocumentAttachment multiAttach, boolean copyFile) {
    PersistableAttachment persistableAttachment = new PersistableAttachmentBase();

    if (copyFile
            && multiAttach.getAttachmentContent() != null) {
        persistableAttachment.setAttachmentContent(multiAttach.getAttachmentContent());
    }
    persistableAttachment.setFileName(multiAttach.getFileName());
    persistableAttachment.setContentType(multiAttach.getContentType());
    return persistableAttachment;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:12,代码来源:MaintenanceDocumentBase.java

示例4: getAttachments

import org.kuali.rice.krad.bo.MultiDocumentAttachment; //导入依赖的package包/类
public List<MultiDocumentAttachment> getAttachments() {
    return this.attachments;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:4,代码来源:MaintenanceDocumentBase.java

示例5: setAttachments

import org.kuali.rice.krad.bo.MultiDocumentAttachment; //导入依赖的package包/类
public void setAttachments(List<MultiDocumentAttachment> attachments) {
    this.attachments = attachments;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:4,代码来源:MaintenanceDocumentBase.java


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