• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package ohos;
2 
3 import java.util.HashMap;
4 
5 /**
6  * DefinePermission info.
7  * @deprecated
8  */
9 public class DefinePermission {
10     /**
11      * Indicates the name of DefPermission.
12      */
13     public String name = "";
14 
15     /**
16      * Indicates the grantMode of DefPermission.
17      */
18     public String grantMode = "";
19 
20     /**
21      * Indicates the availableLevel of DefPermission.
22      */
23     public String availableLevel = "";
24 
25     /**
26      * Indicates the provisionEnable of ModuleDefinePermissions.
27      */
28     public boolean provisionEnable  = true;
29 
30     /**
31      * Indicates the distributedSceneEnable of ModuleDefinePermissions.
32      */
33     public boolean distributedSceneEnable = false;
34 
35     /**
36      * Indicates the label of DefPermission.
37      */
38     public String label = "";
39 
40     /**
41      * Indicates the description of DefPermission.
42      */
43     public String description = "";
44 
45     private HashMap<String, String> descriptions = new HashMap<>();
46 
47     private HashMap<String, String> labels = new HashMap<>();
48 
getDescriptions()49     public HashMap<String, String> getDescriptions() {
50         return descriptions;
51     }
52 
setDescriptions(HashMap<String, String> descriptions)53     public void setDescriptions(HashMap<String, String> descriptions) {
54         this.descriptions = descriptions;
55     }
56 
getLabels()57     public HashMap<String, String> getLabels() {
58         return labels;
59     }
60 
setLabels(HashMap<String, String> labels)61     public void setLabels(HashMap<String, String> labels) {
62         this.labels = labels;
63     }
64 }
65