|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFileDao
Interface for file persistance
Method Summary | |
---|---|
void |
add(FileConfig fileConfig,
ITransaction transaction)
Add the file. |
void |
delete(java.lang.String fileId,
ITransaction transaction)
Delete the file. |
FileConfig |
findByFullPath(java.lang.String fullPath,
ITransaction transaction)
Find the file by the full path. |
FileConfig |
get(java.lang.String fileId,
ITransaction transaction)
Get the file. |
java.lang.String |
getIdByItemInfo(java.lang.String itemId,
java.lang.String serviceInstanceId,
java.lang.String sourceId,
java.lang.String fieldId,
ITransaction transaction)
Get the fileId refered by a content with the given ids. |
java.util.Collection<java.lang.String> |
getIdsByFilesId(java.lang.String filesId,
ITransaction transaction)
Return the file ids that belongs to the files with the given id. |
java.util.Collection<java.lang.String> |
getIdsByFilesIdAndType(java.lang.String filesId,
int type,
ITransaction transaction)
Return the file ids that belongs to the files with the given id and with the given type. |
java.util.Collection<java.lang.String> |
getIdsByServiceInstanceId(java.lang.String serviceInstanceId,
ITransaction transaction)
Return the file ids that belongs to the specified service instance. |
int |
getNumberOfServiceInstanceFiles(java.lang.String serviceInstanceId,
ITransaction transaction)
Returns the number of files for a service instance. |
void |
update(FileConfig fileConfig,
ITransaction transaction)
Updates the file's information. |
Method Detail |
---|
void add(FileConfig fileConfig, ITransaction transaction) throws PortalException
fileConfig
- transaction
-
PortalException
FileConfig get(java.lang.String fileId, ITransaction transaction) throws PortalException
fileId
- transaction
-
DaoException
PortalException
FileConfig findByFullPath(java.lang.String fullPath, ITransaction transaction) throws PortalException
fullPath
- the full path.transaction
- the transaction to be used.
PortalException
- if a database error occur.void delete(java.lang.String fileId, ITransaction transaction) throws PortalException
fileId
- transaction
-
DaoException
PortalException
void update(FileConfig fileConfig, ITransaction transaction) throws PortalException
fileConfig
- transaction
-
PortalException
java.util.Collection<java.lang.String> getIdsByFilesId(java.lang.String filesId, ITransaction transaction) throws PortalException
filesId
- the id of the files.transaction
- the transaction for persistence access.
PortalException
java.util.Collection<java.lang.String> getIdsByServiceInstanceId(java.lang.String serviceInstanceId, ITransaction transaction) throws PortalException
serviceInstanceId
- the service instance's id.transaction
- the transaction for persistence access.
PortalException
java.util.Collection<java.lang.String> getIdsByFilesIdAndType(java.lang.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
java.lang.String getIdByItemInfo(java.lang.String itemId, java.lang.String serviceInstanceId, java.lang.String sourceId, java.lang.String fieldId, ITransaction transaction) throws PortalException
PortalException
int getNumberOfServiceInstanceFiles(java.lang.String serviceInstanceId, ITransaction transaction) throws PortalException
serviceInstanceId
- the service instance identifier.transaction
- the transaction for persistence access.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |