Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
37165 amit 1
package com.spice.profitmandi.service;
2
 
3
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
4
 
5
import java.util.Map;
6
 
7
public interface AgendaConfigService {
8
 
9
    /**
10
     * Resolved rule params for a partner: the global default row (fofo_id 0)
11
     * overlaid key-by-key with the partner's override row, if any.
12
     * Throws if the default row is missing (mis-seeded DB must be loud).
13
     */
14
    Map<String, Double> getParams(String agendaType, int fofoId) throws ProfitMandiBusinessException;
15
 
16
    /**
17
     * Upsert a config row. fofoId 0 targets the global default. Empty params
18
     * on a partner row (fofoId != 0) deletes the override.
19
     */
20
    void saveParams(String agendaType, int fofoId, Map<String, Double> params, String updatedBy)
21
            throws ProfitMandiBusinessException;
22
}