Bug 179674 Support time dimension in model
When define time dimension in model, the "itTime" property will be set. However this is not enough. We also need to know to what precision the time value should be evaluated, say, year, month, day, etc. Model needs to be enhanced to support such requirement.
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/parser/TabularCubeParserTest.java
hierarchy.add( TabularHierarchyHandle.LEVELS_PROP, factory
				.newTabularLevel( null ) );
		TabularLevelHandle level = (TabularLevelHandle) hierarchy.getContent(
				TabularHierarchyHandle.LEVELS_PROP, 0 );
		level.setName( namePrix + level.getName( ) );
		level.setColumnName( valuePrix + level.getColumnName( ) );
		level.setDataType( DesignChoiceConstants.COLUMN_DATA_TYPE_STRING );
		level.setInterval( DesignChoiceConstants.INTERVAL_MONTH );
		level.setIntervalRange( 5 );
		level.setIntervalBase( valuePrix + level.getIntervalBase( ) );
		level.setLevelType( DesignChoiceConstants.LEVEL_TYPE_MIRRORED );
		propHandle = level.getPropertyHandle( LevelHandle.STATIC_VALUES_PROP );
		propHandle.removeItem( 0 );
		Rule rule = new Rule( );
		rule.setProperty( Rule.DISPLAY_EXPRE_MEMBER, "new display expression" ); 
		rule.setProperty( Rule.RULE_EXPRE_MEMBER, "new rule expression" ); 
		propHandle.insertItem( rule, 0 );
		propHandle = level.getPropertyHandle( LevelHandle.ATTRIBUTES_PROP );
		propHandle.removeItem( propHandle.get( 1 ) );
		LevelAttribute config = new LevelAttribute( );
		config.setName( "var3" ); 
		config.setDataType( DesignChoiceConstants.COLUMN_DATA_TYPE_BOOLEAN );
		propHandle.insertItem( config, 0 );
		
		ValueAccessControlHandle valueAccess = (ValueAccessControlHandle) level
				.valueAccessControlsIterator( ).next( );
		valueAccess.addUserName( "new level user1" ); 
		valueAccess.addUserName( "new level user2" ); 
		valueAccess.addRole( "new level role1" ); 
		valueAccess.addRole( "new level role2" );