public class ERS3Attachment extends _ERS3Attachment implements ERRemoteAttachment
ERXGenericRecord.ERXGenericRecordClazz<T extends com.webobjects.eocontrol.EOEnterpriseObject>, ERXGenericRecord.InverseRelationshipUpdater, ERXGenericRecord.LocalizedBinding, ERXGenericRecord.TouchingBinding
EOGenericRecord._DictionaryBinding, EOGenericRecord._LazyDictionaryBinding
EOCustomObject._BooleanFieldBinding, EOCustomObject._FieldBinding, EOCustomObject._LazyFieldBinding, EOCustomObject._NumberFieldBinding
ERXEnterpriseObject.Observer, ERXEnterpriseObject.Processor
com.webobjects.eocontrol.EOKeyValueCodingAdditions.DefaultImplementation, com.webobjects.eocontrol.EOKeyValueCodingAdditions.Utility
com.webobjects.eocontrol.EOKeyValueCoding._BestBindingCreation, com.webobjects.eocontrol.EOKeyValueCoding._KeyBindingCreation, com.webobjects.eocontrol.EOKeyValueCoding._StoredForwardingBinding
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.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
Modifier and Type | Field and Description |
---|---|
static String |
STORAGE_TYPE |
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
_primaryKey, _touchSource, insertionStackTrace
_CLASS
__readOnly
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
Constructor and Description |
---|
ERS3Attachment() |
Modifier and Type | Method and Description |
---|---|
boolean |
_isPendingDelete() |
File |
_pendingUploadFile() |
void |
_setPendingUploadFile(File pendingUploadFile,
boolean pendingDelete) |
String |
accessKeyID() |
String |
acl() |
void |
awakeFromInsertion(com.webobjects.eocontrol.EOEditingContext ec)
Checks the editing context delegate before calling super's
implementation.
|
com.amazon.s3.AWSAuthConnection |
awsConnection() |
String |
bucket()
|
void |
didCopyFromChildInEditingContext(ERXGenericRecord originalEO,
com.webobjects.eocontrol.EOEditingContext childEditingContext)
Called when this EO is saved from a child editing context into a parent editing context.
|
String |
key()
|
Integer |
linkLife() |
com.amazon.s3.QueryStringAuthGenerator |
queryStringAuthGenerator() |
String |
s3Path() |
String |
secretAccessKey() |
void |
setS3Location(String bucket,
String key)
Sets the S3 location for this attachment.
|
createERS3Attachment, fetchAllERS3Attachments, fetchAllERS3Attachments, fetchERS3Attachment, fetchERS3Attachment, fetchERS3Attachments, fetchRequiredERS3Attachment, fetchRequiredERS3Attachment, fetchSpecForERS3Attachment, localInstanceIn, localInstanceIn, setS3Path
didDelete, didInsert, erMimeType, extension, fetchRequiredAttachmentWithWebPath, fileName, thatAreForWebPath
addToChildrenAttachments, addToChildrenAttachmentsRelationship, available, childrenAttachments, childrenAttachments, childrenAttachments, childrenAttachments, configurationName, createChildrenAttachmentsRelationship, createERAttachment, creationDate, deleteAllChildrenAttachmentsRelationships, deleteChildrenAttachmentsRelationship, fetchAllERAttachments, fetchAllERAttachments, fetchERAttachment, fetchERAttachment, fetchERAttachments, fetchRequiredERAttachment, fetchRequiredERAttachment, fetchSpec, 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
_otherStorageBinding, _setPrimaryKeyDictionary, _setUpdateInverseRelationships, _setValueForPrimaryKey, _updateInverseRelationships, _validateValueForKey, addObjectsToBothSidesOfRelationshipWithKey, addObjectToBothSidesOfRelationshipWithKey, applyRestrictingQualifierOnInsert, awakeFromClientUpdate, awakeFromFetch, batchFaultingRelationshipName, batchFaultingSourceGlobalID, batchFaultingTimeStamp, canDelete, canUpdate, changesFromCommittedSnapshot, checkMatchingEditingContexts, clearProperties, committedSnapshot, committedSnapshotValueForKey, committedSnapshotValueForKey, delete, didRevert, didUpdate, encryptedPrimaryKey, entity, excludeObjectFromPropertyWithKey, flushCaches, foreignKeyForRelationshipWithKey, getClassLog, handleQueryWithUnboundKey, hasKeyChangedFromCommittedSnapshot, hasKeyChangedFromCommittedSnapshot, hasKeyChangedFromCommittedSnapshotFromValue, hasKeyChangedFromCommittedSnapshotFromValue, hasKeyChangedFromCommittedSnapshotFromValueToNewValue, hasKeyChangedFromCommittedSnapshotFromValueToNewValue, hasKeyChangedFromCommittedSnapshotToValue, hasKeyChangedFromCommittedSnapshotToValue, includeObjectIntoPropertyWithKey, init, isDeletedEO, isNewObject, isNonNull, isUpdatedObject, isValidatedWhenNested, localesForKey, localInstanceOf, localInstancesOf, localizationShouldFallbackToDefaultLanguage, localizedKey, mightDelete, parentObjectStoreIsObjectStoreCoordinator, permanentGlobalID, permanentGlobalID, primaryKey, primaryKeyAttributeNames, primaryKeyInTransaction, rawPrimaryKey, rawPrimaryKeyDictionary, rawPrimaryKeyInTransaction, refetchObjectFromDB, refetchObjectFromDBinEditingContext, removeObjectsFromBothSidesOfRelationshipWithKey, removeObjectsFromPropertyWithKey, self, setBatchFaultingTimestamp, setValidatedWhenNested, shouldSkipValidateForSave, shouldTrimSpaces, takeStoredValueForKey, takeValueForKey, takeValueForKey, toLongString, toString, touchFromBatchFaultingSource, trimSpaces, updateFromSnapshot, validateForInsert, validateForSave, validateForUpdate, validateValueForKey, valueForKey, willDelete, willInsert, willReadRelationship, willRevert, willUpdate
__setClassDescription, _keyGetBindingForKey, _keySetBindingForKey, _storedKeyGetBindingForKey, _storedKeySetBindingForKey, classDescription, usesDeferredFaultCreation
__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, 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
allPropertyKeys, attributeKeys, changesFromSnapshot, classDescription, classDescriptionForDestinationKey, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, inverseForRelationshipKey, invokeRemoteMethod, isReadOnly, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, reapplyChangesFromDictionary, snapshot, toManyRelationshipKeys, toOneRelationshipKeys, userPresentableDescription, willChange
takeValuesFromDictionary, takeValuesFromDictionaryWithMapping, valuesForKeys, valuesForKeysWithMapping
takeValueForKeyPath, valueForKeyPath
handleTakeValueForUnboundKey, unableToSetNullForKey
addObjectToPropertyWithKey, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKey
public static final String STORAGE_TYPE
public void _setPendingUploadFile(File pendingUploadFile, boolean pendingDelete)
public File _pendingUploadFile()
_pendingUploadFile
in interface ERRemoteAttachment
public boolean _isPendingDelete()
_isPendingDelete
in interface ERRemoteAttachment
public void didCopyFromChildInEditingContext(ERXGenericRecord originalEO, com.webobjects.eocontrol.EOEditingContext childEditingContext)
ERXGenericRecord
didCopyFromChildInEditingContext
in class ERXGenericRecord
originalEO
- the original EO in the child editing contextchildEditingContext
- the child editing contextpublic void awakeFromInsertion(com.webobjects.eocontrol.EOEditingContext ec)
ERXGenericRecord
_checkEditingContextDelegate
for an explanation as to what this check does.awakeFromInsertion
in interface com.webobjects.eocontrol.EOEnterpriseObject
awakeFromInsertion
in class ERXGenericRecord
ec
- to be checked to make sure it has the correct type of delegate
set.public void setS3Location(String bucket, String key)
bucket
- the S3 bucketkey
- the S3 key
このアタッチメントの S3 ロケーションをセットします。bucket
- - S3 のパケットkey
- - S3 のキー
public String bucket()
public String key()
public String s3Path()
s3Path
in class _ERS3Attachment
public Integer linkLife()
public String accessKeyID()
public String secretAccessKey()
public String acl()
public com.amazon.s3.QueryStringAuthGenerator queryStringAuthGenerator()
public com.amazon.s3.AWSAuthConnection awsConnection()
Copyright © 2002 – 2020 Project Wonder.