1 /* 2 * Copyright (c) 2022-2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 package ohos; 17 18 import java.util.HashMap; 19 20 /** 21 * DefinePermission info. 22 * @deprecated 23 */ 24 public class DefinePermission { 25 /** 26 * Indicates the name of DefPermission. 27 */ 28 public String name = ""; 29 30 /** 31 * Indicates the grantMode of DefPermission. 32 */ 33 public String grantMode = ""; 34 35 /** 36 * Indicates the availableLevel of DefPermission. 37 */ 38 public String availableLevel = ""; 39 40 /** 41 * Indicates the provisionEnable of ModuleDefinePermissions. 42 */ 43 public boolean provisionEnable = true; 44 45 /** 46 * Indicates the distributedSceneEnable of ModuleDefinePermissions. 47 */ 48 public boolean distributedSceneEnable = false; 49 50 /** 51 * Indicates the label of DefPermission. 52 */ 53 public String label = ""; 54 55 /** 56 * Indicates the description of DefPermission. 57 */ 58 public String description = ""; 59 60 private HashMap<String, String> descriptions = new HashMap<>(); 61 62 private HashMap<String, String> labels = new HashMap<>(); 63 getDescriptions()64 public HashMap<String, String> getDescriptions() { 65 return descriptions; 66 } 67 setDescriptions(HashMap<String, String> descriptions)68 public void setDescriptions(HashMap<String, String> descriptions) { 69 this.descriptions = descriptions; 70 } 71 getLabels()72 public HashMap<String, String> getLabels() { 73 return labels; 74 } 75 setLabels(HashMap<String, String> labels)76 public void setLabels(HashMap<String, String> labels) { 77 this.labels = labels; 78 } 79 } 80