VERSION_DEFAULT| Constructor and Description |
|---|
StoreAreaAwareStoreWrapper(java.util.function.Supplier<Store> storeSupplier,
java.util.function.Supplier<StoreAreaProcessor> storeAreaProcessorSupplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel,
java.io.InputStream inputStream)
Adds a file based on an
InputStream object. |
void |
deleteDirectory(long companyId,
long repositoryId,
java.lang.String dirName)
Deletes a directory.
|
void |
deleteFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
Deletes a file at a particular version.
|
java.io.InputStream |
getFileAsStream(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
Returns the file as an
InputStream object. |
java.lang.String[] |
getFileNames(long companyId,
long repositoryId,
java.lang.String dirName)
Returns all files of the directory.
|
long |
getFileSize(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
Returns the size of the file.
|
java.lang.String[] |
getFileVersions(long companyId,
long repositoryId,
java.lang.String fileName) |
boolean |
hasFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
Returns
true if the file exists. |
public StoreAreaAwareStoreWrapper(java.util.function.Supplier<Store> storeSupplier, java.util.function.Supplier<StoreAreaProcessor> storeAreaProcessorSupplier)
public void addFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel,
java.io.InputStream inputStream)
throws PortalException
StoreInputStream object.addFile in interface StorecompanyId - 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 dataPortalExceptionpublic void deleteDirectory(long companyId,
long repositoryId,
java.lang.String dirName)
StoredeleteDirectory in interface StorecompanyId - the primary key of the companyrepositoryId - the primary key of the data repository (optionally
CompanyConstants.SYSTEM)dirName - the directory's namepublic void deleteFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
StoredeleteFile in interface StorecompanyId - 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 labelpublic java.io.InputStream getFileAsStream(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
throws PortalException
StoreInputStream object.getFileAsStream in interface StorecompanyId - 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 namePortalExceptionpublic java.lang.String[] getFileNames(long companyId,
long repositoryId,
java.lang.String dirName)
StoregetFileNames in interface StorecompanyId - the primary key of the companyrepositoryId - the primary key of the data repository (optionally
CompanyConstants.SYSTEM)dirName - the directory's namepublic long getFileSize(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
throws PortalException
StoregetFileSize in interface StorecompanyId - the primary key of the companyrepositoryId - the primary key of the data repository (optionally
CompanyConstants.SYSTEM)fileName - the file's namePortalExceptionpublic java.lang.String[] getFileVersions(long companyId,
long repositoryId,
java.lang.String fileName)
getFileVersions in interface Storepublic boolean hasFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
Storetrue if the file exists.hasFile in interface StorecompanyId - 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