public abstract class ProtocolAttachmentProtocolRuleHelperBase extends Object
ProtocolAttachmentProtocolBase.| Modifier and Type | Field and Description |
|---|---|
protected ProtocolAttachmentService |
attachmentService |
protected ErrorReporter |
errorReporter |
protected static String |
NOTE_AND_ATTACHMENT_LINK |
protected static String |
NOTES_AND_ATTACHMENT_AUDIT_ERRORS_KEY |
protected static String |
NOTES_ATTACHMENTS_CLUSTER_LABEL |
protected String |
propertyPrefix |
| Modifier | Constructor and Description |
|---|---|
protected |
ProtocolAttachmentProtocolRuleHelperBase(ProtocolAttachmentService attachmentService)
Creates helper deferring the setting of the prefix to later and setting used services.
|
protected |
ProtocolAttachmentProtocolRuleHelperBase(String aPropertyPrefix,
ProtocolAttachmentService attachmentService)
New constructor added in uplift
|
| Modifier and Type | Method and Description |
|---|---|
void |
resetPropertyPrefix(String aPropertyPrefix)
Resets the property prefix.
|
boolean |
validStatus(ProtocolAttachmentProtocolBase attachment)
Validates that the selected status exists in the system (is valid).
|
protected boolean |
validStatusForSubmission(ProtocolAttachmentProtocolBase attachmentProtocol)
Checks that the status is marked complete.
|
protected static final String NOTES_ATTACHMENTS_CLUSTER_LABEL
protected static final String NOTES_AND_ATTACHMENT_AUDIT_ERRORS_KEY
protected static final String NOTE_AND_ATTACHMENT_LINK
protected final ProtocolAttachmentService attachmentService
protected final ErrorReporter errorReporter
protected String propertyPrefix
protected ProtocolAttachmentProtocolRuleHelperBase(ProtocolAttachmentService attachmentService)
attachmentService - the Attachment ServiceIllegalArgumentException - if the attachmentService is nullprotected ProtocolAttachmentProtocolRuleHelperBase(String aPropertyPrefix, ProtocolAttachmentService attachmentService)
public void resetPropertyPrefix(String aPropertyPrefix)
aPropertyPrefix - the prefix (ex: notesAttachmentsHelper.newAttachmentProtocol)IllegalArgumentException - if the propertyPrefix is nullprotected boolean validStatusForSubmission(ProtocolAttachmentProtocolBase attachmentProtocol)
attachmentProtocol - the attachment.public boolean validStatus(ProtocolAttachmentProtocolBase attachment)
attachment - the attachment.Copyright © 2013 The Kuali Foundation. All Rights Reserved.