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


Java Note.refreshReferenceObject方法代码示例

本文整理汇总了Java中org.kuali.rice.krad.bo.Note.refreshReferenceObject方法的典型用法代码示例。如果您正苦于以下问题:Java Note.refreshReferenceObject方法的具体用法?Java Note.refreshReferenceObject怎么用?Java Note.refreshReferenceObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.kuali.rice.krad.bo.Note的用法示例。


在下文中一共展示了Note.refreshReferenceObject方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: documentHasNoImagesAttached

import org.kuali.rice.krad.bo.Note; //导入方法依赖的package包/类
/**
 * Checks all documents notes for attachments.
 *
 * @return - true if document does not have an image attached, false otherwise
 */
@Override
public boolean documentHasNoImagesAttached() {
    List boNotes = this.getNotes();
    if (ObjectUtils.isNotNull(boNotes)) {
        for (Object obj : boNotes) {
            Note note = (Note) obj;

            note.refreshReferenceObject("attachment");
            if (ObjectUtils.isNotNull(note.getAttachment()) && PurapConstants.AttachmentTypeCodes.ATTACHMENT_TYPE_INVOICE_IMAGE.equals(note.getAttachment().getAttachmentTypeCode())) {
                return false;
            }
        }
    }
    return true;
}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:21,代码来源:PaymentRequestDocument.java

示例2: documentHasNoImagesAttached

import org.kuali.rice.krad.bo.Note; //导入方法依赖的package包/类
/**
 * Checks all documents notes for attachments.
 *
 * @return - true if document does not have an image attached, false otherwise
 */
@Override
public boolean documentHasNoImagesAttached() {
    List boNotes = this.getNotes();
    if (ObjectUtils.isNotNull(boNotes)) {
        for (Object obj : boNotes) {
            Note note = (Note) obj;

            note.refreshReferenceObject("attachment");
            if (ObjectUtils.isNotNull(note.getAttachment()) && PurapConstants.AttachmentTypeCodes.ATTACHMENT_TYPE_CM_IMAGE.equals(note.getAttachment().getAttachmentTypeCode())) {
                return false;
            }
        }
    }
    return true;
}
 
开发者ID:kuali,项目名称:kfs,代码行数:21,代码来源:VendorCreditMemoDocument.java

示例3: validate

import org.kuali.rice.krad.bo.Note; //导入方法依赖的package包/类
public boolean validate(AttributedDocumentEvent event) {
    boolean valid = true;
    InvoiceDocument document = (InvoiceDocument) event.getDocument();
    GlobalVariables.getMessageMap().clearErrorPath();

    if (isDocumentStoppedInRouteNode(document, "ImageAttachment")) {
        //assume false if we're in the correct node
        valid = false;

        //loop through notes looking for a invoice image
        List boNotes = document.getNotes();
        if (ObjectUtils.isNotNull(boNotes)) {
            for (Object obj : boNotes) {
                Note note = (Note) obj;

                note.refreshReferenceObject("attachment");
                if (ObjectUtils.isNotNull(note.getAttachment()) && PurapConstants.AttachmentTypeCodes.ATTACHMENT_TYPE_INVOICE_IMAGE.equals(note.getAttachment().getAttachmentTypeCode())) {
                    valid = true;
                    break;
                }
            }
        }

        if (valid == false) {
            GlobalVariables.getMessageMap().putError(KRADConstants.NEW_DOCUMENT_NOTE_PROPERTY_NAME, PurapKeyConstants.ERROR_PAYMENT_REQUEST_INVOICE_REQUIRED);
        }
    }

    GlobalVariables.getMessageMap().clearErrorPath();

    return valid;
}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:33,代码来源:InvoiceImageAttachmentValidation.java

示例4: validate

import org.kuali.rice.krad.bo.Note; //导入方法依赖的package包/类
public boolean validate(AttributedDocumentEvent event) {
    boolean valid = true;
    PaymentRequestDocument document = (PaymentRequestDocument) event.getDocument();
    GlobalVariables.getMessageMap().clearErrorPath();

    if (isDocumentStoppedInRouteNode(document, "ImageAttachment")) {
        //assume false if we're in the correct node
        valid = false;

        //loop through notes looking for a invoice image
        List boNotes = document.getNotes();
        if (ObjectUtils.isNotNull(boNotes)) {
            for (Object obj : boNotes) {
                Note note = (Note) obj;

                note.refreshReferenceObject("attachment");
                if (ObjectUtils.isNotNull(note.getAttachment()) && PurapConstants.AttachmentTypeCodes.ATTACHMENT_TYPE_INVOICE_IMAGE.equals(note.getAttachment().getAttachmentTypeCode())) {
                    valid = true;
                    break;
                }
            }
        }

        if (valid == false) {
            GlobalVariables.getMessageMap().putError(KRADConstants.NEW_DOCUMENT_NOTE_PROPERTY_NAME, PurapKeyConstants.ERROR_PAYMENT_REQUEST_INVOICE_REQUIRED);
        }
    }

    GlobalVariables.getMessageMap().clearErrorPath();

    return valid;
}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:33,代码来源:PaymentRequestInvoiceImageAttachmentValidation.java

示例5: documentHasNoImagesAttached

import org.kuali.rice.krad.bo.Note; //导入方法依赖的package包/类
/**
 * Checks all documents notes for attachments.
 *
 * @return - true if document does not have an image attached, false otherwise
 */
public boolean documentHasNoImagesAttached() {
    List boNotes = this.getNotes();
    if (ObjectUtils.isNotNull(boNotes)) {
        for (Object obj : boNotes) {
            Note note = (Note) obj;

            note.refreshReferenceObject("attachment");
            if (ObjectUtils.isNotNull(note.getAttachment()) && PurapConstants.AttachmentTypeCodes.ATTACHMENT_TYPE_CM_IMAGE.equals(note.getAttachment().getAttachmentTypeCode())) {
                return false;
            }
        }
    }
    return true;
}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:20,代码来源:VendorCreditMemoDocument.java

示例6: validate

import org.kuali.rice.krad.bo.Note; //导入方法依赖的package包/类
@Override
public boolean validate(AttributedDocumentEvent event) {
    boolean valid = true;
    PaymentRequestDocument document = (PaymentRequestDocument)event.getDocument();
    GlobalVariables.getMessageMap().clearErrorPath();

    if(isDocumentStoppedInRouteNode(document, "ImageAttachment")){
        //assume false if we're in the correct node
        valid = false;

        //loop through notes looking for a invoice image
        List boNotes = document.getNotes();
        if (ObjectUtils.isNotNull(boNotes)) {
            for (Object obj : boNotes) {
                Note note = (Note) obj;

                note.refreshReferenceObject("attachment");
                if (ObjectUtils.isNotNull(note.getAttachment()) && PurapConstants.AttachmentTypeCodes.ATTACHMENT_TYPE_INVOICE_IMAGE.equals(note.getAttachment().getAttachmentTypeCode())) {
                    valid = true;
                    break;
                }
            }
        }

        if(valid == false){
            GlobalVariables.getMessageMap().putError(KRADConstants.NEW_DOCUMENT_NOTE_PROPERTY_NAME, PurapKeyConstants.ERROR_PAYMENT_REQUEST_INVOICE_REQUIRED);
        }
    }

    GlobalVariables.getMessageMap().clearErrorPath();

    return valid;
}
 
开发者ID:kuali,项目名称:kfs,代码行数:34,代码来源:PaymentRequestInvoiceImageAttachmentValidation.java


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