public interface IFileDao
Modifier and Type | Method and Description |
---|---|
void |
add(FileConfig fileConfig,
ITransaction transaction)
Add the file.
|
void |
delete(String fileId,
ITransaction transaction)
Delete the file.
|
FileConfig |
findByFullPath(String fullPath,
ITransaction transaction)
Find the file by the full path.
|
FileConfig |
get(String fileId,
ITransaction transaction)
Get the file.
|
String |
getIdByItemInfo(String itemId,
String serviceInstanceId,
String sourceId,
String fieldId,
ITransaction transaction)
Get the fileId refered by a content with the given ids.
|
Collection<String> |
getIdsByFilesId(String filesId,
ITransaction transaction)
Return the file ids that belongs to the files with the given id.
|
Collection<String> |
getIdsByFilesIdAndType(String filesId,
int type,
ITransaction transaction)
Return the file ids that belongs to the files with the given id and with the given type.
|
Collection<String> |
getIdsByServiceInstanceId(String serviceInstanceId,
ITransaction transaction)
Return the file ids that belongs to the specified service instance.
|
int |
getNumberOfServiceInstanceFiles(String serviceInstanceId,
ITransaction transaction)
Returns the number of files for a service instance.
|
void |
update(FileConfig fileConfig,
ITransaction transaction)
Updates the file's information.
|
void add(FileConfig fileConfig, ITransaction transaction) throws PortalException
fileConfig
- transaction
- PortalException
FileConfig get(String fileId, ITransaction transaction) throws PortalException
fileId
- transaction
- DaoException
PortalException
FileConfig findByFullPath(String fullPath, ITransaction transaction) throws PortalException
fullPath
- the full path.transaction
- the transaction to be used.PortalException
- if a database error occur.void delete(String fileId, ITransaction transaction) throws PortalException
fileId
- transaction
- DaoException
PortalException
void update(FileConfig fileConfig, ITransaction transaction) throws PortalException
fileConfig
- transaction
- PortalException
Collection<String> getIdsByFilesId(String filesId, ITransaction transaction) throws PortalException
filesId
- the id of the files.transaction
- the transaction for persistence access.PortalException
Collection<String> getIdsByServiceInstanceId(String serviceInstanceId, ITransaction transaction) throws PortalException
serviceInstanceId
- the service instance's id.transaction
- the transaction for persistence access.PortalException
Collection<String> getIdsByFilesIdAndType(String filesId, int type, ITransaction transaction) throws PortalException
filesId
- the id of the files.type
- the type the returned files must have. The type value must be one of the
TYPE constants available in FileConfig
.transaction
- the transaction for persistence access.PortalException
String getIdByItemInfo(String itemId, String serviceInstanceId, String sourceId, String fieldId, ITransaction transaction) throws PortalException
PortalException
int getNumberOfServiceInstanceFiles(String serviceInstanceId, ITransaction transaction) throws PortalException
serviceInstanceId
- the service instance identifier.transaction
- the transaction for persistence access.PortalException
Lumisportal 7.1.1.140331 - Copyright © 2006–2014 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.