Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

User Story #2670 (closed)

Opened 14 years ago

Closed 12 years ago

Simple API prototype: delete

Reported by: jamoore Owned by:
Priority: minor Milestone: OMERO-4.4
Component: API Keywords: n.a.
Cc: Story Points: n.a.
Sprint: n.a. Importance: n.a.
Total Remaining Time: 2.5d Estimated Remaining Time: n.a.

Description

As opposed to the method defined by #2667 (story: #2665), a "simple" API for delete would look like:

 class Delete extends Action {
   string t;
   long id;
   StringMap options; // e.g. {"/Image/Tag": "ORPHAN"}
 };

 Report submit(ActionList actions); // No OMERO exceptions
 Future async(ActionList actions); // No OMERO exceptions

Here, "simple" means:

  • No exceptions are thrown other than Ice infrastructure exceptions (ConnectionLost, etc.)
  • As many actions can be batched into a single transaction as desired
  • No dependences on omero/API.ice or other methods (smaller executable overhead)
  • Self-contained *.ice file which explains all possibilities, i.e. all error codes.

Change History (1)

comment:1 Changed 12 years ago by jmoore

  • Milestone changed from Unscheduled to OMERO-Beta4.4
  • Resolution set to fixed
  • Status changed from new to closed

Done as a part of chgrp:

commit 4e5fc03f999d956c2f0c76fb7f068007e830a4cc
Author: jmoore <josh@glencoesoftware.com>
Date:   Mon Jul 25 15:11:24 2011 +0200

    Initial Commands API with chgrp example (See #3845)
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.82519 sec.)

We're Hiring!