1 20 package org.jahia.data.webapps; 21 22 import java.util.Enumeration ; 23 import java.util.Vector ; 24 25 26 45 public class JahiaWebAppDef { 46 47 48 private String m_Name = ""; 49 50 private String m_desc = ""; 51 52 private String m_ContextRoot; 53 55 private Vector m_Servlets = new Vector (); 56 58 private Vector m_Roles = new Vector (); 59 60 61 65 public JahiaWebAppDef ( 66 String name, 67 String contextRoot ) 68 { 69 m_Name = name; 70 m_ContextRoot = contextRoot; 71 } 72 73 74 79 public String getName(){ 80 81 return m_Name; 82 } 83 84 85 89 public void setName(String name){ 90 91 m_Name = name; 92 } 93 94 95 100 public String getContextRoot(){ 101 102 return m_ContextRoot; 103 } 104 105 106 110 public void setContextRoot(String contextRoot){ 111 112 m_ContextRoot = contextRoot; 113 } 114 115 116 121 public String getdesc(){ 122 123 return m_desc; 124 } 125 126 127 131 public void setdesc(String descr){ 132 133 m_desc = descr; 134 } 135 136 137 142 public void addServlet(Servlet_Element servlet){ 143 m_Servlets.add(servlet); 144 } 145 146 147 152 public void addServlets(Vector servlets){ 153 m_Servlets.addAll(servlets); 154 } 155 156 157 162 public Vector getServlets(){ 163 return m_Servlets; 164 } 165 166 167 172 public void addRole(Security_Role role){ 173 m_Roles.add(role); 174 } 175 176 177 182 public void addRoles(Vector roles){ 183 m_Roles.addAll(roles); 184 } 185 186 187 192 public Enumeration getRoles(){ 193 return m_Roles.elements(); 194 } 195 196 197 198 199 200 } | Popular Tags |