Bug 212497 Need api to get all referencable report item with cube
Need model provide new api to return all referencable report items for dataset or cube respectively. For instance: getAvailableDataSetBindingReferenceList(); getAvailableCubeBindingReferenceList(); also keep current api: getAvailableDataBindingReferenceList().
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/ReportItemDataRefTest.java
assertEquals( 3, handleList.size( ) );
		assertEquals( "ex1", ( (DesignElementHandle) handleList.get( 0 ) ) 
				.getName( ) );
		assertEquals( "table", ( (DesignElementHandle) handleList.get( 1 ) ) 
				.getName( ) );
		assertEquals( "table2", ( (DesignElementHandle) handleList.get( 2 ) ) 
				.getName( ) );
	}
	private void verifyColumnValues( ComputedColumnHandle column )
	{
		assertEquals( "CUSTOMERNUMBER", column.getName( ) ); 
		assertEquals( "dataSetRow[\"CUSTOMERNUMBER\"]", column.getExpression( ) ); 
		assertEquals( DesignChoiceConstants.COLUMN_DATA_TYPE_INTEGER, column
				.getDataType( ) );
	}
	/**
	 * Tests the property search algorithm for data groups that have data
	 * binding reference.
	 * 
	 * @throws Exception
	 */
	public void testPropsOfDataGroupRef( ) throws Exception
	{
		openDesign( "DataGroupRef_1.xml" ); 
		TableHandle table2 = (TableHandle) designHandle
				.findElement( "myTable2" ); 
		TableGroupHandle group2 = (TableGroupHandle) table2.getGroups( )
				.get( 0 );
		assertEquals( "row[\"CUSTOMERNAME\"]", group2.getKeyExpr( ) ); 
		assertEquals( "group1", group2.getName( ) );