Package de.xima.fc.dao.interfaces
Interface IMandantRessourceDao
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<MandantRessource,
,Long, IEntityContext> IGenericDao<MandantRessource>
- All Known Implementing Classes:
MandantRessourceDao
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(IEntityContext ec, String name, byte[] daten, String userName, String fileName, Mandant mandant) create
(IEntityContext ec, String name, byte[] daten, String userName, String fileName, String resourceDescription, Mandant mandant) findUniqueName
(IEntityContext ec, Mandant client, String candidate, MandantRessource exclude) Returns a name that is not taken by anotherMandantRessource
in the given client.getAllByExtension
(IEntityContext ec, Mandant client, Iterable<String> extensions) default List<MandantRessource>
getAllByMandant
(Mandant mandant, IEntityContext ec) Deprecated.getAllByMandant
(IEntityContext ec, Mandant mandant) getAllByProject
(IEntityContext ec, Projekt project) Deprecated.This only applies to the old workflow engine.default MandantRessource
getByName
(Mandant mandant, String name, IEntityContext ec) Deprecated.getByName
(IEntityContext ec, Mandant mandant, String name) getByUUID
(IEntityContext ec, Mandant client, String uuid) Returns the client resource for the given UUID string and clientgetByUUID
(IEntityContext ec, Mandant client, UUID uuid) Returns the client resource for the given UUID and clientlong
getUsedFileSize
(IEntityContext ec, Mandant mandant) boolean
isNameExisiting
(IEntityContext ec, Mandant client, String name) Returns whether or not the given client resource name exists within the given clientupdate
(IEntityContext ec, byte[] daten, String userName, String fileName, MandantRessource 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
count, findAll, findSingle, getEntityRefs, read
-
Method Details
-
getByName
-
getByName
Deprecated. -
getByUUID
Returns the client resource for the given UUID string and client- Parameters:
ec
-IEntityContext
to useclient
-Mandant
context in which to look for resourceuuid
-String
UUID string of the resource- Returns:
MandantRessource
for the given UUID and client- Since:
- 6.1.0
-
getByUUID
Returns the client resource for the given UUID and client- Parameters:
ec
-IEntityContext
to useclient
-Mandant
context in which to look for resourceuuid
-UUID
UUID of the resource- Returns:
MandantRessource
for the given UUID and client- Since:
- 6.1.0
-
findUniqueName
String findUniqueName(IEntityContext ec, Mandant client, String candidate, MandantRessource exclude) Returns a name that is not taken by anotherMandantRessource
in the given client. An index will be added to the candidate if necessary.- Parameters:
ec
-IEntityContext
to be usedclient
-Mandant
for which a unique client resource name should be generatedcandidate
-String
client resource name candidate to be made uniqueexclude
-MandantRessource
client resource to be excluded from the search. May benull
.- Returns:
- unique client resource name in the context of the given client
- Since:
- 6.4.0
-
isNameExisiting
Returns whether or not the given client resource name exists within the given client- Parameters:
ec
-IEntityContext
to be usedclient
-Mandant
for which to check uniquenessname
-String
client resource name to check- Returns:
- whether or not the given name is unique
- Since:
- 6.4.0
-
getAllByMandant
Deprecated. -
getAllByMandant
-
getAllByProject
Deprecated.This only applies to the old workflow engine. Use other methods such asIElementHandler.readEntityReferences(IReadEntityRefsParams)
for the new workflow engine.Returns all client resources that are being used by the given project- Parameters:
ec
- Current entity context for accessing the database.project
- A project where to search.- Returns:
- A list of
client resources
that are used by the project's workflow configration. - Since:
- 6.1.0
-
create
MandantRessource create(IEntityContext ec, String name, byte[] daten, String userName, String fileName, Mandant mandant) -
create
MandantRessource create(IEntityContext ec, String name, byte[] daten, String userName, String fileName, String resourceDescription, Mandant mandant) -
update
MandantRessource update(IEntityContext ec, byte[] daten, String userName, String fileName, MandantRessource res) -
getUsedFileSize
-
getAllByExtension
List<MandantRessource> getAllByExtension(IEntityContext ec, Mandant client, Iterable<String> extensions) - Parameters:
ec
- Current entity context for accessing the database.client
- Client 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.
-
getAllByMandant(IEntityContext, Mandant)