All pastes #446870 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-18 18:37 UTC
rendered paste body
    public Iterator getLostAssets() {
    	Query query = new Query(ObjectType.ASSET);
    	QueryResult result = null;

    	query.addReturnAttribute("uuid");
    	query.addReturnAttribute("name");
    	query.addCaselessCondition("parentWorkspaces", Query.Operators.EQ, null);
    	
    	try {
    	    result = searcher.search(this.userAuth, query);
    	} catch(Exception e) {
    		System.out.println(e);
    	}
    	
    	return result.rowIterator();
    }