• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 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.ArrayList;
19 import java.util.HashMap;
20 import java.util.List;
21 
22 /**
23  * DefPermission info.
24  * @deprecated
25  */
26 public class DefPermission {
27     /**
28      * Indicates the name of DefPermission.
29      */
30     public String name = "";
31 
32     /**
33      * Indicates the grantMode of DefPermission.
34      */
35     public String grantMode = "";
36 
37     /**
38      * Indicates the group of DefPermission.
39      */
40     public String group = "";
41 
42     /**
43      * Indicates the label of DefPermission.
44      */
45     public String label = "";
46 
47     /**
48      * Indicates the description of DefPermission.
49      */
50     public String description = "";
51 
52     /**
53      * Indicates the availableScope of DefPermission.
54      */
55     public List<String> availableScope = new ArrayList<>();
56 
57     private HashMap<String, String> labels = new HashMap<>();
58 
59     private HashMap<String, String> descriptions = new HashMap<>();
60 
getDescriptions()61     public HashMap<String, String> getDescriptions() {
62         return descriptions;
63     }
64 
setDescriptions(HashMap<String, String> descriptions)65     public void setDescriptions(HashMap<String, String> descriptions) {
66         this.descriptions = descriptions;
67     }
68 
getLabels()69     public HashMap<String, String> getLabels() {
70         return labels;
71     }
72 
setLabels(HashMap<String, String> labels)73     public void setLabels(HashMap<String, String> labels) {
74         this.labels = labels;
75     }
76 }