All pastes #673656 Raw Edit

Something

public text v1 · immutable
#673656 ·published 2007-08-28 16:08 UTC
rendered paste body
	public void getRenditions()
	throws Exception
	{
		String uuid = "64:10150530-723CD-C1180-38000-000000000";
	    AssetManager am = Connector.getAssetManager();
	    List result = am.getRenditions(this.m_userAuth, uuid);
	    Iterator iter = result.iterator();
	    System.out.println("All Renditions:");
	    while(iter.hasNext()) {
	    	RenditionInfo ri = (RenditionInfo)iter.next();
	    	System.out.println(ri.getDisplayName() + " : " + ri.getScale() + " : " + ri.getMimeType());
	    }
	    
	    result = am.getRenditions(this.m_userAuth, uuid, "thumb", null, false);
	    
	    iter = result.iterator();
	    System.out.println("Thumb Renditions:");
	    while(iter.hasNext()) {
	    	RenditionInfo ri = (RenditionInfo)iter.next();
	    	System.out.println(ri.getDisplayName() + " : " + ri.getScale() + " : " + ri.getMimeType());
	    }
	}