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
{
	/**
	 * Tests the function for adding bound data columns.
	 * 
	 * @throws Exception
	 */
	public void testDataBindingRef( ) throws Exception
	{
		openDesign( "ReportItemHandleTest_2.xml" );  
		DataItemHandle data1 = (DataItemHandle) designHandle
				.findElement( "myData1" ); 
		Iterator columns = data1.columnBindingsIterator( );
		ComputedColumnHandle column = (ComputedColumnHandle) columns.next( );
		verifyColumnValues( column );
		DataItemHandle data2 = (DataItemHandle) designHandle
				.findElement( "myData2" ); 
		columns = data2.columnBindingsIterator( );
		column = (ComputedColumnHandle) columns.next( );
		verifyColumnValues( column );
		assertEquals( "myData1", data2.getDataBindingReferenceName( ) ); 
		DataItemHandle newData = (DataItemHandle) designHandle
				.findElement( "myData3" ); 
		newData.setDataBindingReference( data2 );
		columns = newData.columnBindingsIterator( );
		column = (ComputedColumnHandle) columns.next( );
		verifyColumnValues( column );
		try
		{
			newData.setDataBindingReference( newData );