Liferay 6.2.0

com.liferay.portlet.documentlibrary.store
Class IgnoreDuplicatesStoreWrapper

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.store.BaseStoreWrapper
      extended by com.liferay.portlet.documentlibrary.store.IgnoreDuplicatesStoreWrapper
All Implemented Interfaces:
Store

public class IgnoreDuplicatesStoreWrapper
extends BaseStoreWrapper


Field Summary
 
Fields inherited from interface com.liferay.portlet.documentlibrary.store.Store
VERSION_DEFAULT
 
Constructor Summary
IgnoreDuplicatesStoreWrapper(Store store)
           
 
Method Summary
 void addFile(long companyId, long repositoryId, String fileName, byte[] bytes)
           
 void addFile(long companyId, long repositoryId, String fileName, File file)
           
 void addFile(long companyId, long repositoryId, String fileName, InputStream is)
           
 void copyFileVersion(long companyId, long repositoryId, String fileName, String fromVersionLabel, String toVersionLabel)
           
protected  com.liferay.portlet.documentlibrary.store.IgnoreDuplicatesStoreWrapper.StoreAction createDeleteFileStoreAction(long companyId, long repositoryId, String fileName)
           
protected  com.liferay.portlet.documentlibrary.store.IgnoreDuplicatesStoreWrapper.StoreAction createDeleteFileStoreAction(long companyId, long repositoryId, String fileName, String versionLabel)
           
protected static void recoverAndRetryOnFailure(com.liferay.portlet.documentlibrary.store.IgnoreDuplicatesStoreWrapper.StoreAction recoverStoreAction, com.liferay.portlet.documentlibrary.store.IgnoreDuplicatesStoreWrapper.StoreAction storeAction)
           
 void updateFile(long companyId, long repositoryId, long newRepositoryId, String fileName)
           
 void updateFile(long companyId, long repositoryId, String fileName, String newFileName)
           
 void updateFile(long companyId, long repositoryId, String fileName, String versionLabel, byte[] bytes)
           
 void updateFile(long companyId, long repositoryId, String fileName, String versionLabel, File file)
           
 void updateFile(long companyId, long repositoryId, String fileName, String versionLabel, InputStream is)
           
 void updateFileVersion(long companyId, long repositoryId, String fileName, String fromVersionLabel, String toVersionLabel)
           
 
Methods inherited from class com.liferay.portlet.documentlibrary.store.BaseStoreWrapper
addDirectory, checkRoot, deleteDirectory, deleteFile, deleteFile, getFile, getFile, getFileAsBytes, getFileAsBytes, getFileAsStream, getFileAsStream, getFileNames, getFileNames, getFileSize, getStore, hasDirectory, hasFile, hasFile, move
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IgnoreDuplicatesStoreWrapper

public IgnoreDuplicatesStoreWrapper(Store store)
Method Detail

addFile

public void addFile(long companyId,
                    long repositoryId,
                    String fileName,
                    byte[] bytes)
             throws PortalException,
                    SystemException
Specified by:
addFile in interface Store
Overrides:
addFile in class BaseStoreWrapper
Throws:
PortalException
SystemException

addFile

public void addFile(long companyId,
                    long repositoryId,
                    String fileName,
                    File file)
             throws PortalException,
                    SystemException
Specified by:
addFile in interface Store
Overrides:
addFile in class BaseStoreWrapper
Throws:
PortalException
SystemException

addFile

public void addFile(long companyId,
                    long repositoryId,
                    String fileName,
                    InputStream is)
             throws PortalException,
                    SystemException
Specified by:
addFile in interface Store
Overrides:
addFile in class BaseStoreWrapper
Throws:
PortalException
SystemException

copyFileVersion

public void copyFileVersion(long companyId,
                            long repositoryId,
                            String fileName,
                            String fromVersionLabel,
                            String toVersionLabel)
                     throws PortalException,
                            SystemException
Specified by:
copyFileVersion in interface Store
Overrides:
copyFileVersion in class BaseStoreWrapper
Throws:
PortalException
SystemException

updateFile

public void updateFile(long companyId,
                       long repositoryId,
                       long newRepositoryId,
                       String fileName)
                throws PortalException,
                       SystemException
Specified by:
updateFile in interface Store
Overrides:
updateFile in class BaseStoreWrapper
Throws:
PortalException
SystemException

updateFile

public void updateFile(long companyId,
                       long repositoryId,
                       String fileName,
                       String newFileName)
                throws PortalException,
                       SystemException
Specified by:
updateFile in interface Store
Overrides:
updateFile in class BaseStoreWrapper
Throws:
PortalException
SystemException

updateFile

public void updateFile(long companyId,
                       long repositoryId,
                       String fileName,
                       String versionLabel,
                       byte[] bytes)
                throws PortalException,
                       SystemException
Specified by:
updateFile in interface Store
Overrides:
updateFile in class BaseStoreWrapper
Throws:
PortalException
SystemException

updateFile

public void updateFile(long companyId,
                       long repositoryId,
                       String fileName,
                       String versionLabel,
                       File file)
                throws PortalException,
                       SystemException
Specified by:
updateFile in interface Store
Overrides:
updateFile in class BaseStoreWrapper
Throws:
PortalException
SystemException

updateFile

public void updateFile(long companyId,
                       long repositoryId,
                       String fileName,
                       String versionLabel,
                       InputStream is)
                throws PortalException,
                       SystemException
Specified by:
updateFile in interface Store
Overrides:
updateFile in class BaseStoreWrapper
Throws:
PortalException
SystemException

updateFileVersion

public void updateFileVersion(long companyId,
                              long repositoryId,
                              String fileName,
                              String fromVersionLabel,
                              String toVersionLabel)
                       throws PortalException,
                              SystemException
Specified by:
updateFileVersion in interface Store
Overrides:
updateFileVersion in class BaseStoreWrapper
Throws:
PortalException
SystemException

recoverAndRetryOnFailure

protected static void recoverAndRetryOnFailure(com.liferay.portlet.documentlibrary.store.IgnoreDuplicatesStoreWrapper.StoreAction recoverStoreAction,
                                               com.liferay.portlet.documentlibrary.store.IgnoreDuplicatesStoreWrapper.StoreAction storeAction)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

createDeleteFileStoreAction

protected com.liferay.portlet.documentlibrary.store.IgnoreDuplicatesStoreWrapper.StoreAction createDeleteFileStoreAction(long companyId,
                                                                                                                         long repositoryId,
                                                                                                                         String fileName)

createDeleteFileStoreAction

protected com.liferay.portlet.documentlibrary.store.IgnoreDuplicatesStoreWrapper.StoreAction createDeleteFileStoreAction(long companyId,
                                                                                                                         long repositoryId,
                                                                                                                         String fileName,
                                                                                                                         String versionLabel)

Liferay 6.2.0