本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}