@ProviderType
public interface Store
BaseStore
.BaseStore
Modifier and Type | Field and Description |
---|---|
static String |
VERSION_DEFAULT |
Modifier and Type | Method and Description |
---|---|
void |
addFile(long companyId,
long repositoryId,
String fileName,
String versionLabel,
InputStream inputStream)
Adds a file based on an
InputStream object. |
void |
deleteDirectory(long companyId,
long repositoryId,
String dirName)
Deletes a directory.
|
void |
deleteFile(long companyId,
long repositoryId,
String fileName,
String versionLabel)
Deletes a file at a particular version.
|
InputStream |
getFileAsStream(long companyId,
long repositoryId,
String fileName,
String versionLabel)
Returns the file as an
InputStream object. |
String[] |
getFileNames(long companyId,
long repositoryId,
String dirName)
Returns all files of the directory.
|
long |
getFileSize(long companyId,
long repositoryId,
String fileName,
String versionLabel)
Returns the size of the file.
|
String[] |
getFileVersions(long companyId,
long repositoryId,
String fileName) |
boolean |
hasFile(long companyId,
long repositoryId,
String fileName,
String versionLabel)
Returns
true if the file exists. |
static final String VERSION_DEFAULT
void addFile(long companyId, long repositoryId, String fileName, String versionLabel, InputStream inputStream) throws PortalException
InputStream
object.companyId
- the primary key of the companyrepositoryId
- the primary key of the data repository (optionally
CompanyConstants.SYSTEM
)fileName
- the file nameversionLabel
- the file's version labelinputStream
- the files's dataPortalException
void deleteDirectory(long companyId, long repositoryId, String dirName)
companyId
- the primary key of the companyrepositoryId
- the primary key of the data repository (optionally
CompanyConstants.SYSTEM
)dirName
- the directory's namevoid deleteFile(long companyId, long repositoryId, String fileName, String versionLabel)
companyId
- the primary key of the companyrepositoryId
- the primary key of the data repository (optionally
CompanyConstants.SYSTEM
)fileName
- the file's nameversionLabel
- the file's version labelInputStream getFileAsStream(long companyId, long repositoryId, String fileName, String versionLabel) throws PortalException
InputStream
object.companyId
- the primary key of the companyrepositoryId
- the primary key of the data repository (optionally
CompanyConstants.SYSTEM
)fileName
- the file's nameversionLabel
- the file's version labelInputStream
object with the file's namePortalException
String[] getFileNames(long companyId, long repositoryId, String dirName)
companyId
- the primary key of the companyrepositoryId
- the primary key of the data repository (optionally
CompanyConstants.SYSTEM
)dirName
- the directory's namelong getFileSize(long companyId, long repositoryId, String fileName, String versionLabel) throws PortalException
companyId
- the primary key of the companyrepositoryId
- the primary key of the data repository (optionally
CompanyConstants.SYSTEM
)fileName
- the file's namePortalException
String[] getFileVersions(long companyId, long repositoryId, String fileName)
boolean hasFile(long companyId, long repositoryId, String fileName, String versionLabel)
true
if the file exists.companyId
- the primary key of the companyrepositoryId
- the primary key of the data repository (optionally
CompanyConstants.SYSTEM
)fileName
- the file's nameversionLabel
- the file's version labeltrue
if the file exists; false
otherwise