Package de.xima.fc.dao.interfaces
Interface IProjektRessourceDao
-
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<ProjektRessource,Long,IEntityContext>
,IGenericDao<ProjektRessource>
- All Known Implementing Classes:
ProjektRessourceDao
public interface IProjektRessourceDao extends IGenericDao<ProjektRessource>
-
-
Method Summary
-
Methods inherited from interface de.xima.cmn.dao.interfaces.IAbstractDao
all, bulkDelete, bulkUpdate, checkLockingVersion, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
-
Methods inherited from interface de.xima.fc.dao.interfaces.IGenericDao
getEntityRefs, read
-
-
-
-
Method Detail
-
getByName
ProjektRessource getByName(Projekt projekt, String name, IEntityContext ec)
-
getByUUID
ProjektRessource getByUUID(IEntityContext ec, Projekt project, String uuid)
Returns the project resource with the given UUID string- Parameters:
ec
-IEntityContext
to useproject
-Projekt
context in which to look for resourceuuid
-String
UUID string of the resource- Returns:
ProjektRessource
for the given UUID and project- Since:
- 6.1.0
-
getByUUID
ProjektRessource getByUUID(IEntityContext ec, Projekt project, UUID uuid)
Returns the project resource with the given UUID- Parameters:
ec
-IEntityContext
to useproject
-Projekt
context in which to look for resourceuuid
-UUID
UUID of the resource- Returns:
ProjektRessource
for the given UUID and project- Since:
- 6.1.0
-
getAllByProjekt
List<ProjektRessource> getAllByProjekt(Projekt projekt, IEntityContext ec)
-
create
ProjektRessource create(IEntityContext ec, String name, byte[] daten, String userName, String fileName, Mandant mandant, Projekt projekt)
-
create
ProjektRessource create(IEntityContext ec, String name, byte[] daten, String userName, String fileName, String resourceDescription, Mandant mandant, Projekt projekt)
-
update
ProjektRessource update(IEntityContext ec, byte[] daten, String userName, String fileName, ProjektRessource res)
-
getUsedFileSize
long getUsedFileSize(IEntityContext ec, Mandant mandant)
-
getAllByExtension
List<ProjektRessource> getAllByExtension(IEntityContext ec, Projekt project, Iterable<String> extensions)
- Parameters:
ec
- Current entity context for accessing the database.project
- Project for which to fetch resources.extensions
- Extensions to search for.- Returns:
- All project resources that belong to the given project and have one of the given extensions. When no extension is given, an empty list is returned.
-
-