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.
6 package com.samsung.samserver.service;
8 import com.samsung.samserver.domain.primary.AuditRule;
9 import com.samsung.samserver.domain.primary.Device;
14 * Service Interface for managing AuditRule.
16 public interface AuditRuleService {
21 * @param auditRule the entity to save
22 * @return the persisted entity
24 AuditRule save(AuditRule auditRule);
27 * Get all the auditRules.
29 * @return the list of entities
31 List<AuditRule> findAll();
34 * Get the "id" auditRule.
36 * @param id the id of the entity
39 AuditRule findOne(Long id);
42 * Delete the "id" auditRule.
44 * @param id the id of the entity
49 * Update a device auditRule.
51 * @param device the Device entity
52 * @param key the AuditRule key
53 * @param data the AuditRule data
55 * @return the persisted entity
57 AuditRule update(Device device, String key, String data);
60 * Get the auditRule list by Device.
62 * @param device the Device entity
63 * @return the list of AuditRule entities
65 List<AuditRule> find(Device device);
68 * Get the set AuditRule key by Device.
70 * @param device the Device entity
71 * @return the set of AuditRule key
73 Set<String> getKeys(Device device);
76 * Delete a device auditRule.
78 * @param device the Device entity
79 * @param key the AuditRule key
81 void delete(Device device, String key);