Package com.adaptris.aws.s3
Class TagOperation
- java.lang.Object
-
- com.adaptris.aws.s3.S3OperationImpl
-
- com.adaptris.aws.s3.ObjectOperationImpl
-
- com.adaptris.aws.s3.TagOperation
-
- All Implemented Interfaces:
S3Operation
,ComponentLifecycleExtension
- Direct Known Subclasses:
GetTagOperation
@ComponentProfile(summary="Tag an object in S3") public class TagOperation extends ObjectOperationImpl
Add tags to an object from S3 to another objectUses
AmazonS3Client.setObjectTagging(SetObjectTaggingRequest)
.In the adapter configuration file this class is aliased as amazon-s3-copy which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Field Summary
-
Fields inherited from class com.adaptris.aws.s3.S3OperationImpl
log
-
-
Constructor Summary
Constructors Constructor Description TagOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(ClientWrapper wrapper, AdaptrisMessage msg)
protected java.util.List<com.amazonaws.services.s3.model.Tag>
filterTagMetadata(AdaptrisMessage msg)
MetadataFilter
getTagMetadataFilter()
void
setTagMetadataFilter(MetadataFilter mf)
Filter metadata and set them as tags for the s3 object.protected MetadataFilter
tagMetadataFilter()
<T extends TagOperation>
TwithTagMetadataFilter(MetadataFilter mf)
-
Methods inherited from class com.adaptris.aws.s3.ObjectOperationImpl
getObjectName, prepare, s3ObjectKey, setObjectName, withObjectName
-
Methods inherited from class com.adaptris.aws.s3.S3OperationImpl
getBucket, resolve, s3Bucket, setBucket, withBucket
-
-
-
-
Method Detail
-
execute
public void execute(ClientWrapper wrapper, AdaptrisMessage msg) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getTagMetadataFilter
public MetadataFilter getTagMetadataFilter()
-
setTagMetadataFilter
public void setTagMetadataFilter(MetadataFilter mf)
Filter metadata and set them as tags for the s3 object.- Parameters:
mf
- the metadata filter; if not specified defaults toRemoveAllMetadataFilter
.
-
withTagMetadataFilter
public <T extends TagOperation> T withTagMetadataFilter(MetadataFilter mf)
-
tagMetadataFilter
protected MetadataFilter tagMetadataFilter()
-
filterTagMetadata
protected java.util.List<com.amazonaws.services.s3.model.Tag> filterTagMetadata(AdaptrisMessage msg)
-
-