public interface IAttachmentDao extends IGenericDao<Attachment>
Modifier and Type | Method and Description |
---|---|
Attachment |
createByUser(IEntityContext ec,
String username,
Attachment attachment) |
void |
deleteByUser(IEntityContext ec,
String username,
Attachment... attachments) |
void |
deleteByUser(IEntityContext ec,
String username,
boolean force,
Attachment... attachments) |
List<Attachment> |
getAllBy(IEntityContext ec,
Vorgang vorgang,
EAttachmentSource source,
String uuid) |
Attachment |
getByName(IEntityContext ec,
Vorgang vorgang,
String name) |
Attachment |
getByUUID(IEntityContext ec,
String uuid) |
Attachment |
getByUUID(IEntityContext ec,
String uuid,
Vorgang v) |
Attachment |
getByUUID(IEntityContext ec,
UUID uuid)
Returns the attachment with the given UUID
|
long |
getUsedFileSize(IEntityContext ec,
Mandant mandant) |
Attachment |
updateByUser(IEntityContext ec,
String username,
String oldFileName,
Attachment attachment) |
getEntityRefs, read
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
Attachment getByName(IEntityContext ec, Vorgang vorgang, String name)
List<Attachment> getAllBy(IEntityContext ec, Vorgang vorgang, EAttachmentSource source, String uuid)
Attachment getByUUID(IEntityContext ec, String uuid, Vorgang v)
Attachment getByUUID(IEntityContext ec, String uuid)
Attachment getByUUID(IEntityContext ec, UUID uuid)
ec
- IEntityContext
to useuuid
- UUID
UUID of the attachmentAttachment
for the given UUIDlong getUsedFileSize(IEntityContext ec, Mandant mandant)
void deleteByUser(IEntityContext ec, String username, Attachment... attachments)
void deleteByUser(IEntityContext ec, String username, boolean force, Attachment... attachments)
Attachment updateByUser(IEntityContext ec, String username, String oldFileName, Attachment attachment)
Attachment createByUser(IEntityContext ec, String username, Attachment attachment)
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.