public class ERCMailMessage extends _ERCMailMessage
| Name | Description |
|---|---|
er.corebusinesslogic.ERCMailMessage.ShouldArchive | er.corebusinesslogic.ERCMailMessage.ShouldArchive |
er.corebusinesslogic.ERCMailMessage.ShouldGzipContent | er.corebusinesslogic.ERCMailMessage.ShouldGzipContent |
| Modifier and Type | Class and Description |
|---|---|
static class |
ERCMailMessage.ERCMailMessageClazz
Clazz object used to hold all clazz related methods.
|
_ERCMailMessage._ERCMailMessageClazz, _ERCMailMessage.KeyERXGenericRecord.ERXGenericRecordClazz<T extends com.webobjects.eocontrol.EOEnterpriseObject>, ERXGenericRecord.InverseRelationshipUpdater, ERXGenericRecord.LocalizedBinding, ERXGenericRecord.TouchingBindingEOGenericRecord._DictionaryBinding, EOGenericRecord._LazyDictionaryBindingEOCustomObject._BooleanFieldBinding, EOCustomObject._FieldBinding, EOCustomObject._LazyFieldBinding, EOCustomObject._NumberFieldBindingERXEnterpriseObject.Observer, ERXEnterpriseObject.Processorcom.webobjects.eocontrol.EOKeyValueCodingAdditions.DefaultImplementation, com.webobjects.eocontrol.EOKeyValueCodingAdditions.Utilitycom.webobjects.eocontrol.EOKeyValueCoding._BestBindingCreation, com.webobjects.eocontrol.EOKeyValueCoding._KeyBindingCreation, com.webobjects.eocontrol.EOKeyValueCoding._StoredForwardingBindingcom.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor| Modifier and Type | Field and Description |
|---|---|
static String |
AddressSeparator
holds the address separator
|
ENTITY_NAME_primaryKey, _touchSource, insertionStackTrace_CLASS__readOnlyapplyRestrictingQualifierOnInsert, DidDeleteProcessor, DidInsertProcessor, DidRevertProcessor, DidUpdateProcessor, FlushCachesProcessor, insertionTrackingLog, KEY_MARKER, log, logMod, tranLogDidDelete, tranLogDidInsert, tranLogDidRevert, tranLogDidUpdate, tranLogMightDelete, tranLogWillDelete, tranLogWillInsert, tranLogWillRevert, tranLogWillUpdate, validation, validationException, WillDeleteProcessor, WillInsertProcessor, WillRevertProcessor, WillUpdateProcessor| Constructor and Description |
|---|
ERCMailMessage()
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToBothSidesOfAttachments(ERCMessageAttachment attachement) |
void |
appendText(String text)
Appends test to the currently stored text.
|
ERCMailMessage |
archive() |
void |
attachFileWithMimeType(String filePath,
String mimeType) |
NSArray |
bccAddressesAsArray() |
NSArray |
ccAddressesAsArray() |
boolean |
hasAttachments()
Simple test if an attachment has any attachments.
|
void |
init(com.webobjects.eocontrol.EOEditingContext anEditingContext)
Default state of the mail message is
'Ready To Be Sent'.
|
boolean |
isExceptionState() |
boolean |
isReadyToSendState() |
boolean |
isReceivedState() |
boolean |
isSentState() |
String |
longDescription()
Long description of the mail message.
|
static ERCMailMessage.ERCMailMessageClazz |
mailMessageClazz()
Gets the singleton clazz object for this Class.
|
void |
markReadBy(com.webobjects.eocontrol.EOEnterpriseObject by) |
void |
setBccAddressesAsArray(NSArray bccAddresses) |
void |
setCcAddressesAsArray(NSArray ccAddresses) |
void |
setText(String aValue) |
void |
setToAddressesAsArray(NSArray toAddresses) |
boolean |
shouldArchiveSentMailAsBoolean() |
String |
storedGzippedValueForKey(String key) |
void |
takeStoredGzippedValueForKey(String aValue,
String key) |
String |
text() |
NSArray |
toAddressesAsArray() |
String |
toLongString()
Returns the super classes implementation of toString
which prints out the current key-value pairs for all
of the attributes and relationships for the current
object.
|
String |
toString()
Overrides the EOGenericRecord's implementation to provide a slightly less
verbose output.
|
Object |
validateEmptyStringForKey(Object value,
String field) |
void |
validateForSave()
This method performs a few checks before invoking super's implementation.
|
Object |
validateFromAddress(String newValue) |
Object |
validateTitle(String newValue) |
Object |
validateToAddresses(String newValue) |
void |
willInsert()
Called as part of the augmented transaction process.
|
void |
willUpdate()
Called as part of the augmented transaction process.
|
addToAttachments, attachments, bccAddresses, ccAddresses, contentGzipped, created, dateSent, exceptionReason, fromAddress, isRead, lastModified, plainText, plainTextCompressed, removeFromAttachments, replyToAddress, setBccAddresses, setCcAddresses, setContentGzipped, setCreated, setDateSent, setExceptionReason, setFromAddress, setIsRead, setLastModified, setPlainText, setPlainTextCompressed, setReplyToAddress, setShouldArchiveSentMail, setState, setTextCompressed, setTitle, setToAddresses, setXMailer, shouldArchiveSentMail, state, textCompressed, title, toAddresses, xMailer_otherStorageBinding, _setPrimaryKeyDictionary, _setUpdateInverseRelationships, _setValueForPrimaryKey, _updateInverseRelationships, _validateValueForKey, addObjectsToBothSidesOfRelationshipWithKey, addObjectToBothSidesOfRelationshipWithKey, applyRestrictingQualifierOnInsert, awakeFromClientUpdate, awakeFromFetch, awakeFromInsertion, batchFaultingRelationshipName, batchFaultingSourceGlobalID, batchFaultingTimeStamp, canDelete, canUpdate, changesFromCommittedSnapshot, checkMatchingEditingContexts, clearProperties, committedSnapshot, committedSnapshotValueForKey, committedSnapshotValueForKey, delete, didCopyFromChildInEditingContext, didDelete, didInsert, didRevert, didUpdate, encryptedPrimaryKey, entity, excludeObjectFromPropertyWithKey, flushCaches, foreignKeyForRelationshipWithKey, getClassLog, handleQueryWithUnboundKey, hasKeyChangedFromCommittedSnapshot, hasKeyChangedFromCommittedSnapshot, hasKeyChangedFromCommittedSnapshotFromValue, hasKeyChangedFromCommittedSnapshotFromValue, hasKeyChangedFromCommittedSnapshotFromValueToNewValue, hasKeyChangedFromCommittedSnapshotFromValueToNewValue, hasKeyChangedFromCommittedSnapshotToValue, hasKeyChangedFromCommittedSnapshotToValue, includeObjectIntoPropertyWithKey, isDeletedEO, isNewObject, isNonNull, isUpdatedObject, isValidatedWhenNested, localesForKey, localInstanceIn, localInstanceOf, localInstancesOf, localizationShouldFallbackToDefaultLanguage, localizedKey, mightDelete, parentObjectStoreIsObjectStoreCoordinator, permanentGlobalID, permanentGlobalID, primaryKey, primaryKeyAttributeNames, primaryKeyInTransaction, rawPrimaryKey, rawPrimaryKeyDictionary, rawPrimaryKeyInTransaction, refetchObjectFromDB, refetchObjectFromDBinEditingContext, removeObjectsFromBothSidesOfRelationshipWithKey, removeObjectsFromPropertyWithKey, self, setBatchFaultingTimestamp, setValidatedWhenNested, shouldSkipValidateForSave, shouldTrimSpaces, takeStoredValueForKey, takeValueForKey, takeValueForKey, touchFromBatchFaultingSource, trimSpaces, updateFromSnapshot, validateForInsert, validateForUpdate, validateValueForKey, valueForKey, willDelete, willReadRelationship, willRevert__setClassDescription, _keyGetBindingForKey, _keySetBindingForKey, _storedKeyGetBindingForKey, _storedKeySetBindingForKey, classDescription, usesDeferredFaultCreation__classDescription, __clearPendingChanges, __editingContext, __globalID, __hasAuxillaryObservers, __hasPendingChanges, __hasPendingUpdate, __isInitialized, __isPendingDeletion, __isPendingInsertion, __isShared, __lastSnapshot, __originalSnapshot, __retainCount, __setAuxillaryObservers, __setEditingContext, __setGlobalID, __setInitialized, __setLastSnapshot, __setOriginalSnapshot, __setPendingDeletion, __setPendingInsertion, __setPendingUpdate, __setRetainCount, __setShared, _createKeyGetBindingForKey, _createKeySetBindingForKey, _createStoredKeyGetBindingForKey, _createStoredKeySetBindingForKey, _fieldKeyBinding, _forwardingBindingNeededForClass, _methodKeyGetBinding, _methodKeySetBinding, addObjectToPropertyWithKey, allPropertyKeys, attributeKeys, canAccessFieldsDirectly, changesFromSnapshot, classDescriptionForDestinationKey, clearFault, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, equals, faultHandler, handleTakeValueForUnboundKey, hashCode, inverseForRelationshipKey, invokeRemoteMethod, isFault, isReadOnly, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, readResolve, reapplyChangesFromDictionary, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKey, shouldUseStoredAccessors, snapshot, storedValueForKey, takeValueForKeyPath, takeValuesFromDictionary, takeValuesFromDictionaryWithMapping, toManyRelationshipKeys, toOneRelationshipKeys, turnIntoFault, unableToSetNullForKey, userPresentableDescription, validateClientUpdate, validateForDelete, validateTakeValueForKeyPath, valueForKey, valueForKeyPath, valuesForKeys, valuesForKeysWithMapping, willChange, willReadclone, finalize, getClass, notify, notifyAll, wait, wait, waitallPropertyKeys, attributeKeys, changesFromSnapshot, classDescription, classDescriptionForDestinationKey, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, inverseForRelationshipKey, invokeRemoteMethod, isReadOnly, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, reapplyChangesFromDictionary, snapshot, toManyRelationshipKeys, toOneRelationshipKeys, userPresentableDescription, willChangetakeValuesFromDictionary, takeValuesFromDictionaryWithMapping, valuesForKeys, valuesForKeysWithMappingtakeValueForKeyPath, valueForKeyPathhandleTakeValueForUnboundKey, unableToSetNullForKeyaddObjectToPropertyWithKey, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKeypublic static final String AddressSeparator
public static ERCMailMessage.ERCMailMessageClazz mailMessageClazz()
public void init(com.webobjects.eocontrol.EOEditingContext anEditingContext)
init in class ERXGenericRecordanEditingContext - inserted intopublic boolean isReadyToSendState()
public boolean isSentState()
public boolean isExceptionState()
public boolean isReceivedState()
public void markReadBy(com.webobjects.eocontrol.EOEnterpriseObject by)
public NSArray toAddressesAsArray()
public void setToAddressesAsArray(NSArray toAddresses)
public NSArray ccAddressesAsArray()
public void setCcAddressesAsArray(NSArray ccAddresses)
public NSArray bccAddressesAsArray()
public void setBccAddressesAsArray(NSArray bccAddresses)
public boolean shouldArchiveSentMailAsBoolean()
public String longDescription()
public String toString()
ERXGenericRecordtoLongString. To restore the original verbose logging in
your subclasses override this method and return toLongString.toString in class ERXGenericRecordpublic String toLongString()
ERXEnterpriseObjecttoLongString in interface ERXEnterpriseObjecttoLongString in class ERXGenericRecordtoString.public ERCMailMessage archive()
public void appendText(String text)
text - to be appendedpublic boolean hasAttachments()
public void validateForSave()
throws com.webobjects.foundation.NSValidation.ValidationException
ERXGenericRecordvalidateForSave in interface com.webobjects.eocontrol.EOValidationvalidateForSave in class ERXGenericRecordNSValidation.ValidationException - if the object does not pass validation for saving to the
database.public void addToBothSidesOfAttachments(ERCMessageAttachment attachement)
public String text()
text in class _ERCMailMessagepublic void setText(String aValue)
setText in class _ERCMailMessagepublic void willInsert()
ERXEnterpriseObjectvalidateForInsert is called on this
object. This method is called by the editing context
delegate ERXDefaultEditingContextDelegate.willInsert in interface ERXEnterpriseObjectwillInsert in class ERXGenericRecordpublic void willUpdate()
ERXEnterpriseObjectvalidateForSave is called on this
object. This method is called by the editing context
delegate ERXDefaultEditingContextDelegate.willUpdate in interface ERXEnterpriseObjectwillUpdate in class ERXGenericRecordCopyright © 2002 – 2020 Project Wonder.