1 /* =============================================================================== 2 * 3 * Part of the InfoGlue Content Management Platform (www.infoglue.org) 4 * 5 * =============================================================================== 6 * 7 * Copyright (C) 8 * 9 * This program is free software; you can redistribute it and/or modify it under 10 * the terms of the GNU General Public License version 2, as published by the 11 * Free Software Foundation. See the file LICENSE.html for more information. 12 * 13 * This program is distributed in the hope that it will be useful, but WITHOUT 14 * ANY WARRANTY, including the implied warranty of MERCHANTABILITY or FITNESS 15 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License along with 18 * this program; if not, write to the Free Software Foundation, Inc. / 59 Temple 19 * Place, Suite 330 / Boston, MA 02111-1307 / USA. 20 * 21 * =============================================================================== 22 */ 23 package org.infoglue.deliver.portal.om; 24 25 import java.util.Locale; 26 27 import javax.servlet.ServletContext; 28 29 import org.apache.pluto.om.common.Description; 30 import org.apache.pluto.om.common.DisplayName; 31 import org.apache.pluto.om.common.ObjectID; 32 import org.apache.pluto.om.common.ParameterSet; 33 import org.apache.pluto.om.common.SecurityRoleSet; 34 import org.apache.pluto.om.servlet.ServletDefinitionList; 35 import org.apache.pluto.om.servlet.WebApplicationDefinition; 36 import org.apache.pluto.portalImpl.om.common.impl.SecurityRoleSetImpl; 37 38 /** 39 * Dummy implementation of interface 40 * @author Jöran 41 * TODO Implement this 42 * 43 */ 44 public class WebApplicationDefinitionImpl implements WebApplicationDefinition { 45 private ObjectID oid; 46 private ParameterSet parameters = new ParameterSetImpl(); 47 private ServletDefinitionListImpl servletDefinitions = new ServletDefinitionListImpl(); 48 private SecurityRoleSetImpl securityRoles = new SecurityRoleSetImpl(); 49 50 public WebApplicationDefinitionImpl(ObjectID oid){ 51 this.oid = oid; 52 } 53 54 /* (non-Javadoc) 55 * @see org.apache.pluto.om.servlet.WebApplicationDefinition#getId() 56 */ 57 public ObjectID getId() { 58 return oid; 59 } 60 61 /* (non-Javadoc) 62 * @see org.apache.pluto.om.servlet.WebApplicationDefinition#getDisplayName(java.util.Locale) 63 */ 64 public DisplayName getDisplayName(Locale locale) { 65 return null; 66 } 67 68 /* (non-Javadoc) 69 * @see org.apache.pluto.om.servlet.WebApplicationDefinition#getDescription(java.util.Locale) 70 */ 71 public Description getDescription(Locale locale) { 72 return null; 73 } 74 75 /* (non-Javadoc) 76 * @see org.apache.pluto.om.servlet.WebApplicationDefinition#getInitParameterSet() 77 */ 78 public ParameterSet getInitParameterSet() { 79 return parameters; 80 } 81 82 /* (non-Javadoc) 83 * @see org.apache.pluto.om.servlet.WebApplicationDefinition#getServletDefinitionList() 84 */ 85 public ServletDefinitionList getServletDefinitionList() { 86 return servletDefinitions; 87 } 88 89 /* (non-Javadoc) 90 * @see org.apache.pluto.om.servlet.WebApplicationDefinition#getServletContext(javax.servlet.ServletContext) 91 */ 92 public ServletContext getServletContext(ServletContext servletContext) { 93 return servletContext; 94 } 95 96 /* (non-Javadoc) 97 * @see org.apache.pluto.om.servlet.WebApplicationDefinition#getContextRoot() 98 */ 99 public String getContextRoot() { 100 return ""; 101 } 102 103 /* (non-Javadoc) 104 * @see org.apache.pluto.om.servlet.WebApplicationDefinition#getSecurityRoles() 105 */ 106 public SecurityRoleSet getSecurityRoles() { 107 return securityRoles; 108 } 109 110 } 111