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
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description ProjektRessource
create(IEntityContext ec, String name, byte[] daten, String userName, String fileName, Mandant mandant, Projekt projekt)
ProjektRessource
create(IEntityContext ec, String name, byte[] daten, String userName, String fileName, String resourceDescription, Mandant mandant, Projekt projekt)
String
findUniqueName(IEntityContext ec, Projekt project, String candidate, ProjektRessource exclude)
Returns a name that is not taken by anotherProjektRessource
in the given project.List<ProjektRessource>
getAllByExtension(IEntityContext ec, Projekt project, Iterable<String> extensions)
default List<ProjektRessource>
getAllByProjekt(Projekt projekt, IEntityContext ec)
Deprecated.List<ProjektRessource>
getAllByProjekt(IEntityContext ec, Projekt projekt)
default ProjektRessource
getByName(Projekt projekt, String name, IEntityContext ec)
Deprecated.ProjektRessource
getByName(IEntityContext ec, Projekt projekt, String name)
ProjektRessource
getByUUID(IEntityContext ec, Projekt project, String uuid)
Returns the project resource with the given UUID stringProjektRessource
getByUUID(IEntityContext ec, Projekt project, UUID uuid)
Returns the project resource with the given UUIDlong
getUsedFileSize(IEntityContext ec, Mandant mandant)
boolean
isNameExisiting(IEntityContext ec, Projekt project, String name)
Returns whether or not the given project resource name exists within the given projectProjektRessource
update(IEntityContext ec, byte[] daten, String userName, String fileName, ProjektRessource res)
-
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
@Deprecated default ProjektRessource getByName(Projekt projekt, String name, IEntityContext ec)
Deprecated.
-
getByName
ProjektRessource getByName(IEntityContext ec, Projekt projekt, String name)
-
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
@Deprecated default List<ProjektRessource> getAllByProjekt(Projekt projekt, IEntityContext ec)
Deprecated.
-
getAllByProjekt
List<ProjektRessource> getAllByProjekt(IEntityContext ec, Projekt projekt)
-
findUniqueName
String findUniqueName(IEntityContext ec, Projekt project, String candidate, ProjektRessource exclude)
Returns a name that is not taken by anotherProjektRessource
in the given project. An index will be added to the candidate if necessary.- Parameters:
ec
-IEntityContext
to be usedproject
-Projekt
for which a unique project resource name should be generatedcandidate
-String
project resource name candidate to be made uniqueexclude
-ProjektRessource
client resource to be excluded from the search. May benull
or may be an existing resource when updating.- Returns:
- unique project resource name in the context of the given client
- Since:
- 8.0.0
-
isNameExisiting
boolean isNameExisiting(IEntityContext ec, Projekt project, String name)
Returns whether or not the given project resource name exists within the given project- Parameters:
ec
-IEntityContext
to be usedproject
-Projekt
for which to check uniquenessname
-String
project resource name to check- Returns:
- whether or not the given name is unique
- Since:
- 8.0.0
-
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.
-
-