public class BulkEntryCreator extends Object
Constructor and Description |
---|
BulkEntryCreator() |
Modifier and Type | Method and Description |
---|---|
protected void |
addWritePermission(Account account,
Entry entry) |
long |
createBulkUpload(String userId,
EntryType entryType) |
boolean |
createEntries(String userId,
long draftId,
List<PartWithSample> data,
HashMap<String,InputStream> files) |
PartData |
createEntry(String userId,
long bulkUploadId,
PartData data) |
protected PartData |
createEntryForUpload(String userId,
PartData data,
BulkUpload upload) |
protected BulkUpload |
createOrRetrieveBulkUpload(Account account,
BulkUploadAutoUpdate autoUpdate,
EntryType addType) |
BulkUploadInfo |
createOrUpdateEntries(String userId,
long draftId,
List<PartData> data) |
BulkUploadAutoUpdate |
createOrUpdateEntry(String userId,
BulkUploadAutoUpdate autoUpdate,
EntryType addType)
Creates (or updates) entry based on information in parameters
|
protected PartData |
doUpdate(String userId,
Entry entry,
PartData data) |
BulkUploadInfo |
renameBulkUpload(String userId,
long id,
String name)
Renames the bulk upload referenced by the id in the parameter
|
protected void |
saveFiles(PartData data,
Entry entry,
HashMap<String,InputStream> files) |
protected ProcessedBulkUpload |
submitBulkImportDraft(String userId,
BulkUpload draft,
ProcessedBulkUpload processedBulkUpload)
Submits a bulk import that has been saved.
|
PartData |
updateEntry(String userId,
long bulkUploadId,
long id,
PartData data) |
ProcessedBulkUpload |
updateStatus(String userId,
long id,
BulkUploadStatus status) |
protected BulkUpload createOrRetrieveBulkUpload(Account account, BulkUploadAutoUpdate autoUpdate, EntryType addType)
protected PartData createEntryForUpload(String userId, PartData data, BulkUpload upload)
public ProcessedBulkUpload updateStatus(String userId, long id, BulkUploadStatus status)
protected ProcessedBulkUpload submitBulkImportDraft(String userId, BulkUpload draft, ProcessedBulkUpload processedBulkUpload) throws PermissionException
PermissionException
public BulkUploadInfo renameBulkUpload(String userId, long id, String name)
userId
- unique identifier of user performing action. Must with be an administrator
own the bulk uploadid
- unique identifier referencing the bulk uploadname
- name to assign to the bulk uploadAuthorizationException
- is user performing action doesn't have privilegespublic BulkUploadAutoUpdate createOrUpdateEntry(String userId, BulkUploadAutoUpdate autoUpdate, EntryType addType)
userId
- unique identifier for user making requestautoUpdate
- wrapper for information used to create entryaddType
- type of entry being createdpublic BulkUploadInfo createOrUpdateEntries(String userId, long draftId, List<PartData> data)
public boolean createEntries(String userId, long draftId, List<PartWithSample> data, HashMap<String,InputStream> files)
protected void saveFiles(PartData data, Entry entry, HashMap<String,InputStream> files)
Copyright © 2017. All rights reserved.