|
||||||||||
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(String fileId,
ITransaction transaction)
Delete the file. |
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. |
Method Detail |
---|
void add(FileConfig fileConfig, ITransaction transaction) throws PortalException
fileConfig
- transaction
-
PortalException
FileConfig get(String fileId, ITransaction transaction) throws PortalException
fileId
- transaction
-
DaoException
PortalException
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |