KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > openedit > users > filesystem > PermissionGroup


1 package com.openedit.users.filesystem;
2
3 import java.util.Collections JavaDoc;
4 import java.util.List JavaDoc;
5
6 public class PermissionGroup
7 {
8     protected String JavaDoc fieldName;
9     protected List JavaDoc fieldPermissions;
10     public PermissionGroup()
11     {
12         
13     }
14     
15     public PermissionGroup(List JavaDoc inPermissions)
16     {
17         setPermissions(inPermissions);
18     }
19     
20     public String JavaDoc getName()
21     {
22         return fieldName;
23     }
24     public void setName(String JavaDoc inName)
25     {
26         fieldName = inName;
27     }
28     public List JavaDoc getPermissions()
29     {
30         if ( fieldPermissions == null)
31         {
32             fieldPermissions = Collections.EMPTY_LIST;
33         }
34         return fieldPermissions;
35     }
36     public void setPermissions(List JavaDoc inPermissions)
37     {
38         fieldPermissions = inPermissions;
39     }
40 }
41
Popular Tags