LogoLogo
timvero.comMaven Repository
  • timveroOS SDK guide
  • timveroOS how-to
  • timveroOS admin-side setup
  • Campaigns in timveroOS
    • 7.11
      • Business Context
      • Introduction
      • Core Concept
        • Entity Diagram
        • Lifecycle Diagram
        • Expression
      • Design and Development of the Campaign Model
        • Campaign model
        • Campaign repository
        • Campaign forms
        • Campaign ัontroller
        • UI elements
        • Campaign actions
      • Design and Development of the CampaignExecution Model
        • CampaignExecution model
        • CampaignExecution repository
        • CampaignExecution controller
        • UI elements
      • Expression
      • Services
        • CampaignService
        • CampaignExecutionService
      • Campaign Processing
        • Producer
        • Consumer
      • Post-processing
        • Checker
Powered by GitBook
On this page

Was this helpful?

  1. Campaigns in timveroOS
  2. 7.11
  3. Design and Development of the CampaignExecution Model

CampaignExecution controller

CampaignExecutionController

๐Ÿ“„ CampaignExecutionController

Purpose A controller for displaying the list and detail view of CampaignExecution entities. It extends ViewableFilterController, providing standard CRUD and filtering operations.

Code Example:

@Controller
@RequestMapping("/campaign-execution")
public class CampaignExecutionController extends
    ViewableFilterController<Long, CampaignExecution, CampaignExecutionFilter> {
}

๐Ÿ“„ CampaignExecutionViewService

Purpose The CampaignExecutionViewService is responsible for preparing the view model (data shown in the UI) when displaying a CampaignExecution. It extends EntityViewService, a base service provided by timveroOS.

Code Example:

@Service
public class CampaignExecutionViewService extends EntityViewService<CampaignExecution, Long> {
    @Override
    protected void assembleViewModel(Long id, CampaignExecution entity, Map<String, Object> model) {
        // Implementation can be added as needed
    }
}

By default, the method is empty, but it can be extended to populate additional UI attributes.

PreviousCampaignExecution repositoryNextUI elements

Last updated 18 days ago

Was this helpful?