Navigation :
test ../../../ test dev.html
Developer Guide
test ../../../ test dev/dev-release.html
-
Release and migration notes
test ../../../ test dev/getting-started.html
-
Getting started
test ../../../ test dev/dev-ui-config.html
-
Configuring the UI
test ../../../ test dev/dev-extensions.html
-
Extending the Module
test ../../../ test dev/dev-extensions/custom-cube-config.html
--
Adding Custom Cube Configuration
test ../../../ test dev/dev-extensions/custom-cube-config/custom-dimension-config.html
--- Adding Custom Dimension Configuration
test ../../../ test dev/dev-extensions/custom-cube-config/custom-measure-config.html
--- Adding Custom Measure Configuration
test ../../../ test dev/dev-extensions/custom-data-loading.html
--
Adding Custom Data Loading
test ../../../ test dev/dev-extensions/custom-evaluation.html
--
Adding Custom Evaluation Logic
test ../../../ test dev/dev-extensions/custom-limit-structure-templates.html
-- Adding Custom Limit Structure Templates
test ../../../ test dev/dev-extensions/custom-ui-exceptions.html
-- Adding Custom UI Exceptions
test ../../../ test dev/dev-extensions/custom-utilization.html
-- Adding Custom Utilization
test ../../../ test dev/dev-extensions/custom-validation.html
--
Adding Custom Validation
test ../../../ test dev/dev-extensions/custom-workflow.html
--
Adding Custom Workflow Tasks
test ../../../ test dev/dev-extensions/custom-persistence.html
--
Adding Custom Persistence
test ../../../ test dev/integration.html
-
How to Connect Limits to an Atoti Server
test ../../../ test dev/persistence.html
-
Persistence
test ../../../ test dev/alert-tasks.html
-
Evaluating Limits
test ../../../ test dev/scopes.html
-
Limit scopes
test ../../../ test dev/limit-workflow.html
-
Limit Workflow
test ../../../ test dev/date-roll.html
- Date Roll
test ../../../ test dev/rest-services.html
- REST Services
test ../../../ test dev/roles.html
-
Roles and Permissions
test ../../../ test user-ref.html
User & Reference Guide
test ../../../ test user-ref/limits-overview.html
-
Atoti Limits Overview
test ../../../ test user-ref/whats-new.html
- What's New
test ../../../ test user-ref/videos.html
- Video walk-throughs
test ../../../ test user-ref/using-limits.html
-
Manage limits
test ../../../ test user-ref/manage-incidents.html
-
Manage incidents
test ../../../ test user-ref/input-files.html
-
Input file formats
test ../../../ test user-ref/cube.html
-
Cube reference
test ../../../ test user-ref/properties.html
-
Properties
test ../../../ test user-ref/datastore.html
-
Datastores
Adding Custom Measure Configuration
Overview
This section explains how to customize the cube’s measures configuration by implementing the IMeasureBuilder
interface and importing the Spring Bean into the project.
IMeasureBuilder interface
This interface contains a single method, copperMeasures()
, which, when implemented, will contain all new copper measures that will be added to the cube’s configuration.
/**
* <b>IMeasureBuilder</b>
*
* <p>Interface to define copper measures.
*
* @author ActiveViam
*/
public interface IMeasureBuilder {
void copperMeasures ( ICopperContext context);
}
CustomMeasureBuilder class
To add new measures to the cube configuration, define a Spring Configuration class, which implements the IMeasureBuilder
interface. Within the copperMeasures(ICopperContext context)
method, add the new copper measures.
See example below:
@Configuration
public class CustomMeasureBuilder implements IMeasureBuilder {
@Override
public void copperMeasures ( ICopperContext context) {
Copper. count (). withAlias ( "NEW COUNT" ). publish ( context);
}
}
All measures defined in copperMeasures()
are added to the cube’s configuration along with the default measures.
Import the Spring Bean
Once the bean is created, import it into the project. See Importing Spring Beans into the Project on how to do this. Once done,
Spring will use the custom bean when configuring the cube’s measures.