Interface AggregateService
public interface AggregateService
Defines high level methods for aggregate manipulation.
-
Method Summary
Modifier and TypeMethodDescriptionlongcreateAggregate(com.aquima.interactions.portal.IPortalContext context, AggregateCreateParams aggregateCreateParams, com.aquima.interactions.metamodel.IAggregateDefinition aggregateDefinition) Creates an aggregate based on the information in the profile (accessible via the portal context), the parameters and the aggregate definitionvoiddeleteAggregate(com.aquima.interactions.portal.IPortalContext context, AggregateDeleteParams aggregateDeleteParams) Deletes an aggregate based on the parameters providedvoidreadAggregate(com.aquima.interactions.portal.IPortalContext context, AggregateReadParams aggregateReadParams) Reads an existing aggregate and loads it into the profile.com.blueriq.customerdata.api.v1.model.AggregateModelretrieveAggregate(String aggregateType, long aggregateId) Retrieves a specific aggregatevoidupdateAggregate(com.aquima.interactions.portal.IPortalContext context, AggregateUpdateParams aggregateUpdateParams, com.aquima.interactions.metamodel.IAggregateDefinition aggregateDefinition) Updates an existing aggregate based on the information in the profile (accessible via the portal context) and the update parameters.
-
Method Details
-
createAggregate
long createAggregate(com.aquima.interactions.portal.IPortalContext context, AggregateCreateParams aggregateCreateParams, com.aquima.interactions.metamodel.IAggregateDefinition aggregateDefinition) Creates an aggregate based on the information in the profile (accessible via the portal context), the parameters and the aggregate definition- Parameters:
context- the portal contextaggregateCreateParams- parameters for the aggregate creationaggregateDefinition- the definition of the aggregate in the model- Returns:
- the id of the created aggregate
-
readAggregate
void readAggregate(com.aquima.interactions.portal.IPortalContext context, AggregateReadParams aggregateReadParams) Reads an existing aggregate and loads it into the profile.- Parameters:
context- the portal contextaggregateReadParams- the parameters to determine which aggregate to read
-
retrieveAggregate
com.blueriq.customerdata.api.v1.model.AggregateModel retrieveAggregate(String aggregateType, long aggregateId) Retrieves a specific aggregate- Parameters:
aggregateType- the type of the aggregateaggregateId- the aggreagteId if the specific aggregate- Returns:
- the specific aggregate
-
updateAggregate
void updateAggregate(com.aquima.interactions.portal.IPortalContext context, AggregateUpdateParams aggregateUpdateParams, com.aquima.interactions.metamodel.IAggregateDefinition aggregateDefinition) Updates an existing aggregate based on the information in the profile (accessible via the portal context) and the update parameters.- Parameters:
context- the portal contextaggregateUpdateParams- parameters for the aggregate updateaggregateDefinition- the definition of the aggregate in the model
-
deleteAggregate
void deleteAggregate(com.aquima.interactions.portal.IPortalContext context, AggregateDeleteParams aggregateDeleteParams) Deletes an aggregate based on the parameters provided- Parameters:
context- the portal contextaggregateDeleteParams- the parameters containing the information to identify the aggregate to delete
-