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.This service has been replaced withAwsS3ServiceImpl
Default implementation ofS3Service
.- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected int
partSize
Deprecated.-
Fields inherited from class org.craftercms.studio.api.v1.service.aws.AbstractAwsService
profileLoader
-
-
Constructor Summary
Constructors Constructor Description S3ServiceImpl()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected com.amazonaws.services.s3.AmazonS3
getS3Client(org.craftercms.commons.config.profiles.aws.S3Profile profile)
Deprecated.void
setPartSize(int partSize)
Deprecated.S3Output
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
-
-
-
-
Method Detail
-
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:S3Service
Requests the file upload using the specifiedS3Profile
.- Specified by:
uploadFile
in interfaceS3Service
- Parameters:
site
- the siteprofileId
- the id of theS3Profile
to 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
-
-