| 5519 |
amar.kumar |
1 |
package in.shop2020.alert.persistence;
|
|
|
2 |
|
|
|
3 |
import java.util.Date;
|
|
|
4 |
import java.util.List;
|
|
|
5 |
|
|
|
6 |
import org.apache.ibatis.annotations.Param;
|
|
|
7 |
|
| 5536 |
amar.kumar |
8 |
import in.shop2020.alert.EntityMonitoringStatus;
|
| 5519 |
amar.kumar |
9 |
import in.shop2020.alert.EntityProcessedState;
|
|
|
10 |
import in.shop2020.alert.EntityType;
|
|
|
11 |
import in.shop2020.alert.domain.AlertMapper;
|
|
|
12 |
import in.shop2020.alert.domain.AlertedEntity;
|
|
|
13 |
import in.shop2020.alert.domain.MonitoredEntity;
|
|
|
14 |
import in.shop2020.alert.domain.SearchFilter;
|
|
|
15 |
|
|
|
16 |
public interface EntityMapper {
|
|
|
17 |
|
|
|
18 |
boolean isEntityMonitorable(int entityType);
|
|
|
19 |
|
|
|
20 |
void insertEntity(MonitoredEntity monitoredEntity);
|
|
|
21 |
|
|
|
22 |
void updateEntity(MonitoredEntity monitoredEntity);
|
|
|
23 |
|
|
|
24 |
List<MonitoredEntity> getEntities(SearchFilter searchFilter);
|
|
|
25 |
|
|
|
26 |
List<AlertedEntity> getAlertedEntities(SearchFilter searchFilter);
|
|
|
27 |
|
|
|
28 |
MonitoredEntity getEntity(@Param("entityType") EntityType entityType,
|
|
|
29 |
@Param("entityIdentifier") String entityIdentifier);
|
|
|
30 |
|
| 5563 |
amar.kumar |
31 |
void insertAlertedEntity(AlertedEntity alertedEntity);
|
| 5519 |
amar.kumar |
32 |
|
|
|
33 |
void removeMonitoredEntity(@Param("entityType") EntityType entityType, @Param("entityIdentifier") String entityIdentifier);
|
|
|
34 |
|
|
|
35 |
List<MonitoredEntity> getEntitiesToBeAlerted();
|
|
|
36 |
|
|
|
37 |
void updateEntityProcessedState(@Param("id") long id, @Param("state") EntityProcessedState state);
|
|
|
38 |
|
|
|
39 |
in.shop2020.alert.domain.AlertMapper getAlertMapper(@Param("entityType") EntityType entityType, @Param("eventType")int eventType);
|
|
|
40 |
|
|
|
41 |
void activateEntityMonitoring(@Param("entityType") EntityType entityType, @Param("userIds") String userIds);
|
|
|
42 |
|
|
|
43 |
void deActivateEntityMonitoring(@Param("entityType") EntityType entityType);
|
|
|
44 |
|
|
|
45 |
void registerEventType(AlertMapper alertMap);
|
|
|
46 |
|
| 5536 |
amar.kumar |
47 |
in.shop2020.alert.domain.EntityMonitoringStatus getEntityMonitoringStatus(int entityType);
|
|
|
48 |
|
|
|
49 |
void addEntityType(
|
|
|
50 |
in.shop2020.alert.domain.EntityMonitoringStatus entityMonStatus);
|
|
|
51 |
|
| 5674 |
amar.kumar |
52 |
List<in.shop2020.alert.domain.MonitoredEntity> getActiveAlertEntities();
|
|
|
53 |
|
| 5519 |
amar.kumar |
54 |
}
|