Class S3ServiceImpl
java.lang.Object
org.craftercms.studio.api.v1.service.aws.AbstractAwsService<org.craftercms.commons.config.profiles.aws.S3Profile>
org.craftercms.studio.impl.v1.service.aws.S3ServiceImpl
- All Implemented Interfaces:
S3Service
@Deprecated
public class S3ServiceImpl
extends AbstractAwsService<org.craftercms.commons.config.profiles.aws.S3Profile>
implements S3Service
Deprecated.
Default implementation of
S3Service.- Author:
- joseross
-
Field Summary
FieldsFields inherited from class org.craftercms.studio.api.v1.service.aws.AbstractAwsService
profileLoader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.amazonaws.services.s3.AmazonS3getS3Client(org.craftercms.commons.config.profiles.aws.S3Profile profile) Deprecated.voidsetPartSize(int partSize) Deprecated.uploadFile(String site, String profileId, String filename, InputStream content) Deprecated.Requests the file upload using the specifiedS3Profile.Methods inherited from class org.craftercms.studio.api.v1.service.aws.AbstractAwsService
getProfile, setProfileLoader
-
Field Details
-
partSize
protected int partSizeDeprecated.
-
-
Constructor Details
-
S3ServiceImpl
public S3ServiceImpl()Deprecated.
-
-
Method Details
-
setPartSize
public void setPartSize(int partSize) Deprecated. -
getS3Client
protected com.amazonaws.services.s3.AmazonS3 getS3Client(org.craftercms.commons.config.profiles.aws.S3Profile profile) Deprecated. -
uploadFile
public S3Output uploadFile(String site, String profileId, String filename, InputStream content) throws AwsException, org.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException Deprecated.Description copied from interface:S3ServiceRequests the file upload using the specifiedS3Profile.- Specified by:
uploadFilein interfaceS3Service- Parameters:
site- the siteprofileId- the id of theS3Profileto use.filename- the name of the file to uploadcontent- the file itself- Returns:
- metadata of an AWS S3 upload
- Throws:
AwsException- if an error occursorg.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException- if the profile is not found
-
AwsS3ServiceImpl