/** * @param categoryUniqueIdentifier A unique character to identify the * category. * @param categoryOptions the category options. * @return Category */ public static Category createCategory( char categoryUniqueIdentifier, CategoryOption... categoryOptions ) { Category category = new Category( "Category" + categoryUniqueIdentifier, DataDimensionType.DISAGGREGATION ); category.setAutoFields(); for ( CategoryOption categoryOption : categoryOptions ) { category.addCategoryOption( categoryOption ); } return category; }
Category category = new Category( Category.DEFAULT_NAME, DataDimensionType.DISAGGREGATION ); category.setUid( "GLevLNI9wkl" ); category.setCode( "default" );