From 226347a1bd22a6f6cf107934ef32e7abad831f40 Mon Sep 17 00:00:00 2001 From: Saad Sahibjan Date: Tue, 28 Apr 2020 12:18:42 +0530 Subject: [PATCH] Add enrollment configuration bean --- .../mgt/EnrollmentConfiguration.java | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/configuration/mgt/EnrollmentConfiguration.java diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/configuration/mgt/EnrollmentConfiguration.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/configuration/mgt/EnrollmentConfiguration.java new file mode 100644 index 0000000000..7074729423 --- /dev/null +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/configuration/mgt/EnrollmentConfiguration.java @@ -0,0 +1,96 @@ +/* + * Copyright (c) 2020, Entgra (Pvt) Ltd. (https://www.entgra.io) All Rights Reserved. + * + * Entgra (Pvt) Ltd. licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.wso2.carbon.device.mgt.common.configuration.mgt; + +import java.util.List; + +public class EnrollmentConfiguration { + + private List serialNumbers; + private List userConfigurations; + private List groupConfigurations; + + public List getSerialNumbers() { + return serialNumbers; + } + + public void setSerialNumbers(List serialNumbers) { + this.serialNumbers = serialNumbers; + } + + public List getUserConfigurations() { + return userConfigurations; + } + + public void setUserConfigurations( + List userConfigurations) { + this.userConfigurations = userConfigurations; + } + + public List getGroupConfigurations() { + return groupConfigurations; + } + + public void setGroupConfigurations( + List groupConfigurations) { + this.groupConfigurations = groupConfigurations; + } + + public class UserConfiguration { + private String username; + private List serialNumbers; + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public List getSerialNumbers() { + return serialNumbers; + } + + public void setSerialNumbers(List serialNumbers) { + this.serialNumbers = serialNumbers; + } + } + + public class GroupConfiguration { + private String groupName; + private List serialNumbers; + + public String getGroupName() { + return groupName; + } + + public void setGroupName(String groupName) { + this.groupName = groupName; + } + + public List getSerialNumbers() { + return serialNumbers; + } + + public void setSerialNumbers(List serialNumbers) { + this.serialNumbers = serialNumbers; + } + } +}