Class DLStoreImpl

Object
com.liferay.portlet.documentlibrary.store.DLStoreImpl
All Implemented Interfaces:
com.liferay.document.library.kernel.store.DLStore

public class DLStoreImpl extends Object implements com.liferay.document.library.kernel.store.DLStore
Author:
Brian Wing Shun Chan, Alexander Chow, Edward Han, Raymond Augé
  • Constructor Details

    • DLStoreImpl

      public DLStoreImpl()
  • Method Details

    • setStore

      public static void setStore(com.liferay.document.library.kernel.store.Store store)
    • addFile

      public void addFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, byte[] bytes) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addFile in interface com.liferay.document.library.kernel.store.DLStore
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addFile

      public void addFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, File file) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addFile in interface com.liferay.document.library.kernel.store.DLStore
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addFile

      public void addFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addFile in interface com.liferay.document.library.kernel.store.DLStore
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • copyFileVersion

      public void copyFileVersion(long companyId, long repositoryId, String fileName, String fromVersionLabel, String toVersionLabel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      copyFileVersion in interface com.liferay.document.library.kernel.store.DLStore
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteDirectory

      public void deleteDirectory(long companyId, long repositoryId, String dirName) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteDirectory in interface com.liferay.document.library.kernel.store.DLStore
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFile

      public void deleteFile(long companyId, long repositoryId, String fileName) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteFile in interface com.liferay.document.library.kernel.store.DLStore
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFile

      public void deleteFile(long companyId, long repositoryId, String fileName, String versionLabel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteFile in interface com.liferay.document.library.kernel.store.DLStore
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFileAsStream

      public InputStream getFileAsStream(long companyId, long repositoryId, String fileName, String versionLabel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getFileAsStream in interface com.liferay.document.library.kernel.store.DLStore
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFileNames

      public String[] getFileNames(long companyId, long repositoryId, String dirName) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getFileNames in interface com.liferay.document.library.kernel.store.DLStore
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFileSize

      public long getFileSize(long companyId, long repositoryId, String fileName) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getFileSize in interface com.liferay.document.library.kernel.store.DLStore
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • hasFile

      public boolean hasFile(long companyId, long repositoryId, String fileName, String versionLabel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      hasFile in interface com.liferay.document.library.kernel.store.DLStore
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateFile

      public void updateFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, File file) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateFile in interface com.liferay.document.library.kernel.store.DLStore
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateFile

      public void updateFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateFile in interface com.liferay.document.library.kernel.store.DLStore
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateFile

      public void updateFile(long companyId, long repositoryId, long newRepositoryId, String fileName) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateFile in interface com.liferay.document.library.kernel.store.DLStore
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateFileVersion

      public void updateFileVersion(long companyId, long repositoryId, String fileName, String fromVersionLabel, String toVersionLabel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateFileVersion in interface com.liferay.document.library.kernel.store.DLStore
      Throws:
      com.liferay.portal.kernel.exception.PortalException