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"

Task #3510 (new)

Opened 13 years ago

Last modified 13 years ago

IRepository adjustments — at Initial Version

Reported by: cxallan Owned by:
Priority: critical Milestone: OMERO-Beta4.2.1
Component: Services Version: n.a.
Keywords: n.a. Cc: jamoore, jburel
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: 2010-11-25 (20)

Description

  • Removal / deprecation of disk space usage and free functionality that loops through all files in disk
  • Addition of new methods for retrieving actual size:
Map<Long, Long> getUserPixelsOnDiskUsage(Parameters p);

// If nothing return empty map
//
// p = omero.sys.ParametersI()
// p.page(offset, PAGE_SIZE)
// p.exp(userId) // mapping to p.details.owner.id comparison
// p.grp(groupId) // mapping to ctx['omero.group']
//
// p.grp() maps to -1 when the user is an administrator and no argument is passed
// p.exp() is not used if it is not provided
//
// Basic code that is being affected by Parameters is:
//
// Map<String, String> ctx = new HashMap<String, String>();
// ctx.put("omero.group", p.grp());
// p.grp(null);
// iQuery.findAllByQuery(
//     "select p from Pixels as p " +
//     "where p.details.owner.id = :experimenter" +  // optional
//     "order by p.pid", p, ctx);
//

Map<Long, Long> getPixelsOnDiskUsage(Set<Long> pixelsIds);

Change History (0)

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.68138 sec.)

We're Hiring!