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 TypeMethodDescriptionvoid
addFile
(DLStoreRequest dlStoreRequest, byte[] bytes) void
addFile
(DLStoreRequest dlStoreRequest, File file) void
addFile
(DLStoreRequest dlStoreRequest, InputStream inputStream) void
copyFileVersion
(long companyId, long repositoryId, String fileName, String fromVersionLabel, String toVersionLabel) void
deleteDirectory
(long companyId, long repositoryId, String dirName) void
deleteFile
(long companyId, long repositoryId, String fileName) void
deleteFile
(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) long
getFileSize
(long companyId, long repositoryId, String fileName) boolean
void
updateFile
(long companyId, long repositoryId, long newRepositoryId, String fileName) void
updateFile
(DLStoreRequest dlStoreRequest, File file) void
updateFile
(DLStoreRequest dlStoreRequest, InputStream inputStream) void
updateFileVersion
(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
-