public class AttachmentDao extends GenericDao<Attachment> implements IAttachmentDao
Constructor and Description |
---|
AttachmentDao() |
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
|
protected IFCDaoActionHook<Attachment> |
getPreActionHook() |
long |
getUsedFileSize(IEntityContext ec,
Mandant mandant) |
Attachment |
updateByUser(IEntityContext ec,
String username,
String oldFileName,
Attachment attachment) |
getEntityRefs, getPostActionHook, read
all, bulkDelete, bulkUpdate, cb, checkLockingVersion, cq, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, notifyListener, notifyListener, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public List<Attachment> getAllBy(IEntityContext ec, Vorgang vorgang, EAttachmentSource source, String uuid)
getAllBy
in interface IAttachmentDao
public Attachment getByUUID(IEntityContext ec, String uuid, Vorgang v)
getByUUID
in interface IAttachmentDao
public Attachment getByName(IEntityContext ec, Vorgang vorgang, String name)
getByName
in interface IAttachmentDao
public Attachment getByUUID(IEntityContext ec, String uuid)
getByUUID
in interface IAttachmentDao
public Attachment getByUUID(IEntityContext ec, UUID uuid)
IAttachmentDao
getByUUID
in interface IAttachmentDao
ec
- IEntityContext
to useuuid
- UUID
UUID of the attachmentAttachment
for the given UUIDpublic void deleteByUser(IEntityContext ec, String username, Attachment... attachments)
deleteByUser
in interface IAttachmentDao
public void deleteByUser(IEntityContext ec, String username, boolean force, Attachment... attachments)
deleteByUser
in interface IAttachmentDao
public Attachment updateByUser(IEntityContext ec, String username, String oldFileName, Attachment attachment)
updateByUser
in interface IAttachmentDao
public Attachment createByUser(IEntityContext ec, String username, Attachment attachment)
createByUser
in interface IAttachmentDao
protected IFCDaoActionHook<Attachment> getPreActionHook()
getPreActionHook
in class GenericDao<Attachment>
public long getUsedFileSize(IEntityContext ec, Mandant mandant)
getUsedFileSize
in interface IAttachmentDao
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.