|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webobjects.eocontrol.EOCustomObject
com.webobjects.eocontrol.EOGenericRecord
er.extensions.eof.ERXGenericRecord
er.corebusinesslogic._ERCMailMessage
er.corebusinesslogic.ERCMailMessage
public class ERCMailMessage
Nested Class Summary | |
---|---|
static class |
ERCMailMessage.ERCMailMessageClazz
Clazz object used to hold all clazz related methods. |
Nested classes/interfaces inherited from class er.corebusinesslogic._ERCMailMessage |
---|
_ERCMailMessage._ERCMailMessageClazz, _ERCMailMessage.Key |
Nested classes/interfaces inherited from class er.extensions.eof.ERXGenericRecord |
---|
ERXGenericRecord.ERXGenericRecordClazz<T extends com.webobjects.eocontrol.EOEnterpriseObject>, ERXGenericRecord.InverseRelationshipUpdater, ERXGenericRecord.LocalizedBinding, ERXGenericRecord.TouchingBinding |
Nested classes/interfaces inherited from class com.webobjects.eocontrol.EOGenericRecord |
---|
com.webobjects.eocontrol.EOGenericRecord._DictionaryBinding, com.webobjects.eocontrol.EOGenericRecord._LazyDictionaryBinding |
Nested classes/interfaces inherited from class com.webobjects.eocontrol.EOCustomObject |
---|
com.webobjects.eocontrol.EOCustomObject._BooleanFieldBinding, com.webobjects.eocontrol.EOCustomObject._FieldBinding, com.webobjects.eocontrol.EOCustomObject._LazyFieldBinding, com.webobjects.eocontrol.EOCustomObject._NumberFieldBinding |
Nested classes/interfaces inherited from interface er.extensions.eof.ERXEnterpriseObject |
---|
ERXEnterpriseObject.Observer, ERXEnterpriseObject.Processor |
Nested classes/interfaces inherited from interface com.webobjects.eocontrol.EOKeyValueCodingAdditions |
---|
com.webobjects.eocontrol.EOKeyValueCodingAdditions.DefaultImplementation, com.webobjects.eocontrol.EOKeyValueCodingAdditions.Utility |
Nested classes/interfaces inherited from interface com.webobjects.eocontrol.EOKeyValueCoding |
---|
com.webobjects.eocontrol.EOKeyValueCoding._BestBindingCreation, com.webobjects.eocontrol.EOKeyValueCoding._KeyBindingCreation, com.webobjects.eocontrol.EOKeyValueCoding._StoredForwardingBinding |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding |
---|
com.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.Null, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation |
---|
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.ValidationException |
Nested classes/interfaces inherited from interface com.webobjects.eocontrol._EOPrivateMemento |
---|
com.webobjects.eocontrol._EOPrivateMemento.DefaultImplementation |
Field Summary | |
---|---|
static java.lang.String |
AddressSeparator
holds the address separator |
static org.apache.log4j.Logger |
log
logging support |
Fields inherited from class er.corebusinesslogic._ERCMailMessage |
---|
ENTITY_NAME |
Fields inherited from class er.extensions.eof.ERXGenericRecord |
---|
_primaryKey, _touchSource, insertionStackTrace |
Fields inherited from class com.webobjects.eocontrol.EOGenericRecord |
---|
_CLASS |
Fields inherited from interface com.webobjects.eocontrol.EOEnterpriseObject |
---|
_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 |
addToBothSidesOfAttachments(ERCMessageAttachment attachement)
|
void |
appendText(java.lang.String text)
Appends test to the currently stored text. |
ERCMailMessage |
archive()
|
void |
attachFileWithMimeType(java.lang.String filePath,
java.lang.String mimeType)
|
com.webobjects.foundation.NSArray |
bccAddressesAsArray()
|
com.webobjects.foundation.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 |
isReadAsBoolean()
|
boolean |
isReadyToSendState()
|
boolean |
isReceivedState()
|
boolean |
isSentState()
|
java.lang.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(com.webobjects.foundation.NSArray bccAddresses)
|
void |
setCcAddressesAsArray(com.webobjects.foundation.NSArray ccAddresses)
|
void |
setReadAsBoolean(boolean read)
Deprecated. setIsRead |
void |
setText(java.lang.String aValue)
|
void |
setToAddressesAsArray(com.webobjects.foundation.NSArray toAddresses)
|
boolean |
shouldArchiveSentMailAsBoolean()
|
java.lang.String |
storedGzippedValueForKey(java.lang.String key)
|
void |
takeStoredGzippedValueForKey(java.lang.String aValue,
java.lang.String key)
|
java.lang.String |
text()
|
com.webobjects.foundation.NSArray |
toAddressesAsArray()
|
java.lang.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. |
java.lang.String |
toString()
Overrides the EOGenericRecord's implementation to provide a slightly less verbose output. |
java.lang.Object |
validateEmptyStringForKey(java.lang.Object value,
java.lang.String field)
|
void |
validateForSave()
This method performs a few checks before invoking super's implementation. |
java.lang.Object |
validateFromAddress(java.lang.String newValue)
|
java.lang.Object |
validateTitle(java.lang.String newValue)
|
java.lang.Object |
validateToAddresses(java.lang.String newValue)
|
Methods inherited from class com.webobjects.eocontrol.EOGenericRecord |
---|
__setClassDescription, _keyGetBindingForKey, _keySetBindingForKey, _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, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, equals, faultHandler, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hashCode, inverseForRelationshipKey, invokeRemoteMethod, isFault, 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 class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.webobjects.eocontrol.EOEnterpriseObject |
---|
allPropertyKeys, attributeKeys, changesFromSnapshot, classDescription, classDescriptionForDestinationKey, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, inverseForRelationshipKey, invokeRemoteMethod, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, reapplyChangesFromDictionary, snapshot, toManyRelationshipKeys, toOneRelationshipKeys, userPresentableDescription, willChange |
Methods inherited from interface com.webobjects.eocontrol.EOKeyValueCodingAdditions |
---|
takeValuesFromDictionary, takeValuesFromDictionaryWithMapping, valuesForKeys, valuesForKeysWithMapping |
Methods inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
---|
takeValueForKeyPath, valueForKeyPath |
Methods inherited from interface com.webobjects.eocontrol.EOKeyValueCoding |
---|
storedValueForKey |
Methods inherited from interface com.webobjects.foundation.NSKeyValueCoding |
---|
valueForKey |
Methods inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling |
---|
handleQueryWithUnboundKey, handleTakeValueForUnboundKey, unableToSetNullForKey |
Methods inherited from interface com.webobjects.eocontrol.EORelationshipManipulation |
---|
addObjectToPropertyWithKey, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKey |
Methods inherited from interface com.webobjects.eocontrol.EOValidation |
---|
validateClientUpdate, validateForDelete |
Methods inherited from interface com.webobjects.foundation.NSValidation |
---|
validateTakeValueForKeyPath |
Methods inherited from interface com.webobjects.eocontrol.EOFaulting |
---|
clearFault, faultHandler, isFault, turnIntoFault, willRead |
Field Detail |
---|
public static final org.apache.log4j.Logger log
public static final java.lang.String AddressSeparator
Constructor Detail |
---|
public ERCMailMessage()
Method Detail |
---|
public static ERCMailMessage.ERCMailMessageClazz mailMessageClazz()
public void init(com.webobjects.eocontrol.EOEditingContext anEditingContext)
init
in class ERXGenericRecord
anEditingContext
- inserted intopublic boolean isReadyToSendState()
public boolean isSentState()
public boolean isExceptionState()
public boolean isReceivedState()
public void markReadBy(com.webobjects.eocontrol.EOEnterpriseObject by)
public void setReadAsBoolean(boolean read)
public boolean isReadAsBoolean()
public com.webobjects.foundation.NSArray toAddressesAsArray()
public void setToAddressesAsArray(com.webobjects.foundation.NSArray toAddresses)
public com.webobjects.foundation.NSArray ccAddressesAsArray()
public void setCcAddressesAsArray(com.webobjects.foundation.NSArray ccAddresses)
public com.webobjects.foundation.NSArray bccAddressesAsArray()
public void setBccAddressesAsArray(com.webobjects.foundation.NSArray bccAddresses)
public boolean shouldArchiveSentMailAsBoolean()
public java.lang.String longDescription()
public java.lang.String toString()
ERXGenericRecord
toLongString
. To restore the original verbose logging in
your subclasses override this method and return toLongString.
toString
in class ERXGenericRecord
public java.lang.String toLongString()
ERXEnterpriseObject
toLongString
in interface ERXEnterpriseObject
toLongString
in class ERXGenericRecord
toString
.public ERCMailMessage archive()
public void appendText(java.lang.String text)
text
- to be appendedpublic java.lang.Object validateEmptyStringForKey(java.lang.Object value, java.lang.String field)
public boolean hasAttachments()
public java.lang.Object validateFromAddress(java.lang.String newValue)
public java.lang.Object validateTitle(java.lang.String newValue)
public java.lang.Object validateToAddresses(java.lang.String newValue)
public void validateForSave() throws com.webobjects.foundation.NSValidation.ValidationException
ERXGenericRecord
checkConsistency
will be called on this object.
validateForSave
in interface com.webobjects.eocontrol.EOValidation
validateForSave
in class ERXGenericRecord
NSValidation.ValidationException
- if the object does not pass validation for saving to the
database.public void attachFileWithMimeType(java.lang.String filePath, java.lang.String mimeType)
public void addToBothSidesOfAttachments(ERCMessageAttachment attachement)
public java.lang.String storedGzippedValueForKey(java.lang.String key)
public void takeStoredGzippedValueForKey(java.lang.String aValue, java.lang.String key)
public java.lang.String text()
text
in class _ERCMailMessage
public void setText(java.lang.String aValue)
setText
in class _ERCMailMessage
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |