er.corebusinesslogic
Class ERCMailMessage
java.lang.Object
com.webobjects.eocontrol.EOCustomObject
com.webobjects.eocontrol.EOGenericRecord
er.extensions.eof.ERXGenericRecord
er.corebusinesslogic._ERCMailMessage
er.corebusinesslogic.ERCMailMessage
- All Implemented Interfaces:
- _EOPrivateMemento, EODeferredFaulting, EOEnterpriseObject, EOFaulting, EOKeyValueCoding, EOKeyValueCoding._BestBindingCreation._ForwardingBindingCheck, EOKeyValueCoding._KeyBindingCreation, EOKeyValueCodingAdditions, EORelationshipManipulation, EOValidation, NSKeyValueCoding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._ReflectionKeyBindingCreation.Callback, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, ERXDatabaseContextDelegate.AutoBatchFaultingEnterpriseObject, ERXEnterpriseObject, ERXGeneratesPrimaryKeyInterface, ERXGuardedObjectInterface, ERXKey.ValueCoding, ERXNonNullObjectInterface, Serializable
- Direct Known Subclasses:
- _ERCMailMessageArchive
public class ERCMailMessage
- extends _ERCMailMessage
- See Also:
- Serialized Form
| Properties |
er.corebusinesslogic.ERCMailMessage.ShouldArchive | er.corebusinesslogic.ERCMailMessage.ShouldArchive |
er.corebusinesslogic.ERCMailMessage.ShouldGzipContent | er.corebusinesslogic.ERCMailMessage.ShouldGzipContent |
| Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding |
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 |
| Fields inherited from interface er.extensions.eof.ERXEnterpriseObject |
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 |
| Methods inherited from class er.corebusinesslogic._ERCMailMessage |
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 |
| Methods inherited from class er.extensions.eof.ERXGenericRecord |
_otherStorageBinding, _setPrimaryKeyDictionary, _setUpdateInverseRelationships, _setValueForPrimaryKey, _updateInverseRelationships, _validateValueForKey, addObjectsToBothSidesOfRelationshipWithKey, addObjectToBothSidesOfRelationshipWithKey, applyRestrictingQualifierOnInsert, awakeFromClientUpdate, awakeFromFetch, awakeFromInsertion, batchCheckConsistency, batchFaultingRelationshipName, batchFaultingSourceGlobalID, batchFaultingTimeStamp, canDelete, canUpdate, changesFromCommittedSnapshot, checkConsistency, checkMatchingEditingContexts, clearProperties, committedSnapshot, committedSnapshotValueForKey, delete, description, didCopyFromChildInEditingContext, didDelete, didInsert, didRevert, didUpdate, encryptedPrimaryKey, entity, excludeObjectFromPropertyWithKey, flushCaches, foreignKeyForRelationshipWithKey, getClassLog, hasKeyChangedFromCommittedSnapshot, hasKeyChangedFromCommittedSnapshotFromValue, hasKeyChangedFromCommittedSnapshotFromValueToNewValue, hasKeyChangedFromCommittedSnapshotToValue, includeObjectIntoPropertyWithKey, isDeletedEO, isNewEO, isNewObject, isNonNull, isUpdatedObject, isValidatedWhenNested, localesForKey, localInstanceIn, localInstanceOf, localInstancesOf, localizationShouldFallbackToDefaultLanguage, mightDelete, parentObjectStoreIsObjectStoreCoordinator, permanentGlobalID, permanentGlobalID, primaryKey, primaryKeyAttributeNames, primaryKeyDictionary, primaryKeyInTransaction, rawPrimaryKey, rawPrimaryKeyInTransaction, refetchObjectFromDB, refetchObjectFromDBinEditingContext, removeObjectsFromBothSidesOfRelationshipWithKey, removeObjectsFromPropertyWithKey, self, setBatchFaultingTimestamp, setValidatedWhenNested, shouldSkipValidateForSave, shouldTrimSpaces, takeStoredValueForKey, takeValueForKey, takeValueForKey, touchFromBatchFaultingSource, trimSpaces, updateFromSnapshot, validateForInsert, validateForUpdate, validateValueForKey, valueForKey, willDelete, willReadRelationship, willRevert |
| Methods inherited from class com.webobjects.eocontrol.EOCustomObject |
__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, handleQueryWithUnboundKey, 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 |
| Methods inherited from interface com.webobjects.eocontrol.EOEnterpriseObject |
allPropertyKeys, attributeKeys, changesFromSnapshot, classDescription, classDescriptionForDestinationKey, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, inverseForRelationshipKey, invokeRemoteMethod, isReadOnly, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, reapplyChangesFromDictionary, snapshot, toManyRelationshipKeys, toOneRelationshipKeys, userPresentableDescription, willChange |
log
public static final Logger log
- logging support
AddressSeparator
public static final String AddressSeparator
- holds the address separator
- See Also:
- Constant Field Values
ERCMailMessage
public ERCMailMessage()
- Public constructor.
mailMessageClazz
public static ERCMailMessage.ERCMailMessageClazz mailMessageClazz()
- Gets the singleton clazz object for this Class.
- Returns:
- sigleton clazz object
init
public void init(EOEditingContext anEditingContext)
- Default state of the mail message is
'Ready To Be Sent'.
- Overrides:
init in class ERXGenericRecord
- Parameters:
anEditingContext - inserted into
isReadyToSendState
public boolean isReadyToSendState()
isSentState
public boolean isSentState()
isExceptionState
public boolean isExceptionState()
isReceivedState
public boolean isReceivedState()
markReadBy
public void markReadBy(EOEnterpriseObject by)
setReadAsBoolean
public void setReadAsBoolean(boolean read)
- Deprecated. setIsRead
- Use setIsRead(boolean)
isReadAsBoolean
public boolean isReadAsBoolean()
toAddressesAsArray
public NSArray toAddressesAsArray()
setToAddressesAsArray
public void setToAddressesAsArray(NSArray toAddresses)
ccAddressesAsArray
public NSArray ccAddressesAsArray()
setCcAddressesAsArray
public void setCcAddressesAsArray(NSArray ccAddresses)
bccAddressesAsArray
public NSArray bccAddressesAsArray()
setBccAddressesAsArray
public void setBccAddressesAsArray(NSArray bccAddresses)
shouldArchiveSentMailAsBoolean
public boolean shouldArchiveSentMailAsBoolean()
longDescription
public String longDescription()
- Long description of the mail message.
- Returns:
- very verbose description of the mail message.
toString
public String toString()
- Description copied from class:
ERXGenericRecord
- Overrides the EOGenericRecord's implementation to provide a slightly less
verbose output. A typical output for an object mapped to the class
com.foo.User with a primary key of 50 would look like: EOGenericRecord's implementation is preserved in the method
toLongString. To restore the original verbose logging in
your subclasses override this method and return toLongString.
- Overrides:
toString in class ERXGenericRecord
- Returns:
- much less verbose description of an enterprise object.
toLongString
public String toLongString()
- Description copied from interface:
ERXEnterpriseObject
- 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. Very verbose.
- Specified by:
toLongString in interface ERXEnterpriseObject- Overrides:
toLongString in class ERXGenericRecord
- Returns:
- super's implementation of
toString.
archive
public ERCMailMessage archive()
appendText
public void appendText(String text)
- Appends test to the currently stored text.
Useful for nested mime messages or multi-part messages.
- Parameters:
text - to be appended
validateEmptyStringForKey
public Object validateEmptyStringForKey(Object value,
String field)
hasAttachments
public boolean hasAttachments()
- Simple test if an attachment has any attachments.
- Returns:
- if the the message has any attachments
validateFromAddress
public Object validateFromAddress(String newValue)
validateTitle
public Object validateTitle(String newValue)
validateToAddresses
public Object validateToAddresses(String newValue)
validateForSave
public void validateForSave()
throws NSValidation.ValidationException
- Description copied from class:
ERXGenericRecord
- This method performs a few checks before invoking super's implementation.
If the property key: ERDebuggingEnabled is set to true then the
method
checkConsistency will be called on this object.
- Specified by:
validateForSave in interface EOValidation- Overrides:
validateForSave in class ERXGenericRecord
- Throws:
NSValidation.ValidationException - if the object does not pass validation for saving to the
database.
attachFileWithMimeType
public void attachFileWithMimeType(String filePath,
String mimeType)
addToBothSidesOfAttachments
public void addToBothSidesOfAttachments(ERCMessageAttachment attachement)
storedGzippedValueForKey
public String storedGzippedValueForKey(String key)
takeStoredGzippedValueForKey
public void takeStoredGzippedValueForKey(String aValue,
String key)
text
public String text()
- Overrides:
text in class _ERCMailMessage
setText
public void setText(String aValue)
- Overrides:
setText in class _ERCMailMessage
willInsert
public void willInsert()
- Description copied from interface:
ERXEnterpriseObject
- Called as part of the augmented transaction process.
This method is called after saveChanges is called on
the editing context, but before the object is actually
inserted into the database. This method is also called
before
validateForInsert is called on this
object. This method is called by the editing context
delegate ERXDefaultEditingContextDelegate.
- Specified by:
willInsert in interface ERXEnterpriseObject- Overrides:
willInsert in class ERXGenericRecord
willUpdate
public void willUpdate()
- Description copied from interface:
ERXEnterpriseObject
- Called as part of the augmented transaction process.
This method is called after saveChanges is called on
the editing context, but before the object is actually
updated in the database. This method is also called
before
validateForSave is called on this
object. This method is called by the editing context
delegate ERXDefaultEditingContextDelegate.
- Specified by:
willUpdate in interface ERXEnterpriseObject- Overrides:
willUpdate in class ERXGenericRecord
Copyright © 2002 – 2011 Project Wonder.