1 23 24 package org.infoglue.cms.security; 25 26 import java.io.Serializable ; 27 28 29 34 35 public class InfoGlueGroup implements Serializable 36 { 37 private static final long serialVersionUID = -968607054134915601L; 38 39 private final String name; 40 private final String description; 41 private final AuthorizationModule autorizationModule; 42 43 public InfoGlueGroup(String name, String description, AuthorizationModule autorizationModule) 44 { 45 this.name = name; 46 this.description = description; 47 this.autorizationModule = autorizationModule; 48 } 49 50 public String getName() 51 { 52 return name; 53 } 54 55 public String getDescription() 56 { 57 return description; 58 } 59 60 public String toString() 61 { 62 return "InfoGlueGroup: " + name; 63 } 64 65 public boolean equals(Object obj) 66 { 67 if (obj == null) 68 return false; 69 if (obj == this) 70 return true; 71 if (!(obj instanceof InfoGlueGroup)) 72 return false; 73 74 InfoGlueGroup another = (InfoGlueGroup)obj; 75 return name.equals(another.getName()); 76 } 77 78 public int hasCode() 79 { 80 return name.hashCode(); 81 } 82 83 public AuthorizationModule getAutorizationModule() 84 { 85 return autorizationModule; 86 } 87 88 } 89 90 | Popular Tags |