Project Wonder 5.0

er.attachment.model
Class ERS3Attachment

java.lang.Object
  extended by com.webobjects.eocontrol.EOCustomObject
      extended by com.webobjects.eocontrol.EOGenericRecord
          extended by er.extensions.eof.ERXGenericRecord
              extended by er.attachment.model._ERAttachment
                  extended by er.attachment.model.ERAttachment
                      extended by er.attachment.model._ERS3Attachment
                          extended by er.attachment.model.ERS3Attachment
All Implemented Interfaces:
com.webobjects.eocontrol._EOPrivateMemento, com.webobjects.eocontrol.EODeferredFaulting, com.webobjects.eocontrol.EOEnterpriseObject, com.webobjects.eocontrol.EOFaulting, com.webobjects.eocontrol.EOKeyValueCoding, com.webobjects.eocontrol.EOKeyValueCoding._BestBindingCreation._ForwardingBindingCheck, com.webobjects.eocontrol.EOKeyValueCoding._KeyBindingCreation, com.webobjects.eocontrol.EOKeyValueCodingAdditions, com.webobjects.eocontrol.EORelationshipManipulation, com.webobjects.eocontrol.EOValidation, com.webobjects.foundation.NSKeyValueCoding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation.Callback, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCodingAdditions, com.webobjects.foundation.NSValidation, ERXDatabaseContextDelegate.AutoBatchFaultingEnterpriseObject, ERXEnterpriseObject, ERXGeneratesPrimaryKeyInterface, ERXGuardedObjectInterface, ERXKey.ValueCoding, ERXNonNullObjectInterface, java.io.Serializable

public class ERS3Attachment
extends _ERS3Attachment

ERS3Attachment (type = "s3") represents an attachment whose content is stored on Amazon's S3 service and will be served directly from S3. This type may eventually support proxying as well, but currently only direct links are enabled.

See Also:
Serialized Form
Author:
mschrag

Nested Class Summary
 
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 STORAGE_TYPE
           
 
Fields inherited from class er.attachment.model._ERS3Attachment
AVAILABLE, AVAILABLE_KEY, CHILDREN_ATTACHMENTS, CHILDREN_ATTACHMENTS_KEY, CONFIGURATION_NAME, CONFIGURATION_NAME_KEY, CREATION_DATE, CREATION_DATE_KEY, ENTITY_NAME, HEIGHT, HEIGHT_KEY, MIME_TYPE, MIME_TYPE_KEY, ORIGINAL_FILE_NAME, ORIGINAL_FILE_NAME_KEY, OWNER_ID, OWNER_ID_KEY, PARENT_ATTACHMENT, PARENT_ATTACHMENT_KEY, PROXIED, PROXIED_KEY, S3_PATH, S3_PATH_KEY, SIZE, SIZE_KEY, STORAGE_TYPE_KEY, THUMBNAIL, THUMBNAIL_KEY, WEB_PATH, WEB_PATH_KEY, WIDTH, WIDTH_KEY
 
Fields inherited from class er.extensions.eof.ERXGenericRecord
_primaryKey, _touchSource, insertionStackTrace
 
Fields inherited from class com.webobjects.eocontrol.EOGenericRecord
_CLASS
 
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
 
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
ERS3Attachment()
           
 
Method Summary
 boolean _isPendingDelete()
           
 java.io.File _pendingUploadFile()
           
 void _setPendingUploadFile(java.io.File pendingUploadFile, boolean pendingDelete)
           
 java.lang.String accessKeyID()
           
 java.lang.String acl()
           
 void awakeFromInsertion(com.webobjects.eocontrol.EOEditingContext ec)
          Checks the editing context delegate before calling super's implementation.
 com.amazon.s3.AWSAuthConnection awsConnection()
           
 java.lang.String bucket()
           
 void didInsert()
          Called on the object after is has successfully been inserted into the database.
 java.lang.String key()
           
 java.lang.Integer linkLife()
           
 com.amazon.s3.QueryStringAuthGenerator queryStringAuthGenerator()
           
 java.lang.String s3Path()
           
 java.lang.String secretAccessKey()
           
 void setS3Location(java.lang.String bucket, java.lang.String key)
          Sets the S3 location for this attachment.
 
Methods inherited from class er.attachment.model._ERS3Attachment
createERS3Attachment, fetchAllERS3Attachments, fetchAllERS3Attachments, fetchERS3Attachment, fetchERS3Attachment, fetchERS3Attachments, fetchRequiredERS3Attachment, fetchRequiredERS3Attachment, localInstanceIn, localInstanceIn, setS3Path
 
Methods inherited from class er.attachment.model.ERAttachment
didDelete, erMimeType, extension, fetchRequiredAttachmentWithWebPath, fileName
 
