Interface IAttachmentHandler
- All Superinterfaces:
IAPIHandler,IGenericHandler,Serializable
- All Known Implementing Classes:
AttachmentHandler
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptioncreateByUser(UserContext uc, String username, Attachment attachment) booleandeleteByUser(UserContext uc, String username, boolean force, Attachment... attachments) getAllBy(UserContext uc, Vorgang vorgang, EAttachmentSource source, String uuid) byte[]getAllZipped(UserContext uc, String prozessID) getByName(UserContext uc, Vorgang vorgang, String name) getByUUID(UserContext uc, String uuid) getByUUID(UserContext uc, String uuid, Vorgang v) mergeAllByUser(UserContext uc, String username, List<AttachmentPersistData> attachmentData) Creates or updates a list of attachments.updateByUser(UserContext uc, String username, String oldFileName, Attachment attachment) Methods inherited from interface de.xima.fc.com.interfaces.IAPIHandler
getNameMethods inherited from interface de.xima.fc.handler.interfaces.entity.IGenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, update, update
-
Method Details
-
deleteByUser
-
getAllZipped
- Throws:
IOException
-
getByUUID
-
getByUUID
-
getAllBy
-
getByName
-
createByUser
-
updateByUser
-
mergeAllByUser
List<Attachment> mergeAllByUser(UserContext uc, String username, List<AttachmentPersistData> attachmentData) Creates or updates a list of attachments. This behaves as ifcreateByUser(UserContext, String, Attachment)orupdateByUser(UserContext, String, String, Attachment)had been called on each attachment. This method allows the attachments to be created / updated in a batch, so they do not have to be send individually over the network.- Parameters:
uc- User context of the user who initiated the action.username- Name of the user.attachmentData- List of attachments to create or update.- Returns:
- The created or updated attachments.
-