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 anotherMandantRessourcein 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 MandantRessourcegetByName(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 clientlonggetUsedFileSize(IEntityContext ec, Mandant mandant) booleanisNameExisiting(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, updateMethods 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-IEntityContextto useclient-Mandantcontext in which to look for resourceuuid-StringUUID string of the resource- Returns:
MandantRessourcefor the given UUID and client- Since:
- 6.1.0
-
getByUUID
Returns the client resource for the given UUID and client- Parameters:
ec-IEntityContextto useclient-Mandantcontext in which to look for resourceuuid-UUIDUUID of the resource- Returns:
MandantRessourcefor 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 anotherMandantRessourcein the given client. An index will be added to the candidate if necessary.- Parameters:
ec-IEntityContextto be usedclient-Mandantfor which a unique client resource name should be generatedcandidate-Stringclient resource name candidate to be made uniqueexclude-MandantRessourceclient 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-IEntityContextto be usedclient-Mandantfor which to check uniquenessname-Stringclient 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 resourcesthat 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)