Class LocalFileSystemDirectoryFileService

java.lang.Object
fr.paris.lutece.plugins.identityexport.service.file.implementation.LocalFileSystemDirectoryFileService
All Implemented Interfaces:
fr.paris.lutece.portal.service.file.IFileStoreServiceProvider, Serializable

public class LocalFileSystemDirectoryFileService extends Object implements fr.paris.lutece.portal.service.file.IFileStoreServiceProvider
LocalFileSystemDirectoryFileService.
See Also:
  • Constructor Details

    • LocalFileSystemDirectoryFileService

      public LocalFileSystemDirectoryFileService(String strPath, fr.paris.lutece.portal.service.file.IFileDownloadUrlService fileDownloadUrlService, fr.paris.lutece.portal.service.file.IFileRBACService fileRBACService)
      init
      Parameters:
      strPath - the storage dir
      fileDownloadUrlService -
      fileRBACService -
  • Method Details

    • getFileRBACService

      public fr.paris.lutece.portal.service.file.IFileRBACService getFileRBACService()
      get the FileRBACService
      Returns:
      the FileRBACService
    • setFileRBACService

      public void setFileRBACService(fr.paris.lutece.portal.service.file.IFileRBACService fileRBACService)
      set the FileRBACService
      Parameters:
      fileRBACService -
    • getDownloadUrlService

      public fr.paris.lutece.portal.service.file.IFileDownloadUrlService getDownloadUrlService()
      Get the downloadService
      Returns:
      the downloadService
    • setDownloadUrlService

      public void setDownloadUrlService(fr.paris.lutece.portal.service.file.IFileDownloadUrlService downloadUrlService)
      Sets the downloadService
      Parameters:
      downloadUrlService - downloadService
    • getName

      public String getName()
      Specified by:
      getName in interface fr.paris.lutece.portal.service.file.IFileStoreServiceProvider
    • delete

      public void delete(String strKey)
      Specified by:
      delete in interface fr.paris.lutece.portal.service.file.IFileStoreServiceProvider
    • getFile

      public fr.paris.lutece.portal.business.file.File getFile(String strKey)
      Specified by:
      getFile in interface fr.paris.lutece.portal.service.file.IFileStoreServiceProvider
    • getFileMetaData

      public fr.paris.lutece.portal.business.file.File getFileMetaData(String strKey)
      Specified by:
      getFileMetaData in interface fr.paris.lutece.portal.service.file.IFileStoreServiceProvider
    • getFile

      public fr.paris.lutece.portal.business.file.File getFile(String strKey, boolean withPhysicalFile)
      get file from OS dir
      Parameters:
      strKey -
      withPhysicalFile -
      Returns:
      the file with the physical file content if withPhysicalFile is true, null otherwise
    • storeBytes

      public String storeBytes(byte[] blob)
      Specified by:
      storeBytes in interface fr.paris.lutece.portal.service.file.IFileStoreServiceProvider
    • storeInputStream

      public String storeInputStream(InputStream inputStream)
      Specified by:
      storeInputStream in interface fr.paris.lutece.portal.service.file.IFileStoreServiceProvider
    • storeFileItem

      public String storeFileItem(org.apache.commons.fileupload.FileItem fileItem)
      Specified by:
      storeFileItem in interface fr.paris.lutece.portal.service.file.IFileStoreServiceProvider
    • storeFile

      public String storeFile(fr.paris.lutece.portal.business.file.File file)
      Specified by:
      storeFile in interface fr.paris.lutece.portal.service.file.IFileStoreServiceProvider
    • setDefault

      public void setDefault(boolean bDefault)
    • setName

      public void setName(String strName)
    • isDefault

      public boolean isDefault()
      Specified by:
      isDefault in interface fr.paris.lutece.portal.service.file.IFileStoreServiceProvider
    • getInputStream

      public InputStream getInputStream(String strKey)
      Specified by:
      getInputStream in interface fr.paris.lutece.portal.service.file.IFileStoreServiceProvider
    • getFileDownloadUrlFO

      public String getFileDownloadUrlFO(String strKey)
      Specified by:
      getFileDownloadUrlFO in interface fr.paris.lutece.portal.service.file.IFileStoreServiceProvider
    • getFileDownloadUrlFO

      public String getFileDownloadUrlFO(String strKey, Map<String,String> additionnalData)
      Specified by:
      getFileDownloadUrlFO in interface fr.paris.lutece.portal.service.file.IFileStoreServiceProvider
    • getFileDownloadUrlBO

      public String getFileDownloadUrlBO(String strKey)
      Specified by:
      getFileDownloadUrlBO in interface fr.paris.lutece.portal.service.file.IFileStoreServiceProvider
    • getFileDownloadUrlBO

      public String getFileDownloadUrlBO(String strKey, Map<String,String> additionnalData)
      Specified by:
      getFileDownloadUrlBO in interface fr.paris.lutece.portal.service.file.IFileStoreServiceProvider
    • checkAccessRights

      public void checkAccessRights(Map<String,String> fileData, fr.paris.lutece.api.user.User user) throws fr.paris.lutece.portal.service.admin.AccessDeniedException, fr.paris.lutece.portal.service.security.UserNotSignedException
      Specified by:
      checkAccessRights in interface fr.paris.lutece.portal.service.file.IFileStoreServiceProvider
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException
      fr.paris.lutece.portal.service.security.UserNotSignedException
    • checkLinkValidity

      public void checkLinkValidity(Map<String,String> fileData) throws fr.paris.lutece.portal.service.file.ExpiredLinkException
      Specified by:
      checkLinkValidity in interface fr.paris.lutece.portal.service.file.IFileStoreServiceProvider
      Throws:
      fr.paris.lutece.portal.service.file.ExpiredLinkException
    • getFileFromRequestBO

      public fr.paris.lutece.portal.business.file.File getFileFromRequestBO(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException, fr.paris.lutece.portal.service.file.ExpiredLinkException, fr.paris.lutece.portal.service.security.UserNotSignedException
      Specified by:
      getFileFromRequestBO in interface fr.paris.lutece.portal.service.file.IFileStoreServiceProvider
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException
      fr.paris.lutece.portal.service.file.ExpiredLinkException
      fr.paris.lutece.portal.service.security.UserNotSignedException
    • getFileFromRequestFO

      public fr.paris.lutece.portal.business.file.File getFileFromRequestFO(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException, fr.paris.lutece.portal.service.file.ExpiredLinkException, fr.paris.lutece.portal.service.security.UserNotSignedException
      Specified by:
      getFileFromRequestFO in interface fr.paris.lutece.portal.service.file.IFileStoreServiceProvider
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException
      fr.paris.lutece.portal.service.file.ExpiredLinkException
      fr.paris.lutece.portal.service.security.UserNotSignedException