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 with AwsS3ServiceImpl
Default implementation of S3Service.
Author:
joseross
  • Field Details

    • partSize

      protected int partSize
      Deprecated.
  • 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: S3Service
      Requests the file upload using the specified S3Profile.
      Specified by:
      uploadFile in interface S3Service
      Parameters:
      site - the site
      profileId - the id of the S3Profile to use.
      filename - the name of the file to upload
      content - the file itself
      Returns:
      metadata of an AWS S3 upload
      Throws:
      AwsException - if an error occurs
      org.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException - if the profile is not found