Project Wonder 2.0

er.corebusinesslogic
Class ERCMailMessage

java.lang.Object
  extended bycom.webobjects.eocontrol.EOCustomObject
      extended bycom.webobjects.eocontrol.EOGenericRecord
          extended byer.extensions.ERXGenericRecord
              extended byer.corebusinesslogic.ERCStampedEnterpriseObject
                  extended byer.corebusinesslogic._ERCMailMessage
                      extended byer.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 Class Summary
static class ERCMailMessage.ERCMailMessageClazz
          Clazz object used to hold all clazz related methods.
 
Nested classes inherited from class er.corebusinesslogic._ERCMailMessage
_ERCMailMessage._ERCMailMessageClazz
 
Nested classes inherited from class er.corebusinesslogic.ERCStampedEnterpriseObject
ERCStampedEnterpriseObject.Observer
 
Nested classes inherited from class er.extensions.ERXGenericRecord
ERXGenericRecord.ERXGenericRecordClazz
 
Nested classes inherited from class com.webobjects.eocontrol.EOGenericRecord
EOGenericRecord._DictionaryBinding, EOGenericRecord._LazyDictionaryBinding
 
Nested classes inherited from class com.webobjects.eocontrol.EOCustomObject
EOCustomObject._BooleanFieldBinding, EOCustomObject._FieldBinding, EOCustomObject._LazyFieldBinding, EOCustomObject._NumberFieldBinding
 
Nested classes inherited from class com.webobjects.eocontrol.EOKeyValueCodingAdditions
EOKeyValueCodingAdditions.DefaultImplementation, EOKeyValueCodingAdditions.Utility
 
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
 
Nested classes inherited from class com.webobjects.eocontrol.EOKeyValueCoding
EOKeyValueCoding._BestBindingCreation, EOKeyValueCoding._KeyBindingCreation, EOKeyValueCoding._StoredForwardingBinding
 
Nested classes inherited from class com.webobjects.foundation.NSValidation
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
 
Nested classes inherited from class com.webobjects.eocontrol._EOPrivateMemento
_EOPrivateMemento.DefaultImplementation
 
Field Summary
static String AddressSeparator
          holds the address separator
static ERXLogger log
          logging support
 
Fields inherited from class er.corebusinesslogic.ERCStampedEnterpriseObject
_implementsLogEntryInterface, insertionLogEntry, TimestampAttributeKeys
 
Fields inherited from class er.extensions.ERXGenericRecord
classLogs, insertionStackTrace, insertionTrackingLog, KEY_MARKER, lock, tranLogDidDelete, tranLogDidInsert, tranLogDidUpdate, tranLogWillDelete, tranLogWillInsert, tranLogWillUpdate, validation, validationException
 
Fields inherited from class com.webobjects.eocontrol.EOGenericRecord
_CLASS
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_KeyPathSeparatorChar, KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Constructor Summary
ERCMailMessage()
          Public constructor.
 
Method Summary
 void appendText(String text)
          Appends test to the currently stored text.
 ERCMailMessage archive()
           
 void attachFileWithMimeType(String filePath, String mimeType)
           
 void awakeFromInsertion(EOEditingContext anEditingContext)
          Default state of the mail message is 'Ready To Be Sent'.
 NSArray bccAddressesAsArray()
           
 NSArray ccAddressesAsArray()
           
 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)
           
 void setToAddressesAsArray(NSArray toAddresses)
           
 boolean shouldArchiveSentMailAsBoolean()
           
 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)
           
 Object validateFromAddress(String newValue)
           
 Object validateText(String newValue)
           
 Object validateTitle(String newValue)
           
 Object validateToAddresses(String newValue)
           
 
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.corebusinesslogic.ERCStampedEnterpriseObject
addObjectToBothSidesOfLogEntryRelationshipWithKey, created, implementsLogEntryInterface, lastModified, setCreated, setLastModified, willDelete, willInsert, willUpdate
 
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.EOGenericRecord
__setClassDescription, _keyGetBindingForKey, _keySetBindingForKey, _otherStorageBinding, _storedKeyGetBindingForKey, _storedKeySetBindingForKey, classDescription, usesDeferredFaultCreation
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

log

public static final ERXLogger log
logging support


AddressSeparator

public static final String AddressSeparator
holds the address separator

See Also:
Constant Field Values
Constructor Detail

ERCMailMessage

public ERCMailMessage()
Public constructor.

Method Detail

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)

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.