ERS3Attachment Class Reference

Inherits er::attachment::model::_ERS3Attachment.

Collaboration diagram for ERS3Attachment:

Collaboration graph
[legend]

List of all members.

Public Member Functions

boolean _isPendingDelete ()
File _pendingUploadFile ()
void _setPendingUploadFile (File pendingUploadFile, boolean pendingDelete)
String accessKeyID ()
String acl ()
void awakeFromInsertion (EOEditingContext ec)
AWSAuthConnection awsConnection ()
String bucket ()
void didInsert ()
 ERS3Attachment ()
String key ()
Integer linkLife ()
QueryStringAuthGenerator queryStringAuthGenerator ()
String s3Path ()
String secretAccessKey ()
void setS3Location (String bucket, String key)

Static Public Attributes

static final String STORAGE_TYPE = "s3"

Private Member Functions

boolean isInNestedEditingContext ()

Private Attributes

boolean _pendingDelete
File _pendingUploadFile

Static Private Attributes

static Logger log = Logger.getLogger(ERS3Attachment.class)


Detailed Description

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.

Author:
mschrag

Constructor & Destructor Documentation

ERS3Attachment (  ) 


Member Function Documentation

boolean _isPendingDelete (  ) 

File _pendingUploadFile (  ) 

void _setPendingUploadFile ( File  pendingUploadFile,
boolean  pendingDelete 
)

String accessKeyID (  ) 

String acl (  ) 

void awakeFromInsertion ( EOEditingContext  editingContext  ) 

Checks the editing context delegate before calling super's implementation. See the method _checkEditingContextDelegate for an explanation as to what this check does.

Parameters:
editingContext to be checked to make sure it has the correct type of delegate set.

Reimplemented from ERXGenericRecord.

AWSAuthConnection awsConnection (  ) 

String bucket (  ) 

Returns:
the S3 bucket for this attachment.

void didInsert (  )  [virtual]

Called on the object after is has successfully been inserted into the database.

Reimplemented from ERAttachment.

boolean isInNestedEditingContext (  )  [private]

Reimplemented from ERAttachment.

String key (  ) 

Returns:
the S3 key for this attachment.

Integer linkLife (  ) 

QueryStringAuthGenerator queryStringAuthGenerator (  ) 

String s3Path (  ) 

Returns:
the s3 path for this attachment. If the acl for this configuration is 'private' then it serves up a signed url

Reimplemented from _ERS3Attachment.

String secretAccessKey (  ) 

void setS3Location ( String  bucket,
String  key 
)

Sets the S3 location for this attachment.

Parameters:
bucket the S3 bucket
key the S3 key


Member Data Documentation

boolean _pendingDelete [private]

File _pendingUploadFile [private]

Logger log = Logger.getLogger(ERS3Attachment.class) [static, private]

general logging support

Reimplemented from ERAttachment.

final String STORAGE_TYPE = "s3" [static]

Reimplemented from _ERS3Attachment.


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:42 2012 for Project Wonder by  doxygen 1.5.8