Interface DLStore
@ProviderType
@Transactional(rollbackFor={PortalException.class,SystemException.class})
public interface DLStore
- Author:
- Brian Wing Shun Chan, Alexander Chow, Edward Han, Raymond Augé
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddFile(DLStoreRequest dlStoreRequest, byte[] bytes) voidaddFile(DLStoreRequest dlStoreRequest, File file) voidaddFile(DLStoreRequest dlStoreRequest, InputStream inputStream) voidcopyFileVersion(long companyId, long repositoryId, String fileName, String fromVersionLabel, String toVersionLabel) voiddeleteDirectory(long companyId, long repositoryId, String dirName) voiddeleteFile(long companyId, long repositoryId, String fileName) voiddeleteFile(long companyId, long repositoryId, String fileName, String versionLabel) getFileAsStream(long companyId, long repositoryId, String fileName, String versionLabel) String[]getFileNames(long companyId, long repositoryId, String dirName) longgetFileSize(long companyId, long repositoryId, String fileName) booleanvoidupdateFile(long companyId, long repositoryId, long newRepositoryId, String fileName) voidupdateFile(DLStoreRequest dlStoreRequest, File file) voidupdateFile(DLStoreRequest dlStoreRequest, InputStream inputStream) voidupdateFileVersion(long companyId, long repositoryId, String fileName, String fromVersionLabel, String toVersionLabel)
-
Method Details
-
addFile
- Throws:
PortalException
-
addFile
- Throws:
PortalException
-
addFile
- Throws:
PortalException
-
copyFileVersion
void copyFileVersion(long companyId, long repositoryId, String fileName, String fromVersionLabel, String toVersionLabel) throws PortalException - Throws:
PortalException
-
deleteDirectory
- Throws:
PortalException
-
deleteFile
- Throws:
PortalException
-
deleteFile
void deleteFile(long companyId, long repositoryId, String fileName, String versionLabel) throws PortalException - Throws:
PortalException
-
getFileAsStream
InputStream getFileAsStream(long companyId, long repositoryId, String fileName, String versionLabel) throws PortalException - Throws:
PortalException
-
getFileNames
- Throws:
PortalException
-
getFileSize
- Throws:
PortalException
-
hasFile
boolean hasFile(long companyId, long repositoryId, String fileName, String versionLabel) throws PortalException - Throws:
PortalException
-
updateFile
- Throws:
PortalException
-
updateFile
- Throws:
PortalException
-
updateFile
void updateFile(long companyId, long repositoryId, long newRepositoryId, String fileName) throws PortalException - Throws:
PortalException
-
updateFileVersion
void updateFileVersion(long companyId, long repositoryId, String fileName, String fromVersionLabel, String toVersionLabel) throws PortalException - Throws:
PortalException
-