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.Device;
10 import java.util.Optional;
13 * Service Interface for managing Device.
15 public interface DeviceService {
20 * @param device the entity to save
21 * @return the persisted entity
23 Device save(Device device);
26 * Get all the devices.
28 * @return the list of entities
30 List<Device> findAll();
33 * Get the "id" device.
35 * @param id the id of the entity
38 Device findOne(Long id);
41 * Delete the "id" device.
43 * @param id the id of the entity
48 * Get the "duid" device.
50 * @param duid the duid of the entity
53 Optional<Device> findOne(String duid);
58 * @param dtypename device type name
59 * @param model device model
60 * @param sn device serial number
63 String getDeviceUID(String dtypename, String model, String sn);