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.Key
ERXGenericRecord.ERXGenericRecordClazz<T extends EOEnterpriseObject>, ERXGenericRecord.InverseRelationshipUpdater, ERXGenericRecord.LocalizedBinding, ERXGenericRecord.TouchingBinding
EOGenericRecord._DictionaryBinding, EOGenericRecord._LazyDictionaryBinding
EOCustomObject._BooleanFieldBinding, EOCustomObject._FieldBinding, EOCustomObject._LazyFieldBinding, EOCustomObject._NumberFieldBinding
ERXEnterpriseObject.Observer, ERXEnterpriseObject.Processor
EOKeyValueCodingAdditions.DefaultImplementation, EOKeyValueCodingAdditions.Utility
EOKeyValueCoding._BestBindingCreation, EOKeyValueCoding._KeyBindingCreation, EOKeyValueCoding._StoredForwardingBinding
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.ValidationException
_EOPrivateMemento.DefaultImplementation
Modifier and Type | Field and Description |
---|---|
static String |
AddressSeparator
holds the address separator
|
static org.apache.log4j.Logger |
log
logging support
|
ENTITY_NAME
_primaryKey, _touchSource, insertionStackTrace
_CLASS
__readOnly
applyRestrictingQualifierOnInsert, DidDeleteProcessor, DidInsertProcessor, DidRevertProcessor, DidUpdateProcessor, FlushCachesProcessor, insertionTrackingLog, KEY_MARKER, logMod, tranLogDidDelete, tranLogDidInsert, tranLogDidRevert, tranLogDidUpdate, tranLogMightDelete, tranLogWillDelete, tranLogWillInsert, tranLogWillRevert, tranLogWillUpdate, validation, validationException, WillDeleteProcessor, WillInsertProcessor, WillRevertProcessor, WillUpdateProcessor
_CLASS
_KeyPathSeparatorChar, KeyPathSeparator
NullValue
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(EOEditingContext anEditingContext)
Default state of the mail message is
'Ready To Be Sent'.
|
boolean |
isExceptionState() |
boolean |
isReadAsBoolean() |
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(EOEnterpriseObject by) |
void |
setBccAddressesAsArray(NSArray bccAddresses) |
void |
setCcAddressesAsArray(NSArray ccAddresses) |
void |
setReadAsBoolean(boolean read)
Deprecated.
|
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, willRead
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
allPropertyKeys, attributeKeys, changesFromSnapshot, classDescription, classDescriptionForDestinationKey, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, inverseForRelationshipKey, invokeRemoteMethod, isReadOnly, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, reapplyChangesFromDictionary, snapshot, toManyRelationshipKeys, toOneRelationshipKeys, userPresentableDescription, willChange
takeValuesFromDictionary, takeValuesFromDictionaryWithMapping, valuesForKeys, valuesForKeysWithMapping
takeValueForKeyPath, valueForKeyPath
storedValueForKey
valueForKey
handleTakeValueForUnboundKey, unableToSetNullForKey
addObjectToPropertyWithKey, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKey
validateClientUpdate, validateForDelete
validateTakeValueForKeyPath
clearFault, faultHandler, isFault, turnIntoFault, willRead
public static final org.apache.log4j.Logger log
public static final String AddressSeparator
public static ERCMailMessage.ERCMailMessageClazz mailMessageClazz()
public void init(EOEditingContext anEditingContext)
init
in class ERXGenericRecord
anEditingContext
- inserted intopublic boolean isReadyToSendState()
public boolean isSentState()
public boolean isExceptionState()
public boolean isReceivedState()
public void markReadBy(EOEnterpriseObject by)
@Deprecated public void setReadAsBoolean(boolean read)
_ERCMailMessage.setIsRead(Boolean)
public boolean isReadAsBoolean()
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()
ERXGenericRecord
toLongString
. To restore the original verbose logging in
your subclasses override this method and return toLongString.toString
in class ERXGenericRecord
public String toLongString()
ERXEnterpriseObject
toLongString
in interface ERXEnterpriseObject
toLongString
in class ERXGenericRecord
toString
.public ERCMailMessage archive()
public void appendText(String text)
text
- to be appendedpublic boolean hasAttachments()
public void validateForSave() throws NSValidation.ValidationException
ERXGenericRecord
validateForSave
in interface EOValidation
validateForSave
in class ERXGenericRecord
NSValidation.ValidationException
- if the object does not pass validation for saving to the
database.public void addToBothSidesOfAttachments(ERCMessageAttachment attachement)
public String text()
text
in class _ERCMailMessage
public void setText(String aValue)
setText
in class _ERCMailMessage
public void willInsert()
ERXEnterpriseObject
validateForInsert
is called on this
object. This method is called by the editing context
delegate ERXDefaultEditingContextDelegate
.willInsert
in interface ERXEnterpriseObject
willInsert
in class ERXGenericRecord
public void willUpdate()
ERXEnterpriseObject
validateForSave
is called on this
object. This method is called by the editing context
delegate ERXDefaultEditingContextDelegate
.willUpdate
in interface ERXEnterpriseObject
willUpdate
in class ERXGenericRecord
Copyright © 2002 – 2024 Project Wonder.