er.corebusinesslogic
Class ERCMailMessage
java.lang.Object
com.webobjects.eocontrol.EOCustomObject
com.webobjects.eocontrol.EOGenericRecord
er.extensions.ERXGenericRecord
er.corebusinesslogic.ERCStampedEnterpriseObject
er.corebusinesslogic._ERCMailMessage
er.corebusinesslogic.ERCMailMessage
- All Implemented Interfaces:
- _EOPrivateMemento, EODeferredFaulting, EOEnterpriseObject, EOFaulting, EOKeyValueCoding, EOKeyValueCoding._BestBindingCreation._ForwardingBindingCheck, EOKeyValueCoding._KeyBindingCreation, EOKeyValueCodingAdditions, EORelationshipManipulation, EOValidation, ERXGeneratesPrimaryKeyInterface, ERXGuardedObjectInterface, NSKeyValueCoding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._ReflectionKeyBindingCreation.Callback, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable
- public class ERCMailMessage
- extends _ERCMailMessage
- See Also:
- Serialized Form
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding |
NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor |
Fields inherited from class er.extensions.ERXGenericRecord |
classLogs, insertionStackTrace, insertionTrackingLog, KEY_MARKER, lock, tranLogDidDelete, tranLogDidInsert, tranLogDidUpdate, tranLogWillDelete, tranLogWillInsert, tranLogWillUpdate, validation, validationException |
Methods inherited from class er.corebusinesslogic._ERCMailMessage |
addToAttachments, addToBothSidesOfAttachments, addToBothSidesOfState, attachments, bccAddresses, ccAddresses, contentGzipped, contentGzippedAsBoolean, contentType, dateSent, exceptionReason, fromAddress, isRead, plainText, removeFromAttachments, removeFromBothSidesOfAttachments, removeFromBothSidesOfState, replyToAddress, setAttachments, setBccAddresses, setCcAddresses, setContentGzipped, setContentType, setDateSent, setExceptionReason, setFromAddress, setIsRead, setPlainText, setReplyToAddress, setShouldArchiveSentMail, setState, setText, setTitle, setToAddresses, setXMailer, shouldArchiveSentMail, state, storedGzippedValueForKey, takeStoredGzippedValueForKey, text, title, toAddresses, xMailer |
Methods inherited from class er.extensions.ERXGenericRecord |
_checkEditingContextDelegate, addObjectsToBothSidesOfRelationshipWithKey, addObjectToBothSidesOfRelationshipWithKey, awakeFromClientUpdate, awakeFromFetch, batchCheckConsistency, canDelete, canUpdate, changesFromCommittedSnapshot, checkConsistency, committedSnapshotValueForKey, delete, description, didDelete, didInsert, didSave, didUpdate, encryptedPrimaryKey, flushCaches, foreignKeyForRelationshipWithKey, getClassLog, isDeletedEO, isNewEO, isNewObject, localInstanceOf, localInstancesOf, parentObjectStoreIsObjectStoreCoordinator, primaryKey, primaryKeyAttributeNames, primaryKeyDictionary, primaryKeyInTransaction, rawPrimaryKey, rawPrimaryKeyInTransaction, refetchObjectFromDBinEditingContext, removeObjectsFromBothSidesOfRelationshipWithKey, removeObjectsFromPropertyWithKey, self, shouldTrimSpaces, trimSpaces, validateForDelete, validateForInsert, validateForSave, validateForUpdate, validateValueForKey |
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, clearProperties, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, equals, excludeObjectFromPropertyWithKey, faultHandler, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hashCode, includeObjectIntoPropertyWithKey, inverseForRelationshipKey, invokeRemoteMethod, isFault, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, readResolve, reapplyChangesFromDictionary, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKey, shouldUseStoredAccessors, snapshot, storedValueForKey, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, takeValuesFromDictionaryWithMapping, toManyRelationshipKeys, toOneRelationshipKeys, turnIntoFault, unableToSetNullForKey, updateFromSnapshot, userPresentableDescription, validateClientUpdate, validateTakeValueForKeyPath, valueForKey, valueForKeyPath, valuesForKeys, valuesForKeysWithMapping, willChange, willRead, willReadRelationship |
log
public static final ERXLogger 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
awakeFromInsertion
public void awakeFromInsertion(EOEditingContext anEditingContext)
- Default state of the mail message is
'Ready To Be Sent'.
- Specified by:
awakeFromInsertion
in interface EOEnterpriseObject
- Overrides:
awakeFromInsertion
in class ERCStampedEnterpriseObject
- 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)
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 class:
ERXGenericRecord
- 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.
- 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)
validateFromAddress
public Object validateFromAddress(String newValue)
validateTitle
public Object validateTitle(String newValue)
validateToAddresses
public Object validateToAddresses(String newValue)
validateText
public Object validateText(String newValue)
attachFileWithMimeType
public void attachFileWithMimeType(String filePath,
String mimeType)
Copyright © 2002 – 2004 Project Wonder.