1 21 22 27 28 package com.sun.mail.imap; 29 30 import java.util.*; 31 32 40 41 public class ACL implements Cloneable { 42 43 private String name; 44 private Rights rights; 45 46 51 public ACL(String name) { 52 this.name = name; 53 this.rights = new Rights(); 54 } 55 56 62 public ACL(String name, Rights rights) { 63 this.name = name; 64 this.rights = rights; 65 } 66 67 72 public String getName() { 73 return name; 74 } 75 76 81 public void setRights(Rights rights) { 82 this.rights = rights; 83 } 84 85 92 public Rights getRights() { 93 return rights; 94 } 95 96 99 public Object clone() throws CloneNotSupportedException { 100 ACL acl = (ACL)super.clone(); 101 acl.rights = (Rights)this.rights.clone(); 102 return acl; 103 } 104 } 105 | Popular Tags |