39517329eddfeb020a2332f121e4e13d14d6c086
[platform/core/security/suspicious-activity-monitor.git] / server / samserver / src / main / java / com / samsung / samserver / service / AuditRuleService.java
1 /*
2  * In Samsung Ukraine R&D Center (SRK under a contract between)
3  * LLC "Samsung Electronics Co", Ltd (Seoul, Republic of Korea)
4  * Copyright (C) 2018 Samsung Electronics Co., Ltd. All rights reserved.
5  */
6 package com.samsung.samserver.service;
7
8 import com.samsung.samserver.domain.primary.AuditRule;
9 import com.samsung.samserver.domain.primary.Device;
10
11 import java.util.List;
12
13 /**
14  * Service Interface for managing AuditRule.
15  */
16 public interface AuditRuleService {
17
18     /**
19      * Save a auditRule.
20      *
21      * @param auditRule the entity to save
22      * @return the persisted entity
23      */
24     AuditRule save(AuditRule auditRule);
25
26     /**
27      * Get all the auditRules.
28      *
29      * @return the list of entities
30      */
31     List<AuditRule> findAll();
32
33     /**
34      * Get the "id" auditRule.
35      *
36      * @param id the id of the entity
37      * @return the entity
38      */
39     AuditRule findOne(Long id);
40
41     /**
42      * Delete the "id" auditRule.
43      *
44      * @param id the id of the entity
45      */
46     void delete(Long id);
47
48     /**
49      * Update a device auditRule.
50      *
51      * @param device the Device entity
52      * @param key the AuditRule key
53      * @param data the AuditRule data
54      *
55      * @return the persisted entity
56      */
57     AuditRule update(Device device, String key, String data);
58
59     /**
60      * Get the auditRule list by Device.
61      *
62      * @param device the Device entity
63      * @return the list of AuditRule entities
64      */    List<AuditRule> find(Device device);
65
66 }