1 17 18 19 package org.apache.catalina.users; 20 21 22 import java.util.Iterator ; 23 24 import org.apache.catalina.Group; 25 import org.apache.catalina.Role; 26 import org.apache.catalina.UserDatabase; 27 28 29 36 37 public abstract class AbstractGroup implements Group { 38 39 40 42 43 46 protected String description = null; 47 48 49 52 protected String groupname = null; 53 54 55 57 58 61 public String getDescription() { 62 63 return (this.description); 64 65 } 66 67 68 73 public void setDescription(String description) { 74 75 this.description = description; 76 77 } 78 79 80 84 public String getGroupname() { 85 86 return (this.groupname); 87 88 } 89 90 91 97 public void setGroupname(String groupname) { 98 99 this.groupname = groupname; 100 101 } 102 103 104 107 public abstract Iterator getRoles(); 108 109 110 113 public abstract UserDatabase getUserDatabase(); 114 115 116 120 public abstract Iterator getUsers(); 121 122 123 125 126 131 public abstract void addRole(Role role); 132 133 134 139 public abstract boolean isInRole(Role role); 140 141 142 147 public abstract void removeRole(Role role); 148 149 150 153 public abstract void removeRoles(); 154 155 156 158 159 162 public String getName() { 163 164 return (getGroupname()); 165 166 } 167 168 169 } 170 | Popular Tags |