import org.drools.guvnor.client.rpc.QueryPageRow;
import org.drools.repository.AssetItem;
public class QueryPageRowCreator {
public static QueryPageRow makeQueryPageRow(AssetItem assetItem) {
QueryPageRow row = new QueryPageRow();
row.setUuid( assetItem.getUUID() );
row.setFormat( assetItem.getFormat() );
row.setName( assetItem.getName() );
row.setDescription( assetItem.getDescription() );
row.setAbbreviatedDescription( StringUtils.abbreviate( assetItem.getDescription(),
80 ) );
row.setPackageName( assetItem.getPackageName() );
row.setCreatedDate( assetItem.getCreatedDate().getTime() );
row.setLastModified( assetItem.getLastModified().getTime() );
return row;
}