Methods inherited from class er.attachment.model._ERAttachment
addToChildrenAttachments, addToChildrenAttachmentsRelationship, available, childrenAttachments, childrenAttachments, childrenAttachments, childrenAttachments, configurationName, createChildrenAttachmentsRelationship, createERAttachment, creationDate, deleteAllChildrenAttachmentsRelationships, deleteChildrenAttachmentsRelationship, fetchAllERAttachments, fetchAllERAttachments, fetchERAttachment, fetchERAttachment, fetchERAttachments, fetchRequiredERAttachment, fetchRequiredERAttachment, height, localInstanceIn, mimeType, originalFileName, ownerID, parentAttachment, proxied, removeFromChildrenAttachments, removeFromChildrenAttachmentsRelationship, setAvailable, setConfigurationName, setCreationDate, setHeight, setMimeType, setOriginalFileName, setOwnerID, setParentAttachment, setParentAttachmentRelationship, setProxied, setSize, setStorageType, setThumbnail, setWebPath, setWidth, size, storageType, thumbnail, webPath, width
 
Methods inherited from class er.extensions.eof.ERXGenericRecord
_otherStorageBinding, _setPrimaryKeyDictionary, _setUpdateInverseRelationships, _setValueForPrimaryKey, _updateInverseRelationships, _validateValueForKey, addObjectsToBothSidesOfRelationshipWithKey, addObjectToBothSidesOfRelationshipWithKey, applyRestrictingQualifierOnInsert, awakeFromClientUpdate, awakeFromFetch, batchCheckConsistency, batchFaultingRelationshipName, batchFaultingSourceGlobalID, batchFaultingTimeStamp, canDelete, canUpdate, changesFromCommittedSnapshot, checkConsistency, checkMatchingEditingContexts, clearProperties, committedSnapshot, committedSnapshotValueForKey, delete, description, didCopyFromChildInEditingContext, didRevert, didUpdate, encryptedPrimaryKey, entity, excludeObjectFromPropertyWithKey, flushCaches, foreignKeyForRelationshipWithKey, getClassLog, hasKeyChangedFromCommittedSnapshot, hasKeyChangedFromCommittedSnapshotFromValue, hasKeyChangedFromCommittedSnapshotFromValueToNewValue, hasKeyChangedFromCommittedSnapshotToValue, includeObjectIntoPropertyWithKey, init, isDeletedEO, isNewEO, isNewObject, isNonNull, isUpdatedObject, isValidatedWhenNested, localesForKey, localInstanceOf, localInstancesOf, localizationShouldFallbackToDefaultLanguage, mightDelete, parentObjectStoreIsObjectStoreCoordinator, permanentGlobalID, permanentGlobalID, primaryKey, primaryKeyAttributeNames, primaryKeyDictionary, primaryKeyInTransaction, rawPrimaryKey, rawPrimaryKeyInTransaction, refetchObjectFromDB, refetchObjectFromDBinEditingContext, removeObjectsFromBothSidesOfRelationshipWithKey, removeObjectsFromPropertyWithKey, self, setBatchFaultingTimestamp, setValidatedWhenNested, shouldTrimSpaces, takeStoredValueForKey, takeValueForKey, takeValueForKey, toLongString, toString, touchFromBatchFaultingSource, trimSpaces, updateFromSnapshot, validateForInsert, validateForSave, validateForUpdate, validateValueForKey, valueForKey, willDelete, willInsert, willReadRelationship, willRevert, willUpdate
 
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

STORAGE_TYPE

public static final java.lang.String STORAGE_TYPE
See Also:
Constant Field Values
Constructor Detail

ERS3Attachment

public ERS3Attachment()
Method Detail

_setPendingUploadFile

public void _setPendingUploadFile(java.io.File pendingUploadFile,
                                  boolean pendingDelete)

_pendingUploadFile

public java.io.File _pendingUploadFile()

_isPendingDelete

public boolean _isPendingDelete()

didInsert

public void didInsert()
Description copied from interface: ERXEnterpriseObject
Called on the object after is has successfully been inserted into the database.

Specified by:
didInsert in interface ERXEnterpriseObject
Overrides:
didInsert in class ERAttachment

awakeFromInsertion

public void awakeFromInsertion(com.webobjects.eocontrol.EOEditingContext ec)
Description copied from class: ERXGenericRecord
Checks the editing context delegate before calling super's implementation. See the method _checkEditingContextDelegate for an explanation as to what this check does.

Specified by:
awakeFromInsertion in interface com.webobjects.eocontrol.EOEnterpriseObject
Overrides:
awakeFromInsertion in class ERXGenericRecord
Parameters:
ec - to be checked to make sure it has the correct type of delegate set.

setS3Location

public void setS3Location(java.lang.String bucket,
                          java.lang.String key)
Sets the S3 location for this attachment.

Parameters:
bucket - the S3 bucket
key - the S3 key

bucket

public java.lang.String bucket()
Returns:
the S3 bucket for this attachment.

key

public java.lang.String key()
Returns:
the S3 key for this attachment.

s3Path

public java.lang.String s3Path()
Overrides:
s3Path in class _ERS3Attachment
Returns:
the s3 path for this attachment. If the acl for this configuration is 'private' then it serves up a signed url

linkLife

public java.lang.Integer linkLife()

accessKeyID

public java.lang.String accessKeyID()

secretAccessKey

public java.lang.String secretAccessKey()

acl

public java.lang.String acl()

queryStringAuthGenerator

public com.amazon.s3.QueryStringAuthGenerator queryStringAuthGenerator()

awsConnection

public com.amazon.s3.AWSAuthConnection awsConnection()

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.