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 under10 * the terms of the GNU General Public License version 2, as published by the11 * 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 WITHOUT14 * ANY WARRANTY, including the implied warranty of MERCHANTABILITY or FITNESS15 * 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 with18 * this program; if not, write to the Free Software Foundation, Inc. / 59 Temple19 * 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 org.apache.pluto.om.common.Description;28 import org.apache.pluto.om.common.DisplayName;29 import org.apache.pluto.om.common.LanguageSet;30 import org.apache.pluto.om.common.ObjectID;31 import org.apache.pluto.om.common.ParameterSet;32 import org.apache.pluto.om.common.PreferenceSet;33 import org.apache.pluto.om.common.SecurityRoleRefSet;34 import org.apache.pluto.om.portlet.ContentTypeSet;35 import org.apache.pluto.om.portlet.PortletApplicationDefinition;36 import org.apache.pluto.om.portlet.PortletDefinition;37 import org.apache.pluto.om.servlet.ServletDefinition;38 39 /**40 * @author jand41 *42 */43 public class PortletDefinitionImpl implements PortletDefinition {44 private LanguageSetImpl languages;45 private ParameterSetImpl parameters;46 private SecurityRoleRefSetImpl securityRoleRefs;47 private DescriptionImpl description;48 private PreferenceSetImpl preferences;49 private ContentTypeSetImpl contentTypes;50 private PortletApplicationDefinition portletApplicationDefinition;51 private ServletDefinition servletDefinition;52 53 private ObjectID oid;54 private String className ="se.skolutveckling.portlet.TestPortlet";55 private String name ="";56 57 /* (non-Javadoc)58 * @see org.apache.pluto.om.portlet.PortletDefinition#getId()59 */60 public ObjectID getId() {61 return oid;62 }63 64 /* (non-Javadoc)65 * @see org.apache.pluto.om.portlet.PortletDefinition#getClassName()66 */67 public String getClassName() {68 return className;69 }70 71 /* (non-Javadoc)72 * @see org.apache.pluto.om.portlet.PortletDefinition#getName()73 */74 public String getName() {75 return name;76 }77 78 /* (non-Javadoc)79 * @see org.apache.pluto.om.portlet.PortletDefinition#getDescription(java.util.Locale)80 */81 public Description getDescription(Locale locale) {82 return description;83 }84 85 /* (non-Javadoc)86 * @see org.apache.pluto.om.portlet.PortletDefinition#getLanguageSet()87 */88 public LanguageSet getLanguageSet() {89 return languages;90 }91 92 /* (non-Javadoc)93 * @see org.apache.pluto.om.portlet.PortletDefinition#getInitParameterSet()94 */95 public ParameterSet getInitParameterSet() {96 return parameters;97 }98 99 /* (non-Javadoc)100 * @see org.apache.pluto.om.portlet.PortletDefinition#getInitSecurityRoleRefSet()101 */102 public SecurityRoleRefSet getInitSecurityRoleRefSet() {103 return securityRoleRefs;104 }105 106 /* (non-Javadoc)107 * @see org.apache.pluto.om.portlet.PortletDefinition#getPreferenceSet()108 */109 public PreferenceSet getPreferenceSet() {110 return preferences;111 }112 113 /* (non-Javadoc)114 * @see org.apache.pluto.om.portlet.PortletDefinition#getContentTypeSet()115 */116 public ContentTypeSet getContentTypeSet() {117 return contentTypes;118 }119 120 /* (non-Javadoc)121 * @see org.apache.pluto.om.portlet.PortletDefinition#getPortletApplicationDefinition()122 */123 public PortletApplicationDefinition getPortletApplicationDefinition() {124 return portletApplicationDefinition;125 }126 127 /* (non-Javadoc)128 * @see org.apache.pluto.om.portlet.PortletDefinition#getServletDefinition()129 */130 public ServletDefinition getServletDefinition() {131 return servletDefinition;132 }133 134 /* (non-Javadoc)135 * @see org.apache.pluto.om.portlet.PortletDefinition#getDisplayName(java.util.Locale)136 */137 public DisplayName getDisplayName(Locale locale) {138 return null;139 }140 141 /* (non-Javadoc)142 * @see org.apache.pluto.om.portlet.PortletDefinition#getExpirationCache()143 */144 public String getExpirationCache() {145 return null;146 }147 148 /* (non-Javadoc)149 * @see org.apache.pluto.om.portlet.PortletDefinition#getPortletClassLoader()150 */151 public ClassLoader getPortletClassLoader() {152 return null;153 }154 155 156 }157