1 17 package org.apache.geronimo.security.deploy; 18 19 import java.io.Serializable ; 20 import java.util.HashMap ; 21 import java.util.Iterator ; 22 import java.util.Map ; 23 24 25 28 public class Realm implements Serializable { 29 30 private String realmName; 31 private Map domains = new HashMap (); 32 33 public String getRealmName() { 34 return realmName; 35 } 36 37 public void setRealmName(String realmName) { 38 this.realmName = realmName; 39 } 40 41 public Map getLoginDomains() { 42 return domains; 43 } 44 45 public void merge(Realm other) { 46 for (Iterator iter = other.domains.keySet().iterator(); iter.hasNext();) { 47 LoginDomain domain = (LoginDomain) domains.get(iter.next()); 48 if (domain != null) { 49 domain.merge((LoginDomain) other.domains.get(domain.getDomainName())); 50 } 51 } 52 } 53 } 54 | Popular Tags |