Project

General

Profile

« Previous | Next » 

Revision 1403

Added by Jing Tao almost 22 years ago

Fixed error.

View differences:

src/edu/ucsb/nceas/metacat/AccessSection.java
38 38
{
39 39
  private String accessSectionId = null;
40 40
  private String permissionOrder = null;
41
  private Vector allowRules = new Vector();
42
  private Vector denyRules = new Vector();
41
  private Vector accessRules = new Vector();
43 42
 
44 43
    /** Set the a accessSectionId */
45
    public void addPrinciple(String myId) 
44
    public void setAccessSectionId(String myId) 
46 45
    {
47 46
      this.accessSectionId = myId;
48 47
    }
......
69 68
      return this.permissionOrder;
70 69
    }
71 70
    
72
    /** Add a allow rule */
73
    public void addAllowRule(AccessRule rule)
71
    /** Add an access rule */
72
    public void addAccessRule(AccessRule rule)
74 73
    {
75
      this.allowRules.addElement(rule);
74
      this.accessRules.addElement(rule);
76 75
    }
77 76
    
78
    /** Get all allow rule */
79
    public Vector getAllowRules()
77
    /** Get all access rule */
78
    public Vector getAccessRules()
80 79
    {
81
      return this.allowRules;
80
      return this.accessRules;
82 81
    }
83 82
    
84
    /** Add a deny rule */
85
    public void addDenyRule(AccessRule rule)
83
    public Object clone()
86 84
    {
87
      this.denyRules.addElement(rule);
85
      return this.clone();
88 86
    }
89
    
90
    /** Return all deny rule */
91
    public Vector getDenyRules()
92
    {
93
      return this.denyRules;
94
    }
87
 
95 88
}

Also available in: Unified diff