Task #2858 (closed)
Delete Command
| Reported by: | jburel | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | OMERO-Beta4.2.1 |
| Component: | General | Version: | n.a. |
| Keywords: | n.a. | Cc: | jamoore, cxallan |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | n.a. |
| Sprint: | n.a. |
Description
Add possibility to specify a collection of ids e.g. several image instead of one at a time.
Change History (4)
comment:1 Changed 9 years ago by jmoore
comment:2 Changed 9 years ago by jburel
- Milestone changed from OMERO-Beta4.2.1 to Unscheduled
- Sprint 2010-09-09 (16) deleted
OK as it is, pushing ticket
comment:3 Changed 9 years ago by jmoore
- Milestone changed from Unscheduled to OMERO-Beta4.2.1
- Resolution set to wontfix
- Status changed from new to closed
J-M, for cleanliness, I'm going to close this. When we reapproach the API, things may change significantly.
comment:4 Changed 9 years ago by jburel
ok
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
Jean-Marie, I know it's slightly more work, but I would suggest we keep things as they are and you pass in multiple delete commands at once:
DeleteCommand dc1 = new DeleteCommand("/Image", id1, null); DeleteCommand dc2 = new DeleteCommand("/Image", id2, null); deletePrx.queueDelete(new DeleteCommand[]{dc1, dc2});In the case of options, you can use the same Map multiple times to get the effect I think you are trying for:
Map<String, String> options = new HashMap<String, String>(); options.put("/Image", "..."); DeleteCommand dc1 = new DeleteCommand("/Image", id1, options); DeleteCommand dc2 = new DeleteCommand("/Image", id2, options); ...All of the deletes will occur in the same transaction.