• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Ticket
  • Next Ticket →

Ticket #1000 (assigned task)

Opened 3 months ago

Last modified 3 months ago

Thumbnail service: needed method

Reported by: jburel Owned by: callan
Priority: critical Milestone: 3.0-Beta4
Component: Services Version:
Keywords: Cc:

Description

I cannot find a ticket for that
For The Viewed By option, i will need to set the pixels and the userID something like service.setPixelsId(pixelsID, userID).

Change History

Changed 3 months ago by jburel

  • priority changed from trivial to critical

This is actually key. We need to have the ability to indicate to the thumbnail service which user the thumbnails are for.
For now I do

 ThumbnailStore service = getThumbService();
needDefault(pixelsID, null);
//getRendering Def for a given pixels set.
if (userID >= 0) {
   RenderingDef def = getRenderingDef(pixelsID, userID);
   if (def != null) service.setRenderingDefId(def.getId());
}
return service.getThumbnailDirect(new Integer(sizeX), new Integer(sizeY));
//return service.getThumbnail(new Integer(sizeX), new Integer(sizeY));

If I use the getThumbnail instead of getThumbnailDirect The wrong thumbnail is returned from the cache (I guess!) and the settings I passed seem to be ignored.

Changed 3 months ago by callan

  • status changed from new to assigned
  • version deleted

r2464 should fix the problem with the cache giving you the wrong thumbnail.

Note: See TracTickets for help on using tickets.

Download in other formats:

  • Comma-delimited Text
  • Tab-delimited Text
  • RSS Feed

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/