Package de.xima.fc.dao.interfaces
Interface IAttachmentDao
- 
- All Superinterfaces:
 de.xima.cmn.dao.interfaces.IAbstractDao<Attachment,Long,IEntityContext>,IGenericDao<Attachment>
- All Known Implementing Classes:
 AttachmentDao
public interface IAttachmentDao extends IGenericDao<Attachment>
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttachmentcreateByUser(IEntityContext ec, String username, Attachment attachment)voiddeleteByUser(IEntityContext ec, String username, boolean force, Attachment... attachments)voiddeleteByUser(IEntityContext ec, String username, Attachment... attachments)List<Attachment>getAllBy(IEntityContext ec, Vorgang vorgang, EAttachmentSource source, String uuid)AttachmentgetByName(IEntityContext ec, Vorgang vorgang, String name)AttachmentgetByUUID(IEntityContext ec, String uuid)AttachmentgetByUUID(IEntityContext ec, String uuid, Vorgang v)AttachmentgetByUUID(IEntityContext ec, UUID uuid)Returns the attachment with the given UUIDlonggetUsedFileSize(IEntityContext ec, Mandant mandant)AttachmentupdateByUser(IEntityContext ec, String username, String oldFileName, Attachment attachment)- 
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
Attachment getByName(IEntityContext ec, Vorgang vorgang, String name)
 
- 
getAllBy
List<Attachment> getAllBy(IEntityContext ec, Vorgang vorgang, EAttachmentSource source, String uuid)
 
- 
getByUUID
Attachment getByUUID(IEntityContext ec, String uuid, Vorgang v)
 
- 
getByUUID
Attachment getByUUID(IEntityContext ec, String uuid)
 
- 
getByUUID
Attachment getByUUID(IEntityContext ec, UUID uuid)
Returns the attachment with the given UUID- Parameters:
 ec-IEntityContextto useuuid-UUIDUUID of the attachment- Returns:
 Attachmentfor the given UUID- Since:
 - 6.1.0
 
 
- 
getUsedFileSize
long getUsedFileSize(IEntityContext ec, Mandant mandant)
 
- 
deleteByUser
void deleteByUser(IEntityContext ec, String username, Attachment... attachments)
 
- 
deleteByUser
void deleteByUser(IEntityContext ec, String username, boolean force, Attachment... attachments)
 
- 
updateByUser
Attachment updateByUser(IEntityContext ec, String username, String oldFileName, Attachment attachment)
 
- 
createByUser
Attachment createByUser(IEntityContext ec, String username, Attachment attachment)
 
 - 
 
 -