JBoss Portal SVN: r13020 - modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portal/object.
by portal-commits@lists.jboss.org
Author: mwringe
Date: 2009-03-11 15:13:14 -0400 (Wed, 11 Mar 2009)
New Revision: 13020
Modified:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portal/object/ModeMetaData.java
Log:
Fix typo which caused modes to not be set properly.
Modified: modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portal/object/ModeMetaData.java
===================================================================
--- modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portal/object/ModeMetaData.java 2009-03-11 19:12:19 UTC (rev 13019)
+++ modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portal/object/ModeMetaData.java 2009-03-11 19:13:14 UTC (rev 13020)
@@ -38,7 +38,7 @@
protected List<String> modes;
@XmlElement(name = "mode")
- public void setModes(List<String> mode)
+ public void setModes(List<String> modes)
{
this.modes = modes;
}
17 years, 1 month
JBoss Portal SVN: r13019 - in modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer: portlet and 1 other directory.
by portal-commits@lists.jboss.org
Author: mwringe
Date: 2009-03-11 15:12:19 -0400 (Wed, 11 Mar 2009)
New Revision: 13019
Modified:
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/parsing/MergedPortletParsingDeployer.java
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/InstanceDeployer.java
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletDeployer.java
Log:
Fix the merged parsing deployer to handle the situation where a jboss-portlet.xml file is missing and no appId has been set.
Modified: modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/parsing/MergedPortletParsingDeployer.java
===================================================================
--- modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/parsing/MergedPortletParsingDeployer.java 2009-03-11 10:57:12 UTC (rev 13018)
+++ modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/parsing/MergedPortletParsingDeployer.java 2009-03-11 19:12:19 UTC (rev 13019)
@@ -23,6 +23,7 @@
package org.jboss.portal.deployer.parsing;
import java.io.InputStream;
+import java.util.HashMap;
import org.jboss.deployers.spi.DeploymentException;
import org.jboss.deployers.spi.deployer.DeploymentStages;
@@ -32,6 +33,7 @@
import org.jboss.portal.deployer.PortalEntityResolver;
import org.jboss.portal.deployer.PortalResolverFactory;
import org.jboss.portal.deployer.PortalUnmarshallerFactory;
+import org.jboss.portal.deployer.webapp.WebAppContextDeployer;
import org.jboss.portal.metadata.jboss.app.PortalAppMetaData;
import org.jboss.portal.metadata.jboss.portlet.JBossPortletAppMetaData;
import org.jboss.portal.metadata.jboss.portlet.JBossPortletMetaData;
@@ -57,11 +59,17 @@
public MergedPortletParsingDeployer()
{
setAllInputs(false);
- setInput(JBossPortletAppMetaData.class);
- addInput(PortletApplication10MetaData.class);
+ setInput(PortletApplication10MetaData.class);
+ addInput(JBossPortletAppMetaData.class);
+ addInput(WebAppContextDeployer.PORTLET_APP_CONTEXT_PATH_ATTACHMENT);
+
setOutput(JBossPortletAppMetaData.class);
addOutput(PORTLET_MERGED_ATTACHMENT_NAME);
- this.setStage(DeploymentStages.POST_PARSE);
+
+ // normaly a merged parsing deployer should have a stage
+ // of post_parse but we need to merge information from
+ // the deployed webapplication if applicable for the id.
+ this.setStage(DeploymentStages.INSTALLED);
}
public String getStandardPortletFileLocation()
@@ -75,26 +83,54 @@
}
public void deploy(DeploymentUnit unit) throws DeploymentException
- {
+ {
+ PortletApplication10MetaData portletAppMetaData = unit.getAttachment(PortletApplication10MetaData.class);
JBossPortletAppMetaData jbossAppMetaData = unit.getAttachment(JBossPortletAppMetaData.class);
- PortletApplication10MetaData portletAppMetaData = unit.getAttachment(PortletApplication10MetaData.class);
+ String contextPath = unit.getAttachment(WebAppContextDeployer.PORTLET_APP_CONTEXT_PATH_ATTACHMENT, String.class);
+ PortalAppMetaData appMetaData = unit.getAttachment(PortalAppMetaData.class);
- // use the app-name from the jboss-portal-app.xml file if it exists
- PortalAppMetaData appMetaData = unit.getAttachment(PortalAppMetaData.class);
- if (jbossAppMetaData.getAppId() == null && appMetaData != null && appMetaData.getAppName() != null)
+ if (jbossAppMetaData == null)
{
- jbossAppMetaData.setAppId(appMetaData.getAppName());
+ jbossAppMetaData = createJBossPortletMetaData();
}
-
- try{
+ if (jbossAppMetaData.getAppId() == null)
+ {
+ if (appMetaData != null && appMetaData.getAppName() != null)
+ {
+ jbossAppMetaData.setAppId(appMetaData.getAppName());
+ }
+ else if (contextPath != null)
+ {
+ jbossAppMetaData.setAppId(contextPath);
+ }
+ else
+ {
+ throw new DeploymentException(
+ "Could not determine the app id for the portlet. It could not " +
+ "be determined from jboss-portlet.xml or jboss-portal-app.xml " +
+ "and the context path for the deployment could not be determined");
+ }
+ }
+
+ merge(jbossAppMetaData, portletAppMetaData);
+
+ unit.addAttachment(PORTLET_MERGED_ATTACHMENT_NAME, jbossAppMetaData, JBossPortletAppMetaData.class);
+ }
+
+ protected void merge(JBossPortletAppMetaData jbossAppMetaData, PortletApplication10MetaData portletAppMetaData) throws DeploymentException
+ {
+ try
+ {
+
InputStream stream = this.getClass().getClassLoader().getResourceAsStream(standardPortletFileLocation);
InputSource source = new InputSource(stream);
-
+
SchemaBindingResolver resolver = PortalResolverFactory.getInstance().getSchemaBindingResolver();
Unmarshaller unmarshaller = PortalUnmarshallerFactory.getInstance().getUnmarshaller();
- JBossPortletAppMetaData defaultAppMetaData = (JBossPortletAppMetaData)unmarshaller.unmarshal(source, resolver);
-
+ JBossPortletAppMetaData defaultAppMetaData = (JBossPortletAppMetaData) unmarshaller
+ .unmarshal(source, resolver);
+
if (defaultAppMetaData != null)
{
log.debug("Found standard jboss app meta data");
@@ -105,18 +141,23 @@
for (PortletMetaData portlets : portletAppMetaData.getPortlets().values())
{
String name = portlets.getPortletName();
+ if (jbossAppMetaData.getPortlets() == null)
+ {
+ HashMap jbossPortlets = new HashMap<String, JBossPortletMetaData>();
+ jbossAppMetaData.setPortlets(jbossPortlets);
+ }
JBossPortletMetaData jbossPortletMD = jbossAppMetaData.getPortlets().get(name);
if (jbossPortletMD != null)
{
log.debug("Merging default jboss portlet meta data for " + name);
jbossPortletMD.merge(defaultPortletMetaData);
}
- else
+ else
{
log.debug("Using default jboss portlet meta data for " + name);
- jbossAppMetaData.getPortlets().put(name, (JBossPortletMetaData)defaultPortletMetaData.clone());
+ jbossAppMetaData.getPortlets().put(name, (JBossPortletMetaData) defaultPortletMetaData.clone());
}
- }
+ }
}
}
}
@@ -124,10 +165,16 @@
{
throw new DeploymentException("Cannot deploy portlet application", e);
}
-
- unit.addAttachment(PORTLET_MERGED_ATTACHMENT_NAME, jbossAppMetaData, JBossPortletAppMetaData.class);
-
}
+
+ protected JBossPortletAppMetaData createJBossPortletMetaData()
+ {
+ JBossPortletAppMetaData jbossPortletAppMetaData = new JBossPortletAppMetaData();
+ HashMap portletMap = new HashMap<String, JBossPortletMetaData>();
+ jbossPortletAppMetaData.setPortlets(portletMap);
+ return jbossPortletAppMetaData;
+ }
+
}
Modified: modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/InstanceDeployer.java
===================================================================
--- modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/InstanceDeployer.java 2009-03-11 10:57:12 UTC (rev 13018)
+++ modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/InstanceDeployer.java 2009-03-11 19:12:19 UTC (rev 13019)
@@ -29,6 +29,7 @@
import org.jboss.deployers.structure.spi.DeploymentUnit;
import org.jboss.portal.deployer.container.InstanceDeployment;
import org.jboss.portal.deployer.parsing.MergedPortletParsingDeployer;
+import org.jboss.portal.deployer.webapp.WebAppContextDeployer;
import org.jboss.portal.metadata.jboss.portlet.JBossPortletAppMetaData;
import org.jboss.portal.metadata.portlet.instances.PortletDeploymentInstancesMetaData;
@@ -56,6 +57,8 @@
// have reference to the portlet before an instance of it can be deployed.
this.addInput(PortletDeployer.PORLET_DEPLOYED);
+ this.addInput(WebAppContextDeployer.PORTLET_APP_CONTEXT_PATH_ATTACHMENT);
+
this.setStage(DeploymentStages.INSTALLED);
}
@@ -70,7 +73,7 @@
{
PortletDeploymentInstancesMetaData deploymentInstancesMetaData = unit.getAttachment(PortletDeploymentInstancesMetaData.class);
JBossPortletAppMetaData appMetaData = unit.getAttachment(MergedPortletParsingDeployer.PORTLET_MERGED_ATTACHMENT_NAME,JBossPortletAppMetaData.class);
-
+
deployment.deployInstances(deploymentInstancesMetaData, appMetaData.getAppId());
}
Modified: modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletDeployer.java
===================================================================
--- modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletDeployer.java 2009-03-11 10:57:12 UTC (rev 13018)
+++ modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletDeployer.java 2009-03-11 19:12:19 UTC (rev 13019)
@@ -23,6 +23,7 @@
package org.jboss.portal.deployer.portlet;
import java.util.ArrayList;
+import java.util.HashMap;
import javax.servlet.ServletContext;
@@ -36,7 +37,14 @@
import org.jboss.portal.deployer.parsing.MergedPortletParsingDeployer;
import org.jboss.portal.deployer.webapp.WebAppContextDeployer;
import org.jboss.portal.metadata.jboss.portlet.JBossPortletAppMetaData;
+import org.jboss.portal.metadata.jboss.portlet.JBossPortletMetaData;
import org.jboss.portal.metadata.portlet.PortletApplication10MetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication20MetaData;
+import org.jboss.portal.metadata.portlet.event.EventDefinitionMetaData;
+import org.jboss.portal.metadata.portlet.event.EventDefinitionReferenceMetaData;
+import org.jboss.portal.metadata.portlet.portlet.PortletMetaData;
+import org.jboss.portal.metadata.portlet.portlet.PortletModeMetaData;
+import org.jboss.portal.metadata.portlet.portlet.SupportsMetaData;
import org.jboss.web.WebApplication;
import org.jboss.web.deployers.AbstractWarDeployer;
@@ -78,12 +86,7 @@
String contextPath = unit.getAttachment(WebAppContextDeployer.PORTLET_APP_CONTEXT_PATH_ATTACHMENT, String.class);
ServletContext servletContext = unit.getAttachment(WebAppContextDeployer.PORTLET_APP_SERVLET_CONTEXT_ATTACHMENT, ServletContext.class);
WebApplication webapp = unit.getAttachment(WebApplication.class);
-
- if (jbossPortletMetaData.getAppId() == null)
- {
- jbossPortletMetaData.setAppId(contextPath);
- }
-
+
this.deployment.deployPortlets(servletContext, webapp.getURL(), webapp.getClassLoader(), contextPath, jbossPortletMetaData, portletMetaData);
unit.addAttachment(PORLET_DEPLOYED, "deployed");
17 years, 1 month
JBoss Portal SVN: r13018 - in tags/JBoss_Portal_2_7_2: core/src/bin/portal-core-war/themes/renewal and 5 other directories.
by portal-commits@lists.jboss.org
Author: thomas.heute(a)jboss.com
Date: 2009-03-11 06:57:12 -0400 (Wed, 11 Mar 2009)
New Revision: 13018
Modified:
tags/JBoss_Portal_2_7_2/build/build-thirdparty.xml
tags/JBoss_Portal_2_7_2/core/src/bin/portal-core-war/themes/renewal/portal_style.css
tags/JBoss_Portal_2_7_2/core/src/main/org/jboss/portal/core/controller/ajax/AjaxCommandFactory.java
tags/JBoss_Portal_2_7_2/core/src/main/org/jboss/portal/core/model/portal/PortalObjectPath.java
tags/JBoss_Portal_2_7_2/core/src/main/org/jboss/portal/core/theme/WindowContextFactory.java
tags/JBoss_Portal_2_7_2/theme/src/bin/portal-ajax-war/dyna/style.css
tags/JBoss_Portal_2_7_2/theme/src/main/org/jboss/portal/theme/impl/render/dynamic/DynaDecorationRenderer.java
Log:
Trying to get partial refresh and DnD working in most browsers...
Modified: tags/JBoss_Portal_2_7_2/build/build-thirdparty.xml
===================================================================
--- tags/JBoss_Portal_2_7_2/build/build-thirdparty.xml 2009-03-11 07:32:08 UTC (rev 13017)
+++ tags/JBoss_Portal_2_7_2/build/build-thirdparty.xml 2009-03-11 10:57:12 UTC (rev 13018)
@@ -67,7 +67,7 @@
<componentref name="jboss-portal/modules/common" version="1.2.4"/>
<componentref name="jboss-portal/modules/web" version="1.2.3"/>
<componentref name="jboss-portal/modules/test" version="1.0.4"/>
- <componentref name="jboss-portal/modules/portlet" version="2.0.6"/>
+ <componentref name="jboss-portal/modules/portlet" version="2.0.5"/>
<componentref name="jboss-portal/modules/identity" version="1.0.8"/>
<componentref name="jboss-portal/modules/cms" version="1.2.4"/>
<componentref name="antlr" version="2.7.6-brew"/>
Modified: tags/JBoss_Portal_2_7_2/core/src/bin/portal-core-war/themes/renewal/portal_style.css
===================================================================
--- tags/JBoss_Portal_2_7_2/core/src/bin/portal-core-war/themes/renewal/portal_style.css 2009-03-11 07:32:08 UTC (rev 13017)
+++ tags/JBoss_Portal_2_7_2/core/src/bin/portal-core-war/themes/renewal/portal_style.css 2009-03-11 10:57:12 UTC (rev 13018)
@@ -237,7 +237,7 @@
bottom: 0px;
left: 0;
min-width: 550px;
- z-index: 10;
+ z-index: 1;
}
* html ul#tabsHeader {
@@ -271,7 +271,7 @@
ul#tabsHeader li a {
background-position: top left;
background-repeat: no-repeat;
- padding: 5px 10px 0 10px;
+ padding: 5px 15px 0 15px;
display: block;
height: 29px;
font-weight: bold;
@@ -321,7 +321,6 @@
margin: 0px;
padding: 0px;
margin-top: 28px;
- z-index: 10;
}
ul#tabsHeader ul a {
@@ -357,8 +356,8 @@
ul#tabsHeader ul li {
background: #DFE8ED;
color: #5078aa;
- padding: 2px;
- width: 180px;
+ padding: 3px;
+ width: 160px;
list-style: none;
border: 1px solid #98b7c6;
border-width: 0px 1px 1px 1px;
@@ -482,7 +481,6 @@
.portlet-mode-container {
white-space: nowrap;
float: right;
- padding: 2px 0 0 0;
}
.mode-button {
Modified: tags/JBoss_Portal_2_7_2/core/src/main/org/jboss/portal/core/controller/ajax/AjaxCommandFactory.java
===================================================================
--- tags/JBoss_Portal_2_7_2/core/src/main/org/jboss/portal/core/controller/ajax/AjaxCommandFactory.java 2009-03-11 07:32:08 UTC (rev 13017)
+++ tags/JBoss_Portal_2_7_2/core/src/main/org/jboss/portal/core/controller/ajax/AjaxCommandFactory.java 2009-03-11 10:57:12 UTC (rev 13018)
@@ -53,7 +53,7 @@
int toPosInt = Integer.parseInt(toPos);
//
- PortalObjectId tmp = PortalObjectId.parse(windowId, PortalObjectPath.LEGACY_BASE64_FORMAT);
+ PortalObjectId tmp = PortalObjectId.parse(windowId, PortalObjectPath.SAFEST_FORMAT);
//
return new MoveWindowCommand(tmp, fromPosInt, fromRegion, toPosInt, toRegion);
Modified: tags/JBoss_Portal_2_7_2/core/src/main/org/jboss/portal/core/model/portal/PortalObjectPath.java
===================================================================
--- tags/JBoss_Portal_2_7_2/core/src/main/org/jboss/portal/core/model/portal/PortalObjectPath.java 2009-03-11 07:32:08 UTC (rev 13017)
+++ tags/JBoss_Portal_2_7_2/core/src/main/org/jboss/portal/core/model/portal/PortalObjectPath.java 2009-03-11 10:57:12 UTC (rev 13018)
@@ -567,4 +567,38 @@
}
}
};
+
+ /**
+ * Should only use a-z0-9_
+ */
+ public static final Format SAFEST_FORMAT = new PortalObjectPath.LegacyFormat()
+ {
+
+ private final String EQUALS = "_e";
+ private final String SLASH = "_s";
+ private final String DOT = "_d";
+ private final String PLUS = "_p";
+
+ @Override
+ public String[] parse(String value)
+ {
+ String uncoded = value.replace(EQUALS, "=");
+ uncoded = uncoded.replace(SLASH, "/");
+ uncoded = uncoded.replace(DOT, ".");
+ uncoded = uncoded.replace(PLUS, "+");
+ return LEGACY_BASE64_FORMAT.parse(uncoded);
+ }
+
+ @Override
+ public String toString(String[] names, int from, int to)
+ {
+ String encoded = LEGACY_BASE64_FORMAT.toString(names, from, to);
+ encoded = encoded.replace("=", EQUALS);
+ encoded = encoded.replace("/", SLASH);
+ encoded = encoded.replace(".", DOT);
+ encoded = encoded.replace("+", PLUS);
+ return encoded;
+ }
+ };
+
}
Modified: tags/JBoss_Portal_2_7_2/core/src/main/org/jboss/portal/core/theme/WindowContextFactory.java
===================================================================
--- tags/JBoss_Portal_2_7_2/core/src/main/org/jboss/portal/core/theme/WindowContextFactory.java 2009-03-11 07:32:08 UTC (rev 13017)
+++ tags/JBoss_Portal_2_7_2/core/src/main/org/jboss/portal/core/theme/WindowContextFactory.java 2009-03-11 10:57:12 UTC (rev 13018)
@@ -1,6 +1,6 @@
/******************************************************************************
* JBoss, a division of Red Hat *
- * Copyright 2009, Red Hat Middleware, LLC, and individual *
+ * Copyright 2006, Red Hat Middleware, LLC, and individual *
* contributors as indicated by the @authors tag. See the *
* copyright.txt in the distribution for a full listing of *
* individual contributors. *
@@ -25,11 +25,11 @@
import org.jboss.portal.Mode;
import org.jboss.portal.WindowState;
import org.jboss.portal.core.controller.ControllerContext;
+import org.jboss.portal.core.model.portal.PortalObjectPath;
import org.jboss.portal.core.model.portal.Window;
import org.jboss.portal.core.model.portal.command.action.InvokePortletWindowRenderCommand;
import org.jboss.portal.core.model.portal.command.response.MarkupResponse;
import org.jboss.portal.core.model.portal.content.WindowRendition;
-import org.jboss.portal.portlet.impl.jsr168.PortletUtils;
import org.jboss.portal.server.ServerInvocationContext;
import org.jboss.portal.server.request.URLContext;
import org.jboss.portal.server.request.URLFormat;
@@ -84,7 +84,7 @@
//
return new WindowContext(
- PortletUtils.generateNamespaceFrom(window.getId().toString()),
+ window.getId().toString(PortalObjectPath.SAFEST_FORMAT),
region,
order,
windowResult);
Modified: tags/JBoss_Portal_2_7_2/theme/src/bin/portal-ajax-war/dyna/style.css
===================================================================
--- tags/JBoss_Portal_2_7_2/theme/src/bin/portal-ajax-war/dyna/style.css 2009-03-11 07:32:08 UTC (rev 13017)
+++ tags/JBoss_Portal_2_7_2/theme/src/bin/portal-ajax-war/dyna/style.css 2009-03-11 10:57:12 UTC (rev 13018)
@@ -13,19 +13,12 @@
*/
.dnd-handle {
cursor: move;
+ position: relative;
min-height: 1.2em;
- position: absolute;
- top: 10px;
- width: 70%;
- z-index: 1;
height: auto !important;
height: 1.2em;
}
-.dyna-decoration {
- position: relative;
-}
-
.dnd-droppable {
border: red 1px dashed;
background-color: Transparent;
Modified: tags/JBoss_Portal_2_7_2/theme/src/main/org/jboss/portal/theme/impl/render/dynamic/DynaDecorationRenderer.java
===================================================================
--- tags/JBoss_Portal_2_7_2/theme/src/main/org/jboss/portal/theme/impl/render/dynamic/DynaDecorationRenderer.java 2009-03-11 07:32:08 UTC (rev 13017)
+++ tags/JBoss_Portal_2_7_2/theme/src/main/org/jboss/portal/theme/impl/render/dynamic/DynaDecorationRenderer.java 2009-03-11 10:57:12 UTC (rev 13018)
@@ -66,13 +66,15 @@
DynaWindowRenderer.handleProvided.set(Boolean.TRUE);
//
+ markup.print("<div class=\"dnd-handle\">");
markup.print("<div class=\"dyna-decoration\">\n");
- markup.print("<div class=\"dnd-handle\"></div>");
delegate.render(rendererContext, drc);
// Close dnd-decoration
markup.print("</div>");
+ // Close dnd-handle
+ markup.print("</div>");
}
else
17 years, 1 month
JBoss Portal SVN: r13017 - in branches/JBoss_Portal_AS5_Deployer: core and 18 other directories.
by portal-commits@lists.jboss.org
Author: mwringe
Date: 2009-03-11 03:32:08 -0400 (Wed, 11 Mar 2009)
New Revision: 13017
Modified:
branches/JBoss_Portal_AS5_Deployer/build/build-thirdparty.xml
branches/JBoss_Portal_AS5_Deployer/core-admin/build.xml
branches/JBoss_Portal_AS5_Deployer/core-cms/build.xml
branches/JBoss_Portal_AS5_Deployer/core-identity/build.xml
branches/JBoss_Portal_AS5_Deployer/core-management/build.xml
branches/JBoss_Portal_AS5_Deployer/core-samples/build.xml
branches/JBoss_Portal_AS5_Deployer/core-wsrp/build.xml
branches/JBoss_Portal_AS5_Deployer/core/build.xml
branches/JBoss_Portal_AS5_Deployer/jems/build.xml
branches/JBoss_Portal_AS5_Deployer/portlet-server/build.xml
branches/JBoss_Portal_AS5_Deployer/registration/build.xml
branches/JBoss_Portal_AS5_Deployer/search/build.xml
branches/JBoss_Portal_AS5_Deployer/security/build.xml
branches/JBoss_Portal_AS5_Deployer/security/src/main/org/jboss/portal/security/impl/jacc/JACCPortalAuthorizationManagerFactory.java
branches/JBoss_Portal_AS5_Deployer/security/src/main/org/jboss/portal/test/security/Server.java
branches/JBoss_Portal_AS5_Deployer/server/build.xml
branches/JBoss_Portal_AS5_Deployer/theme/build.xml
branches/JBoss_Portal_AS5_Deployer/widget/build.xml
branches/JBoss_Portal_AS5_Deployer/workflow/build.xml
branches/JBoss_Portal_AS5_Deployer/wsrp/build.xml
Log:
Temporarly update the build.xml files to reference the JBoss AS5 core libs in thirdparty.
Modified: branches/JBoss_Portal_AS5_Deployer/build/build-thirdparty.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/build/build-thirdparty.xml 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/build/build-thirdparty.xml 2009-03-11 07:32:08 UTC (rev 13017)
@@ -69,7 +69,7 @@
<componentref name="jboss-portal/modules/metadata" version="trunk-SNAPSHOT"/>
<componentref name="jboss-portal/modules/web" version="1.2.3"/>
<componentref name="jboss-portal/modules/test" version="1.0.4"/>
- <componentref name="jboss-portal/modules/portlet" version="trunk-SNAPSHOT"/>
+ <componentref name="jboss-portal/modules/portlet" version="trunk-AS5-SNAPSHOT"/>
<componentref name="jboss-portal/modules/identity" version="1.0.8"/>
<componentref name="jboss-portal/modules/cms" version="1.2.4"/>
<componentref name="antlr" version="2.7.6-brew"/>
@@ -103,7 +103,7 @@
<componentref name="ibm-wsdl4j" version="1.6.2"/>
<componentref name="jakarta-cactus" version="1.7.2-portal"/>
<componentref name="jakarta-io" version="1.0"/>
- <componentref name="jbossas/core-libs" version="5.0.0.GA"/>
+<!-- <componentref name="jbossas/core-libs" version="5.0.1.GA"/> -->
<componentref name="jboss/aop" version="2.0.0.GA"/>
<componentref name="jboss/cache" version="1.4.1.SP10-brew"/>
<componentref name="jboss/jboss-deployers" version="2.0.0.Beta12"/> <!-- 5.0.0.GA uses 2.0.3.GA -->
@@ -146,7 +146,7 @@
<componentref name="tagsoup" version="1.2"/>
<componentref name="portlet" version="2.0-Draft32"/>
<componentref name="glassfish/jstl" version="1.2.0-brew"/>
- <componentref name="jboss/web" version="2.1.1.GA"/>
+ <componentref name="jboss/web" version="2.1.2.GA"/>
<!-- To use new jboss-cahce/hibernate integration library-->
<componentref name="org/jboss/cluster/hibernate-jbc-cacheprovider" version="1.0.0.GA"/>
</build>
Modified: branches/JBoss_Portal_AS5_Deployer/core/build.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/core/build.xml 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/core/build.xml 2009-03-11 07:32:08 UTC (rev 13017)
@@ -24,6 +24,7 @@
<!DOCTYPE project [
<!ENTITY libraries SYSTEM "../thirdparty/libraries.ent">
+ <!ENTITY libraries-as5 SYSTEM "../thirdparty/jboss-core-libs-libraries.ent">
<!ENTITY buildmagic SYSTEM "../tools/etc/buildfragments/buildmagic.ent">
<!ENTITY tools SYSTEM "../tools/etc/buildfragments/tools.ent">
<!ENTITY modules SYSTEM "../tools/etc/buildfragments/modules.ent">
@@ -85,6 +86,7 @@
<!-- Configure thirdparty libraries -->
&libraries;
+ &libraries-as5;
<path id="library.classpath">
<path refid="portlet.portlet.classpath"/>
Modified: branches/JBoss_Portal_AS5_Deployer/core-admin/build.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/core-admin/build.xml 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/core-admin/build.xml 2009-03-11 07:32:08 UTC (rev 13017)
@@ -24,6 +24,7 @@
<!DOCTYPE project [
<!ENTITY libraries SYSTEM "../thirdparty/libraries.ent">
+ <!ENTITY libraries-as5 SYSTEM "../thirdparty/jboss-core-libs-libraries.ent">
<!ENTITY buildmagic SYSTEM "../tools/etc/buildfragments/buildmagic.ent">
<!ENTITY tools SYSTEM "../tools/etc/buildfragments/tools.ent">
<!ENTITY modules SYSTEM "../tools/etc/buildfragments/modules.ent">
@@ -85,6 +86,7 @@
<!-- Configure thirdparty libraries -->
&libraries;
+ &libraries-as5;
<path id="library.classpath">
<path refid="jboss.portal/modules/common.classpath"/>
Modified: branches/JBoss_Portal_AS5_Deployer/core-cms/build.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/core-cms/build.xml 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/core-cms/build.xml 2009-03-11 07:32:08 UTC (rev 13017)
@@ -24,6 +24,7 @@
<!DOCTYPE project [
<!ENTITY libraries SYSTEM "../thirdparty/libraries.ent">
+ <!ENTITY libraries-as5 SYSTEM "../thirdparty/jboss-core-libs-libraries.ent">
<!ENTITY buildmagic SYSTEM "../tools/etc/buildfragments/buildmagic.ent">
<!ENTITY tools SYSTEM "../tools/etc/buildfragments/tools.ent">
<!ENTITY modules SYSTEM "../tools/etc/buildfragments/modules.ent">
@@ -85,6 +86,7 @@
<!-- Configure thirdparty libraries -->
&libraries;
+ &libraries-as5;
<path id="library.classpath">
<path refid="portlet.portlet.classpath"/>
Modified: branches/JBoss_Portal_AS5_Deployer/core-identity/build.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/core-identity/build.xml 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/core-identity/build.xml 2009-03-11 07:32:08 UTC (rev 13017)
@@ -24,6 +24,7 @@
<!DOCTYPE project [
<!ENTITY libraries SYSTEM "../thirdparty/libraries.ent">
+ <!ENTITY libraries-as5 SYSTEM "../thirdparty/jboss-core-libs-libraries.ent">
<!ENTITY buildmagic SYSTEM "../tools/etc/buildfragments/buildmagic.ent">
<!ENTITY tools SYSTEM "../tools/etc/buildfragments/tools.ent">
<!ENTITY modules SYSTEM "../tools/etc/buildfragments/modules.ent">
@@ -88,6 +89,7 @@
<!-- Configure thirdparty libraries -->
&libraries;
+ &libraries-as5;
<path id="library.classpath">
<path refid="jboss.portal/modules/common.classpath"/>
Modified: branches/JBoss_Portal_AS5_Deployer/core-management/build.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/core-management/build.xml 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/core-management/build.xml 2009-03-11 07:32:08 UTC (rev 13017)
@@ -24,6 +24,7 @@
<!DOCTYPE project [
<!ENTITY libraries SYSTEM "../thirdparty/libraries.ent">
+ <!ENTITY libraries-as5 SYSTEM "../thirdparty/jboss-core-libs-libraries.ent">
<!ENTITY buildmagic SYSTEM "../tools/etc/buildfragments/buildmagic.ent">
<!ENTITY tools SYSTEM "../tools/etc/buildfragments/tools.ent">
<!ENTITY modules SYSTEM "../tools/etc/buildfragments/modules.ent">
@@ -85,6 +86,7 @@
<!-- Configure thirdparty libraries -->
&libraries;
+ &libraries-as5;
<path id="library.classpath">
<path refid="jboss.portal/modules/common.classpath"/>
Modified: branches/JBoss_Portal_AS5_Deployer/core-samples/build.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/core-samples/build.xml 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/core-samples/build.xml 2009-03-11 07:32:08 UTC (rev 13017)
@@ -24,6 +24,7 @@
<!DOCTYPE project [
<!ENTITY libraries SYSTEM "../thirdparty/libraries.ent">
+ <!ENTITY libraries-as5 SYSTEM "../thirdparty/jboss-core-libs-libraries.ent">
<!ENTITY buildmagic SYSTEM "../tools/etc/buildfragments/buildmagic.ent">
<!ENTITY tools SYSTEM "../tools/etc/buildfragments/tools.ent">
<!ENTITY modules SYSTEM "../tools/etc/buildfragments/modules.ent">
@@ -85,6 +86,7 @@
<!-- Configure thirdparty libraries -->
&libraries;
+ &libraries-as5;
<path id="library.classpath">
<path refid="jboss.portal/modules/common.classpath"/>
Modified: branches/JBoss_Portal_AS5_Deployer/core-wsrp/build.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/core-wsrp/build.xml 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/core-wsrp/build.xml 2009-03-11 07:32:08 UTC (rev 13017)
@@ -24,6 +24,7 @@
<!DOCTYPE project [
<!ENTITY libraries SYSTEM "../thirdparty/libraries.ent">
+ <!ENTITY libraries-as5 SYSTEM "../thirdparty/jboss-core-libs-libraries.ent">
<!ENTITY buildmagic SYSTEM "../tools/etc/buildfragments/buildmagic.ent">
<!ENTITY tools SYSTEM "../tools/etc/buildfragments/tools.ent">
<!ENTITY modules SYSTEM "../tools/etc/buildfragments/modules.ent">
@@ -85,6 +86,7 @@
<!-- Configure thirdparty libraries -->
&libraries;
+ &libraries-as5;
<path id="library.classpath">
<path refid="jboss.portal/modules/common.classpath"/>
Modified: branches/JBoss_Portal_AS5_Deployer/jems/build.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/jems/build.xml 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/jems/build.xml 2009-03-11 07:32:08 UTC (rev 13017)
@@ -24,6 +24,7 @@
<!DOCTYPE project [
<!ENTITY libraries SYSTEM "../thirdparty/libraries.ent">
+ <!ENTITY libraries-as5 SYSTEM "../thirdparty/jboss-core-libs-libraries.ent">
<!ENTITY buildmagic SYSTEM "../tools/etc/buildfragments/buildmagic.ent">
<!ENTITY tools SYSTEM "../tools/etc/buildfragments/tools.ent">
<!ENTITY modules SYSTEM "../tools/etc/buildfragments/modules.ent">
@@ -87,6 +88,7 @@
<!-- Configure thirdparty libraries -->
&libraries;
+ &libraries-as5;
<path id="library.classpath">
<path refid="jboss.portal/modules/common.classpath"/>
<path refid="jboss.portal/modules/test.classpath"/>
Modified: branches/JBoss_Portal_AS5_Deployer/portlet-server/build.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/portlet-server/build.xml 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/portlet-server/build.xml 2009-03-11 07:32:08 UTC (rev 13017)
@@ -24,6 +24,7 @@
<!DOCTYPE project [
<!ENTITY libraries SYSTEM "../thirdparty/libraries.ent">
+ <!ENTITY libraries-as5 SYSTEM "../thirdparty/jboss-core-libs-libraries.ent">
<!ENTITY buildmagic SYSTEM "../tools/etc/buildfragments/buildmagic.ent">
<!ENTITY tools SYSTEM "../tools/etc/buildfragments/tools.ent">
<!ENTITY modules SYSTEM "../tools/etc/buildfragments/modules.ent">
@@ -87,6 +88,7 @@
<!-- Configure thirdparty libraries -->
&libraries;
+ &libraries-as5;
<path id="library.classpath">
<path refid="portlet.portlet.classpath"/>
<path refid="jboss.portal/modules/common.classpath"/>
Modified: branches/JBoss_Portal_AS5_Deployer/registration/build.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/registration/build.xml 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/registration/build.xml 2009-03-11 07:32:08 UTC (rev 13017)
@@ -24,6 +24,7 @@
<!DOCTYPE project [
<!ENTITY libraries SYSTEM "../thirdparty/libraries.ent">
+ <!ENTITY libraries-as5 SYSTEM "../thirdparty/jboss-core-libs-libraries.ent">
<!ENTITY buildmagic SYSTEM "../tools/etc/buildfragments/buildmagic.ent">
<!ENTITY tools SYSTEM "../tools/etc/buildfragments/tools.ent">
<!ENTITY modules SYSTEM "../tools/etc/buildfragments/modules.ent">
@@ -88,6 +89,7 @@
<!-- Configure thirdparty libraries -->
&libraries;
+ &libraries-as5;
<path id="library.classpath">
<path refid="jboss.portal/modules/common.classpath"/>
<path refid="junit.junit.classpath"/>
Modified: branches/JBoss_Portal_AS5_Deployer/search/build.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/search/build.xml 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/search/build.xml 2009-03-11 07:32:08 UTC (rev 13017)
@@ -3,6 +3,7 @@
<!ENTITY buildmagic SYSTEM "../tools/etc/buildfragments/buildmagic.ent">
<!ENTITY tools SYSTEM "../tools/etc/buildfragments/tools.ent">
<!ENTITY libraries SYSTEM "../thirdparty/libraries.ent">
+ <!ENTITY libraries-as5 SYSTEM "../thirdparty/jboss-core-libs-libraries.ent">
<!ENTITY modules SYSTEM "../tools/etc/buildfragments/modules.ent">
<!ENTITY defaults SYSTEM "../tools/etc/buildfragments/defaults.ent">
<!ENTITY targets SYSTEM "../tools/etc/buildfragments/targets.ent">
@@ -64,6 +65,7 @@
<!-- Configure thirdparty libraries -->
&libraries;
+ &libraries-as5;
<path id="library.classpath">
<path refid="jboss.portal/modules/common.classpath"/>
<path refid="jboss.portal/modules/portlet.classpath"/>
Modified: branches/JBoss_Portal_AS5_Deployer/security/build.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/security/build.xml 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/security/build.xml 2009-03-11 07:32:08 UTC (rev 13017)
@@ -24,6 +24,7 @@
<!DOCTYPE project [
<!ENTITY libraries SYSTEM "../thirdparty/libraries.ent">
+ <!ENTITY libraries-as5 SYSTEM "../thirdparty/jboss-core-libs-libraries.ent">
<!ENTITY buildmagic SYSTEM "../tools/etc/buildfragments/buildmagic.ent">
<!ENTITY tools SYSTEM "../tools/etc/buildfragments/tools.ent">
<!ENTITY modules SYSTEM "../tools/etc/buildfragments/modules.ent">
@@ -87,6 +88,7 @@
<!-- Configure thirdparty libraries -->
&libraries;
+ &libraries-as5;
<path id="library.classpath">
<path refid="jboss.portal/modules/common.classpath"/>
<path refid="oswego.concurrent.classpath"/>
Modified: branches/JBoss_Portal_AS5_Deployer/security/src/main/org/jboss/portal/security/impl/jacc/JACCPortalAuthorizationManagerFactory.java
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/security/src/main/org/jboss/portal/security/impl/jacc/JACCPortalAuthorizationManagerFactory.java 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/security/src/main/org/jboss/portal/security/impl/jacc/JACCPortalAuthorizationManagerFactory.java 2009-03-11 07:32:08 UTC (rev 13017)
@@ -29,6 +29,7 @@
import org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory;
import org.jboss.security.jacc.DelegatingPolicy;
import org.jboss.security.jacc.SubjectPolicyContextHandler;
+import org.jboss.security.SecurityConstants;
import javax.security.jacc.PolicyContext;
import java.security.Policy;
@@ -83,7 +84,7 @@
{
// Set up the mandatory context handler
SubjectPolicyContextHandler handler = new SubjectPolicyContextHandler();
- PolicyContext.registerHandler(SubjectPolicyContextHandler.SUBJECT_CONTEXT_KEY, handler, true);
+ PolicyContext.registerHandler(SecurityConstants.SUBJECT_CONTEXT_KEY, handler, true);
// Setup custom policy
Policy policy = Policy.getPolicy();
Modified: branches/JBoss_Portal_AS5_Deployer/security/src/main/org/jboss/portal/test/security/Server.java
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/security/src/main/org/jboss/portal/test/security/Server.java 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/security/src/main/org/jboss/portal/test/security/Server.java 2009-03-11 07:32:08 UTC (rev 13017)
@@ -28,6 +28,7 @@
import org.jboss.security.SimplePrincipal;
import org.jboss.security.jacc.DelegatingPolicy;
import org.jboss.security.jacc.SubjectPolicyContextHandler;
+import org.jboss.security.SecurityConstants;
import javax.security.auth.Subject;
import javax.security.jacc.PolicyContext;
@@ -53,7 +54,7 @@
{
// Set up the mandatory context handler
SubjectPolicyContextHandler handler = new SubjectPolicyContextHandler();
- PolicyContext.registerHandler(SubjectPolicyContextHandler.SUBJECT_CONTEXT_KEY, handler, true);
+ PolicyContext.registerHandler(SecurityConstants.SUBJECT_CONTEXT_KEY, handler, true);
// Setup custom policy
DelegatingPolicy p = DelegatingPolicy.getInstance();
Modified: branches/JBoss_Portal_AS5_Deployer/server/build.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/server/build.xml 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/server/build.xml 2009-03-11 07:32:08 UTC (rev 13017)
@@ -24,6 +24,7 @@
<!DOCTYPE project [
<!ENTITY libraries SYSTEM "../thirdparty/libraries.ent">
+ <!ENTITY libraries-as5 SYSTEM "../thirdparty/jboss-core-libs-libraries.ent">
<!ENTITY buildmagic SYSTEM "../tools/etc/buildfragments/buildmagic.ent">
<!ENTITY tools SYSTEM "../tools/etc/buildfragments/tools.ent">
<!ENTITY modules SYSTEM "../tools/etc/buildfragments/modules.ent">
@@ -87,6 +88,7 @@
<!-- Configure thirdparty libraries -->
&libraries;
+ &libraries-as5;
<echo message="${xdoclet.xdoclet.lib}"/>
<echo message="${sun.servlet.lib}"/>
<path id="library.classpath">
Modified: branches/JBoss_Portal_AS5_Deployer/theme/build.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/theme/build.xml 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/theme/build.xml 2009-03-11 07:32:08 UTC (rev 13017)
@@ -24,6 +24,7 @@
<!DOCTYPE project [
<!ENTITY libraries SYSTEM "../thirdparty/libraries.ent">
+ <!ENTITY libraries-as5 SYSTEM "../thirdparty/jboss-core-libs-libraries.ent">
<!ENTITY buildmagic SYSTEM "../tools/etc/buildfragments/buildmagic.ent">
<!ENTITY tools SYSTEM "../tools/etc/buildfragments/tools.ent">
<!ENTITY modules SYSTEM "../tools/etc/buildfragments/modules.ent">
@@ -87,6 +88,7 @@
<!-- Configure thirdparty libraries -->
&libraries;
+ &libraries-as5;
<echo message="${xdoclet.xdoclet.lib}"/>
<echo message="${sun.servlet.lib}"/>
<path id="library.classpath">
Modified: branches/JBoss_Portal_AS5_Deployer/widget/build.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/widget/build.xml 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/widget/build.xml 2009-03-11 07:32:08 UTC (rev 13017)
@@ -24,6 +24,7 @@
<!DOCTYPE project [
<!ENTITY libraries SYSTEM "../thirdparty/libraries.ent">
+ <!ENTITY libraries-as5 SYSTEM "../thirdparty/jboss-core-libs-libraries.ent">
<!ENTITY buildmagic SYSTEM "../tools/etc/buildfragments/buildmagic.ent">
<!ENTITY tools SYSTEM "../tools/etc/buildfragments/tools.ent">
<!ENTITY modules SYSTEM "../tools/etc/buildfragments/modules.ent">
@@ -87,6 +88,8 @@
<!-- Configure thirdparty libraries -->
&libraries;
+ &libraries-as5;
+
<path id="library.classpath">
<path refid="portlet.portlet.classpath"/>
<path refid="jboss.portal/modules/common.classpath"/>
Modified: branches/JBoss_Portal_AS5_Deployer/workflow/build.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/workflow/build.xml 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/workflow/build.xml 2009-03-11 07:32:08 UTC (rev 13017)
@@ -24,6 +24,7 @@
<!DOCTYPE project [
<!ENTITY libraries SYSTEM "../thirdparty/libraries.ent">
+ <!ENTITY libraries-as5 SYSTEM "../thirdparty/jboss-core-libs-libraries.ent">
<!ENTITY buildmagic SYSTEM "../tools/etc/buildfragments/buildmagic.ent">
<!ENTITY tools SYSTEM "../tools/etc/buildfragments/tools.ent">
<!ENTITY modules SYSTEM "../tools/etc/buildfragments/modules.ent">
@@ -87,6 +88,7 @@
<!-- Configure thirdparty libraries -->
&libraries;
+ &libraries-as5;
<path id="library.classpath">
<path refid="jboss.portal/modules/common.classpath"/>
<path refid="apache.logging.classpath"/>
Modified: branches/JBoss_Portal_AS5_Deployer/wsrp/build.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/wsrp/build.xml 2009-03-11 06:45:33 UTC (rev 13016)
+++ branches/JBoss_Portal_AS5_Deployer/wsrp/build.xml 2009-03-11 07:32:08 UTC (rev 13017)
@@ -23,6 +23,7 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<!DOCTYPE project [<!ENTITY libraries SYSTEM "../thirdparty/libraries.ent">
+ <!ENTITY libraries-as5 SYSTEM "../thirdparty/jboss-core-libs-libraries.ent">
<!ENTITY buildmagic SYSTEM "../tools/etc/buildfragments/buildmagic.ent">
<!ENTITY tools SYSTEM "../tools/etc/buildfragments/tools.ent">
<!ENTITY modules SYSTEM "../tools/etc/buildfragments/modules.ent">
@@ -97,6 +98,7 @@
<property name="jboss.deploy.lib.dir" value="${jboss.deploy.dir}/../lib"/>
<!-- Configure thirdparty libraries --> &libraries;
+ &libraries-as5;
<!-- Libraries required to compile -->
<path id="library.classpath">
@@ -108,14 +110,19 @@
<path refid="junit.junit.classpath"/>
<path refid="sun.servlet.classpath"/>
<path refid="glassfish.jaf.classpath"/>
- <pathelement path="${jbossas/core.libs.lib}/jboss-common.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-common-core.jar"/>
<pathelement path="${jbossas/core.libs.lib}/jboss-jmx.jar"/>
<pathelement path="${jbossas/core.libs.lib}/jboss-system.jar"/>
- <pathelement path="${jbossas/core.libs.lib}/jboss-j2ee.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-javaee.jar"/>
<pathelement path="${jbossas/core.libs.lib}/jboss-jaxrpc.jar"/>
- <pathelement path="${jbossas/core.libs.lib}/jboss-saaj.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jbossws-native-saaj.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-kernel.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-logging-spi.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-system-jmx.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-j2se.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jbossws-native-jaxrpc.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-deployers-core-spi.jar"/>
-
<!-- needed to compile on JDK 1.4 -->
<pathelement path="${jbossas/core.libs.lib}/namespace.jar"/>
17 years, 1 month
JBoss Portal SVN: r13016 - in branches/JBoss_Portal_AS5_Deployer/thirdparty: jbossas and 2 other directories.
by portal-commits@lists.jboss.org
Author: mwringe
Date: 2009-03-11 02:45:33 -0400 (Wed, 11 Mar 2009)
New Revision: 13016
Added:
branches/JBoss_Portal_AS5_Deployer/thirdparty/jboss-core-libs-libraries.ent
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/component-info.xml
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jaxb-api.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-common-core.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-deployers-core-spi.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-ha-server-api.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-j2se.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-javaee.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-jmx.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-kernel.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-logging-log4j.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-logging-spi.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-mbeans.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-security-aspects.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-security-spi.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-system-jmx.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-system.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-xml-binding.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jbossha.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jbosssx-server.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jbosssx.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jbossws-native-jaxrpc.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jbossws-native-saaj.jar
branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jnpserver.jar
Log:
Temporarily add to jars for AS5 until they are sorted out where to add the to jboss repository.
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jboss-core-libs-libraries.ent
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/thirdparty/jboss-core-libs-libraries.ent (rev 0)
+++ branches/JBoss_Portal_AS5_Deployer/thirdparty/jboss-core-libs-libraries.ent 2009-03-11 06:45:33 UTC (rev 13016)
@@ -0,0 +1,30 @@
+<!-- jbossas/core-libs -->
+<property name="jbossas/core.libs.root" value="${project.thirdparty}/jbossas/core-libs"/>
+<property name="jbossas/core.libs.lib" value="${jbossas/core.libs.root}/lib/"/>
+<property name="jbossas/core.libs.resources" value="${jbossas/core.libs.root}/resources/"/>
+<path id="jbossas/core.libs.classpath">
+ <pathelement path="${jbossas/core.libs.lib}/jboss.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-jmx.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-j2se.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-common-core.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-logging-spi.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-system.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-system-jmx.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-kernel.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-mbeans.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jnpserver.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jbossha.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-ha-server-api.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-xml-binding.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jaxb-api.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-javaee.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jbosssx.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-security-spi.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-deployers-core-spi.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jbosssx-server.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-logging-log4j.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jbossws-native-saaj.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jboss-security-aspects.jar"/>
+ <pathelement path="${jbossas/core.libs.lib}/jbossws-native-jaxrpc.jar"/>
+</path>
+
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/component-info.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/component-info.xml (rev 0)
+++ branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/component-info.xml 2009-03-11 06:45:33 UTC (rev 13016)
@@ -0,0 +1,123 @@
+<project name="jbossas-libs-component-info">
+
+ <!-- The jbossbuild repository component info descriptor for the base
+ jbossas jars.
+ $Id: core-jars-component-info.xml 58071 2006-11-03 12:51:35Z dimitris(a)jboss.org $
+ -->
+ <component id="jbossas/core-libs"
+ version="5.0.1.GA"
+ licenseType="lgpl"
+ projectHome="http://www.jboss.org"
+ description="The core JBossAS server libs"
+ >
+
+ <artifact id="jboss.jar"/>
+ <artifact id="jboss-jmx.jar"/>
+ <artifact id="jboss-j2se.jar"/>
+ <artifact id="jboss-common-core.jar"/>
+ <artifact id="jboss-logging-spi.jar"/>
+ <artifact id="jboss-system.jar"/>
+ <artifact id="jboss-system-jmx.jar"/>
+ <artifact id="jboss-kernel.jar"/>
+ <artifact id="jboss-mbeans.jar"/>
+ <artifact id="jnpserver.jar"/>
+ <artifact id="jbossha.jar"/>
+ <artifact id="jboss-ha-server-api.jar"/>
+ <artifact id="jboss-xml-binding.jar"/>
+ <artifact id="jaxb-api.jar"/>
+ <artifact id="jboss-javaee.jar"/>
+ <artifact id="jbosssx.jar"/>
+ <artifact id="jboss-security-spi.jar"/>
+ <artifact id="jboss-deployers-core-spi.jar"/>
+ <artifact id="jbosssx-server.jar"/>
+ <artifact id="jboss-logging-log4j.jar"/>
+ <artifact id="jbossws-native-saaj.jar"/>
+ <artifact id="jboss-security-aspects.jar"/>
+ <artifact id="jbossws-native-jaxrpc.jar"/>
+
+<!-- <artifact id="jboss-common.jar"/>
+ <artifact id="jboss-jmx.jar"/>
+ <artifact id="jboss-xml-binding.jar" />
+ <artifact id="jboss-system.jar" />
+ <artifact id="jboss-aspect-library.jar"/>
+ <artifact id="jboss-common-client.jar"/>
+ <artifact id="namespace.jar"/>
+ <artifact id="jmx-invoker-adaptor-client.jar"/>
+ <artifact id="jboss-j2ee.jar" />
+ <artifact id="jboss-jaxrpc.jar"/>
+ <artifact id="jboss-saaj.jar"/>
+ <artifact id="jnp-client.jar"/>
+ <artifact id="jnpserver.jar"/>
+ <artifact id="jbossha.jar"/>
+ <artifact id="jboss.jar"/>
+ <artifact id="jboss-common-jdbc-wrapper.jar"/>
+ <artifact id="jboss-hibernate.jar"/>
+ <artifact id="jboss-jca.jar"/>
+ <artifact id="jbosssx.jar"/>
+ <artifact id="jboss-local-jdbc.jar"/>
+ <artifact id="jboss-transaction.jar"/>
+ <artifact id="jboss-security-aspects.jar"/>
+-->
+
+<!-- <import componentref="dom4j">
+ <compatible version="1.6.1"/>
+ <compatible version="1.6.1jboss"/>
+ </import>
+ <import componentref="oswego-concurrent">
+ <compatible version="1.3.4"/>
+ </import> -->
+
+ <export>
+ <include input="jboss.jar"/>
+ <include input="jboss-jmx.jar"/>
+ <include input="jboss-j2se.jar"/>
+ <include input="jboss-common-core.jar"/>
+ <include input="jboss-logging-spi.jar"/>
+ <include input="jboss-system.jar"/>
+ <include input="jboss-system-jmx.jar"/>
+ <include input="jboss-kernel.jar"/>
+ <include input="jboss-mbeans.jar"/>
+ <include input="jnpserver.jar"/>
+ <include input="jbossha.jar"/>
+ <include input="jboss-ha-server-api.jar"/>
+ <include input="jboss-xml-binding.jar"/>
+ <include input="jaxb-api.jar"/>
+ <include input="jboss-javaee.jar"/>
+ <include input="jbosssx.jar"/>
+ <include input="jboss-security-spi.jar"/>
+ <include input="jboss-deployers-core-spi.jar"/>
+ <include input="jbosssx-server.jar"/>
+ <include input="jboss-logging-log4j.jar"/>
+ <include input="jbossws-native-saaj.jar"/>
+ <include input="jboss-security-aspects.jar"/>
+ <include input="jbossws-native-jaxrpc.jar"/>
+ </export>
+
+<!-- <export>
+ <include input="jboss-common.jar"/>
+ <include input="jboss-jmx.jar"/>
+ <include input="jboss-xml-binding.jar"/>
+ <include input="jboss-system.jar"/>
+ <include input="jboss-aspect-library.jar"/>
+ <include input="jboss-common-client.jar"/>
+ <include input="namespace.jar"/>
+ <include input="jmx-invoker-adaptor-client.jar"/>
+ <include input="jboss-j2ee.jar"/>
+ <include input="jboss-jaxrpc.jar"/>
+ <include input="jnp-client.jar"/>
+ <include input="jnpserver.jar"/>
+ <include input="jbossha.jar"/>
+ <include input="jboss.jar"/>
+ <include input="jboss-common-jdbc-wrapper.jar"/>
+ <include input="jboss-hibernate.jar"/>
+ <include input="jboss-jca.jar"/>
+ <include input="jboss-saaj.jar"/>
+ <include input="jbosssx.jar"/>
+ <include input="jboss-local-jdbc.jar"/>
+ <include input="jboss-transaction.jar"/>
+ <include input="jboss-security-aspects.jar"/>
+
+ </export> -->
+ </component>
+</project>
+
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jaxb-api.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jaxb-api.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-common-core.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-common-core.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-deployers-core-spi.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-deployers-core-spi.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-ha-server-api.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-ha-server-api.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-j2se.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-j2se.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-javaee.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-javaee.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-jmx.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-jmx.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-kernel.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-kernel.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-logging-log4j.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-logging-log4j.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-logging-spi.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-logging-spi.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-mbeans.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-mbeans.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-security-aspects.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-security-aspects.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-security-spi.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-security-spi.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-system-jmx.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-system-jmx.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-system.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-system.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-xml-binding.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss-xml-binding.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jboss.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jbossha.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jbossha.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jbosssx-server.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jbosssx-server.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jbosssx.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jbosssx.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jbossws-native-jaxrpc.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jbossws-native-jaxrpc.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jbossws-native-saaj.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jbossws-native-saaj.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jnpserver.jar
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_AS5_Deployer/thirdparty/jbossas/core-libs/lib/jnpserver.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 1 month
JBoss Portal SVN: r13015 - in modules/portlet/branches/JBP_PORTLET_AS5_Deployer: build and 12 other directories.
by portal-commits@lists.jboss.org
Author: mwringe
Date: 2009-03-10 18:42:35 -0400 (Tue, 10 Mar 2009)
New Revision: 13015
Added:
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/LifeCyclePhaseAdapter.java
Removed:
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/CustomPortletModeMetaData.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/CustomWindowStateMetaData.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/ListenerMetaData.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/PortletApplication10MetaData.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/PortletApplication20MetaData.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/PortletMetaDataConstants.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/PublicRenderParameterMetaData.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/UserAttributeMetaData.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/ValidationErrorHandler.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/ContainerRuntimeAdapter.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/CustomPortletModeAdapter.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/CustomWindowStateAdapter.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/EventListAdapter.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/FilterAdapter.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/PortletListAdapter.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/PortletModeAdapter.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/PortletPreferencesListAdapter.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/UserAttributeAdapter.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/WindowStateAdapter.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/common/
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/event/
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/filter/
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/portlet/
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/security/
Modified:
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/.classpath
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/build/pom.xml
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/pom.xml
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/PortletApplicationDeployer.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/PortletApplicationDeployment.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/metadata/factory/LocalizedStringBuilder.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/metadata/factory/PortletApplicationModelFactory.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/metadata/impl/AnnotationPortletApplication10MetaData.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/metadata/impl/AnnotationPortletApplication20MetaData.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/AbstractMetaDataTestCase.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/CustomPortletModeTestEverythingTestCase.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/CustomWindowStateTestEverythingTestCase.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/EventTestEverythingTestCase.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/FilterTestEverythingTestCase.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/GeneralMetaDataTestCase.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/PortletTestEverythingTestCase.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/RenderParameterTestEverythingTestCase.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/SecurityConstraintTestEverythingTestCase.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/UserAttributeTestEverythingTestCase.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/pom.xml
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/info/ContainerInfoBuilder.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/info/ContainerInfoBuilderContext.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/jsr168/ContainerInfoBuilderContextImpl.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/LocalizedStringAdapter.java
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/test/pom.xml
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/test/src/test/build.xml
Log:
Update to use the metadata module instead of internal metadata classes.
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/.classpath
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/.classpath 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/.classpath 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="portlet/src/main/java"/>
+ <classpathentry kind="src" path="mc/src/test/java"/>
<classpathentry kind="src" path="bridge/src/main/java"/>
<classpathentry kind="src" path="controller/src/main/java"/>
<classpathentry kind="src" path="federation/src/main/java"/>
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/build/pom.xml
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/build/pom.xml 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/build/pom.xml 2009-03-10 22:42:35 UTC (rev 13015)
@@ -34,6 +34,7 @@
<version.jbossxb>2.0.0.GA</version.jbossxb>
<version.jboss-remoting>2.2.1.GA</version.jboss-remoting>
<version.jboss.portal.common>1.2.3</version.jboss.portal.common>
+ <version.jboss.portal.metadata>trunk-SNAPSHOT</version.jboss.portal.metadata>
<version.jboss.portal.web>1.2.3</version.jboss.portal.web>
<version.jboss.unit>1.2.2</version.jboss.unit>
<version.log4j>1.2.14</version.log4j>
@@ -205,8 +206,12 @@
<artifactId>common-mc</artifactId>
<version>${version.jboss.portal.common}</version>
</dependency>
-
<dependency>
+ <groupId>org.jboss.portal.metadata</groupId>
+ <artifactId>metadata-metadata</artifactId>
+ <version>${version.jboss.portal.metadata}</version>
+ </dependency>
+ <dependency>
<groupId>org.jboss.portal.web</groupId>
<artifactId>web-web</artifactId>
<version>${version.jboss.portal.web}</version>
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/pom.xml
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/pom.xml 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/pom.xml 2009-03-10 22:42:35 UTC (rev 13015)
@@ -18,6 +18,11 @@
<version>${project.version}</version>
</dependency>
<dependency>
+ <groupId>org.jboss.portal.metadata</groupId>
+ <artifactId>metadata-metadata</artifactId>
+ <version>${version.jboss.portal.metadata}</version>
+ </dependency>
+ <dependency>
<groupId>org.jboss</groupId>
<artifactId>jbossxb</artifactId>
</dependency>
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/PortletApplicationDeployer.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/PortletApplicationDeployer.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/PortletApplicationDeployer.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -35,9 +35,9 @@
import org.jboss.portal.portlet.container.managed.LifeCycleStatus;
import org.jboss.portal.portlet.container.ContainerPortletInvoker;
import org.jboss.portal.portlet.container.PortletContainer;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication10MetaData;
-import static org.jboss.portal.portlet.impl.metadata.PortletMetaDataConstants.PORTLET_JSR_168_NS;
-import static org.jboss.portal.portlet.impl.metadata.PortletMetaDataConstants.PORTLET_JSR_286_NS;
+import org.jboss.portal.metadata.portlet.PortletApplication10MetaData;
+import static org.jboss.portal.metadata.portlet.PortletMetaDataConstants.PORTLET_JSR_168_NS;
+import static org.jboss.portal.metadata.portlet.PortletMetaDataConstants.PORTLET_JSR_286_NS;
import org.jboss.portal.portlet.impl.container.PortletApplicationLifeCycle;
import org.jboss.portal.portlet.impl.container.PortletContainerLifeCycle;
import org.jboss.portal.portlet.mc.metadata.factory.PortletApplicationModelFactory;
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/PortletApplicationDeployment.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/PortletApplicationDeployment.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/PortletApplicationDeployment.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -31,7 +31,7 @@
import org.jboss.portal.portlet.impl.jsr168.PortletApplicationImpl;
import org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl;
import org.jboss.portal.portlet.impl.jsr168.PortletFilterImpl;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication10MetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication10MetaData;
import org.jboss.portal.portlet.impl.container.PortletApplicationLifeCycle;
import org.jboss.portal.portlet.impl.container.PortletFilterLifeCycle;
import org.jboss.portal.portlet.impl.container.PortletContainerLifeCycle;
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/metadata/factory/LocalizedStringBuilder.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/metadata/factory/LocalizedStringBuilder.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/metadata/factory/LocalizedStringBuilder.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -26,7 +26,7 @@
import org.apache.log4j.Logger;
import org.jboss.portal.common.i18n.LocalizedString;
import org.jboss.portal.portlet.impl.metadata.adapter.LocalizedStringAdapter;
-import org.jboss.portal.portlet.impl.metadata.common.LocalizedDescriptionMetaData;
+import org.jboss.portal.metadata.portlet.common.LocalizedDescriptionMetaData;
import java.util.ArrayList;
import java.util.LinkedHashMap;
@@ -57,11 +57,11 @@
container.addLocalizedDescription(description);
}
- public LocalizedString getLocalizedString(Object key)
+ public List<LocalizedDescriptionMetaData> getLocalizedDescriptionMetaData(Object key)
{
try
{
- return this.map.get(key) != null ? this.map.get(key).getLocalizedString() : null;
+ return this.map.get(key) != null ? this.map.get(key).getList() : null;
}
catch (Exception e)
{
@@ -80,10 +80,9 @@
this.list.add(description);
}
- public LocalizedString getLocalizedString() throws Exception
+ public List<LocalizedDescriptionMetaData> getList()
{
- LocalizedStringAdapter adapter = new LocalizedStringAdapter();
- return adapter.unmarshal(list);
+ return list;
}
}
}
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/metadata/factory/PortletApplicationModelFactory.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/metadata/factory/PortletApplicationModelFactory.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/metadata/factory/PortletApplicationModelFactory.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -29,36 +29,36 @@
import org.jboss.portal.common.i18n.LocalizedString;
import org.jboss.portal.portlet.LifeCyclePhase;
import org.jboss.portal.portlet.TransportGuarantee;
-import org.jboss.portal.portlet.impl.metadata.CustomPortletModeMetaData;
-import org.jboss.portal.portlet.impl.metadata.CustomWindowStateMetaData;
-import org.jboss.portal.portlet.impl.metadata.ListenerMetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication10MetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication20MetaData;
-import static org.jboss.portal.portlet.impl.metadata.PortletMetaDataConstants.DEFAULT_LOCALE;
-import static org.jboss.portal.portlet.impl.metadata.PortletMetaDataConstants.PORTLET_JSR_286_NS;
-import org.jboss.portal.portlet.impl.metadata.PublicRenderParameterMetaData;
-import org.jboss.portal.portlet.impl.metadata.UserAttributeMetaData;
-import org.jboss.portal.portlet.impl.metadata.common.ContainerRuntimeMetaData;
-import org.jboss.portal.portlet.impl.metadata.common.DescribableMetaData;
-import org.jboss.portal.portlet.impl.metadata.common.InitParamMetaData;
-import org.jboss.portal.portlet.impl.metadata.common.LocalizedDescriptionMetaData;
-import org.jboss.portal.portlet.impl.metadata.event.EventDefinitionMetaData;
-import org.jboss.portal.portlet.impl.metadata.event.EventDefinitionReferenceMetaData;
-import org.jboss.portal.portlet.impl.metadata.filter.FilterMappingMetaData;
-import org.jboss.portal.portlet.impl.metadata.filter.FilterMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletCacheScopeEnum;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletInfoMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletModeMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletPreferenceMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletPreferencesMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.SecurityRoleRefMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.SupportedLocaleMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.SupportsMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.WindowStateMetaData;
-import org.jboss.portal.portlet.impl.metadata.security.PortletCollectionMetaData;
-import org.jboss.portal.portlet.impl.metadata.security.SecurityConstraintMetaData;
-import org.jboss.portal.portlet.impl.metadata.security.UserDataConstraintMetaData;
+import org.jboss.portal.metadata.portlet.CustomPortletModeMetaData;
+import org.jboss.portal.metadata.portlet.CustomWindowStateMetaData;
+import org.jboss.portal.metadata.portlet.ListenerMetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication10MetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication20MetaData;
+import static org.jboss.portal.metadata.portlet.PortletMetaDataConstants.DEFAULT_LOCALE;
+import static org.jboss.portal.metadata.portlet.PortletMetaDataConstants.PORTLET_JSR_286_NS;
+import org.jboss.portal.metadata.portlet.PublicRenderParameterMetaData;
+import org.jboss.portal.metadata.portlet.UserAttributeMetaData;
+import org.jboss.portal.metadata.portlet.common.ContainerRuntimeMetaData;
+import org.jboss.portal.metadata.portlet.common.DescribableMetaData;
+import org.jboss.portal.metadata.portlet.common.InitParamMetaData;
+import org.jboss.portal.metadata.portlet.common.LocalizedDescriptionMetaData;
+import org.jboss.portal.metadata.portlet.event.EventDefinitionMetaData;
+import org.jboss.portal.metadata.portlet.event.EventDefinitionReferenceMetaData;
+import org.jboss.portal.metadata.portlet.filter.FilterMappingMetaData;
+import org.jboss.portal.metadata.portlet.filter.FilterMetaData;
+import org.jboss.portal.metadata.portlet.portlet.PortletCacheScopeEnum;
+import org.jboss.portal.metadata.portlet.portlet.PortletInfoMetaData;
+import org.jboss.portal.metadata.portlet.portlet.PortletMetaData;
+import org.jboss.portal.metadata.portlet.portlet.PortletModeMetaData;
+import org.jboss.portal.metadata.portlet.portlet.PortletPreferenceMetaData;
+import org.jboss.portal.metadata.portlet.portlet.PortletPreferencesMetaData;
+import org.jboss.portal.metadata.portlet.portlet.SecurityRoleRefMetaData;
+import org.jboss.portal.metadata.portlet.portlet.SupportedLocaleMetaData;
+import org.jboss.portal.metadata.portlet.portlet.SupportsMetaData;
+import org.jboss.portal.metadata.portlet.portlet.WindowStateMetaData;
+import org.jboss.portal.metadata.portlet.security.PortletCollectionMetaData;
+import org.jboss.portal.metadata.portlet.security.SecurityConstraintMetaData;
+import org.jboss.portal.metadata.portlet.security.UserDataConstraintMetaData;
import org.jboss.portal.portlet.mc.metadata.impl.AnnotationPortletApplication10MetaData;
import org.jboss.portal.portlet.mc.metadata.impl.AnnotationPortletApplication20MetaData;
import org.jboss.xb.binding.GenericObjectModelFactory;
@@ -67,6 +67,10 @@
import java.net.URI;
import java.net.URISyntaxException;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
/**
* @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
@@ -304,7 +308,7 @@
if (child instanceof DescribableMetaData)
{
DescribableMetaData md = (DescribableMetaData)child;
- LocalizedString d = this.descriptions.getLocalizedString(md);
+ List<LocalizedDescriptionMetaData> d = this.descriptions.getLocalizedDescriptionMetaData(md);
md.setDescription(d);
}
@@ -316,7 +320,7 @@
if (child instanceof PortletMetaData)
{
PortletMetaData portlet = (PortletMetaData)child;
- portlet.setDisplayName(this.displayNames.getLocalizedString(portlet));
+ portlet.setDisplayName(this.displayNames.getLocalizedDescriptionMetaData(portlet));
md.addPortlet(portlet);
}
// add custom-portlet-mode
@@ -339,7 +343,7 @@
{
SecurityConstraintMetaData security = (SecurityConstraintMetaData)child;
// display-name
- security.setDisplayName(this.displayNames.getLocalizedString(security));
+ security.setDisplayName(this.displayNames.getLocalizedDescriptionMetaData(security));
md.addSecurityConstraint(security);
}
}
@@ -362,7 +366,7 @@
else if (child instanceof FilterMetaData)
{
FilterMetaData filter = (FilterMetaData)child;
- filter.setDisplayName(this.displayNames.getLocalizedString(filter));
+ filter.setDisplayName(this.displayNames.getLocalizedDescriptionMetaData(filter));
md.addFilter(filter);
}
// add filter-mapping
@@ -379,7 +383,7 @@
else if (child instanceof ListenerMetaData)
{
ListenerMetaData listener = (ListenerMetaData)child;
- listener.setDisplayName(this.displayNames.getLocalizedString(listener));
+ listener.setDisplayName(this.displayNames.getLocalizedDescriptionMetaData(listener));
md.addListener(listener);
}
}
@@ -586,7 +590,7 @@
PortletModeMetaData md = (PortletModeMetaData)object;
if ("portlet-mode".equals(localName))
{
- md.setPortletMode(Mode.create(value));
+ md.setPortletMode(value);
}
}
@@ -596,7 +600,7 @@
WindowStateMetaData md = (WindowStateMetaData)object;
if ("window-state".equals(localName))
{
- md.setWindowState(WindowState.create(value));
+ md.setWindowState(value);
}
}
@@ -724,7 +728,7 @@
UserDataConstraintMetaData md = (UserDataConstraintMetaData)object;
if ("transport-guarantee".equals(localName))
{
- md.setTransportQuarantee(TransportGuarantee.valueOf(value));
+ md.setTransportQuarantee(value);
}
}
@@ -756,7 +760,7 @@
String lifeCycle = value.substring(0, end > 0 ? end : 0);
try
{
- md.addLifecycle(LifeCyclePhase.valueOf(lifeCycle));
+ md.addLifecycle(lifeCycle);
}
catch (IllegalArgumentException e)
{
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/metadata/impl/AnnotationPortletApplication10MetaData.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/metadata/impl/AnnotationPortletApplication10MetaData.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/metadata/impl/AnnotationPortletApplication10MetaData.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -23,8 +23,8 @@
package org.jboss.portal.portlet.mc.metadata.impl;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication10MetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletMetaDataConstants;
+import org.jboss.portal.metadata.portlet.PortletApplication10MetaData;
+import org.jboss.portal.metadata.portlet.PortletMetaDataConstants;
import org.jboss.xb.annotations.JBossXmlSchema;
import javax.xml.bind.annotation.XmlNs;
@@ -44,4 +44,4 @@
elementFormDefault = XmlNsForm.QUALIFIED)
public class AnnotationPortletApplication10MetaData extends PortletApplication10MetaData
{
-}
\ No newline at end of file
+}
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/metadata/impl/AnnotationPortletApplication20MetaData.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/metadata/impl/AnnotationPortletApplication20MetaData.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/main/java/org/jboss/portal/portlet/mc/metadata/impl/AnnotationPortletApplication20MetaData.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -23,8 +23,8 @@
package org.jboss.portal.portlet.mc.metadata.impl;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication20MetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletMetaDataConstants;
+import org.jboss.portal.metadata.portlet.PortletApplication20MetaData;
+import org.jboss.portal.metadata.portlet.PortletMetaDataConstants;
import org.jboss.xb.annotations.JBossXmlSchema;
import javax.xml.bind.annotation.XmlNs;
@@ -45,4 +45,4 @@
elementFormDefault = XmlNsForm.QUALIFIED)
public class AnnotationPortletApplication20MetaData extends PortletApplication20MetaData
{
-}
\ No newline at end of file
+}
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/AbstractMetaDataTestCase.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/AbstractMetaDataTestCase.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/AbstractMetaDataTestCase.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -30,10 +30,10 @@
import org.jboss.portal.portlet.mc.metadata.impl.AnnotationPortletApplication10MetaData;
import org.jboss.portal.portlet.mc.metadata.impl.AnnotationPortletApplication20MetaData;
import org.jboss.portal.portlet.mc.metadata.impl.ValueTrimmingFilter;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication10MetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication20MetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication10MetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication20MetaData;
-import static org.jboss.portal.portlet.impl.metadata.PortletMetaDataConstants.*;
+import static org.jboss.portal.metadata.portlet.PortletMetaDataConstants.*;
import org.jboss.unit.api.pojo.annotations.Parameter;
import org.jboss.xb.binding.JBossXBException;
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/CustomPortletModeTestEverythingTestCase.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/CustomPortletModeTestEverythingTestCase.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/CustomPortletModeTestEverythingTestCase.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -24,9 +24,11 @@
import java.util.Locale;
-import org.jboss.portal.portlet.impl.metadata.CustomPortletModeMetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication10MetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication20MetaData;
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.metadata.portlet.CustomPortletModeMetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication10MetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication20MetaData;
+import org.jboss.portal.portlet.impl.metadata.adapter.LocalizedStringAdapter;
import org.jboss.unit.api.pojo.annotations.Test;
import static org.jboss.unit.api.Assert.*;
@@ -56,9 +58,12 @@
assertNotNull(cmd1);
assertEquals("mode1", cmd1.getId());
assertEquals("Custom", cmd1.getPortletMode());
- assertEquals("portletMode1", cmd1.getDescription().getDefaultString());
- assertEquals("eigener portlet modus", cmd1.getDescription().getString(new Locale("de"), false));
+ LocalizedString localizedString = LocalizedStringAdapter.getLocalizedString(cmd1.getDescription());
+
+ assertEquals("portletMode1", localizedString.getDefaultString());
+ assertEquals("eigener portlet modus", localizedString.getString(new Locale("de"), false));
+
assertNotNull(md.getCustomPortletModes().get("Custom2"));
}
catch (Exception e)
@@ -84,7 +89,10 @@
CustomPortletModeMetaData cmd1 = md.getCustomPortletModes().get("Custom");
assertNotNull(cmd1);
assertEquals("Custom", cmd1.getPortletMode());
- assertEquals("portletMode1", cmd1.getDescription().getDefaultString());
+
+ LocalizedString localizedString = LocalizedStringAdapter.getLocalizedString(cmd1.getDescription());
+
+ assertEquals("portletMode1", localizedString.getDefaultString());
assertEquals(true, cmd1.isPortalManaged());
assertEquals("cmode1", cmd1.getId());
@@ -99,10 +107,13 @@
// default value
assertEquals(true, cmd3.isPortalManaged());
- assertEquals("eigener portlet modus", cmd1.getDescription().getString(new Locale("de"), false));
- assertEquals("Portlet Mode Three", cmd3.getDescription().getDefaultString());
+ LocalizedString localizedString3 = LocalizedStringAdapter.getLocalizedString(cmd3.getDescription());
+
+ assertEquals("eigener portlet modus", localizedString.getString(new Locale("de"), false));
+ assertEquals("Portlet Mode Three", localizedString3.getDefaultString());
+
}
catch (Exception e)
{
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/CustomWindowStateTestEverythingTestCase.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/CustomWindowStateTestEverythingTestCase.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/CustomWindowStateTestEverythingTestCase.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -24,9 +24,11 @@
import java.util.Locale;
-import org.jboss.portal.portlet.impl.metadata.CustomWindowStateMetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication10MetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication20MetaData;
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.metadata.portlet.CustomWindowStateMetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication10MetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication20MetaData;
+import org.jboss.portal.portlet.impl.metadata.adapter.LocalizedStringAdapter;
import org.jboss.unit.api.pojo.annotations.Test;
import static org.jboss.unit.api.Assert.*;
@@ -51,9 +53,13 @@
assertEquals("1.0", md.getVersion());
CustomWindowStateMetaData cws1 = md.getCustomWindowStates().get("windowState1");
- assertEquals("WindowState", cws1.getDescription().getDefaultString());
+
+ LocalizedString cws1Description = LocalizedStringAdapter.getLocalizedString(cws1.getDescription());
+
+ assertEquals("WindowState", cws1Description.getDefaultString());
assertEquals("windowState1", cws1.getWindowState());
- assertEquals("Offenes Fenster", cws1.getDescription().getString(new Locale("de"), false));
+
+ assertEquals("Offenes Fenster", cws1Description.getString(new Locale("de"), false));
assertEquals("foo", cws1.getId());
CustomWindowStateMetaData cws2 = md.getCustomWindowStates().get("windowState2");
assertNotNull(cws2);
@@ -82,9 +88,12 @@
assertEquals("2.0", md.getVersion());
CustomWindowStateMetaData cws1 = md.getCustomWindowStates().get("windowState1");
- assertEquals("WindowState", cws1.getDescription().getDefaultString());
+
+ LocalizedString cws1Description = LocalizedStringAdapter.getLocalizedString(cws1.getDescription());
+
+ assertEquals("WindowState", cws1Description.getDefaultString());
assertEquals("windowState1", cws1.getWindowState());
- assertEquals("Offenes Fenster", cws1.getDescription().getString(new Locale("de"), false));
+ assertEquals("Offenes Fenster", cws1Description.getString(new Locale("de"), false));
assertEquals("foo", cws1.getId());
CustomWindowStateMetaData cws2 = md.getCustomWindowStates().get("windowState2");
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/EventTestEverythingTestCase.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/EventTestEverythingTestCase.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/EventTestEverythingTestCase.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -26,11 +26,13 @@
import javax.xml.namespace.QName;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication20MetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication10MetaData;
-import org.jboss.portal.portlet.impl.metadata.event.EventDefinitionMetaData;
-import org.jboss.portal.portlet.impl.metadata.event.EventDefinitionReferenceMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletMetaData;
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.metadata.portlet.PortletApplication20MetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication10MetaData;
+import org.jboss.portal.metadata.portlet.event.EventDefinitionMetaData;
+import org.jboss.portal.metadata.portlet.event.EventDefinitionReferenceMetaData;
+import org.jboss.portal.metadata.portlet.portlet.PortletMetaData;
+import org.jboss.portal.portlet.impl.metadata.adapter.LocalizedStringAdapter;
import org.jboss.unit.api.pojo.annotations.Test;
import static org.jboss.unit.api.Assert.*;
@@ -79,10 +81,13 @@
assertEquals("portletEvent", qname.getLocalPart());
assertEquals("x", qname.getPrefix());
assertEquals("org.jboss.portal.event.invoke.refill.beer", emd.getValueType());
- assertEquals("descriptionDefaultLanguage", emd.getDescription().getDefaultString());
- assertEquals("descriptionDefaultLanguage", emd.getDescription().getString(new Locale("en"), false));
- assertEquals("Beschreibung in Deutsch", emd.getDescription().getString(new Locale("de"), false));
+ LocalizedString emdDescription = LocalizedStringAdapter.getLocalizedString(emd.getDescription());
+
+ assertEquals("descriptionDefaultLanguage", emdDescription.getDefaultString());
+ assertEquals("descriptionDefaultLanguage", emdDescription.getString(new Locale("en"), false));
+ assertEquals("Beschreibung in Deutsch", emdDescription.getString(new Locale("de"), false));
+
EventDefinitionMetaData emd2 = md.getEvents().get(1);
assertNull(emd2.getQname());
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/FilterTestEverythingTestCase.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/FilterTestEverythingTestCase.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/FilterTestEverythingTestCase.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -25,9 +25,13 @@
import java.util.Locale;
import org.jboss.portal.portlet.LifeCyclePhase;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication20MetaData;
-import org.jboss.portal.portlet.impl.metadata.common.InitParamMetaData;
-import org.jboss.portal.portlet.impl.metadata.filter.FilterMetaData;
+import org.jboss.portal.portlet.container.managed.LifeCycleStatus;
+import org.jboss.portal.portlet.impl.container.LifeCycle;
+import org.jboss.portal.portlet.impl.metadata.adapter.LocalizedStringAdapter;
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.metadata.portlet.PortletApplication20MetaData;
+import org.jboss.portal.metadata.portlet.common.InitParamMetaData;
+import org.jboss.portal.metadata.portlet.filter.FilterMetaData;
import org.jboss.unit.api.pojo.annotations.Test;
import static org.jboss.unit.api.Assert.*;
@@ -69,15 +73,19 @@
assertNotNull(filter);
assertEquals("org.jboss.portal.meta.NoExistingClass", filter.getFilterClass());
assertEquals("testFilter", filter.getFilterName());
- assertEquals(LifeCyclePhase.ACTION, filter.getLifecycle().get(0));
- assertEquals(LifeCyclePhase.RENDER, filter.getLifecycle().get(1));
+ assertEquals(LifeCyclePhase.ACTION, LifeCyclePhase.valueOf(filter.getLifecycle().get(0)));
+ assertEquals(LifeCyclePhase.RENDER, LifeCyclePhase.valueOf(filter.getLifecycle().get(1)));
- assertEquals("test", filter.getDescription().getDefaultString());
- assertEquals("bla", filter.getDescription().getString(new Locale("de"), false));
+ LocalizedString filterDescription = LocalizedStringAdapter.getLocalizedString(filter.getDescription());
- assertEquals("foo", filter.getDisplayName().getString(new Locale("fr"), false));
- assertEquals("foobar", filter.getDisplayName().getDefaultString());
+ assertEquals("test", filterDescription.getDefaultString());
+ assertEquals("bla", filterDescription.getString(new Locale("de"), false));
+
+ LocalizedString filterDisplayName = LocalizedStringAdapter.getLocalizedString(filter.getDisplayName());
+ assertEquals("foo", filterDisplayName.getString(new Locale("fr"), false));
+ assertEquals("foobar", filterDisplayName.getDefaultString());
+
InitParamMetaData ip = filter.getInitParams().get(0);
assertEquals("eins", ip.getId());
assertEquals("foo", ip.getName());
@@ -92,7 +100,7 @@
//
FilterMetaData filter2 = md.getFilter("testFilterZwei");
assertEquals("testFilterZwei", filter2.getFilterName());
- assertEquals(LifeCyclePhase.ACTION, filter2.getLifecycle().get(0));
+ assertEquals(LifeCyclePhase.ACTION, LifeCyclePhase.valueOf(filter2.getLifecycle().get(0)));
// Filter mapping
assertEquals("Portlet1", md.getFilterMapping().get(0).getPortletNames().get(0));
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/GeneralMetaDataTestCase.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/GeneralMetaDataTestCase.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/GeneralMetaDataTestCase.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -25,10 +25,12 @@
import java.net.URI;
import java.util.Locale;
-import org.jboss.portal.portlet.impl.metadata.ListenerMetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication10MetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication20MetaData;
-import org.jboss.portal.portlet.impl.metadata.PublicRenderParameterMetaData;
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.metadata.portlet.ListenerMetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication10MetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication20MetaData;
+import org.jboss.portal.metadata.portlet.PublicRenderParameterMetaData;
+import org.jboss.portal.portlet.impl.metadata.adapter.LocalizedStringAdapter;
import org.jboss.unit.api.pojo.annotations.Test;
import static org.jboss.unit.api.Assert.*;
@@ -88,7 +90,9 @@
PublicRenderParameterMetaData prp1 = md.getPublicRenderParameters().get(0);
- assertEquals("Public render parameter one", prp1.getDescription().getDefaultString());
+ LocalizedString prp1Description = LocalizedStringAdapter.getLocalizedString(prp1.getDescription());
+
+ assertEquals("Public render parameter one", prp1Description.getDefaultString());
assertEquals("param1", prp1.getId());
assertEquals("param1", prp1.getName());
assertEquals("Parameter1", prp1.getAlias().get(0).getLocalPart());
@@ -99,10 +103,13 @@
assertEquals("foobar2", md.getContainerRuntimeOption("foo").getValues().get(1));
ListenerMetaData listener1 = md.getListeners().get(0);
+ LocalizedString listener1DisplayName = LocalizedStringAdapter.getLocalizedString(listener1.getDisplayName());
+ LocalizedString listener1Description = LocalizedStringAdapter.getLocalizedString(listener1.getDescription());
+
assertNotNull(listener1);
assertEquals("org.jboss.portal.portlet.test.listener.MyListener", listener1.getListenerClass());
- assertEquals("Mein Zuh\u00f6rer Eins", listener1.getDisplayName().getString(new Locale("de"), false));
- assertEquals("Beschreibung", listener1.getDescription().getString(new Locale("de"), false));
+ assertEquals("Mein Zuh\u00f6rer Eins", listener1DisplayName.getString(new Locale("de"), false));
+ assertEquals("Beschreibung", listener1Description.getString(new Locale("de"), false));
assertNotNull(md.getListeners().get(1));
}
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/PortletTestEverythingTestCase.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/PortletTestEverythingTestCase.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/PortletTestEverythingTestCase.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -25,19 +25,23 @@
import java.util.List;
import java.util.Locale;
+import javax.portlet.PortletMode;
+
import org.jboss.portal.Mode;
import org.jboss.portal.WindowState;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication10MetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication20MetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletMetaDataConstants;
-import org.jboss.portal.portlet.impl.metadata.common.InitParamMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletCacheScopeEnum;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletInfoMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletPreferencesMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.SecurityRoleRefMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.SupportedLocaleMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.SupportsMetaData;
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.metadata.portlet.PortletApplication10MetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication20MetaData;
+import org.jboss.portal.metadata.portlet.PortletMetaDataConstants;
+import org.jboss.portal.metadata.portlet.common.InitParamMetaData;
+import org.jboss.portal.metadata.portlet.portlet.PortletCacheScopeEnum;
+import org.jboss.portal.metadata.portlet.portlet.PortletInfoMetaData;
+import org.jboss.portal.metadata.portlet.portlet.PortletMetaData;
+import org.jboss.portal.metadata.portlet.portlet.PortletPreferencesMetaData;
+import org.jboss.portal.metadata.portlet.portlet.SecurityRoleRefMetaData;
+import org.jboss.portal.metadata.portlet.portlet.SupportedLocaleMetaData;
+import org.jboss.portal.metadata.portlet.portlet.SupportsMetaData;
+import org.jboss.portal.portlet.impl.metadata.adapter.LocalizedStringAdapter;
import org.jboss.unit.api.pojo.annotations.Test;
import static org.jboss.unit.api.Assert.*;
@@ -65,29 +69,36 @@
Locale default_locale = new Locale(PortletMetaDataConstants.DEFAULT_LOCALE);
PortletMetaData p1 = md.getPortlet("Portlet1");
+ LocalizedString p1Description = LocalizedStringAdapter.getLocalizedString(p1.getDescription());
+ LocalizedString p1DisplayName = LocalizedStringAdapter.getLocalizedString(p1.getDisplayName());
+
assertNotNull(p1);
assertEquals(md, p1.getPortletApplication());
assertEquals("fragmichnicht", p1.getId());
assertEquals("Portlet1", p1.getPortletName());
- assertEquals(default_locale, p1.getDescription().getDefaultLocale());
- assertEquals("default", p1.getDescription().getDefaultString());
- assertEquals("defaut", p1.getDescription().getString(fr, false));
- assertEquals(default_locale, p1.getDisplayName().getDefaultLocale());
- assertEquals("display", p1.getDisplayName().getDefaultString());
- assertEquals("affichage", p1.getDisplayName().getString(fr, false));
+ assertEquals(default_locale, p1Description.getDefaultLocale());
+ assertEquals("default", p1Description.getDefaultString());
+ assertEquals("defaut", p1Description.getString(fr, false));
+ assertEquals(default_locale, p1DisplayName.getDefaultLocale());
+ assertEquals("display", p1DisplayName.getDefaultString());
+ assertEquals("affichage", p1DisplayName.getString(fr, false));
assertEquals("org.jboss.portal.test.portlet.TestPortlet", p1.getPortletClass());
InitParamMetaData ip1 = p1.getInitParams().get(0);
- assertEquals(default_locale, ip1.getDescription().getDefaultLocale());
- assertEquals("first parameter", ip1.getDescription().getDefaultString());
- assertEquals("premier parametre", ip1.getDescription().getString(fr, false));
+ LocalizedString ip1Description = LocalizedStringAdapter.getLocalizedString(ip1.getDescription());
+
+ assertEquals(default_locale, ip1Description.getDefaultLocale());
+ assertEquals("first parameter", ip1Description.getDefaultString());
+ assertEquals("premier parametre", ip1Description.getString(fr, false));
assertEquals("one", ip1.getName());
assertEquals("1", ip1.getValue());
InitParamMetaData ip2 = p1.getInitParams().get(1);
+ LocalizedString ip2Description = LocalizedStringAdapter.getLocalizedString(ip2.getDescription());
+
assertNotNull(ip2);
- assertEquals("second parameter", ip2.getDescription().getDefaultString());
- assertEquals("deuxieme parametre", ip2.getDescription().getString(fr, false));
+ assertEquals("second parameter", ip2Description.getDefaultString());
+ assertEquals("deuxieme parametre", ip2Description.getString(fr, false));
assertEquals("two", ip2.getName());
assertEquals("2", ip2.getValue());
@@ -96,14 +107,14 @@
SupportsMetaData smd1 = p1.getSupports().get(0);
assertEquals("text/html", smd1.getMimeType());
- assertEquals(Mode.create("VIEW"), smd1.getPortletModes().get(0).getPortletMode());
- assertEquals(Mode.create("EDIT"), smd1.getPortletModes().get(1).getPortletMode());
- assertEquals(Mode.create("HELP"), smd1.getPortletModes().get(2).getPortletMode());
+ assertEquals(Mode.create("VIEW"), Mode.create(smd1.getPortletModes().get(0).getPortletMode()));
+ assertEquals(Mode.create("EDIT"), Mode.create(smd1.getPortletModes().get(1).getPortletMode()));
+ assertEquals(Mode.create("HELP"), Mode.create(smd1.getPortletModes().get(2).getPortletMode()));
SupportsMetaData smd2 = p1.getSupports().get(1);
assertEquals("text/wml", smd2.getMimeType());
- assertEquals(Mode.create("VIEW"), smd2.getPortletModes().get(0).getPortletMode());
- assertEquals(Mode.create("HELP"), smd2.getPortletModes().get(1).getPortletMode());
+ assertEquals(Mode.create("VIEW"), Mode.create(smd2.getPortletModes().get(0).getPortletMode()));
+ assertEquals(Mode.create("HELP"), Mode.create(smd2.getPortletModes().get(1).getPortletMode()));
assertEquals("MyResourceBundle", p1.getResourceBundle());
@@ -133,15 +144,17 @@
assertEquals("3", ppmd.getPortletPreferences().get("all").getValue().get(2));
SecurityRoleRefMetaData srrmd1 = p1.getSecurityRoleRef().get(0);
+ LocalizedString srrmd1Description = LocalizedStringAdapter.getLocalizedString(srrmd1.getDescription());
assertNotNull(srrmd1);
- assertEquals("role with no link", srrmd1.getDescription().getDefaultString());
- assertEquals("role sans link", srrmd1.getDescription().getString(fr, false));
+ assertEquals("role with no link", srrmd1Description.getDefaultString());
+ assertEquals("role sans link", srrmd1Description.getString(fr, false));
assertEquals("ROLE_NAME_WITHOUT_LINK", srrmd1.getRoleName());
SecurityRoleRefMetaData srrmd2 = p1.getSecurityRoleRef().get(1);
+ LocalizedString srrmd2Description = LocalizedStringAdapter.getLocalizedString(srrmd2.getDescription());
assertNotNull(srrmd2);
- assertEquals("role with link", srrmd2.getDescription().getDefaultString());
- assertEquals("role avec link", srrmd2.getDescription().getString(fr, false));
+ assertEquals("role with link", srrmd2Description.getDefaultString());
+ assertEquals("role avec link", srrmd2Description.getString(fr, false));
assertEquals("ROLE_NAME_WITH_LINK", srrmd2.getRoleName());
assertEquals("ROLE_LINK", srrmd2.getRoleLink());
@@ -233,28 +246,32 @@
Locale default_locale = new Locale(PortletMetaDataConstants.DEFAULT_LOCALE);
PortletMetaData p1 = md.getPortlet("Portlet1");
+ LocalizedString p1Description = LocalizedStringAdapter.getLocalizedString(p1.getDescription());
+ LocalizedString p1DisplayName = LocalizedStringAdapter.getLocalizedString(p1.getDisplayName());
assertNotNull(p1);
assertEquals("fragmichnicht2", p1.getId());
assertEquals("Portlet1", p1.getPortletName());
- assertEquals(default_locale, p1.getDescription().getDefaultLocale());
- assertEquals("default", p1.getDescription().getDefaultString());
- assertEquals("defaut", p1.getDescription().getString(fr, false));
- assertEquals(default_locale, p1.getDisplayName().getDefaultLocale());
- assertEquals("display", p1.getDisplayName().getDefaultString());
- assertEquals("affichage", p1.getDisplayName().getString(fr, false));
+ assertEquals(default_locale, p1Description.getDefaultLocale());
+ assertEquals("default", p1Description.getDefaultString());
+ assertEquals("defaut", p1Description.getString(fr, false));
+ assertEquals(default_locale, p1DisplayName.getDefaultLocale());
+ assertEquals("display", p1DisplayName.getDefaultString());
+ assertEquals("affichage", p1DisplayName.getString(fr, false));
assertEquals("org.jboss.portal.test.portlet.TestPortlet", p1.getPortletClass());
InitParamMetaData ip1 = p1.getInitParams().get(0);
- assertEquals(default_locale, ip1.getDescription().getDefaultLocale());
- assertEquals("first parameter", ip1.getDescription().getDefaultString());
- assertEquals("premier parametre", ip1.getDescription().getString(fr, false));
+ LocalizedString ip1Description = LocalizedStringAdapter.getLocalizedString(ip1.getDescription());
+ assertEquals(default_locale, ip1Description.getDefaultLocale());
+ assertEquals("first parameter", ip1Description.getDefaultString());
+ assertEquals("premier parametre", ip1Description.getString(fr, false));
assertEquals("one", ip1.getName());
assertEquals("1", ip1.getValue());
InitParamMetaData ip2 = p1.getInitParams().get(1);
+ LocalizedString ip2Description = LocalizedStringAdapter.getLocalizedString(ip2.getDescription());
assertNotNull(ip2);
- assertEquals("second parameter", ip2.getDescription().getDefaultString());
- assertEquals("deuxieme parametre", ip2.getDescription().getString(fr, false));
+ assertEquals("second parameter", ip2Description.getDefaultString());
+ assertEquals("deuxieme parametre", ip2Description.getString(fr, false));
assertEquals("two", ip2.getName());
assertEquals("2", ip2.getValue());
@@ -266,14 +283,14 @@
SupportsMetaData smd1 = p1.getSupports().get(0);
assertEquals("text/html", smd1.getMimeType());
- assertEquals(Mode.create("VIEW"), smd1.getPortletModes().get(0).getPortletMode());
- assertEquals(Mode.create("EDIT"), smd1.getPortletModes().get(1).getPortletMode());
- assertEquals(Mode.create("HELP"), smd1.getPortletModes().get(2).getPortletMode());
+ assertEquals(Mode.create("VIEW"), Mode.create(smd1.getPortletModes().get(0).getPortletMode()));
+ assertEquals(Mode.create("EDIT"), Mode.create(smd1.getPortletModes().get(1).getPortletMode()));
+ assertEquals(Mode.create("HELP"), Mode.create(smd1.getPortletModes().get(2).getPortletMode()));
SupportsMetaData smd2 = p1.getSupports().get(1);
assertEquals("text/wml", smd2.getMimeType());
- assertEquals(Mode.create("VIEW"), smd2.getPortletModes().get(0).getPortletMode());
- assertEquals(Mode.create("HELP"), smd2.getPortletModes().get(1).getPortletMode());
+ assertEquals(Mode.create("VIEW"), Mode.create(smd2.getPortletModes().get(0).getPortletMode()));
+ assertEquals(Mode.create("HELP"), Mode.create(smd2.getPortletModes().get(1).getPortletMode()));
List<SupportedLocaleMetaData> localeList = p1.getSupportedLocale();
assertEquals(3, localeList.size());
@@ -302,15 +319,17 @@
assertEquals("3", ppmd.getPortletPreferences().get("all").getValue().get(2));
SecurityRoleRefMetaData srrmd1 = p1.getSecurityRoleRef().get(0);
+ LocalizedString srrmd1Description = LocalizedStringAdapter.getLocalizedString(srrmd1.getDescription());
assertNotNull(srrmd1);
- assertEquals("role with no link", srrmd1.getDescription().getDefaultString());
- assertEquals("role sans link", srrmd1.getDescription().getString(fr, false));
+ assertEquals("role with no link", srrmd1Description.getDefaultString());
+ assertEquals("role sans link", srrmd1Description.getString(fr, false));
assertEquals("ROLE_NAME_WITHOUT_LINK", srrmd1.getRoleName());
SecurityRoleRefMetaData srrmd2 = p1.getSecurityRoleRef().get(1);
+ LocalizedString srrmd2Description = LocalizedStringAdapter.getLocalizedString(srrmd2.getDescription());
assertNotNull(srrmd2);
- assertEquals("role with link", srrmd2.getDescription().getDefaultString());
- assertEquals("role avec link", srrmd2.getDescription().getString(fr, false));
+ assertEquals("role with link", srrmd2Description.getDefaultString());
+ assertEquals("role avec link", srrmd2Description.getString(fr, false));
assertEquals("ROLE_NAME_WITH_LINK", srrmd2.getRoleName());
assertEquals("ROLE_LINK", srrmd2.getRoleLink());
@@ -393,28 +412,32 @@
Locale default_locale = new Locale(PortletMetaDataConstants.DEFAULT_LOCALE);
PortletMetaData p1 = md.getPortlet("Portlet1");
+ LocalizedString p1Description = LocalizedStringAdapter.getLocalizedString(p1.getDescription());
+ LocalizedString p1DisplayName = LocalizedStringAdapter.getLocalizedString(p1.getDisplayName());
assertNotNull(p1);
assertEquals("fragmichnicht2", p1.getId());
assertEquals("Portlet1", p1.getPortletName());
- assertEquals(default_locale, p1.getDescription().getDefaultLocale());
- assertEquals("default", p1.getDescription().getDefaultString());
- assertEquals("defaut", p1.getDescription().getString(fr, false));
- assertEquals(default_locale, p1.getDisplayName().getDefaultLocale());
- assertEquals("display", p1.getDisplayName().getDefaultString());
- assertEquals("affichage", p1.getDisplayName().getString(fr, false));
+ assertEquals(default_locale, p1Description.getDefaultLocale());
+ assertEquals("default", p1Description.getDefaultString());
+ assertEquals("defaut", p1Description.getString(fr, false));
+ assertEquals(default_locale, p1DisplayName.getDefaultLocale());
+ assertEquals("display", p1DisplayName.getDefaultString());
+ assertEquals("affichage", p1DisplayName.getString(fr, false));
assertEquals("org.jboss.portal.test.portlet.TestPortlet", p1.getPortletClass());
InitParamMetaData ip1 = p1.getInitParams().get(0);
- assertEquals(default_locale, ip1.getDescription().getDefaultLocale());
- assertEquals("first parameter", ip1.getDescription().getDefaultString());
- assertEquals("premier parametre", ip1.getDescription().getString(fr, false));
+ LocalizedString ip1Description = LocalizedStringAdapter.getLocalizedString(ip1.getDescription());
+ assertEquals(default_locale, ip1Description.getDefaultLocale());
+ assertEquals("first parameter", ip1Description.getDefaultString());
+ assertEquals("premier parametre", ip1Description.getString(fr, false));
assertEquals("one", ip1.getName());
assertEquals("1", ip1.getValue());
InitParamMetaData ip2 = p1.getInitParams().get(1);
+ LocalizedString ip2Description = LocalizedStringAdapter.getLocalizedString(ip2.getDescription());
assertNotNull(ip2);
- assertEquals("second parameter", ip2.getDescription().getDefaultString());
- assertEquals("deuxieme parametre", ip2.getDescription().getString(fr, false));
+ assertEquals("second parameter", ip2Description.getDefaultString());
+ assertEquals("deuxieme parametre", ip2Description.getString(fr, false));
assertEquals("two", ip2.getName());
assertEquals("2", ip2.getValue());
@@ -423,21 +446,21 @@
SupportsMetaData smd1 = p1.getSupports().get(0);
assertEquals("text/html", smd1.getMimeType());
- assertEquals(Mode.create("VIEW"), smd1.getPortletModes().get(0).getPortletMode());
- assertEquals(Mode.create("EDIT"), smd1.getPortletModes().get(1).getPortletMode());
- assertEquals(Mode.create("HELP"), smd1.getPortletModes().get(2).getPortletMode());
+ assertEquals(Mode.create("VIEW"), Mode.create(smd1.getPortletModes().get(0).getPortletMode()));
+ assertEquals(Mode.create("EDIT"), Mode.create(smd1.getPortletModes().get(1).getPortletMode()));
+ assertEquals(Mode.create("HELP"), Mode.create(smd1.getPortletModes().get(2).getPortletMode()));
// window state jsr 286
- assertEquals(WindowState.create("MAXIMIZED"), smd1.getWindowStates().get(0).getWindowState());
- assertEquals(WindowState.create("NORMAL"), smd1.getWindowStates().get(1).getWindowState());
+ assertEquals(WindowState.create("MAXIMIZED"), WindowState.create(smd1.getWindowStates().get(0).getWindowState()));
+ assertEquals(WindowState.create("NORMAL"), WindowState.create(smd1.getWindowStates().get(1).getWindowState()));
SupportsMetaData smd2 = p1.getSupports().get(1);
assertEquals("foo", smd2.getId());
assertEquals("text/wml", smd2.getMimeType());
- assertEquals(Mode.create("VIEW"), smd2.getPortletModes().get(0).getPortletMode());
- assertEquals(Mode.create("HELP"), smd2.getPortletModes().get(1).getPortletMode());
+ assertEquals(Mode.create("VIEW"), Mode.create(smd2.getPortletModes().get(0).getPortletMode()));
+ assertEquals(Mode.create("HELP"), Mode.create(smd2.getPortletModes().get(1).getPortletMode()));
// window state jsr 286
- assertEquals(WindowState.create("NORMAL"), smd2.getWindowStates().get(0).getWindowState());
- assertEquals(WindowState.create("CUSTOM"), smd2.getWindowStates().get(1).getWindowState());
+ assertEquals(WindowState.create("NORMAL"), WindowState.create(smd2.getWindowStates().get(0).getWindowState()));
+ assertEquals(WindowState.create("CUSTOM"), WindowState.create(smd2.getWindowStates().get(1).getWindowState()));
List<SupportedLocaleMetaData> localeList = p1.getSupportedLocale();
assertEquals(3, localeList.size());
@@ -466,15 +489,17 @@
assertEquals("3", ppmd.getPortletPreferences().get("all").getValue().get(2));
SecurityRoleRefMetaData srrmd1 = p1.getSecurityRoleRef().get(0);
+ LocalizedString srrmd1Description = LocalizedStringAdapter.getLocalizedString(srrmd1.getDescription());
assertNotNull(srrmd1);
- assertEquals("role with no link", srrmd1.getDescription().getDefaultString());
- assertEquals("role sans link", srrmd1.getDescription().getString(fr, false));
+ assertEquals("role with no link", srrmd1Description.getDefaultString());
+ assertEquals("role sans link", srrmd1Description.getString(fr, false));
assertEquals("ROLE_NAME_WITHOUT_LINK", srrmd1.getRoleName());
SecurityRoleRefMetaData srrmd2 = p1.getSecurityRoleRef().get(1);
+ LocalizedString srrmd2Description = LocalizedStringAdapter.getLocalizedString(srrmd2.getDescription());
assertNotNull(srrmd2);
- assertEquals("role with link", srrmd2.getDescription().getDefaultString());
- assertEquals("role avec link", srrmd2.getDescription().getString(fr, false));
+ assertEquals("role with link", srrmd2Description.getDefaultString());
+ assertEquals("role avec link", srrmd2Description.getString(fr, false));
assertEquals("ROLE_NAME_WITH_LINK", srrmd2.getRoleName());
assertEquals("ROLE_LINK", srrmd2.getRoleLink());
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/RenderParameterTestEverythingTestCase.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/RenderParameterTestEverythingTestCase.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/RenderParameterTestEverythingTestCase.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -22,8 +22,10 @@
******************************************************************************/
package org.jboss.portal.portlet.mc.metadata;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication20MetaData;
-import org.jboss.portal.portlet.impl.metadata.PublicRenderParameterMetaData;
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.metadata.portlet.PortletApplication20MetaData;
+import org.jboss.portal.metadata.portlet.PublicRenderParameterMetaData;
+import org.jboss.portal.portlet.impl.metadata.adapter.LocalizedStringAdapter;
import org.jboss.unit.api.pojo.annotations.Test;
import static org.jboss.unit.api.Assert.*;
@@ -66,7 +68,9 @@
assertEquals("http://someurl.alias.com", prp2.getAlias().get(0).getNamespaceURI());
assertEquals("s", prp2.getAlias().get(0).getPrefix());
- assertEquals("render parameter foo", prp1.getDescription().getDefaultString());
+ LocalizedString prp1Description = LocalizedStringAdapter.getLocalizedString(prp1.getDescription());
+
+ assertEquals("render parameter foo", prp1Description.getDefaultString());
}
catch (Exception e)
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/SecurityConstraintTestEverythingTestCase.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/SecurityConstraintTestEverythingTestCase.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/SecurityConstraintTestEverythingTestCase.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -25,10 +25,12 @@
import java.util.Locale;
import org.jboss.portal.portlet.TransportGuarantee;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication10MetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication20MetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletMetaData;
-import org.jboss.portal.portlet.impl.metadata.security.SecurityConstraintMetaData;
+import org.jboss.portal.portlet.impl.metadata.adapter.LocalizedStringAdapter;
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.metadata.portlet.PortletApplication10MetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication20MetaData;
+import org.jboss.portal.metadata.portlet.portlet.PortletMetaData;
+import org.jboss.portal.metadata.portlet.security.SecurityConstraintMetaData;
import org.jboss.unit.api.pojo.annotations.Test;
import static org.jboss.unit.api.Assert.*;
@@ -54,21 +56,27 @@
SecurityConstraintMetaData scd1 = md.getSecurityConstraints().get(0);
assertNotNull(scd1);
- assertEquals("test", scd1.getDisplayName().getDefaultString());
- assertEquals("Test", scd1.getDisplayName().getString(new Locale("de"), false));
- assertEquals(TransportGuarantee.NONE, scd1.getUserDataConstraint().getTransportQuarantee());
+
+ LocalizedString scd1DisplayName = LocalizedStringAdapter.getLocalizedString(scd1.getDisplayName());
+ assertEquals("test", scd1DisplayName.getDefaultString());
+ assertEquals("Test", scd1DisplayName.getString(new Locale("de"), false));
+ assertEquals(TransportGuarantee.NONE, TransportGuarantee.valueOf(scd1.getUserDataConstraint().getTransportQuarantee()));
+
assertEquals("foo", scd1.getPortletList().getPortletNames().get(0));
assertEquals("foobar", scd1.getPortletList().getPortletNames().get(1));
assertEquals("foo", scd1.getId());
SecurityConstraintMetaData scd2 = md.getSecurityConstraints().get(1);
assertNotNull(scd2);
- assertEquals(TransportGuarantee.INTEGRAL, scd2.getUserDataConstraint().getTransportQuarantee());
+ assertEquals(TransportGuarantee.INTEGRAL, TransportGuarantee.valueOf(scd2.getUserDataConstraint().getTransportQuarantee()));
assertEquals("foo", scd2.getPortletList().getPortletNames().get(0));
- assertEquals("fooConstraint", scd1.getUserDataConstraint().getDescription().getDefaultString());
- assertEquals("FooConstraint", scd1.getUserDataConstraint().getDescription().getString(new Locale("de"), false));
+ LocalizedString scd1UserDataConstraintDescription = LocalizedStringAdapter.getLocalizedString(scd1.getUserDataConstraint().getDescription());
+
+ assertEquals("fooConstraint", scd1UserDataConstraintDescription.getDefaultString());
+ assertEquals("FooConstraint", scd1UserDataConstraintDescription.getString(new Locale("de"), false));
+
try
{
scd2.getPortletList().getPortletNames().get(1);
@@ -144,22 +152,28 @@
SecurityConstraintMetaData scd1 = md.getSecurityConstraints().get(0);
assertNotNull(scd1);
- assertEquals("test", scd1.getDisplayName().getDefaultString());
- assertEquals("Test", scd1.getDisplayName().getString(new Locale("de"), false));
+
+ LocalizedString scd1DisplayName = LocalizedStringAdapter.getLocalizedString(scd1.getDisplayName());
+
+ assertEquals("test", scd1DisplayName.getDefaultString());
+ assertEquals("Test", scd1DisplayName.getString(new Locale("de"), false));
assertEquals("foo", scd1.getId());
- assertEquals(TransportGuarantee.NONE, scd1.getUserDataConstraint().getTransportQuarantee());
+ assertEquals(TransportGuarantee.NONE, TransportGuarantee.valueOf(scd1.getUserDataConstraint().getTransportQuarantee()));
assertEquals("foo", scd1.getPortletList().getPortletNames().get(0));
assertEquals("foobar", scd1.getPortletList().getPortletNames().get(1));
SecurityConstraintMetaData scd2 = md.getSecurityConstraints().get(1);
assertNotNull(scd2);
- assertEquals(TransportGuarantee.INTEGRAL, scd2.getUserDataConstraint().getTransportQuarantee());
+ assertEquals(TransportGuarantee.INTEGRAL, TransportGuarantee.valueOf(scd2.getUserDataConstraint().getTransportQuarantee()));
assertEquals("foo", scd2.getPortletList().getPortletNames().get(0));
- assertEquals("fooConstraint", scd1.getUserDataConstraint().getDescription().getDefaultString());
- assertEquals("FooConstraint", scd1.getUserDataConstraint().getDescription().getString(new Locale("de"), false));
+
+ LocalizedString scd1UserDataConstraintDescription = LocalizedStringAdapter.getLocalizedString(scd1.getUserDataConstraint().getDescription());
+ assertEquals("fooConstraint", scd1UserDataConstraintDescription.getDefaultString());
+ assertEquals("FooConstraint", scd1UserDataConstraintDescription.getString(new Locale("de"), false));
+
try
{
scd2.getPortletList().getPortletNames().get(1);
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/UserAttributeTestEverythingTestCase.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/UserAttributeTestEverythingTestCase.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/mc/src/test/java/org/jboss/portal/portlet/mc/metadata/UserAttributeTestEverythingTestCase.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -24,9 +24,11 @@
import java.util.Locale;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication10MetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication20MetaData;
-import org.jboss.portal.portlet.impl.metadata.UserAttributeMetaData;
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.metadata.portlet.PortletApplication10MetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication20MetaData;
+import org.jboss.portal.metadata.portlet.UserAttributeMetaData;
+import org.jboss.portal.portlet.impl.metadata.adapter.LocalizedStringAdapter;
import org.jboss.unit.api.pojo.annotations.Test;
import static org.jboss.unit.api.Assert.*;
@@ -57,9 +59,12 @@
UserAttributeMetaData umd = md.getUserAttributes().get("foo");
assertNotNull(umd);
assertEquals("realFoo", umd.getId());
- assertEquals("foobar", umd.getDescription().getDefaultString());
- assertEquals("fuhbar", umd.getDescription().getString(new Locale("de"), true));
+ LocalizedString umdDescription = LocalizedStringAdapter.getLocalizedString(umd.getDescription());
+
+ assertEquals("foobar", umdDescription.getDefaultString());
+ assertEquals("fuhbar", umdDescription.getString(new Locale("de"), true));
+
}
catch (Exception e)
{
@@ -87,8 +92,11 @@
UserAttributeMetaData umd = md.getUserAttributes().get("foo");
assertNotNull(umd);
assertEquals("realFoo", umd.getId());
- assertEquals("foobar", umd.getDescription().getDefaultString());
- assertEquals("fuhbar", umd.getDescription().getString(new Locale("de"), true));
+
+ LocalizedString umdDescription = LocalizedStringAdapter.getLocalizedString(umd.getDescription());
+
+ assertEquals("foobar", umdDescription.getDefaultString());
+ assertEquals("fuhbar", umdDescription.getString(new Locale("de"), true));
}
catch (Exception e)
{
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/pom.xml
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/pom.xml 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/pom.xml 2009-03-10 22:42:35 UTC (rev 13015)
@@ -28,6 +28,10 @@
<artifactId>common-portal</artifactId>
</dependency>
<dependency>
+ <groupId>org.jboss.portal.metadata</groupId>
+ <artifactId>metadata-metadata</artifactId>
+ </dependency>
+ <dependency>
<groupId>org.jboss.portal.web</groupId>
<artifactId>web-web</artifactId>
</dependency>
@@ -207,4 +211,4 @@
</plugins>
</build>
-</project>
\ No newline at end of file
+</project>
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/info/ContainerInfoBuilder.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/info/ContainerInfoBuilder.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/info/ContainerInfoBuilder.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -31,29 +31,32 @@
import org.jboss.portal.common.reflect.NoSuchClassException;
import org.jboss.portal.common.util.ConversionException;
import org.jboss.portal.portlet.LifeCyclePhase;
-import org.jboss.portal.portlet.impl.metadata.ListenerMetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication10MetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication20MetaData;
-import org.jboss.portal.portlet.impl.metadata.PublicRenderParameterMetaData;
-import org.jboss.portal.portlet.impl.metadata.UserAttributeMetaData;
-import org.jboss.portal.portlet.impl.metadata.CustomPortletModeMetaData;
-import org.jboss.portal.portlet.impl.metadata.CustomWindowStateMetaData;
-import org.jboss.portal.portlet.impl.metadata.common.ContainerRuntimeMetaData;
-import org.jboss.portal.portlet.impl.metadata.common.InitParamMetaData;
-import org.jboss.portal.portlet.impl.metadata.event.EventDefinitionMetaData;
-import org.jboss.portal.portlet.impl.metadata.event.EventDefinitionReferenceMetaData;
-import org.jboss.portal.portlet.impl.metadata.filter.FilterMappingMetaData;
-import org.jboss.portal.portlet.impl.metadata.filter.FilterMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletInfoMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletModeMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletPreferenceMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletPreferencesMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.SecurityRoleRefMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.SupportedLocaleMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.SupportsMetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.WindowStateMetaData;
-import org.jboss.portal.portlet.impl.metadata.security.SecurityConstraintMetaData;
+import org.jboss.portal.portlet.TransportGuarantee;
+import org.jboss.portal.metadata.portlet.ListenerMetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication10MetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication20MetaData;
+import org.jboss.portal.metadata.portlet.PublicRenderParameterMetaData;
+import org.jboss.portal.metadata.portlet.UserAttributeMetaData;
+import org.jboss.portal.metadata.portlet.CustomPortletModeMetaData;
+import org.jboss.portal.metadata.portlet.CustomWindowStateMetaData;
+import org.jboss.portal.metadata.portlet.common.ContainerRuntimeMetaData;
+import org.jboss.portal.metadata.portlet.common.InitParamMetaData;
+import org.jboss.portal.metadata.portlet.event.EventDefinitionMetaData;
+import org.jboss.portal.metadata.portlet.event.EventDefinitionReferenceMetaData;
+import org.jboss.portal.metadata.portlet.filter.FilterMappingMetaData;
+import org.jboss.portal.metadata.portlet.filter.FilterMetaData;
+import org.jboss.portal.metadata.portlet.portlet.PortletInfoMetaData;
+import org.jboss.portal.metadata.portlet.portlet.PortletMetaData;
+import org.jboss.portal.metadata.portlet.portlet.PortletModeMetaData;
+import org.jboss.portal.metadata.portlet.portlet.PortletPreferenceMetaData;
+import org.jboss.portal.metadata.portlet.portlet.PortletPreferencesMetaData;
+import org.jboss.portal.metadata.portlet.portlet.SecurityRoleRefMetaData;
+import org.jboss.portal.metadata.portlet.portlet.SupportedLocaleMetaData;
+import org.jboss.portal.metadata.portlet.portlet.SupportsMetaData;
+import org.jboss.portal.metadata.portlet.portlet.WindowStateMetaData;
+import org.jboss.portal.metadata.portlet.security.SecurityConstraintMetaData;
+import org.jboss.portal.portlet.impl.metadata.adapter.LifeCyclePhaseAdapter;
+import org.jboss.portal.portlet.impl.metadata.adapter.LocalizedStringAdapter;
import org.jboss.portal.portlet.info.MetaInfo;
import javax.xml.XMLConstants;
@@ -456,7 +459,7 @@
Mode mode = Mode.create(customPortletModeMD.getPortletMode());
//
- LocalizedString description = customPortletModeMD.getDescription();
+ LocalizedString description = LocalizedStringAdapter.getLocalizedString(customPortletModeMD.getDescription());
//
ContainerModeInfo modeInfo;
@@ -499,7 +502,7 @@
WindowState windowState = WindowState.create(customPortletModeMD.getWindowState());
//
- LocalizedString description = customPortletModeMD.getDescription();
+ LocalizedString description = LocalizedStringAdapter.getLocalizedString(customPortletModeMD.getDescription());
//
ContainerWindowStateInfo windowStateInfo;
@@ -529,8 +532,8 @@
{
return new ContainerListenerInfo(
listenerMD.getListenerClass(),
- listenerMD.getDisplayName(),
- listenerMD.getDescription());
+ LocalizedStringAdapter.getLocalizedString(listenerMD.getDisplayName()),
+ LocalizedStringAdapter.getLocalizedString(listenerMD.getDescription()));
}
private ContainerFilterInfo build(FilterMetaData filterMD)
@@ -542,12 +545,17 @@
}
//
+ List<LifeCyclePhase> lifeCycles = LifeCyclePhaseAdapter.getLifeCycles(filterMD.getLifecycle());
+ LocalizedString displayName = LocalizedStringAdapter.getLocalizedString(filterMD.getDisplayName());
+ LocalizedString description = LocalizedStringAdapter.getLocalizedString(filterMD.getDescription());
+
+ //
return new ContainerFilterInfo(
filterMD.getFilterName(),
filterMD.getFilterClass(),
- Collections.unmodifiableSet(new HashSet<LifeCyclePhase>(filterMD.getLifecycle())),
- filterMD.getDisplayName(),
- filterMD.getDescription(),
+ Collections.unmodifiableSet(new HashSet<LifeCyclePhase>(lifeCycles)),
+ displayName,
+ description,
Collections.unmodifiableMap(initParameters)
);
}
@@ -828,7 +836,7 @@
{
if (securityConstraintMD.getPortletList().getPortletNames().contains(portletMD.getPortletName()))
{
- containerSecurity.addTransportGuarantee(securityConstraintMD.getUserDataConstraint().getTransportQuarantee());
+ containerSecurity.addTransportGuarantee(TransportGuarantee.valueOf(securityConstraintMD.getUserDataConstraint().getTransportQuarantee()));
}
}
@@ -882,7 +890,7 @@
// Then process each mode
for (PortletModeMetaData modeMD : supportsMD.getPortletModes())
{
- ContainerModeInfo mode = customModes.get(modeMD.getPortletMode());
+ ContainerModeInfo mode = customModes.get(Mode.create(modeMD.getPortletMode()));
//
if (mode != null)
@@ -891,14 +899,14 @@
}
else
{
- capabilities.add(mimeType, modeMD.getPortletMode());
+ capabilities.add(mimeType, Mode.create(modeMD.getPortletMode()));
}
}
// then process window states
for (WindowStateMetaData windowStateMD : supportsMD.getWindowStates())
{
- ContainerWindowStateInfo windowStateInfo = customWindowStates.get(windowStateMD.getWindowState());
+ ContainerWindowStateInfo windowStateInfo = customWindowStates.get(WindowState.create(windowStateMD.getWindowState()));
//
if (windowStateInfo != null)
@@ -907,7 +915,7 @@
}
else
{
- capabilities.add(mimeType, windowStateMD.getWindowState());
+ capabilities.add(mimeType, WindowState.create(windowStateMD.getWindowState()));
}
}
@@ -994,8 +1002,8 @@
}
// Add stuff coming from deployment descriptor
- containerMeta.addMetaValue(MetaInfo.DESCRIPTION, portletMD.getDescription());
- containerMeta.addMetaValue(MetaInfo.DISPLAY_NAME, portletMD.getDisplayName());
+ containerMeta.addMetaValue(MetaInfo.DESCRIPTION, LocalizedStringAdapter.getLocalizedString(portletMD.getDescription()));
+ containerMeta.addMetaValue(MetaInfo.DISPLAY_NAME, LocalizedStringAdapter.getLocalizedString(portletMD.getDisplayName()));
//
return containerMeta;
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/info/ContainerInfoBuilderContext.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/info/ContainerInfoBuilderContext.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/info/ContainerInfoBuilderContext.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -24,7 +24,7 @@
import org.jboss.portal.common.i18n.ResourceBundleManager;
import org.jboss.portal.common.reflect.NoSuchClassException;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletMetaData;
+import org.jboss.portal.metadata.portlet.portlet.PortletMetaData;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/jsr168/ContainerInfoBuilderContextImpl.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/jsr168/ContainerInfoBuilderContextImpl.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/jsr168/ContainerInfoBuilderContextImpl.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -22,9 +22,9 @@
******************************************************************************/
package org.jboss.portal.portlet.impl.jsr168;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication10MetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletApplication20MetaData;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletMetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication10MetaData;
+import org.jboss.portal.metadata.portlet.PortletApplication20MetaData;
+import org.jboss.portal.metadata.portlet.portlet.PortletMetaData;
import org.jboss.portal.portlet.impl.info.ContainerInfoBuilderContext;
import org.jboss.portal.web.WebApp;
import org.jboss.portal.common.i18n.ResourceBundleManager;
Deleted: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/CustomPortletModeMetaData.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/CustomPortletModeMetaData.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/CustomPortletModeMetaData.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,89 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.impl.metadata;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-import org.jboss.portal.portlet.impl.metadata.common.DescribableMetaData;
-import org.jboss.portal.portlet.impl.metadata.PortletMetaDataConstants;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-@XmlType(name = "custom-portlet-modeType")
-public class CustomPortletModeMetaData extends DescribableMetaData
-{
-
- /** The custom portlet mode id*/
- private String id;
-
- /** The portlet mode */
- private String portletMode;
-
- /** Is portal managed */
- private boolean portalManaged = true;
-
- public CustomPortletModeMetaData() {}
-
- public CustomPortletModeMetaData(String id)
- {
- this.id = id;
- }
-
- @XmlAttribute(name = "id")
- public String getId()
- {
- return id;
- }
-
- public void setId(String id)
- {
- this.id = id;
- }
-
- @XmlElement(name = "portlet-mode")
- public String getPortletMode()
- {
- return portletMode;
- }
-
- public void setPortletMode(String portletMode)
- {
- this.portletMode = portletMode;
- }
-
- @XmlElement(name = "portal-managed", namespace = PortletMetaDataConstants.PORTLET_JSR_286_NS)
- public boolean isPortalManaged()
- {
- return portalManaged;
- }
-
- public void setPortalManaged(boolean portalManaged)
- {
- this.portalManaged = portalManaged;
- }
-
-}
Deleted: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/CustomWindowStateMetaData.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/CustomWindowStateMetaData.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/CustomWindowStateMetaData.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,74 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.impl.metadata;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-import org.jboss.portal.portlet.impl.metadata.common.DescribableMetaData;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-@XmlType(name = "custom-window-stateType")
-public class CustomWindowStateMetaData extends DescribableMetaData
-{
-
- /** The window state id */
- private String id;
-
- /** The window state */
- private String windowState;
-
- public CustomWindowStateMetaData() {}
-
- public CustomWindowStateMetaData(String id)
- {
- this.id = id;
- }
-
- @XmlAttribute(name = "id")
- public String getId()
- {
- return id;
- }
-
- public void setId(String id)
- {
- this.id = id;
- }
-
- @XmlElement(name = "window-state")
- public String getWindowState()
- {
- return windowState;
- }
-
- public void setWindowState(String windowState)
- {
- this.windowState = windowState;
- }
-
-}
\ No newline at end of file
Deleted: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/ListenerMetaData.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/ListenerMetaData.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/ListenerMetaData.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,95 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.impl.metadata;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-import org.jboss.portal.common.i18n.LocalizedString;
-import org.jboss.portal.portlet.impl.metadata.adapter.LocalizedStringAdapter;
-import org.jboss.portal.portlet.impl.metadata.common.DescribableMetaData;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-@XmlType(name = "listenerType")
-public class ListenerMetaData extends DescribableMetaData
-{
-
- /** The id */
- private String id;
-
- /** The display name */
- private LocalizedString displayName;
-
- /** The listener class */
- private String listenerClass;
-
- public ListenerMetaData() {}
-
- public ListenerMetaData(String id)
- {
- this.id = id;
- }
-
- @XmlAttribute(name = "id")
- public String getId()
- {
- return id;
- }
-
- public void setId(String id)
- {
- this.id = id;
- }
-
- @XmlElement(name = "display-name")
- @XmlJavaTypeAdapter(LocalizedStringAdapter.class)
- public LocalizedString getDisplayName()
- {
- return displayName;
- }
-
- public void setDisplayName(LocalizedString displayName)
- {
- this.displayName = displayName;
- }
-
- @XmlElement(name = "listener-class")
- @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
- public String getListenerClass()
- {
- return listenerClass;
- }
-
- public void setListenerClass(String listenerClass)
- {
- this.listenerClass = listenerClass;
- }
-
-}
-
Deleted: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/PortletApplication10MetaData.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/PortletApplication10MetaData.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/PortletApplication10MetaData.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,220 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.impl.metadata;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-import org.jboss.portal.portlet.impl.metadata.adapter.CustomPortletModeAdapter;
-import org.jboss.portal.portlet.impl.metadata.adapter.CustomWindowStateAdapter;
-import org.jboss.portal.portlet.impl.metadata.adapter.PortletListAdapter;
-import org.jboss.portal.portlet.impl.metadata.adapter.UserAttributeAdapter;
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletMetaData;
-import org.jboss.portal.portlet.impl.metadata.security.SecurityConstraintMetaData;
-import org.jboss.portal.portlet.impl.metadata.UserAttributeMetaData;
-import org.jboss.portal.portlet.impl.metadata.CustomWindowStateMetaData;
-import org.jboss.portal.portlet.impl.metadata.CustomPortletModeMetaData;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-
-@XmlRootElement(name = "portlet-app")
-@XmlType(name = "portlet-appType")
-public class PortletApplication10MetaData
-{
- /** The portlet application id. */
- private String id;
-
- /** The portlet application version. */
- private String version;
-
- /** A bunch of portlets. */
- private Map<String, PortletMetaData> portlets;
-
- /** The user attributes. */
- private Map<String, UserAttributeMetaData> userAttributes;
-
- /** The custom portlet mode. */
- private Map<String, CustomPortletModeMetaData> customPortletModes;
-
- /** The custom window states. */
- private Map<String, CustomWindowStateMetaData> customWindowStates;
-
- /** The security constraints */
- private List<SecurityConstraintMetaData> securityConstraints;
-
- @XmlAttribute(name = "id")
- public String getId()
- {
- return id;
- }
-
- public void setId(String id)
- {
- this.id = id;
- }
-
- @XmlAttribute(name = "version")
- public String getVersion()
- {
- return version;
- }
-
- public void setVersion(String version)
- {
- this.version = version;
- }
-
- @XmlElement(name = "portlet")
- @XmlJavaTypeAdapter(PortletListAdapter.class)
- public Map<String, PortletMetaData> getPortlets()
- {
- return portlets;
- }
-
- public void setPortlets(Map<String, PortletMetaData> portlets)
- {
- // Adding reference to the portlet application metadata
- for( PortletMetaData p : portlets.values())
- {
- p.setPortletApplication(this);
- }
- this.portlets = portlets;
- }
-
- public Collection<PortletMetaData> getPortletCollection()
- {
- return portlets != null ? portlets.values() : null;
- }
-
- public PortletMetaData getPortlet(String portletName)
- {
- return portlets.get(portletName);
- }
-
- public void addPortlet(PortletMetaData portlet)
- {
- if(this.portlets == null)
- {
- this.portlets = new LinkedHashMap<String, PortletMetaData>();
- }
- // Adding reference to the portlet application metadata
- portlet.setPortletApplication(this);
- this.portlets.put(portlet.getPortletName(), portlet);
- }
-
- @XmlElement(name = "user-attribute")
- @XmlJavaTypeAdapter(UserAttributeAdapter.class)
- public Map<String, UserAttributeMetaData> getUserAttributes()
- {
- return userAttributes;
- }
-
- public void setUserAttributes(Map<String, UserAttributeMetaData> userAttributes)
- {
- this.userAttributes = userAttributes;
- }
-
- public void addUserAttribute(UserAttributeMetaData userAttribute)
- {
- if( this.userAttributes == null )
- {
- this.userAttributes = new HashMap<String, UserAttributeMetaData>();
- }
- this.userAttributes.put(userAttribute.getName(), userAttribute);
- }
-
- @XmlElement(name = "custom-portlet-mode")
- @XmlJavaTypeAdapter(CustomPortletModeAdapter.class)
- public Map<String, CustomPortletModeMetaData> getCustomPortletModes()
- {
- return customPortletModes;
- }
-
- public void setCustomPortletModes(Map<String, CustomPortletModeMetaData> customPortletMode)
- {
- this.customPortletModes = customPortletMode;
- }
-
- public void addCustomPortletMode(CustomPortletModeMetaData portletMode)
- {
- if ( this.customPortletModes == null)
- {
- this.customPortletModes = new HashMap<String, CustomPortletModeMetaData>();
- }
- this.customPortletModes.put(portletMode.getPortletMode(), portletMode);
- }
-
- @XmlElement(name = "custom-window-state")
- @XmlJavaTypeAdapter(CustomWindowStateAdapter.class)
- public Map<String, CustomWindowStateMetaData> getCustomWindowStates()
- {
- return customWindowStates;
- }
-
- public void setCustomWindowStates(Map<String, CustomWindowStateMetaData> customWindowState)
- {
- this.customWindowStates = customWindowState;
- }
-
- public void addCustomWindowState(CustomWindowStateMetaData windowState)
- {
- if( this.customWindowStates == null )
- {
- this.customWindowStates = new HashMap<String, CustomWindowStateMetaData>();
- }
- this.customWindowStates.put(windowState.getWindowState(), windowState);
- }
-
- @XmlElement(name = "security-constraint")
- public List<SecurityConstraintMetaData> getSecurityConstraints()
- {
- return securityConstraints;
- }
-
- public void setSecurityConstraints(List<SecurityConstraintMetaData> securityConstraints)
- {
- this.securityConstraints = securityConstraints;
- }
-
- public void addSecurityConstraint(SecurityConstraintMetaData securityConstraint)
- {
- if(this.securityConstraints == null)
- {
- this.securityConstraints = new ArrayList<SecurityConstraintMetaData>();
- }
- this.securityConstraints.add(securityConstraint);
- }
-}
Deleted: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/PortletApplication20MetaData.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/PortletApplication20MetaData.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/PortletApplication20MetaData.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,238 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.impl.metadata;
-
-import java.net.URI;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-import org.jboss.portal.portlet.impl.metadata.adapter.ContainerRuntimeAdapter;
-import org.jboss.portal.portlet.impl.metadata.adapter.FilterAdapter;
-import org.jboss.portal.portlet.impl.metadata.common.ContainerRuntimeMetaData;
-import org.jboss.portal.portlet.impl.metadata.event.EventDefinitionMetaData;
-import org.jboss.portal.portlet.impl.metadata.filter.FilterMappingMetaData;
-import org.jboss.portal.portlet.impl.metadata.filter.FilterMetaData;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-public class PortletApplication20MetaData extends PortletApplication10MetaData
-{
- /** The resource bundle (JSR 286) */
- private String resourceBundle;
-
- /** The default namespace URI (JSR 286) */
- private URI defaultNamespace;
-
- /** The filters (JSR 286) */
- private Map<String, FilterMetaData> filters;
-
- /** The filter mapping (JSR 286) */
- private List<FilterMappingMetaData> filterMapping;
-
- /** The events (JSR 286) */
- private List<EventDefinitionMetaData> events;
-
- /** The public render parameters */
- private List<PublicRenderParameterMetaData> publicRenderParameters;
-
- /** The url generation listener */
- private List<ListenerMetaData> listeners;
-
- /** The container runtime options */
- private Map<String, ContainerRuntimeMetaData> containerRuntimeOptions;
-
- @XmlElement(name = "resource-bundle", namespace = PortletMetaDataConstants.PORTLET_JSR_286_NS)
- public String getResourceBundle()
- {
- return resourceBundle;
- }
-
- public void setResourceBundle(String resourceBundle)
- {
- this.resourceBundle = resourceBundle;
- }
-
- @XmlElement(name = "default-namespace")
- public URI getDefaultNamespace()
- {
- return defaultNamespace;
- }
-
- public void setDefaultNamespace(URI defaultNamespace)
- {
- this.defaultNamespace = defaultNamespace;
- }
-
- @XmlElement(name = "filter", namespace = PortletMetaDataConstants.PORTLET_JSR_286_NS)
- @XmlJavaTypeAdapter(FilterAdapter.class)
- public Map<String, FilterMetaData> getFilters()
- {
- return this.filters;
- }
-
- public void setFilters(Map<String, FilterMetaData> filters)
- {
- this.filters = filters;
- }
-
- public Collection<FilterMetaData> getFilterCollection()
- {
- return this.filters != null ? this.filters.values() : null;
- }
-
- public FilterMetaData getFilter(String filterName)
- {
- return this.filters.get(filterName);
- }
-
- public void addFilter(FilterMetaData filter)
- {
- if ( this.filters == null)
- {
- this.filters = new LinkedHashMap<String, FilterMetaData>();
- }
- this.filters.put(filter.getFilterName(), filter);
- }
-
- @XmlElement(name = "filter-mapping", namespace = PortletMetaDataConstants.PORTLET_JSR_286_NS)
- public List<FilterMappingMetaData> getFilterMapping()
- {
- return filterMapping;
- }
-
- public void setFilterMapping(List<FilterMappingMetaData> filterMapping)
- {
- this.filterMapping = filterMapping;
- }
-
- public void addFilterMapping(FilterMappingMetaData filterMapping)
- {
- if(this.filterMapping == null)
- {
- this.filterMapping = new ArrayList<FilterMappingMetaData>();
- }
- this.filterMapping.add(filterMapping);
- }
-
- @XmlElement(name = "event-definition", namespace = PortletMetaDataConstants.PORTLET_JSR_286_NS)
- public List<EventDefinitionMetaData> getEvents()
- {
- return events;
- }
-
- public void setEvents(List<EventDefinitionMetaData> events)
- {
- this.events = events;
- }
-
- public void addEventDefinition(EventDefinitionMetaData eventDefinition)
- {
- if(this.events == null)
- {
- this.events = new ArrayList<EventDefinitionMetaData>();
- }
- this.events.add(eventDefinition);
- }
-
- @XmlElement(name = "public-render-parameter", namespace = PortletMetaDataConstants.PORTLET_JSR_286_NS)
- public List<PublicRenderParameterMetaData> getPublicRenderParameters()
- {
- return publicRenderParameters;
- }
-
- public void setPublicRenderParameters(List<PublicRenderParameterMetaData> publicRenderParameters)
- {
- this.publicRenderParameters = publicRenderParameters;
- }
-
- public void addPublicRenderParameter(PublicRenderParameterMetaData renderParameter)
- {
- if( this.publicRenderParameters == null)
- {
- this.publicRenderParameters = new ArrayList<PublicRenderParameterMetaData>();
- }
- this.publicRenderParameters.add(renderParameter);
- }
-
- @XmlElement(name = "listener", namespace = PortletMetaDataConstants.PORTLET_JSR_286_NS)
- public List<ListenerMetaData> getListeners()
- {
- return listeners;
- }
-
- public void setListeners(List<ListenerMetaData> listeners)
- {
- this.listeners = listeners;
- }
-
- public void addListener(ListenerMetaData listener)
- {
- if (this.listeners == null)
- {
- this.listeners = new ArrayList<ListenerMetaData>();
- }
- this.listeners.add(listener);
- }
-
- @XmlElement(name = "container-runtime-option",
- namespace = PortletMetaDataConstants.PORTLET_JSR_286_NS)
- @XmlJavaTypeAdapter(ContainerRuntimeAdapter.class)
- public Map<String, ContainerRuntimeMetaData> getContainerRuntimeOptions()
- {
- return containerRuntimeOptions;
- }
-
- public void setContainerRuntimeOptions(Map<String, ContainerRuntimeMetaData> containerRuntimeOptions)
- {
- this.containerRuntimeOptions = containerRuntimeOptions;
- }
-
- public ContainerRuntimeMetaData getContainerRuntimeOption(String option)
- {
- return this.containerRuntimeOptions.get(option);
- }
-
- public Set<String> getContainerRuntimeOptionSet()
- {
- return this.containerRuntimeOptions != null ? this.containerRuntimeOptions.keySet() : null;
- }
-
- public void addContainerRuntime(ContainerRuntimeMetaData option)
- {
- if (this.containerRuntimeOptions == null)
- {
- this.containerRuntimeOptions = new HashMap<String, ContainerRuntimeMetaData>();
- }
- this.containerRuntimeOptions.put(option.getName(), option);
- }
-}
Deleted: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/PortletMetaDataConstants.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/PortletMetaDataConstants.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/PortletMetaDataConstants.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,45 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.impl.metadata;
-
-import static javax.xml.XMLConstants.XML_NS_URI;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-public final class PortletMetaDataConstants
-{
-
- /** The portlet version 1.0 namespace */
- public final static String PORTLET_JSR_168_NS = "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";
-
- /** The portlet version 2.0 namespace */
- public final static String PORTLET_JSR_286_NS = "http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd";
-
- /** The xml namespace */
- public final static String NS_XML_NAMESPACE = XML_NS_URI;
-
- /** The default locale */
- public final static String DEFAULT_LOCALE = "en";
-}
Deleted: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/PublicRenderParameterMetaData.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/PublicRenderParameterMetaData.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/PublicRenderParameterMetaData.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,129 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.impl.metadata;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.namespace.QName;
-
-import org.jboss.portal.portlet.impl.metadata.common.DescribableMetaData;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-@XmlType(name = "public-render-parameterType")
-public class PublicRenderParameterMetaData extends DescribableMetaData
-{
-
- /** The public render parameter id */
- private String id;
-
- /** The public render parameter identifier */
- private String identifier;
-
- /** The QName */
- private QName qname;
-
- /** The name */
- private String name;
-
- /** The public render parameter alias */
- private List<QName> alias;
-
- public PublicRenderParameterMetaData() {}
-
- public PublicRenderParameterMetaData(String id)
- {
- this.id = id;
- }
-
- @XmlAttribute(name = "id")
- public String getId()
- {
- return id;
- }
-
- public void setId(String id)
- {
- this.id = id;
- }
-
- @XmlElement(name = "identifier")
- public String getIdentifier()
- {
- return identifier;
- }
-
- public void setIdentifier(String identifier)
- {
- this.identifier = identifier;
- }
-
- @XmlElement(name = "qname")
- public QName getQname()
- {
- return qname;
- }
-
- public void setQname(QName qname)
- {
- this.qname = qname;
- }
-
- @XmlElement(name = "name")
- public String getName()
- {
- return name;
- }
-
- public void setName(String name)
- {
- this.name = name;
- }
-
- @XmlElement(name = "alias")
- public List<QName> getAlias()
- {
- return alias;
- }
-
- public void setAlias(List<QName> alias)
- {
- this.alias = alias;
- }
-
- public void addAlias(QName alias)
- {
- if(this.alias == null)
- {
- this.alias = new ArrayList<QName>();
- }
- this.alias.add(alias);
- }
-
-}
Deleted: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/UserAttributeMetaData.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/UserAttributeMetaData.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/UserAttributeMetaData.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,74 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.impl.metadata;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-import org.jboss.portal.portlet.impl.metadata.common.DescribableMetaData;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-@XmlType(name = "user-attributeType")
-public class UserAttributeMetaData extends DescribableMetaData
-{
-
- /** The id */
- private String id;
-
- /** The name */
- private String name;
-
- public UserAttributeMetaData() {}
-
- public UserAttributeMetaData(String id)
- {
- this.id = id;
- }
-
- @XmlAttribute(name = "id")
- public String getId()
- {
- return id;
- }
-
- public void setId(String id)
- {
- this.id = id;
- }
-
- @XmlElement(name = "name")
- public String getName()
- {
- return name;
- }
-
- public void setName(String name)
- {
- this.name = name;
- }
-}
-
Deleted: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/ValidationErrorHandler.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/ValidationErrorHandler.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/ValidationErrorHandler.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,52 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.impl.metadata;
-
-import org.xml.sax.ErrorHandler;
-import org.xml.sax.SAXException;
-import org.xml.sax.SAXParseException;
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-public class ValidationErrorHandler implements ErrorHandler
-{
-
- public void error(SAXParseException e) throws SAXException
- {
- throw new SAXException("Syntax error on line: " + e.getLineNumber() + ", column: " + e.getColumnNumber() + "\n"
- + e.getMessage());
- }
-
- public void fatalError(SAXParseException e) throws SAXException
- {
- throw new SAXException("Fatal syntax error on line: " + e.getLineNumber() + ", column: " + e.getColumnNumber()
- + "\n" + e.getMessage());
- }
-
- public void warning(SAXParseException e) throws SAXException
- {
- // TODO - maybe logging or similar stuff
- }
-
-}
\ No newline at end of file
Deleted: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/ContainerRuntimeAdapter.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/ContainerRuntimeAdapter.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/ContainerRuntimeAdapter.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,58 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.impl.metadata.adapter;
-
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.bind.annotation.adapters.XmlAdapter;
-
-import org.jboss.portal.portlet.impl.metadata.common.ContainerRuntimeMetaData;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-public class ContainerRuntimeAdapter
- extends XmlAdapter<List<ContainerRuntimeMetaData>, java.util.Map<String, ContainerRuntimeMetaData>>
-{
-
- @Override
- public List<ContainerRuntimeMetaData> marshal(Map<String, ContainerRuntimeMetaData> map) throws Exception
- {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public Map<String, ContainerRuntimeMetaData> unmarshal(List<ContainerRuntimeMetaData> list) throws Exception
- {
- Map<String, ContainerRuntimeMetaData> map = new HashMap<String, ContainerRuntimeMetaData>();
- for (ContainerRuntimeMetaData c : list)
- {
- map.put(c.getName(), c);
- }
- return map;
- }
-
-}
Deleted: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/CustomPortletModeAdapter.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/CustomPortletModeAdapter.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/CustomPortletModeAdapter.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,58 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.impl.metadata.adapter;
-
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.bind.annotation.adapters.XmlAdapter;
-
-import org.jboss.portal.portlet.impl.metadata.CustomPortletModeMetaData;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-public class CustomPortletModeAdapter extends XmlAdapter<List<CustomPortletModeMetaData>, Map<String, CustomPortletModeMetaData>>
-{
-
- @Override
- public List<CustomPortletModeMetaData> marshal(Map<String, CustomPortletModeMetaData> map) throws Exception
- {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public Map<String, CustomPortletModeMetaData> unmarshal(List<CustomPortletModeMetaData> list) throws Exception
- {
- Map<String, CustomPortletModeMetaData> map = new LinkedHashMap<String, CustomPortletModeMetaData>();
- for (CustomPortletModeMetaData md : list)
- {
- map.put(md.getPortletMode(), md);
- }
- return map;
- }
-
-}
-
Deleted: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/CustomWindowStateAdapter.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/CustomWindowStateAdapter.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/CustomWindowStateAdapter.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,58 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.impl.metadata.adapter;
-
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.bind.annotation.adapters.XmlAdapter;
-
-import org.jboss.portal.portlet.impl.metadata.CustomWindowStateMetaData;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-public class CustomWindowStateAdapter extends XmlAdapter<List<CustomWindowStateMetaData>, Map<String, CustomWindowStateMetaData>>
-{
-
- @Override
- public List<CustomWindowStateMetaData> marshal(Map<String, CustomWindowStateMetaData> map) throws Exception
- {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public Map<String, CustomWindowStateMetaData> unmarshal(List<CustomWindowStateMetaData> list) throws Exception
- {
- Map<String, CustomWindowStateMetaData> map = new LinkedHashMap<String, CustomWindowStateMetaData>();
- for(CustomWindowStateMetaData md : list)
- {
- map.put(md.getWindowState(), md);
- }
- return map;
- }
-
-}
-
Deleted: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/EventListAdapter.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/EventListAdapter.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/EventListAdapter.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,57 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.impl.metadata.adapter;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.xml.bind.annotation.adapters.XmlAdapter;
-
-import org.jboss.portal.portlet.impl.metadata.event.EventDefinitionMetaData;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-public final class EventListAdapter
- extends XmlAdapter<EventDefinitionMetaData[], Map<String, EventDefinitionMetaData>>
-{
-
- @Override
- public EventDefinitionMetaData[] marshal(Map<String, EventDefinitionMetaData> eventMap) throws Exception
- {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public Map<String, EventDefinitionMetaData> unmarshal(EventDefinitionMetaData[] eventList) throws Exception
- {
- Map<String, EventDefinitionMetaData> eventMap = new HashMap<String, EventDefinitionMetaData>();
- for (EventDefinitionMetaData eventDef : eventList)
- {
- eventMap.put(eventDef.getQname().getLocalPart(), eventDef);
- }
- return eventMap;
- }
-
-}
Deleted: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/FilterAdapter.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/FilterAdapter.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/FilterAdapter.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,66 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.impl.metadata.adapter;
-
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.bind.annotation.adapters.XmlAdapter;
-
-import org.jboss.portal.portlet.impl.metadata.filter.FilterMetaData;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-public class FilterAdapter
- extends XmlAdapter<List<FilterMetaData>, Map<String, FilterMetaData>>
-{
-
- @Override
- public List<FilterMetaData> marshal(Map<String, FilterMetaData> map) throws Exception
- {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public Map<String, FilterMetaData> unmarshal(List<FilterMetaData> list) throws Exception
- {
- Map<String, FilterMetaData> map = new LinkedHashMap<String, FilterMetaData>();
- for (FilterMetaData f : list)
- {
- String filterName = f.getFilterName();
- if (!map.containsKey(filterName))
- {
- map.put(filterName, f);
- }
- else
- {
- throw new IllegalArgumentException("Duplicate filter: " + filterName);
- }
- }
- return map;
- }
-
-}
Added: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/LifeCyclePhaseAdapter.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/LifeCyclePhaseAdapter.java (rev 0)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/LifeCyclePhaseAdapter.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -0,0 +1,50 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2008, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
+ ******************************************************************************/
+package org.jboss.portal.portlet.impl.metadata.adapter;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.log4j.Logger;
+import org.jboss.portal.portlet.LifeCyclePhase;
+
+/**
+ * @author <a href="mailto:mwringe@redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+public class LifeCyclePhaseAdapter
+{
+ public static List<LifeCyclePhase> getLifeCycles (List<String> lifecycleStrings)
+ {
+ List<LifeCyclePhase> lifeCyclePhases = new ArrayList<LifeCyclePhase>();
+ for (String lifecycleString : lifecycleStrings)
+ {
+ LifeCyclePhase lifeCyclePhase = LifeCyclePhase.valueOf(lifecycleString);
+ lifeCyclePhases.add(lifeCyclePhase);
+ }
+ return lifeCyclePhases;
+ }
+
+
+}
+
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/LocalizedStringAdapter.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/LocalizedStringAdapter.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/LocalizedStringAdapter.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -27,37 +27,46 @@
import java.util.Locale;
import java.util.Map;
-import javax.xml.bind.annotation.adapters.XmlAdapter;
-
+import org.apache.log4j.Logger;
import org.jboss.portal.common.i18n.LocaleFormat;
import org.jboss.portal.common.i18n.LocalizedString;
-import static org.jboss.portal.portlet.impl.metadata.PortletMetaDataConstants.*;
-import org.jboss.portal.portlet.impl.metadata.common.LocalizedDescriptionMetaData;
+import org.jboss.portal.common.util.ConversionException;
+import static org.jboss.portal.metadata.portlet.PortletMetaDataConstants.*;
+import org.jboss.portal.metadata.portlet.common.LocalizedDescriptionMetaData;
+
/**
* @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
* @version $Revision$
*/
public class LocalizedStringAdapter
- extends XmlAdapter<List<LocalizedDescriptionMetaData>, LocalizedString>
+
{
-
- @Override
- public List<LocalizedDescriptionMetaData> marshal(LocalizedString arg0) throws Exception
+ public static LocalizedString getLocalizedString(List<LocalizedDescriptionMetaData> descriptionList)
{
- throw new UnsupportedOperationException();
- }
-
- @Override
- public LocalizedString unmarshal(List<LocalizedDescriptionMetaData> descriptionList) throws Exception
- {
- Map<Locale, String> map = new LinkedHashMap<Locale, String>();
- for (LocalizedDescriptionMetaData d : descriptionList)
+ if (descriptionList != null)
{
- Locale locale = LocaleFormat.DEFAULT.getLocale(d.getLang());
- map.put(locale, d.getDescription());
+ Map<Locale, String> map = new LinkedHashMap<Locale, String>();
+ try
+ {
+ for (LocalizedDescriptionMetaData d : descriptionList)
+ {
+ Locale locale = LocaleFormat.DEFAULT.getLocale(d.getLang());
+ map.put(locale, d.getDescription());
+ }
+ }
+ catch (ConversionException ce)
+ {
+ Logger log = Logger.getLogger(LocalizedStringAdapter.class);
+ log.warn("Conversion exception occured when trying to get locale." + ce.getStackTrace());
+ }
+ return new LocalizedString(map, new Locale(DEFAULT_LOCALE));
}
- return new LocalizedString(map, new Locale(DEFAULT_LOCALE));
+ else
+ {
+ return null;
+ }
}
+
}
Deleted: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/PortletListAdapter.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/PortletListAdapter.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/PortletListAdapter.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,65 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.impl.metadata.adapter;
-
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.bind.annotation.adapters.XmlAdapter;
-
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletMetaData;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-public final class PortletListAdapter
- extends XmlAdapter<List<PortletMetaData>, Map<String, PortletMetaData>>
-{
-
- @Override
- public List<PortletMetaData> marshal(Map<String, PortletMetaData> portletMap) throws Exception
- {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public Map<String, PortletMetaData> unmarshal(List<PortletMetaData> portletList) throws Exception
- {
- Map<String, PortletMetaData> portletMap = new LinkedHashMap<String, PortletMetaData>();
- for (PortletMetaData portlet : portletList)
- {
- if (!portletMap.containsKey(portlet.getPortletName()))
- {
- portletMap.put(portlet.getPortletName(), portlet);
- }
- else
- {
- throw new IllegalArgumentException("Portlet name '" + portlet.getPortletName() + "' already defined.");
- }
- }
- return portletMap;
- }
-
-}
Deleted: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/PortletModeAdapter.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/PortletModeAdapter.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/PortletModeAdapter.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,49 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.impl.metadata.adapter;
-
-import javax.xml.bind.annotation.adapters.XmlAdapter;
-
-import org.jboss.portal.Mode;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-public class PortletModeAdapter extends XmlAdapter<String, Mode>
-{
-
- @Override
- public String marshal(Mode mode) throws Exception
- {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public Mode unmarshal(String name) throws Exception
- {
- return Mode.create(name);
- }
-
-}
-
Deleted: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/PortletPreferencesListAdapter.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/PortletPreferencesListAdapter.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/PortletPreferencesListAdapter.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,58 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.impl.metadata.adapter;
-
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.bind.annotation.adapters.XmlAdapter;
-
-import org.jboss.portal.portlet.impl.metadata.portlet.PortletPreferenceMetaData;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-public class PortletPreferencesListAdapter
- extends XmlAdapter<List<PortletPreferenceMetaData>, Map<String, PortletPreferenceMetaData>>
-{
-
- @Override
- public List<PortletPreferenceMetaData> marshal(Map<String, PortletPreferenceMetaData> arg0) throws Exception
- {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public Map<String, PortletPreferenceMetaData> unmarshal(List<PortletPreferenceMetaData> list) throws Exception
- {
- Map<String, PortletPreferenceMetaData> map = new LinkedHashMap<String, PortletPreferenceMetaData>();
- for (PortletPreferenceMetaData p : list)
- {
- map.put(p.getName(), p);
- }
- return map;
- }
-
-}
Deleted: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/UserAttributeAdapter.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/UserAttributeAdapter.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/UserAttributeAdapter.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,67 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.impl.metadata.adapter;
-
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.bind.annotation.adapters.XmlAdapter;
-
-import org.jboss.portal.portlet.impl.metadata.UserAttributeMetaData;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-
-public class UserAttributeAdapter
- extends XmlAdapter<List<UserAttributeMetaData>, Map<String, UserAttributeMetaData>>
-{
-
- @Override
- public List<UserAttributeMetaData> marshal(Map<String, UserAttributeMetaData> arg0) throws Exception
- {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public Map<String, UserAttributeMetaData> unmarshal(List<UserAttributeMetaData> list) throws Exception
- {
- HashMap<String, UserAttributeMetaData> m = new HashMap<String, UserAttributeMetaData>();
- for (UserAttributeMetaData a : list)
- {
- String userAttributeName = a.getName();
- if (!m.containsKey(userAttributeName))
- {
- m.put(a.getName(), a);
- }
- else
- {
- throw new IllegalArgumentException("Duplicate user-attribute: " + userAttributeName);
- }
- }
- return m;
- }
-
-}
Deleted: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/WindowStateAdapter.java
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/WindowStateAdapter.java 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/portlet/src/main/java/org/jboss/portal/portlet/impl/metadata/adapter/WindowStateAdapter.java 2009-03-10 22:42:35 UTC (rev 13015)
@@ -1,49 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.impl.metadata.adapter;
-
-import javax.xml.bind.annotation.adapters.XmlAdapter;
-
-import org.jboss.portal.WindowState;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-public class WindowStateAdapter extends XmlAdapter<String, WindowState>
-{
-
- @Override
- public String marshal(WindowState arg0) throws Exception
- {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public WindowState unmarshal(String name) throws Exception
- {
- return WindowState.create(name);
- }
-
-}
-
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/test/pom.xml
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/test/pom.xml 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/test/pom.xml 2009-03-10 22:42:35 UTC (rev 13015)
@@ -256,6 +256,8 @@
<property name="dependency.portal-common-portal.jar" value="${maven.dependency.org.jboss.portal.common.common-portal.jar.path}"/>
<property name="dependency.portal-common-mc.jar" value="${maven.dependency.org.jboss.portal.common.common-mc.jar.path}"/>
+ <property name="dependency.portal-metadata-metadata.jar" value="${maven.dependency.org.jboss.portal.metadata.metadata-metadata.jar.path}"/>
+
<property name="dependency.portal-web-web.jar" value="${maven.dependency.org.jboss.portal.web.web-web.jar.path}"/>
<property name="dependency.portal-portlet-portlet.jar" value="${maven.dependency.org.jboss.portal.portlet.portlet-portlet.jar.path}"/>
Modified: modules/portlet/branches/JBP_PORTLET_AS5_Deployer/test/src/test/build.xml
===================================================================
--- modules/portlet/branches/JBP_PORTLET_AS5_Deployer/test/src/test/build.xml 2009-03-10 21:33:59 UTC (rev 13014)
+++ modules/portlet/branches/JBP_PORTLET_AS5_Deployer/test/src/test/build.xml 2009-03-10 22:42:35 UTC (rev 13015)
@@ -73,6 +73,10 @@
<pathelement path="${dependency.portal-common-common.jar}"/>
</path>
+ <path id="portal-metadata">
+ <pathelement path="${dependency.portal-metadata-metadata.jar}"/>
+ </path>
+
<path id="portal-web">
</path>
@@ -112,6 +116,7 @@
</path>
<path id="jboss-4.2-shared">
+ <path refid="portal-metadata"/>
<path refid="portal-common-shared"/>
<path refid="portal-web-shared"/>
<path refid="portal-portlet-shared"/>
@@ -149,6 +154,7 @@
</path>
<path id="tomcat-6.0-shared">
+ <path refid="portal-metadata"/>
<path refid="portal-common-shared"/>
<path refid="portal-web-shared"/>
<path refid="portal-portlet-shared"/>
17 years, 1 month
JBoss Portal SVN: r13014 - modules/portlet/branches.
by portal-commits@lists.jboss.org
Author: mwringe
Date: 2009-03-10 17:33:59 -0400 (Tue, 10 Mar 2009)
New Revision: 13014
Added:
modules/portlet/branches/JBP_PORTLET_AS5_Deployer/
Log:
Create AS5 Deployer branch from revision 12894
Copied: modules/portlet/branches/JBP_PORTLET_AS5_Deployer (from rev 12894, modules/portlet/trunk)
17 years, 1 month
JBoss Portal SVN: r13013 - in branches/JBoss_Portal_AS5_Deployer/wsrp: src and 5 other directories.
by portal-commits@lists.jboss.org
Author: mwringe
Date: 2009-03-10 17:15:36 -0400 (Tue, 10 Mar 2009)
New Revision: 13013
Added:
branches/JBoss_Portal_AS5_Deployer/wsrp/src/etc/
branches/JBoss_Portal_AS5_Deployer/wsrp/src/etc/jboss-aop/
branches/JBoss_Portal_AS5_Deployer/wsrp/src/etc/jboss-aop/base-aop.xml
branches/JBoss_Portal_AS5_Deployer/wsrp/src/resources/portal-wsrp-sar/META-INF/jboss-dependency.xml
Modified:
branches/JBoss_Portal_AS5_Deployer/wsrp/build.xml
branches/JBoss_Portal_AS5_Deployer/wsrp/src/resources/portal-wsrp-sar/conf/hibernate/consumer/hibernate.cfg.xml
branches/JBoss_Portal_AS5_Deployer/wsrp/src/resources/portal-wsrp-sar/wsrp-aop.xml
Log:
Remove the transaction definitions from the wsrp-aop.xml, these are now defined in the portal-aop.xml in the portal sar.
Add dependency on jboss-portal-sar since it now defines the aop transactions.
Temporarily remove second level cache from hibernate.
Modified: branches/JBoss_Portal_AS5_Deployer/wsrp/build.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/wsrp/build.xml 2009-03-10 21:08:55 UTC (rev 13012)
+++ branches/JBoss_Portal_AS5_Deployer/wsrp/build.xml 2009-03-10 21:15:36 UTC (rev 13013)
@@ -258,7 +258,10 @@
<aopc compilerclasspathref="aop.classpath" verbose="true">
<classpath refid="aopc.classpath"/>
<src path="${build.classes}"/>
- <aoppath path="${build.resources}/portal-wsrp-sar/wsrp-aop.xml"/>
+ <aoppath>
+ <pathelement path="${build.resources}/portal-wsrp-sar/wsrp-aop.xml"/>
+ <pathelement path="${source.etc}/jboss-aop/base-aop.xml"/>
+ </aoppath>
<include name="org/jboss/portal/wsrp/consumer/ConsumerRegistryService.class"/>
</aopc>
Added: branches/JBoss_Portal_AS5_Deployer/wsrp/src/etc/jboss-aop/base-aop.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/wsrp/src/etc/jboss-aop/base-aop.xml (rev 0)
+++ branches/JBoss_Portal_AS5_Deployer/wsrp/src/etc/jboss-aop/base-aop.xml 2009-03-10 21:15:36 UTC (rev 13013)
@@ -0,0 +1,161 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ JBoss, a division of Red Hat ~
+ ~ Copyright 2006, Red Hat Middleware, LLC, and individual ~
+ ~ contributors as indicated by the @authors tag. See the ~
+ ~ copyright.txt in the distribution for a full listing of ~
+ ~ individual contributors. ~
+ ~ ~
+ ~ This is free software; you can redistribute it and/or modify it ~
+ ~ under the terms of the GNU Lesser General Public License as ~
+ ~ published by the Free Software Foundation; either version 2.1 of ~
+ ~ the License, or (at your option) any later version. ~
+ ~ ~
+ ~ This software is distributed in the hope that it will be useful, ~
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ~
+ ~ Lesser General Public License for more details. ~
+ ~ ~
+ ~ You should have received a copy of the GNU Lesser General Public ~
+ ~ License along with this software; if not, write to the Free ~
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ~
+ ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
+<!DOCTYPE aop PUBLIC
+ "-//JBoss//DTD JBOSS AOP 1.0//EN"
+ "http://www.jboss.org/aop/dtd/jboss-aop_1_0.dtd">
+
+<aop>
+ <!-- custom configuration for AOP Security -->
+ <metadata-loader tag="security" class="org.jboss.aspects.security.SecurityClassMetaDataLoader"/>
+
+ <stack name="J2EESecurityStack">
+ <interceptor factory="org.jboss.aspects.security.AuthenticationInterceptorFactory" scope="PER_CLASS"/>
+ <interceptor factory="org.jboss.aspects.security.RoleBasedAuthorizationInterceptorFactory" scope="PER_CLASS"/>
+ <interceptor factory="org.jboss.aspects.security.RunAsSecurityInterceptorFactory" scope="PER_CLASS"/>
+ </stack>
+
+ <bind pointcut="all(@security)">
+ <stack-ref name="J2EESecurityStack"/>
+ </bind>
+
+ <bind pointcut="all((a)org.jboss.aspects.security.Permissions)">
+ <stack-ref name="J2EESecurityStack"/>
+ </bind>
+
+ <bind pointcut="all((a)org.jboss.aspects.security.Unchecked)">
+ <stack-ref name="J2EESecurityStack"/>
+ </bind>
+
+ <bind pointcut="all((a)org.jboss.aspects.security.Exclude)">
+ <stack-ref name="J2EESecurityStack"/>
+ </bind>
+
+ <introduction expr="class((a)org.jboss.aspects.jmx.MBean)">
+ <mixin>
+ <interfaces>javax.management.DynamicMBean</interfaces>
+ <class>org.jboss.aspects.jmx.JmxIntrospectingMixin</class>
+ <construction>new org.jboss.aspects.jmx.JmxIntrospectingMixin(this)</construction>
+ </mixin>
+ </introduction>
+
+ <!-- asynchronous aspect -->
+ <aspect class="org.jboss.aspects.asynch.AsynchAspect" scope="PER_INSTANCE">
+ <advisor-attribute name="Advisor"/>
+ </aspect>
+
+ <bind pointcut="execution(!static * *->@org.jboss.aspects.asynch.Asynchronous(..))">
+ <advice name="execute" aspect="org.jboss.aspects.asynch.AsynchAspect"/>
+ </bind>
+
+ <introduction expr="has(!static * *->@org.jboss.aspects.asynch.Asynchronous(..))">
+ <mixin>
+ <interfaces>org.jboss.aspects.asynch.AsynchProvider,org.jboss.aspects.asynch.FutureHolder</interfaces>
+ <class>org.jboss.aspects.asynch.AsynchMixin</class>
+ </mixin>
+ </introduction>
+
+ <!-- old asynch aspect from Claude -->
+
+ <aspect class="org.jboss.aspects.asynchronous.aspects.jboss.AsynchronousAspect" scope="PER_VM"/>
+
+ <bind pointcut="execution(* *->@org.jboss.aspects.asynchronous.aspects.jboss.Asynchronous(..))">
+ <advice name="execute" aspect="org.jboss.aspects.asynchronous.aspects.jboss.AsynchronousAspect"/>
+ </bind>
+
+ <introduction
+ expr="has(* *->@org.jboss.aspects.asynchronous.aspects.jboss.Asynchronous(..)) OR class((a)org.jboss.aspects.asynchronous.aspects.jboss.Asynchronous)">
+
+ <mixin>
+ <interfaces>
+ org.jboss.aspects.asynchronous.aspects.AsynchronousFacade
+ </interfaces>
+ <class>org.jboss.aspects.asynchronous.aspects.AsynchronousFacadeImpl</class>
+ <construction>new org.jboss.aspects.asynchronous.aspects.AsynchronousFacadeImpl()</construction>
+ </mixin>
+ </introduction>
+
+ <!-- TRANSACTIONS -->
+ <interceptor class="org.jboss.aspects.tx.TxPropagationInterceptor" scope="PER_VM"/>
+ <interceptor factory="org.jboss.aspects.tx.TxInterceptorFactory" scope="PER_CLASS_JOINPOINT"/>
+
+ <bind pointcut="all(@transaction)">
+ <interceptor-ref name="org.jboss.aspects.tx.TxInterceptorFactory"/>
+ </bind>
+
+ <interceptor name="class-txsynchronized" factory="org.jboss.aspects.txlock.TxLockInterceptorFactory"
+ scope="PER_CLASS"/>
+ <interceptor name="instance-txsynchronized" factory="org.jboss.aspects.txlock.TxLockInterceptorFactory"
+ scope="PER_INSTANCE"/>
+
+ <bind pointcut="execution(static * *->@TxSynchronized(..)) OR execution(*->@TxSynchronized(..))">
+ <interceptor-ref name="class-txsynchronized"/>
+ </bind>
+
+ <bind pointcut="execution(!static * *->@TxSynchronized(..))">
+ <interceptor-ref name="instance-txsynchronized"/>
+ </bind>
+
+ <bind pointcut="all((a)org.jboss.aspects.tx.Tx)">
+ <interceptor-ref name="org.jboss.aspects.tx.TxInterceptorFactory"/>
+ </bind>
+
+ <bind
+ pointcut="execution(static * *->@org.jboss.aspects.txlock.TxSynchronized(..)) OR execution(*->@org.jboss.aspects.txlock.TxSynchronized(..))">
+ <interceptor-ref name="class-txsynchronized"/>
+ </bind>
+
+ <bind pointcut="execution(!static * *->@org.jboss.aspects.txlock.TxSynchronized(..))">
+ <interceptor-ref name="instance-txsynchronized"/>
+ </bind>
+
+ <!-- injection -->
+ <aspect class="org.jboss.aspects.tx.TransactionInjector"/>
+ <aspect class="org.jboss.aspects.tx.TransactionManagerInjector"/>
+
+ <bind pointcut="field(javax.transaction.Transaction *->@org.jboss.aspects.Current)">
+ <advice name="access" aspect="org.jboss.aspects.tx.TransactionInjector"/>
+ </bind>
+
+ <bind pointcut="field(javax.transaction.TransactionManager *->@org.jboss.aspects.Injected)">
+ <advice name="access" aspect="org.jboss.aspects.tx.TransactionManagerInjector"/>
+ </bind>
+
+ <bind
+ pointcut="execution(*->new(..)) AND hasfield(javax.transaction.TransactionManager *->@org.jboss.aspects.Injected)">
+ <advice name="allocation" aspect="org.jboss.aspects.tx.TransactionManagerInjector"/>
+ </bind>
+
+ <!-- special types -->
+ <aspect class="org.jboss.aspects.ThreadbasedAspect" scope="PER_JOINPOINT"/>
+ <bind pointcut="field(* *->@org.jboss.aspects.Threadbased)">
+ <advice name="access" aspect="org.jboss.aspects.ThreadbasedAspect"/>
+ </bind>
+
+ <aspect class="org.jboss.aspects.tx.TransactionLocalAspect" scope="PER_JOINPOINT"/>
+ <bind pointcut="field(* *->@org.jboss.aspects.tx.TxLocal)">
+ <advice name="access" aspect="org.jboss.aspects.tx.TransactionLocalAspect"/>
+ </bind>
+
+</aop>
Property changes on: branches/JBoss_Portal_AS5_Deployer/wsrp/src/etc/jboss-aop/base-aop.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/JBoss_Portal_AS5_Deployer/wsrp/src/resources/portal-wsrp-sar/META-INF/jboss-dependency.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/wsrp/src/resources/portal-wsrp-sar/META-INF/jboss-dependency.xml (rev 0)
+++ branches/JBoss_Portal_AS5_Deployer/wsrp/src/resources/portal-wsrp-sar/META-INF/jboss-dependency.xml 2009-03-10 21:15:36 UTC (rev 13013)
@@ -0,0 +1,6 @@
+<!-- this should be removed when the jboss-service.xml is updated to a -beans.xml file -->
+<!-- this file only exists right now because the jboss-service.xml dependency management is lacking -->
+<dependency xmlns="urn:jboss:dependency:1.0">
+ <item whenRequired="Real" dependentState="Create">jboss-portal-sar</item>
+</dependency>
+
Modified: branches/JBoss_Portal_AS5_Deployer/wsrp/src/resources/portal-wsrp-sar/conf/hibernate/consumer/hibernate.cfg.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/wsrp/src/resources/portal-wsrp-sar/conf/hibernate/consumer/hibernate.cfg.xml 2009-03-10 21:08:55 UTC (rev 13012)
+++ branches/JBoss_Portal_AS5_Deployer/wsrp/src/resources/portal-wsrp-sar/conf/hibernate/consumer/hibernate.cfg.xml 2009-03-10 21:15:36 UTC (rev 13013)
@@ -28,8 +28,8 @@
<session-factory>
<property name="connection.datasource">java:@portal.datasource.name@</property>
<property name="show_sql">@portal.sql.show@</property>
- <property name="cache.use_second_level_cache">true</property>
- <property name="cache.use_query_cache">true</property>
+ <property name="cache.use_second_level_cache">false</property>
+ <property name="cache.use_query_cache">false</property>
<!--
| Uncomment in clustered mode : use transactional replicated cache
@@ -55,4 +55,4 @@
<!-- Mapping files -->
<mapping resource="conf/hibernate/consumer/domain.hbm.xml"/>
</session-factory>
-</hibernate-configuration>
\ No newline at end of file
+</hibernate-configuration>
Modified: branches/JBoss_Portal_AS5_Deployer/wsrp/src/resources/portal-wsrp-sar/wsrp-aop.xml
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/wsrp/src/resources/portal-wsrp-sar/wsrp-aop.xml 2009-03-10 21:08:55 UTC (rev 13012)
+++ branches/JBoss_Portal_AS5_Deployer/wsrp/src/resources/portal-wsrp-sar/wsrp-aop.xml 2009-03-10 21:15:36 UTC (rev 13013)
@@ -42,38 +42,4 @@
<trans-attribute>Required</trans-attribute>
</method>
</metadata>
-
- <!-- TRANSACTIONS -->
- <interceptor class="org.jboss.aspects.tx.TxPropagationInterceptor" scope="PER_VM"/>
- <interceptor factory="org.jboss.aspects.tx.TxInterceptorFactory" scope="PER_CLASS_JOINPOINT"/>
-
- <bind pointcut="all(@transaction)">
- <interceptor-ref name="org.jboss.aspects.tx.TxInterceptorFactory"/>
- </bind>
-
- <interceptor name="class-txsynchronized" factory="org.jboss.aspects.txlock.TxLockInterceptorFactory"
- scope="PER_CLASS"/>
- <interceptor name="instance-txsynchronized" factory="org.jboss.aspects.txlock.TxLockInterceptorFactory"
- scope="PER_INSTANCE"/>
-
- <bind pointcut="execution(static * *->@TxSynchronized(..)) OR execution(*->@TxSynchronized(..))">
- <interceptor-ref name="class-txsynchronized"/>
- </bind>
-
- <bind pointcut="execution(!static * *->@TxSynchronized(..))">
- <interceptor-ref name="instance-txsynchronized"/>
- </bind>
-
- <bind pointcut="all((a)org.jboss.aspects.tx.Tx)">
- <interceptor-ref name="org.jboss.aspects.tx.TxInterceptorFactory"/>
- </bind>
-
- <bind
- pointcut="execution(static * *->@org.jboss.aspects.txlock.TxSynchronized(..)) OR execution(*->@org.jboss.aspects.txlock.TxSynchronized(..))">
- <interceptor-ref name="class-txsynchronized"/>
- </bind>
-
- <bind pointcut="execution(!static * *->@org.jboss.aspects.txlock.TxSynchronized(..))">
- <interceptor-ref name="instance-txsynchronized"/>
- </bind>
</aop>
17 years, 1 month
JBoss Portal SVN: r13012 - in branches/JBoss_Portal_AS5_Deployer/core/src/main/org/jboss: portlet/content and 1 other directory.
by portal-commits@lists.jboss.org
Author: mwringe
Date: 2009-03-10 17:08:55 -0400 (Tue, 10 Mar 2009)
New Revision: 13012
Modified:
branches/JBoss_Portal_AS5_Deployer/core/src/main/org/jboss/portal/core/deployment/jboss/InstanceDeploymentImpl.java
branches/JBoss_Portal_AS5_Deployer/core/src/main/org/jboss/portlet/content/ContentTypeRegistration.java
Log:
Temporary fix to get it widgets working on AS5.
Modified: branches/JBoss_Portal_AS5_Deployer/core/src/main/org/jboss/portal/core/deployment/jboss/InstanceDeploymentImpl.java
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/core/src/main/org/jboss/portal/core/deployment/jboss/InstanceDeploymentImpl.java 2009-03-10 05:40:46 UTC (rev 13011)
+++ branches/JBoss_Portal_AS5_Deployer/core/src/main/org/jboss/portal/core/deployment/jboss/InstanceDeploymentImpl.java 2009-03-10 21:08:55 UTC (rev 13012)
@@ -106,7 +106,6 @@
DuplicateInstanceException, PortletInvokerException
{
log.debug("Creating portlet instance " + instanceMD.getInstanceId());
- System.out.println("LOCAL :" + appId + " : " + instanceMD.getPortletRef());
instanceMD.setPortletRef("local." + appId + "." + instanceMD.getPortletRef());
Instance instance = instanceContainer.createDefinition(instanceMD.getInstanceId(), instanceMD.getPortletRef());
Modified: branches/JBoss_Portal_AS5_Deployer/core/src/main/org/jboss/portlet/content/ContentTypeRegistration.java
===================================================================
--- branches/JBoss_Portal_AS5_Deployer/core/src/main/org/jboss/portlet/content/ContentTypeRegistration.java 2009-03-10 05:40:46 UTC (rev 13011)
+++ branches/JBoss_Portal_AS5_Deployer/core/src/main/org/jboss/portlet/content/ContentTypeRegistration.java 2009-03-10 21:08:55 UTC (rev 13012)
@@ -132,7 +132,8 @@
dependencies.add(contentProviderRegistryON);
dependencies.add(instanceContainerON);
dependencies.add(pamfON);
- mbeanServer.invoke(scObjectName, "register", new Object[]{objectName, dependencies}, new String[]{"javax.management.ObjectName", "java.util.Collection"});
+ // TODO: the mbean appears to be already registered, figure out what changed in AS5 to make this happen
+ //mbeanServer.invoke(scObjectName, "register", new Object[]{objectName, dependencies}, new String[]{"javax.management.ObjectName", "java.util.Collection"});
// Start the mbean
mbeanServer.invoke(scObjectName, "start", new ObjectName[]{objectName}, new String[]{"javax.management.ObjectName"});
17 years, 1 month
JBoss Portal SVN: r13011 - modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/instances.
by portal-commits@lists.jboss.org
Author: mwringe
Date: 2009-03-10 01:40:46 -0400 (Tue, 10 Mar 2009)
New Revision: 13011
Modified:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/instances/InstanceMetaData.java
Log:
Add reference to resource bundle and supported locale to the instances metadata.
Fix typo.
Modified: modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/instances/InstanceMetaData.java
===================================================================
--- modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/instances/InstanceMetaData.java 2009-03-10 05:37:13 UTC (rev 13010)
+++ modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/instances/InstanceMetaData.java 2009-03-10 05:40:46 UTC (rev 13011)
@@ -23,10 +23,13 @@
package org.jboss.portal.metadata.portlet.instances;
import java.util.List;
+import java.util.Locale;
import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
+import org.jboss.portal.metadata.portal.object.adapter.LocaleAdapter;
import org.jboss.portal.metadata.portlet.common.LocalizedDescriptionMetaData;
/**
@@ -45,6 +48,10 @@
protected PortletPreferencesMetaData portletPreferences;
protected SecurityConstraintMetaData securityContraint;
+
+ protected String resourceBundle;
+
+ protected List<Locale> supportedLocales;
@XmlElement(name = "instance-id")
public void setInstanceId(String instanceId)
@@ -64,7 +71,7 @@
this.displayNames = displayNames;
}
- @XmlElement(name = "perferences")
+ @XmlElement(name = "preferences")
public void setPortletPreferences(PortletPreferencesMetaData preferences)
{
this.portletPreferences = preferences;
@@ -76,6 +83,19 @@
this.securityContraint = securityConstraint;
}
+ @XmlElement(name = "resource-bundle")
+ public void setResourceBundle(String resourceBundle)
+ {
+ this.resourceBundle = resourceBundle;
+ }
+
+ @XmlElement(name = "supported-locale")
+ @XmlJavaTypeAdapter (LocaleAdapter.class)
+ public void setSupportedLocale (List<Locale> supportedLocales)
+ {
+ this.supportedLocales = supportedLocales;
+ }
+
public String getInstanceId()
{
return instanceId;
@@ -100,5 +120,10 @@
{
return securityContraint;
}
+
+ public String getResourceBundle()
+ {
+ return resourceBundle;
+ }
}
17 years, 1 month