Bug 196894 BIRT Cross tab, Cube - Time dimension enhancements
There were a couple of time dimension related enhancments planned post BIRT 2.2. This entry is to track those. This enhancments also includes - supporting additional predefined data time formats, that could make it easier to define data time dimension and use it in data items.
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/parser/TabularCubeParserTest.java
accessControl
				.setPermission( DesignChoiceConstants.ACCESS_PERMISSION_DISALLOW );
		
		propHandle = hierarchy
				.getPropertyHandle( TabularHierarchyHandle.ACCESS_CONTROLS_PROP );
		accessControl = designHandle.getElementFactory( ).newAccessControl( );
		propHandle.add( accessControl );
		
		hierarchy.add( TabularHierarchyHandle.LEVELS_PROP, factory
				.newTabularLevel( dimension, 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
				.setDateTimeLevelType( DesignChoiceConstants.DATE_TIME_LEVEL_TYPE_QUARTER );
		
		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( );