Class AwsS3FileResourceStorage

java.lang.Object
com.gsitm.ustra.java.data.file.aws.AwsS3FileResourceStorage
All Implemented Interfaces:
FileResourceStorage

public class AwsS3FileResourceStorage extends Object implements FileResourceStorage
AWS 리소스 저장소 연계를 처리하는 FileResourceStorage 구현체
See Also:
  • Constructor Details

  • Method Details

    • createClient

      protected com.amazonaws.services.s3.AmazonS3 createClient()
      AmazonS3 객체 생성 프로퍼티에 인증정보가 포함될 경우 BasicAWSCredentials 객체를 사용하여 인증 처리 그 외는 DefaultAWSCredentialsProviderChain 을 사용하여 설정 됨.
      Returns:
      See Also:
      • DefaultAWSCredentialsProviderChain
      • BasicAWSCredentials
    • createStorageProtocolResolver

      protected org.springframework.core.io.ProtocolResolver createStorageProtocolResolver()
      ProtocolResolver 객체 생성 ProtocolResolver : resource URL을 Resource 객체로 변환
      Returns:
      See Also:
      • SimpleStorageProtocolResolver
    • addFileStorage

      public String addFileStorage(FileGroupPolicy policy, List<FileMetaData> details, String targetPath)
      Description copied from interface: FileResourceStorage
      파일 저장소 저장
      Specified by:
      addFileStorage in interface FileResourceStorage
      Returns:
    • delFileStorage

      public void delFileStorage(FileRemoveInput removeInput)
      Description copied from interface: FileResourceStorage
      파일 삭제
      Specified by:
      delFileStorage in interface FileResourceStorage
    • getFileResource

      public org.springframework.core.io.Resource getFileResource(FileMetaData metaData)
      Description copied from interface: FileResourceStorage
      메타 데이터로 리소스 조회
      Specified by:
      getFileResource in interface FileResourceStorage
      Returns:
    • getResourceByPath

      public org.springframework.core.io.Resource getResourceByPath(String path)
      Description copied from interface: FileResourceStorage
      경로로 리소스 조회
      Specified by:
      getResourceByPath in interface FileResourceStorage
      Returns:
    • exists

      public boolean exists(String path)
      Description copied from interface: FileResourceStorage
      리소스의 존재 여부 확인
      Specified by:
      exists in interface FileResourceStorage
      Parameters:
      path - 경로
      Returns:
    • getAwsProperties

      public UstraDataFileConfigProperties.AwsS3 getAwsProperties()
    • getS3Client

      public com.amazonaws.services.s3.AmazonS3 getS3Client()
    • getStorageProtocolResolver

      public org.springframework.core.io.ProtocolResolver getStorageProtocolResolver()