JBoss Portal SVN: r8789 - in branches/JBoss_Portal_Branch_2_6/core-wsrp: .settings and 1 other directory.
by portal-commits@lists.jboss.org
Author: thomas.heute(a)jboss.com
Date: 2007-10-29 06:12:00 -0400 (Mon, 29 Oct 2007)
New Revision: 8789
Removed:
branches/JBoss_Portal_Branch_2_6/core-wsrp/.settings/org.eclipse.jdt.core.prefs
Modified:
branches/JBoss_Portal_Branch_2_6/core-wsrp/.classpath
Log:
Update eclipse files
Modified: branches/JBoss_Portal_Branch_2_6/core-wsrp/.classpath
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-wsrp/.classpath 2007-10-28 22:00:11 UTC (rev 8788)
+++ branches/JBoss_Portal_Branch_2_6/core-wsrp/.classpath 2007-10-29 10:12:00 UTC (rev 8789)
@@ -1,11 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/>
<classpathentry combineaccessrules="false" kind="src" path="/wsrp"/>
<classpathentry kind="lib" path="/thirdparty/apache-myfaces/lib/myfaces-api.jar"/>
<classpathentry kind="lib" path="/thirdparty/junit/lib/junit.jar"/>
<classpathentry kind="lib" path="/thirdparty/jboss-portal/modules/common/lib/portal-common-lib.jar"/>
<classpathentry kind="lib" path="/thirdparty/jboss-portal/modules/portlet/lib/portal-portlet-lib.jar"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/registration"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/jems"/>
+ <classpathentry kind="lib" path="/thirdparty/jbossas/core-libs/lib/jboss-system.jar" sourcepath="/JBoss_AS_4.0.5/system/src/main"/>
+ <classpathentry kind="lib" path="/thirdparty/jbossas/core-libs/lib/jboss-jmx.jar" sourcepath="/JBoss_AS_4.0.5/jmx/src/main"/>
+ <classpathentry kind="lib" path="/thirdparty/jbossas/core-libs/lib/jboss-jaxrpc.jar"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="lib" path="/thirdparty/jbossas/core-libs/lib/jboss-common.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Deleted: branches/JBoss_Portal_Branch_2_6/core-wsrp/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-wsrp/.settings/org.eclipse.jdt.core.prefs 2007-10-28 22:00:11 UTC (rev 8788)
+++ branches/JBoss_Portal_Branch_2_6/core-wsrp/.settings/org.eclipse.jdt.core.prefs 2007-10-29 10:12:00 UTC (rev 8789)
@@ -1,12 +0,0 @@
-#Wed Jul 11 10:53:04 CEST 2007
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.4
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
-org.eclipse.jdt.core.compiler.source=1.3
16 years, 6 months
JBoss Portal SVN: r8788 - modules/test/trunk/unit/src/main/java/org/jboss/unit.
by portal-commits@lists.jboss.org
Author: julien(a)jboss.com
Date: 2007-10-28 18:00:11 -0400 (Sun, 28 Oct 2007)
New Revision: 8788
Modified:
modules/test/trunk/unit/src/main/java/org/jboss/unit/TestId.java
Log:
typo
Modified: modules/test/trunk/unit/src/main/java/org/jboss/unit/TestId.java
===================================================================
--- modules/test/trunk/unit/src/main/java/org/jboss/unit/TestId.java 2007-10-28 21:57:29 UTC (rev 8787)
+++ modules/test/trunk/unit/src/main/java/org/jboss/unit/TestId.java 2007-10-28 22:00:11 UTC (rev 8788)
@@ -28,7 +28,7 @@
import java.util.Collection;
/**
- * A test id made of a sequence of non null names. As the name same it uniquely identity a test in the
+ * A test id made of a sequence of non null names. As the name indicates it uniquely identity a test in the
* of a test driver.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
16 years, 6 months
JBoss Portal SVN: r8787 - modules/test/trunk/unit/src/main/java/org/jboss/unit.
by portal-commits@lists.jboss.org
Author: julien(a)jboss.com
Date: 2007-10-28 17:57:29 -0400 (Sun, 28 Oct 2007)
New Revision: 8787
Modified:
modules/test/trunk/unit/src/main/java/org/jboss/unit/Failure.java
modules/test/trunk/unit/src/main/java/org/jboss/unit/FailureType.java
modules/test/trunk/unit/src/main/java/org/jboss/unit/TestId.java
Log:
minor javadoc
Modified: modules/test/trunk/unit/src/main/java/org/jboss/unit/Failure.java
===================================================================
--- modules/test/trunk/unit/src/main/java/org/jboss/unit/Failure.java 2007-10-28 01:14:48 UTC (rev 8786)
+++ modules/test/trunk/unit/src/main/java/org/jboss/unit/Failure.java 2007-10-28 21:57:29 UTC (rev 8787)
@@ -23,7 +23,7 @@
package org.jboss.unit;
/**
- * A failure.
+ * A failure, contains the description of a failure.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @version $Revision: 1.1 $
Modified: modules/test/trunk/unit/src/main/java/org/jboss/unit/FailureType.java
===================================================================
--- modules/test/trunk/unit/src/main/java/org/jboss/unit/FailureType.java 2007-10-28 01:14:48 UTC (rev 8786)
+++ modules/test/trunk/unit/src/main/java/org/jboss/unit/FailureType.java 2007-10-28 21:57:29 UTC (rev 8787)
@@ -31,7 +31,7 @@
public enum FailureType
{
/**
- * A failure that is not expected
+ * A failure that is not expected and produced an error.
*/
ERROR,
Modified: modules/test/trunk/unit/src/main/java/org/jboss/unit/TestId.java
===================================================================
--- modules/test/trunk/unit/src/main/java/org/jboss/unit/TestId.java 2007-10-28 01:14:48 UTC (rev 8786)
+++ modules/test/trunk/unit/src/main/java/org/jboss/unit/TestId.java 2007-10-28 21:57:29 UTC (rev 8787)
@@ -28,7 +28,8 @@
import java.util.Collection;
/**
- * A test id made of a sequence of non null names.
+ * A test id made of a sequence of non null names. As the name same it uniquely identity a test in the
+ * of a test driver.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @version $Revision: 1.1 $
16 years, 6 months
JBoss Portal SVN: r8786 - in branches/JBoss_Portal_Branch_2_6/core: src/etc/jboss-aop and 125 other directories.
by portal-commits@lists.jboss.org
Author: chris.laprun(a)jboss.com
Date: 2007-10-27 21:14:48 -0400 (Sat, 27 Oct 2007)
New Revision: 8786
Modified:
branches/JBoss_Portal_Branch_2_6/core/build.bat
branches/JBoss_Portal_Branch_2_6/core/build.sh
branches/JBoss_Portal_Branch_2_6/core/build.xml
branches/JBoss_Portal_Branch_2_6/core/src/etc/jboss-aop/base-aop.xml
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/CoreConstants.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/ControlInterceptor.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/NavigationalStateInterceptor.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/PolicyEnforcementInterceptor.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/ResourceAcquisitionInterceptor.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/node/EventBroadcasterInterceptor.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/node/Navigation.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/node/PortalNodeInterceptor.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/portlet/AjaxInterceptor.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/portlet/HeaderInterceptor.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/portlet/TransactionInterceptor.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/server/LocaleInterceptor.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/server/TransactionInterceptor.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/server/UserInterceptor.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/AccessDeniedException.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/CommandRedirectionException.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/Controller.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerContext.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerException.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerInterceptor.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerRequestDispatcher.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/NoSuchResourceException.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/SecurityException.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ajax/AjaxCommandFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ajax/AjaxInterceptor.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ajax/AjaxResponseHandler.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/classic/ClassicResponseHandler.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/classic/OtherResponseHandler.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/SignOutCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/info/ActionCommandInfo.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/info/CommandInfo.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/info/ViewCommandInfo.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/AbstractCommandFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/AbstractURLFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/CommandFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/CommandFactoryDelegate.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/DelegatingCommandFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/DelegatingCommandFactoryService.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/DelegatingURLFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/DelegatingURLFactoryService.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SignOutCommandFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SignOutCommandFactoryService.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SignOutURLFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SimpleCommandFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SimpleURLFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/URLFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/URLFactoryDelegate.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/ErrorResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/RedirectionResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/SecurityErrorResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/SignOutResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/StreamContentResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/ThrowableResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/UnavailableResourceResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/AbstractResponseHandler.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/AjaxResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/CommandForward.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/HTTPResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/HandlerResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseForward.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseHandler.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseHandlerException.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseHandlerSelector.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/ControllerResponseFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/ControllerUserContext.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/InvokePortletCommandFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletActionResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletContextFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletInvocationFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletResponseHandler.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/SignOutResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/JBossApplicationMetaDataFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/jboss/ObjectDeployment.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/jboss/ObjectDeploymentFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/jboss/PortletAppDeployment.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/jboss/PortletAppDeploymentFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/event/PortalEventListenerRegistry.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/event/PortalEventListenerRegistryImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/event/PortalEventListenerService.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/event/PortalEventListenerServiceImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/hibernate/ModeUserType.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/hibernate/WindowStateUserType.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/DashboardBridge.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/SecurityBridge.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UserActivity.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UserActivityNotificationBroadcaster.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UserActivityNotificationBroadcasterMBean.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UsersActivityStatsService.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UsersActivityStatsServiceImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/service/IdentityServiceControllerImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/service/SimpleServiceJNDIBinder.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/PortalRuntimeContextImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/event/PortalEventContextImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/event/ServletEventBridge.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/navstate/NavigationalStateContextImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/AbstractPortalNodeURL.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PageURL.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PortalNodeEventContextImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PortalNodeImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PortalNodeURLFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/WindowURL.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/session/PortalSessionImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/user/UserEventBridgeTriggerInterceptor.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/mail/MailModuleImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/CustomizationManagerService.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/AbstractContent.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/ContentProviderRegistryService.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/InternalContentProvider.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/InternalContentProviderRegistry.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/generic/GenericContent.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/generic/GenericContentProviderRegistry.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/generic/InternalGenericContentProvider.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/portlet/InternalPortletContentProvider.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/portlet/PortletContent.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/AbstractInstance.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/AbstractInstanceCustomization.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/AbstractInstanceDefinition.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/InstanceContainerContext.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/InstanceContainerImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/InstanceContextImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/JBossInstanceContainerContext.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/persistent/PersistentInstanceContainerContext.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/persistent/PersistentInstanceCustomization.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/persistent/PersistentInstanceDefinition.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/persistent/PersistentRoleSecurityBinding.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/AbstractPortalObjectContainer.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/ContextImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/DashboardContext.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/ObjectNode.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/ObjectNodeSecurityConstraint.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/PageImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/PersistentPortalObjectContainer.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/PortalImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/PortalObjectIdUserType.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/PortalObjectImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/TransientPortalObjectContainer.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/WindowImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/AjaxInfoImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/CorePortletInfoFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/CorePortletInfoImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/MarkupHeaderInfoImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/PortletIconInfoImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/PortletInfoInfoImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/LocalPortletInvoker.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentConsumer.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentConsumerGroup.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentPortletState.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentPortletStateEntry.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentPortletStatePersistenceManager.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentRegistration.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/ProducerPortletInvoker.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/RegistrationStatusUserType.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/StateManagementPolicyImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/TypedStringArray.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/ValueManager.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/ProxyPreferencesMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/ServiceMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/AjaxMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/ElementMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/HeaderContentMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/JBossApplicationMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/JBossPortletMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/LinkElementMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/NamedMetaElementMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/PortletIconMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/PortletInfoMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/ScriptElementMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/CustomizationManager.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/Content.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/ContentType.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/ContentProvider.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/ContentProviderRegistry.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/handler/ContentHandler.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/handler/ContentState.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/portlet/ContentPortlet.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/DuplicateInstanceException.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/Instance.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceCommandFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceContainer.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceCustomization.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceDefinition.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstancePermission.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceSecurityInterceptor.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceURLFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InvokePortletInstanceCommandFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/NoSuchInstanceException.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/PortletInstanceResponseHandler.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/PortletInstanceCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/action/InvokePortletInstanceActionCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/action/InvokePortletInstanceRenderCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/render/RenderPortletInstanceCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/response/PortletInstanceActionResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/response/UpdatePortletInstanceResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/metadata/InstanceMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/metadata/PreferencesMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/Context.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/DefaultPortalCommandFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/DuplicatePortalObjectException.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/NoSuchPortalObjectException.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/Page.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PageContainer.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/Portal.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalContainer.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObject.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectCommandFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectContainer.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectId.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectPath.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectPermission.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectResponseHandler.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectURLFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/Window.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/ContextCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/PageCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/PortalCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/PortalObjectCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/WindowCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/ImportPageToDashboardCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/InvokePortletWindowActionCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/InvokePortletWindowRenderCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/InvokeWindowCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/MoveWindowCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/mapping/DashboardPortalObjectPathMapper.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/mapping/DefaultPortalObjectPathMapper.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/mapping/PortalObjectPathMapper.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/render/RenderPageCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/render/RenderWindowCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/MarkupResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/PortletWindowActionResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/UpdatePageResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/UpdateWindowResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/view/ViewContextCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/view/ViewPageCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/view/ViewPortalCommand.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/content/ContentRenderer.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/content/ContentRendererRegistry.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/content/WindowRendition.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/ControlConstants.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/ControlContext.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/page/DefaultPageControlPolicy.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/page/PageControlContext.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/page/PageControlPolicy.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/portal/DefaultPortalControlPolicy.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/portal/PortalControlContext.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/portal/PortalControlPolicy.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/BuildContext.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/ContentMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/ContextMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/PageMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/PortalMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/PortalObjectMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/WindowMetaData.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/navstate/PortalObjectNavigationalStateContext.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/navstate/WindowNavigationalState.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/portlet/PortalContextImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/portlet/WindowContextImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/modules/AbstractModule.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/modules/MailModule.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/modules/ModuleConstants.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/modules/ModuleException.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateChange.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateContext.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateKey.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateObjectChange.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/AjaxInfo.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/CorePortletInfo.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/MarkupHeaderInfo.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/PortletIconInfo.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/PortletInfoInfo.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/PortalJsp.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/ErrorTag.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/ErrorsTag.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/IfTag.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/IncludeTag.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/IterateTag.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/PortalLib.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/SuccessTag.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/context/AbstractContext.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/context/BuildException.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/context/ChildrenStrategy.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/context/Context.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/context/DelegateContext.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/context/NamedContext.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/theme/PageRendition.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/theme/WindowContextFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/content/portlet/PortletContentEditorPortlet.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/PortletHelper.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/catalog/CatalogPortlet.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/role/RolePortlet.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/user/UserPortlet.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/user/UserPortletConstants.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/util/ProxyValidator.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/CorePortletPreferencesTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/HttpServletRequestWrapperImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/I18nELTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/I18nOutELTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/IfTagTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/IncludeTagTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/IterateTagTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/OutELTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/PageTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/PortalBaseTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/ProxyValidatorTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/TagLibTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/Utils.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/deployment/JBossApplicationMetaDataFactoryTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/deployment/PortletInstancesMetaDataFactoryTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContent.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContentHandler.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContentProvider.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContentProviderRegistry.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/ActionContextImpl.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/InstanceContainerTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/PortletInvokerSupport.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/PortletSupport.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/ValueMapAssert.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/AbstractPortalObjectContainerTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalNodeTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectContainerTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectIdTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectPathTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectPermissionTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/portlet/RolePortletTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/portlet/UserPortletTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/state/ProducerTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/state/RegistrationPersistenceManagerTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/theme/UserThemeTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/util/ParametersTestCase.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossAPIFactory.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossActionRequest.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossActionResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossPortlet.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossPortletPreferences.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossRenderRequest.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossRenderResponse.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/content/ContentTypeRegistration.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/session/PortletSessionListener.java
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/util/Parameters.java
branches/JBoss_Portal_Branch_2_6/core/src/resources/dtd/jboss-app_2_0.dtd
branches/JBoss_Portal_Branch_2_6/core/src/resources/dtd/jboss-portlet_2_0.dtd
branches/JBoss_Portal_Branch_2_6/core/src/resources/dtd/portal-layouts_2_0.dtd
branches/JBoss_Portal_Branch_2_6/core/src/resources/dtd/portal-renderSet_2_0.dtd
branches/JBoss_Portal_Branch_2_6/core/src/resources/dtd/portal-strategies_2_0.dtd
branches/JBoss_Portal_Branch_2_6/core/src/resources/dtd/portal-themes_2_0.dtd
branches/JBoss_Portal_Branch_2_6/core/src/resources/dtd/portal_2_0.dtd
branches/JBoss_Portal_Branch_2_6/core/src/resources/dtd/portlet-instances_2_0.dtd
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/META-INF/jboss-service.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/bundles/Resource.properties
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/bundles/Resource_en.properties
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/bundles/Resource_es.properties
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/bundles/Resource_fr.properties
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/bundles/Resource_it.properties
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/config.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/data/default-object.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/instance/domain.hbm.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/instance/ehcache.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/instance/hibernate.cfg.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/portal/domain.hbm.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/portal/ehcache.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/portal/hibernate.cfg.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/portlet/domain.hbm.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/portlet/ehcache.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/portlet/hibernate.cfg.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/user/ehcache.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/user/hibernate.cfg.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/user/setup.txt
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/workflow/ehcache.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/workflow/hibernate.cfg.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/identity/identity-config.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/identity/ldap_identity-config.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/identity/profile-config.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/identity/standardidentity-config.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/login-config.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/standardjboss-portlet.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/theme/portal-layout.tld
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/dtd/jboss-app_2_6.dtd
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/dtd/jboss-portlet_2_6.dtd
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/dtd/portal-object_2_6.dtd
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/dtd/portlet-instances_2_6.dtd
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/portal-aop.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/instance/persistent-jboss-beans.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/instance/transient-jboss-beans.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/portal/persistent-jboss-beans.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/portal/transient-jboss-beans.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/state/jboss-beans.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/state/registration-persistence-manager-beans.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/Resource.properties
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/Resource_es.properties
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/Resource_fr.properties
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/Resource_it.properties
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/Resource_pt_BR.properties
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/nodesk/Modes.properties
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/nodesk/WindowStates.properties
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/phalanx/Modes.properties
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/phalanx/WindowStates.properties
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/templates/user/emailTemplate.tpl
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/templates/user/emailTemplate_fr.tpl
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jboss-app.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jboss-portlet.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jboss-web.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/catalog/index.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/catalog/sitemap.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/error/page.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/error/portal.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/header/header.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/header/tabs.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/createRole.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editListRoleMembers.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editRole.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editRoleMembers.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editUserRoles.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/menu.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIf01.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testInclude01.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testInclude02.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testInclude03.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIterate01.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIterate02.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIterate03.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testTaglib01.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testTaglib02.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/editProfile.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/editUserRoles.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/listUsers.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/login.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/menu.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/register.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/registerUser.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/registerUser_admin.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/register_ty.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/viewProfile.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/layout/portal-renderSet.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/portal-layouts.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/portal-lib.tld
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/portal-themes.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/portlet-instances.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/portlet.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/theme-basic-lib.tld
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/web.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-server-war/WEB-INF/context.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-server-war/WEB-INF/jboss-web.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-server-war/WEB-INF/web.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-server-war/error.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-server-war/login.jsp
branches/JBoss_Portal_Branch_2_6/core/src/resources/setup/portal-ds.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/setup/setup.sql
branches/JBoss_Portal_Branch_2_6/core/src/resources/test/cache/domain.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/test/cache/local.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/test/cache/replicated.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/test/datarole.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/test/datarolecreated.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/test/dataroledeleted.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/test/dataroleedited.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/test/deployment/jboss-portlet.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/test/deployment/portlet-instances.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/test/hibernate.properties
branches/JBoss_Portal_Branch_2_6/core/src/resources/test/log4j.properties
branches/JBoss_Portal_Branch_2_6/core/src/resources/test/theme.xml
Log:
Updated svn properties
Property changes on: branches/JBoss_Portal_Branch_2_6/core/build.bat
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/build.sh
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/build.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/build.xml 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/build.xml 2007-10-28 01:14:48 UTC (rev 8786)
@@ -316,7 +316,8 @@
<fileset dir="${build.lib}" includes="portal-core-lib.jar"/>
<fileset dir="${build.lib}" includes="jboss-portlet-api-lib.jar"/>
<fileset dir="${jboss.portal-format.root}/lib" includes="portal-format-lib.jar"/>
- <fileset dir="${jboss.portal/modules/common.lib}" includes="portal-common-lib.jar,portal-common-portal-lib.jar"/>
+ <fileset dir="${jboss.portal/modules/common.lib}"
+ includes="portal-common-lib.jar,portal-common-portal-lib.jar"/>
<fileset dir="${jboss.portal/modules/web.lib}" includes="portal-web-lib.jar"/>
<fileset dir="${jboss.portal/modules/portlet.lib}">
<include name="portal-portlet-lib.jar"/>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/build.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/etc/jboss-aop/base-aop.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/CoreConstants.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/CoreConstants.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/CoreConstants.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -29,24 +29,18 @@
public final class CoreConstants
{
- /**
- * Servlet constants.
- */
+ /** Servlet constants. */
public static final class Servlet
{
- /**
- * Servlet session constants.
- */
+ /** Servlet session constants. */
public static final class Session
{
/** . */
public static final String USER_FINALIZER = "jboss.portal.user_finalizer";
}
- /**
- * Servlet request constants.
- */
+ /** Servlet request constants. */
public static final class Request
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/CoreConstants.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/ControlInterceptor.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/ControlInterceptor.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/ControlInterceptor.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,19 +22,18 @@
******************************************************************************/
package org.jboss.portal.core.aspects.controller;
+import org.jboss.portal.common.invocation.InvocationException;
+import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerInterceptor;
import org.jboss.portal.core.controller.ControllerResponse;
-import org.jboss.portal.core.controller.ControllerCommand;
+import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.command.PortalCommand;
import org.jboss.portal.core.model.portal.control.portal.PortalControlContext;
import org.jboss.portal.core.model.portal.control.portal.PortalControlPolicy;
-import org.jboss.portal.core.model.portal.control.portal.DefaultPortalControlPolicy;
-import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.common.invocation.InvocationException;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ControlInterceptor extends ControllerInterceptor
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/ControlInterceptor.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/NavigationalStateInterceptor.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/NavigationalStateInterceptor.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/NavigationalStateInterceptor.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,18 +22,18 @@
******************************************************************************/
package org.jboss.portal.core.aspects.controller;
-import org.jboss.portal.core.controller.ControllerInterceptor;
+import org.jboss.portal.common.invocation.InvocationException;
import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerContext;
+import org.jboss.portal.core.controller.ControllerInterceptor;
import org.jboss.portal.core.controller.ControllerResponse;
import org.jboss.portal.core.model.portal.navstate.PortalObjectNavigationalStateContext;
-import org.jboss.portal.common.invocation.InvocationException;
/**
* Apply navigational state changes.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class NavigationalStateInterceptor extends ControllerInterceptor
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/NavigationalStateInterceptor.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,21 +22,19 @@
******************************************************************************/
package org.jboss.portal.core.aspects.controller;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Map;
-
import org.apache.log4j.Logger;
import org.jboss.portal.Mode;
import org.jboss.portal.WindowState;
import org.jboss.portal.api.PortalURL;
+import org.jboss.portal.core.aspects.controller.node.Navigation;
import org.jboss.portal.core.controller.Controller;
import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.core.controller.ControllerInterceptor;
+import org.jboss.portal.core.controller.ControllerRequestDispatcher;
import org.jboss.portal.core.controller.ControllerResponse;
-import org.jboss.portal.core.controller.ControllerRequestDispatcher;
import org.jboss.portal.core.controller.command.SignOutCommand;
+import org.jboss.portal.core.impl.api.node.PortalNodeImpl;
import org.jboss.portal.core.model.CustomizationManager;
import org.jboss.portal.core.model.instance.command.action.InvokePortletInstanceRenderCommand;
import org.jboss.portal.core.model.instance.command.render.RenderPortletInstanceCommand;
@@ -45,22 +43,20 @@
import org.jboss.portal.core.model.portal.PortalObject;
import org.jboss.portal.core.model.portal.PortalObjectContainer;
import org.jboss.portal.core.model.portal.PortalObjectId;
+import org.jboss.portal.core.model.portal.PortalObjectPath;
import org.jboss.portal.core.model.portal.PortalObjectPermission;
-import org.jboss.portal.core.model.portal.PortalObjectPath;
+import org.jboss.portal.core.model.portal.command.PageCommand;
import org.jboss.portal.core.model.portal.command.action.ImportPageToDashboardCommand;
import org.jboss.portal.core.model.portal.command.render.RenderPageCommand;
import org.jboss.portal.core.model.portal.command.view.ViewContextCommand;
import org.jboss.portal.core.model.portal.command.view.ViewPageCommand;
import org.jboss.portal.core.model.portal.command.view.ViewPortalCommand;
-import org.jboss.portal.core.model.portal.command.PageCommand;
import org.jboss.portal.core.theme.PageRendition;
-import org.jboss.portal.core.aspects.controller.node.Navigation;
-import org.jboss.portal.core.impl.api.node.PortalNodeImpl;
import org.jboss.portal.identity.User;
import org.jboss.portal.portlet.PortletParametersStateString;
import org.jboss.portal.security.PortalSecurityException;
+import org.jboss.portal.security.spi.auth.PortalAuthorizationManager;
import org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory;
-import org.jboss.portal.security.spi.auth.PortalAuthorizationManager;
import org.jboss.portal.server.config.ServerConfig;
import org.jboss.portal.server.request.URLContext;
import org.jboss.portal.server.request.URLFormat;
@@ -70,10 +66,14 @@
import org.jboss.portal.theme.page.WindowContext;
import org.jboss.portal.theme.page.WindowResult;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Map;
+
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PageCustomizerInterceptor extends ControllerInterceptor
{
@@ -95,10 +95,10 @@
/** . */
private String tabsPath;
-
+
/** . */
private String loginNamespace;
-
+
/** . */
private ServerConfig config;
@@ -107,7 +107,7 @@
/** . */
private PortalObjectContainer portalObjectContainer;
-
+
public PortalAuthorizationManagerFactory getPortalAuthorizationManagerFactory()
{
return portalAuthorizationManagerFactory;
@@ -122,7 +122,7 @@
{
return portalObjectContainer;
}
-
+
public void setPortalObjectContainer(PortalObjectContainer portalObjectContainer)
{
this.portalObjectContainer = portalObjectContainer;
@@ -194,18 +194,18 @@
Controller controller = controllerCtx.getController();
User user = controllerCtx.getUser();
rd.setAttribute("org.jboss.portal.header.USER", user);
-
+
if (user == null)
{
PortalURL portalURL = null;
-
+
String configNamespace = config.getProperty("core.login.namespace");
if (loginNamespace == null)
{
loginNamespace = configNamespace;
}
-
- if (loginNamespace != null && ! loginNamespace.toLowerCase().trim().equals("default"))
+
+ if (loginNamespace != null && !loginNamespace.toLowerCase().trim().equals("default"))
{
ViewContextCommand vcc = new ViewContextCommand(new PortalObjectId(loginNamespace, new PortalObjectPath()));
portalURL = new PortalURLImpl(vcc, controllerCtx, Boolean.TRUE, null);
@@ -309,7 +309,7 @@
rd.include();
return rd.getMarkup();
}
-
+
//
return null;
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/PolicyEnforcementInterceptor.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/PolicyEnforcementInterceptor.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/PolicyEnforcementInterceptor.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -25,18 +25,19 @@
import org.jboss.logging.Logger;
import org.jboss.portal.common.invocation.InvocationException;
-import org.jboss.portal.core.controller.*;
+import org.jboss.portal.core.controller.ControllerCommand;
+import org.jboss.portal.core.controller.ControllerInterceptor;
+import org.jboss.portal.core.controller.ControllerResponse;
import org.jboss.portal.core.controller.SecurityException;
import org.jboss.portal.core.controller.command.response.SecurityErrorResponse;
+import org.jboss.portal.security.PortalSecurityException;
import org.jboss.portal.security.spi.auth.PortalAuthorizationManager;
import org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory;
-import org.jboss.portal.security.PortalSecurityException;
/**
- * This aspect enforces security policy for all commands.
- * <p/>
- * <p>Portal resources should only be accessible to individuals that are entitled to do so. This interceptor makes sure
- * that the requested resource is available to the requesting subject, by utilizing the configured JACC Policy.</p>
+ * This aspect enforces security policy for all commands. <p/> <p>Portal resources should only be accessible to
+ * individuals that are entitled to do so. This interceptor makes sure that the requested resource is available to the
+ * requesting subject, by utilizing the configured JACC Policy.</p>
*
* @author <a href="mailto:mholzner@novell.com>Martin Holzner</a>
* @author julien(a)jboss.org
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/PolicyEnforcementInterceptor.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/ResourceAcquisitionInterceptor.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/ResourceAcquisitionInterceptor.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/ResourceAcquisitionInterceptor.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,16 +22,16 @@
******************************************************************************/
package org.jboss.portal.core.aspects.controller;
+import org.jboss.portal.common.invocation.InvocationException;
+import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerInterceptor;
import org.jboss.portal.core.controller.ControllerResponse;
-import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.NoSuchResourceException;
import org.jboss.portal.core.controller.command.response.UnavailableResourceResponse;
-import org.jboss.portal.common.invocation.InvocationException;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ResourceAcquisitionInterceptor extends ControllerInterceptor
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/ResourceAcquisitionInterceptor.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/node/EventBroadcasterInterceptor.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/node/EventBroadcasterInterceptor.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/node/EventBroadcasterInterceptor.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -25,30 +25,30 @@
import org.apache.log4j.Logger;
import org.jboss.portal.Mode;
import org.jboss.portal.WindowState;
+import org.jboss.portal.api.PortalRuntimeContext;
import org.jboss.portal.api.node.PortalNode;
+import org.jboss.portal.api.node.event.PageRenderEvent;
import org.jboss.portal.api.node.event.PortalNodeEvent;
import org.jboss.portal.api.node.event.WindowActionEvent;
import org.jboss.portal.api.node.event.WindowEvent;
import org.jboss.portal.api.node.event.WindowNavigationEvent;
import org.jboss.portal.api.node.event.WindowRenderEvent;
-import org.jboss.portal.api.node.event.PageRenderEvent;
-import org.jboss.portal.api.PortalRuntimeContext;
import org.jboss.portal.common.invocation.InvocationException;
import org.jboss.portal.common.util.LazyMap;
import org.jboss.portal.core.controller.CommandRedirectionException;
import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerInterceptor;
import org.jboss.portal.core.controller.ControllerResponse;
+import org.jboss.portal.core.event.PortalEventListenerRegistry;
+import org.jboss.portal.core.impl.api.node.PortalNodeEventContextImpl;
+import org.jboss.portal.core.impl.api.node.PortalNodeImpl;
+import org.jboss.portal.core.model.portal.PortalObjectId;
+import org.jboss.portal.core.model.portal.command.WindowCommand;
import org.jboss.portal.core.model.portal.command.action.InvokePortletWindowActionCommand;
import org.jboss.portal.core.model.portal.command.action.InvokePortletWindowRenderCommand;
-import org.jboss.portal.core.model.portal.command.WindowCommand;
import org.jboss.portal.core.model.portal.command.render.RenderPageCommand;
import org.jboss.portal.core.model.portal.command.render.RenderWindowCommand;
-import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.navstate.WindowNavigationalState;
-import org.jboss.portal.core.event.PortalEventListenerRegistry;
-import org.jboss.portal.core.impl.api.node.PortalNodeImpl;
-import org.jboss.portal.core.impl.api.node.PortalNodeEventContextImpl;
import org.jboss.portal.core.navstate.NavigationalStateKey;
import org.jboss.portal.portlet.PortletParameters;
import org.jboss.portal.portlet.PortletParametersStateString;
@@ -124,7 +124,6 @@
}
/**
- *
* @param event
* @return
*/
@@ -302,7 +301,6 @@
}
/**
- *
* @param map
* @return
*/
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/node/EventBroadcasterInterceptor.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/node/Navigation.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/node/Navigation.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/node/Navigation.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,12 +22,12 @@
******************************************************************************/
package org.jboss.portal.core.aspects.controller.node;
+import org.jboss.portal.api.PortalRuntimeContext;
import org.jboss.portal.core.impl.api.node.PortalNodeImpl;
-import org.jboss.portal.api.PortalRuntimeContext;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 3201 $
+ * @version $Revision$
*/
public class Navigation
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/node/Navigation.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/node/PortalNodeInterceptor.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/node/PortalNodeInterceptor.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/node/PortalNodeInterceptor.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,14 +26,14 @@
import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerInterceptor;
import org.jboss.portal.core.controller.ControllerResponse;
-import org.jboss.portal.core.model.portal.command.render.RenderPageCommand;
-import org.jboss.portal.core.model.portal.command.WindowCommand;
+import org.jboss.portal.core.impl.api.PortalRuntimeContextImpl;
+import org.jboss.portal.core.impl.api.node.PortalNodeImpl;
import org.jboss.portal.core.model.portal.Page;
import org.jboss.portal.core.model.portal.Window;
-import org.jboss.portal.core.impl.api.node.PortalNodeImpl;
-import org.jboss.portal.core.impl.api.PortalRuntimeContextImpl;
+import org.jboss.portal.core.model.portal.command.WindowCommand;
+import org.jboss.portal.core.model.portal.command.render.RenderPageCommand;
+import org.jboss.portal.security.spi.auth.PortalAuthorizationManager;
import org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory;
-import org.jboss.portal.security.spi.auth.PortalAuthorizationManager;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/controller/node/PortalNodeInterceptor.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/portlet/AjaxInterceptor.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/portlet/AjaxInterceptor.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/portlet/AjaxInterceptor.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,23 +22,23 @@
******************************************************************************/
package org.jboss.portal.core.aspects.portlet;
+import org.jboss.portal.common.invocation.InvocationException;
+import org.jboss.portal.core.portlet.info.AjaxInfo;
+import org.jboss.portal.core.portlet.info.CorePortletInfo;
+import org.jboss.portal.portlet.container.PortletContainer;
+import org.jboss.portal.portlet.container.PortletContainerInvoker;
import org.jboss.portal.portlet.invocation.PortletInterceptor;
import org.jboss.portal.portlet.invocation.PortletInvocation;
+import org.jboss.portal.portlet.invocation.response.FragmentResponse;
import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
-import org.jboss.portal.portlet.invocation.response.FragmentResponse;
-import org.jboss.portal.portlet.container.PortletContainerInvoker;
-import org.jboss.portal.portlet.container.PortletContainer;
-import org.jboss.portal.common.invocation.InvocationException;
-import org.jboss.portal.core.portlet.info.CorePortletInfo;
-import org.jboss.portal.core.portlet.info.AjaxInfo;
/**
* Look at the portlet ajax meta data.
- *
+ * <p/>
* Improve later when we will have the structure to build real portlet runtime meta information.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class AjaxInterceptor extends PortletInterceptor
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/portlet/AjaxInterceptor.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/portlet/HeaderInterceptor.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/portlet/TransactionInterceptor.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/portlet/TransactionInterceptor.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/portlet/TransactionInterceptor.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,11 +24,11 @@
import org.jboss.portal.common.invocation.InvocationException;
import org.jboss.portal.common.transaction.Transactions;
+import org.jboss.portal.core.portlet.info.CorePortletInfo;
+import org.jboss.portal.portlet.container.PortletContainer;
+import org.jboss.portal.portlet.container.PortletContainerInvoker;
import org.jboss.portal.portlet.invocation.PortletInterceptor;
import org.jboss.portal.portlet.invocation.PortletInvocation;
-import org.jboss.portal.portlet.container.PortletContainerInvoker;
-import org.jboss.portal.portlet.container.PortletContainer;
-import org.jboss.portal.core.portlet.info.CorePortletInfo;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/portlet/TransactionInterceptor.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/server/LocaleInterceptor.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/server/LocaleInterceptor.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/server/LocaleInterceptor.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,13 +22,13 @@
******************************************************************************/
package org.jboss.portal.core.aspects.server;
+import org.jboss.portal.common.i18n.LocaleFormat;
import org.jboss.portal.common.invocation.InvocationException;
-import org.jboss.portal.common.i18n.LocaleFormat;
import org.jboss.portal.common.util.ConversionException;
+import org.jboss.portal.identity.User;
import org.jboss.portal.server.ServerInterceptor;
import org.jboss.portal.server.ServerInvocation;
import org.jboss.portal.server.ServerRequest;
-import org.jboss.portal.identity.User;
import java.util.ArrayList;
import java.util.List;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/server/LocaleInterceptor.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/server/TransactionInterceptor.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/server/UserInterceptor.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/server/UserInterceptor.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/server/UserInterceptor.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,8 +23,8 @@
package org.jboss.portal.core.aspects.server;
import org.jboss.logging.Logger;
-import org.jboss.portal.common.invocation.InvocationException;
import org.jboss.portal.common.invocation.AttributeResolver;
+import org.jboss.portal.common.invocation.InvocationException;
import org.jboss.portal.core.CoreConstants;
import org.jboss.portal.identity.CachedUserImpl;
import org.jboss.portal.identity.NoSuchUserException;
@@ -44,8 +44,8 @@
import java.io.Serializable;
import java.security.Principal;
import java.util.Date;
-import java.util.Map;
import java.util.HashMap;
+import java.util.Map;
/**
* The interceptor is responsible for managing the user identity lifecycle based on the principal name returned by the
@@ -132,7 +132,6 @@
User user = null;
Map profile = null;
-
// Fetch user if we can
if (userPrincipal != null)
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/aspects/server/UserInterceptor.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/AccessDeniedException.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/CommandRedirectionException.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/CommandRedirectionException.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/CommandRedirectionException.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,7 +24,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class CommandRedirectionException extends ControllerException
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/CommandRedirectionException.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/Controller.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/Controller.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/Controller.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,29 +22,28 @@
******************************************************************************/
package org.jboss.portal.core.controller;
-import org.jboss.portal.theme.PageService;
+import org.jboss.portal.common.invocation.InterceptorStackFactory;
import org.jboss.portal.core.controller.command.mapper.CommandFactory;
import org.jboss.portal.core.controller.command.mapper.URLFactory;
import org.jboss.portal.core.controller.command.response.ErrorResponse;
+import org.jboss.portal.core.controller.handler.AjaxResponse;
+import org.jboss.portal.core.controller.handler.CommandForward;
+import org.jboss.portal.core.controller.handler.HTTPResponse;
import org.jboss.portal.core.controller.handler.HandlerResponse;
import org.jboss.portal.core.controller.handler.ResponseForward;
-import org.jboss.portal.core.controller.handler.HTTPResponse;
-import org.jboss.portal.core.controller.handler.CommandForward;
import org.jboss.portal.core.controller.handler.ResponseHandler;
-import org.jboss.portal.core.controller.handler.AjaxResponse;
import org.jboss.portal.core.controller.handler.ResponseHandlerException;
-import org.jboss.portal.core.model.portal.control.page.PageControlPolicy;
+import org.jboss.portal.core.model.CustomizationManager;
+import org.jboss.portal.core.model.instance.InstanceContainer;
import org.jboss.portal.core.model.portal.PortalObjectContainer;
import org.jboss.portal.core.model.portal.content.ContentRendererRegistry;
-import org.jboss.portal.core.model.instance.InstanceContainer;
-import org.jboss.portal.core.model.CustomizationManager;
-import org.jboss.portal.common.invocation.InterceptorStackFactory;
-import org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory;
+import org.jboss.portal.core.model.portal.control.page.PageControlPolicy;
import org.jboss.portal.jems.as.system.AbstractJBossService;
+import org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory;
import org.jboss.portal.server.RequestController;
-import org.jboss.portal.server.ServerInvocation;
import org.jboss.portal.server.ServerException;
-import org.jboss.portal.web.spi.ServletContainerContext;
+import org.jboss.portal.server.ServerInvocation;
+import org.jboss.portal.theme.PageService;
import javax.servlet.ServletException;
import java.io.IOException;
@@ -52,7 +51,7 @@
/**
* @author <a href="mailto:mholzner@novell.com">Martin Holzner</a>
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class Controller extends AbstractJBossService implements RequestController
{
@@ -222,8 +221,9 @@
* Handle a command which means it executes the command and reacts upon the response created by the command.
*
* @param controllerContext the controller context
- * @param command the command
+ * @param command the command
* @throws org.jboss.portal.server.ServerException
+ *
*/
protected void processCommand(ControllerContext controllerContext, ControllerCommand command) throws ServerException
{
@@ -311,9 +311,7 @@
}
}
- /**
- * All http responses in the stack should be handled here.
- */
+ /** All http responses in the stack should be handled here. */
protected void sendResponse(ControllerContext ctx, HTTPResponse resp)
{
try
@@ -330,9 +328,7 @@
}
}
- /**
- * All http responses in the stack should be handled here.
- */
+ /** All http responses in the stack should be handled here. */
protected void sendResponse(ControllerContext ctx, AjaxResponse resp)
{
try
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/Controller.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -147,15 +147,15 @@
{
if (e instanceof InvocationException)
{
- throw(InvocationException)e;
+ throw (InvocationException)e;
}
if (e instanceof ControllerException)
{
- throw(ControllerException)e;
+ throw (ControllerException)e;
}
if (e instanceof RuntimeException)
{
- throw(RuntimeException)e;
+ throw (RuntimeException)e;
}
throw new ControllerException(e);
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerContext.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerContext.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerContext.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -25,21 +25,21 @@
import org.jboss.portal.common.invocation.AbstractInvocationContext;
import org.jboss.portal.common.invocation.InterceptorStack;
import org.jboss.portal.common.invocation.InvocationException;
+import org.jboss.portal.common.servlet.BufferingRequestWrapper;
import org.jboss.portal.common.servlet.BufferingResponseWrapper;
-import org.jboss.portal.common.servlet.BufferingRequestWrapper;
+import org.jboss.portal.core.aspects.server.UserInterceptor;
+import org.jboss.portal.core.model.portal.navstate.PortalObjectNavigationalStateContext;
+import org.jboss.portal.identity.User;
import org.jboss.portal.server.ServerInvocation;
+import org.jboss.portal.server.ServerInvocationContext;
import org.jboss.portal.server.ServerURL;
-import org.jboss.portal.server.ServerInvocationContext;
import org.jboss.portal.server.request.URLContext;
import org.jboss.portal.server.request.URLFormat;
-import org.jboss.portal.identity.User;
-import org.jboss.portal.core.aspects.server.UserInterceptor;
-import org.jboss.portal.core.model.portal.navstate.PortalObjectNavigationalStateContext;
import org.jboss.portal.web.ServletContainer;
+import javax.servlet.RequestDispatcher;
+import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
-import javax.servlet.ServletContext;
-import javax.servlet.RequestDispatcher;
import java.util.Map;
/**
@@ -161,9 +161,9 @@
/**
* Render the command as an URL or return null if it is not possible.
*
- * @param cmd the command to render
+ * @param cmd the command to render
* @param urlContext the url context
- * @param urlFormat the url format
+ * @param urlFormat the url format
* @return the URL as a string or null
*/
public String renderURL(ControllerCommand cmd, URLContext urlContext, URLFormat urlFormat)
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerContext.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerException.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerInterceptor.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerRequestDispatcher.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerRequestDispatcher.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerRequestDispatcher.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,8 +22,8 @@
******************************************************************************/
package org.jboss.portal.core.controller;
+import org.jboss.portal.common.servlet.BufferingRequestWrapper;
import org.jboss.portal.common.servlet.BufferingResponseWrapper;
-import org.jboss.portal.common.servlet.BufferingRequestWrapper;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
@@ -31,7 +31,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ControllerRequestDispatcher
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerRequestDispatcher.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,7 +26,7 @@
* Base class for responses from the controller after the execution of a controller command.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public abstract class ControllerResponse
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ControllerResponse.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/NoSuchResourceException.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/SecurityException.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ajax/AjaxCommandFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ajax/AjaxCommandFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ajax/AjaxCommandFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,9 +22,9 @@
******************************************************************************/
package org.jboss.portal.core.controller.ajax;
-import org.jboss.portal.core.controller.command.mapper.AbstractCommandFactory;
import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerContext;
+import org.jboss.portal.core.controller.command.mapper.AbstractCommandFactory;
import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.PortalObjectPath;
import org.jboss.portal.core.model.portal.command.action.MoveWindowCommand;
@@ -34,7 +34,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class AjaxCommandFactory extends AbstractCommandFactory
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ajax/AjaxCommandFactory.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ajax/AjaxInterceptor.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ajax/AjaxInterceptor.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ajax/AjaxInterceptor.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,24 +24,22 @@
import org.jboss.portal.common.invocation.InvocationException;
import org.jboss.portal.core.controller.ControllerCommand;
-import org.jboss.portal.core.controller.ControllerInterceptor;
import org.jboss.portal.core.controller.ControllerContext;
+import org.jboss.portal.core.controller.ControllerInterceptor;
import org.jboss.portal.core.controller.ControllerResponse;
-import org.jboss.portal.core.model.portal.command.render.RenderPageCommand;
import org.jboss.portal.core.model.portal.navstate.PortalObjectNavigationalStateContext;
import org.jboss.portal.core.theme.PageRendition;
-import org.jboss.portal.theme.impl.render.dynamic.DynaConstants;
-import org.jboss.portal.theme.impl.render.dynamic.DynaRenderOptions;
-import org.jboss.portal.server.ServerURL;
import org.jboss.portal.server.AbstractServerURL;
import org.jboss.portal.server.ServerInvocationContext;
+import org.jboss.portal.server.ServerURL;
import org.jboss.portal.server.request.URLFormat;
+import org.jboss.portal.theme.impl.render.dynamic.DynaConstants;
import java.util.Map;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class AjaxInterceptor extends ControllerInterceptor
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ajax/AjaxInterceptor.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ajax/AjaxResponseHandler.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ajax/AjaxResponseHandler.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ajax/AjaxResponseHandler.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,65 +22,65 @@
******************************************************************************/
package org.jboss.portal.core.controller.ajax;
-import org.jboss.portal.core.controller.handler.ResponseHandler;
-import org.jboss.portal.core.controller.handler.HandlerResponse;
-import org.jboss.portal.core.controller.handler.AjaxResponse;
+import org.apache.log4j.Logger;
+import org.jboss.portal.Mode;
+import org.jboss.portal.WindowState;
+import org.jboss.portal.common.util.MarkupInfo;
+import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerContext;
-import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerResponse;
+import org.jboss.portal.core.controller.handler.AjaxResponse;
+import org.jboss.portal.core.controller.handler.CommandForward;
+import org.jboss.portal.core.controller.handler.HandlerResponse;
+import org.jboss.portal.core.controller.handler.ResponseHandler;
import org.jboss.portal.core.controller.handler.ResponseHandlerException;
-import org.jboss.portal.core.controller.handler.CommandForward;
+import org.jboss.portal.core.model.portal.Page;
+import org.jboss.portal.core.model.portal.PortalObject;
+import org.jboss.portal.core.model.portal.PortalObjectContainer;
+import org.jboss.portal.core.model.portal.PortalObjectId;
+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.render.RenderPageCommand;
+import org.jboss.portal.core.model.portal.command.render.RenderWindowCommand;
+import org.jboss.portal.core.model.portal.command.response.MarkupResponse;
import org.jboss.portal.core.model.portal.command.response.PortletWindowActionResponse;
+import org.jboss.portal.core.model.portal.command.response.UpdatePageResponse;
import org.jboss.portal.core.model.portal.command.response.UpdateWindowResponse;
-import org.jboss.portal.core.model.portal.command.response.UpdatePageResponse;
-import org.jboss.portal.core.model.portal.command.response.MarkupResponse;
-import org.jboss.portal.core.model.portal.command.render.RenderPageCommand;
-import org.jboss.portal.core.model.portal.command.render.RenderWindowCommand;
import org.jboss.portal.core.model.portal.command.view.ViewPageCommand;
-import org.jboss.portal.core.model.portal.command.action.InvokePortletWindowRenderCommand;
-import org.jboss.portal.core.model.portal.Window;
-import org.jboss.portal.core.model.portal.Page;
-import org.jboss.portal.core.model.portal.PortalObject;
-import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.core.model.portal.PortalObjectContainer;
import org.jboss.portal.core.model.portal.content.WindowRendition;
import org.jboss.portal.core.model.portal.navstate.PortalObjectNavigationalStateContext;
import org.jboss.portal.core.model.portal.navstate.WindowNavigationalState;
import org.jboss.portal.core.navstate.NavigationalStateChange;
+import org.jboss.portal.core.navstate.NavigationalStateKey;
import org.jboss.portal.core.navstate.NavigationalStateObjectChange;
-import org.jboss.portal.core.navstate.NavigationalStateKey;
import org.jboss.portal.core.theme.WindowContextFactory;
+import org.jboss.portal.portlet.StateString;
import org.jboss.portal.server.ServerInvocation;
-import org.jboss.portal.portlet.StateString;
-import org.jboss.portal.WindowState;
-import org.jboss.portal.Mode;
-import org.jboss.portal.web.ServletContextDispatcher;
-import org.jboss.portal.common.util.MarkupInfo;
+import org.jboss.portal.theme.LayoutService;
+import org.jboss.portal.theme.PageService;
+import org.jboss.portal.theme.PortalLayout;
import org.jboss.portal.theme.impl.render.dynamic.response.UpdatePageLocationResponse;
import org.jboss.portal.theme.impl.render.dynamic.response.UpdatePageStateResponse;
-import org.jboss.portal.theme.LayoutService;
-import org.jboss.portal.theme.PortalLayout;
-import org.jboss.portal.theme.PageService;
+import org.jboss.portal.theme.page.PageResult;
+import org.jboss.portal.theme.page.Region;
+import org.jboss.portal.theme.page.WindowContext;
import org.jboss.portal.theme.render.RendererContext;
import org.jboss.portal.theme.render.ThemeContext;
-import org.jboss.portal.theme.page.PageResult;
-import org.jboss.portal.theme.page.WindowContext;
-import org.jboss.portal.theme.page.Region;
-import org.apache.log4j.Logger;
+import org.jboss.portal.web.ServletContextDispatcher;
import java.io.StringWriter;
-import java.util.Set;
+import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
-import java.util.ArrayList;
+import java.util.Set;
/**
* todo:
- *
+ * <p/>
* 1/ interpret more responses types
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class AjaxResponseHandler implements ResponseHandler
{
@@ -154,7 +154,7 @@
StateString contentState = pwr.getContentState();
WindowState windowState = pwr.getWindowState();
Mode mode = pwr.getMode();
- ControllerCommand renderCmd = new InvokePortletWindowRenderCommand(
+ ControllerCommand renderCmd = new InvokePortletWindowRenderCommand(
pwr.getWindowId(),
mode,
windowState,
@@ -194,7 +194,7 @@
boolean fullRefresh = false;
//
- for (Iterator i = ctx.getChanges();i.hasNext();)
+ for (Iterator i = ctx.getChanges(); i.hasNext();)
{
NavigationalStateChange change = (NavigationalStateChange)i.next();
@@ -254,7 +254,7 @@
if (!fullRefresh)
{
ArrayList refreshedWindows = new ArrayList();
- for (Iterator i = page.getChildren(PortalObject.WINDOW_MASK).iterator();i.hasNext();)
+ for (Iterator i = page.getChildren(PortalObject.WINDOW_MASK).iterator(); i.hasNext();)
{
PortalObject child = (PortalObject)i.next();
PortalObjectId childId = child.getId();
@@ -273,7 +273,7 @@
// Call to the theme framework
PageResult res = new PageResult(page.getName(), page.getProperties());
-
+
//
ServerInvocation invocation = controllerContext.getServerInvocation();
@@ -281,7 +281,7 @@
WindowContextFactory wcf = new WindowContextFactory(controllerContext);
//
- for (Iterator i = refreshedWindows.iterator();i.hasNext() && !fullRefresh;)
+ for (Iterator i = refreshedWindows.iterator(); i.hasNext() && !fullRefresh;)
{
try
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/ajax/AjaxResponseHandler.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/classic/ClassicResponseHandler.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/classic/ClassicResponseHandler.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/classic/ClassicResponseHandler.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,25 +22,25 @@
******************************************************************************/
package org.jboss.portal.core.controller.classic;
-import org.jboss.portal.server.request.URLContext;
-import org.jboss.portal.core.controller.command.info.CommandInfo;
-import org.jboss.portal.core.controller.command.info.ActionCommandInfo;
import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerContext;
-import org.jboss.portal.core.controller.handler.ResponseHandlerException;
import org.jboss.portal.core.controller.ControllerResponse;
-import org.jboss.portal.core.controller.portlet.PortletResponseHandler;
+import org.jboss.portal.core.controller.command.info.ActionCommandInfo;
+import org.jboss.portal.core.controller.command.info.CommandInfo;
import org.jboss.portal.core.controller.handler.AbstractResponseHandler;
+import org.jboss.portal.core.controller.handler.CommandForward;
import org.jboss.portal.core.controller.handler.HTTPResponse;
import org.jboss.portal.core.controller.handler.HandlerResponse;
import org.jboss.portal.core.controller.handler.ResponseHandler;
-import org.jboss.portal.core.controller.handler.CommandForward;
+import org.jboss.portal.core.controller.handler.ResponseHandlerException;
+import org.jboss.portal.core.controller.portlet.PortletResponseHandler;
+import org.jboss.portal.core.model.instance.PortletInstanceResponseHandler;
import org.jboss.portal.core.model.portal.PortalObjectResponseHandler;
-import org.jboss.portal.core.model.instance.PortletInstanceResponseHandler;
+import org.jboss.portal.server.request.URLContext;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ClassicResponseHandler extends AbstractResponseHandler
{
@@ -73,7 +73,7 @@
ControllerCommand command,
ControllerResponse commandResponse) throws ResponseHandlerException
{
- for (int i = 0;i < handlers.length;i++)
+ for (int i = 0; i < handlers.length; i++)
{
ResponseHandler handler = handlers[i];
HandlerResponse handlerResponse = handler.processCommandResponse(controllerContext, command, commandResponse);
@@ -89,19 +89,19 @@
// Unhardcode this
private ResponseHandler[] handlers = new ResponseHandler[]
- {
- new PortletInstanceResponseHandler(),
- new PortalObjectResponseHandler(),
- new PortletResponseHandler(),
- new OtherResponseHandler()
- };
+ {
+ new PortletInstanceResponseHandler(),
+ new PortalObjectResponseHandler(),
+ new PortletResponseHandler(),
+ new OtherResponseHandler()
+ };
/**
* Return true if the execution of the next command requires a redirect.
*
- * @param currentCmd the current command which has been executed
+ * @param currentCmd the current command which has been executed
* @param currentURLCtx the request URL context
- * @param forward the forward
+ * @param forward the forward
* @return
*/
public boolean requiresRedirect(
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/classic/ClassicResponseHandler.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/classic/OtherResponseHandler.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/classic/OtherResponseHandler.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/classic/OtherResponseHandler.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,39 +22,39 @@
******************************************************************************/
package org.jboss.portal.core.controller.classic;
-import org.jboss.portal.core.controller.handler.ResponseHandler;
-import org.jboss.portal.core.controller.handler.HandlerResponse;
-import org.jboss.portal.core.controller.handler.ResponseHandlerException;
-import org.jboss.portal.core.controller.handler.HTTPResponse;
+import org.apache.log4j.Logger;
+import org.jboss.portal.common.util.MarkupInfo;
+import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerContext;
-import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerResponse;
+import org.jboss.portal.core.controller.command.response.ErrorResponse;
import org.jboss.portal.core.controller.command.response.RedirectionResponse;
+import org.jboss.portal.core.controller.command.response.SecurityErrorResponse;
import org.jboss.portal.core.controller.command.response.SignOutResponse;
import org.jboss.portal.core.controller.command.response.StreamContentResponse;
-import org.jboss.portal.core.controller.command.response.ErrorResponse;
import org.jboss.portal.core.controller.command.response.UnavailableResourceResponse;
-import org.jboss.portal.core.controller.command.response.SecurityErrorResponse;
-import org.jboss.portal.core.theme.PageRendition;
+import org.jboss.portal.core.controller.handler.HTTPResponse;
+import org.jboss.portal.core.controller.handler.HandlerResponse;
+import org.jboss.portal.core.controller.handler.ResponseHandler;
+import org.jboss.portal.core.controller.handler.ResponseHandlerException;
+import org.jboss.portal.core.model.portal.Portal;
import org.jboss.portal.core.model.portal.PortalObjectContainer;
-import org.jboss.portal.core.model.portal.Portal;
import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.PortalObjectPath;
import org.jboss.portal.core.model.portal.command.view.ViewPageCommand;
+import org.jboss.portal.core.theme.PageRendition;
import org.jboss.portal.server.ServerInvocation;
import org.jboss.portal.server.ServerInvocationContext;
import org.jboss.portal.server.ServerURL;
import org.jboss.portal.server.request.URLContext;
import org.jboss.portal.web.ServletContextDispatcher;
-import org.jboss.portal.common.util.MarkupInfo;
-import org.apache.log4j.Logger;
import javax.servlet.ServletException;
import java.io.IOException;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class OtherResponseHandler implements ResponseHandler
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/classic/OtherResponseHandler.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/SignOutCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/SignOutCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/SignOutCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -33,7 +33,7 @@
* A global signout.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class SignOutCommand extends ControllerCommand
{
@@ -43,7 +43,7 @@
/** . */
private String location;
-
+
public SignOutCommand()
{
this(null);
@@ -58,7 +58,7 @@
{
return info;
}
-
+
public String getLocation()
{
return location;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/SignOutCommand.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/info/ActionCommandInfo.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/info/ActionCommandInfo.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/info/ActionCommandInfo.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,7 +24,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ActionCommandInfo extends CommandInfo
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/info/ActionCommandInfo.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/info/CommandInfo.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/info/ViewCommandInfo.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/info/ViewCommandInfo.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/info/ViewCommandInfo.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,7 +24,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ViewCommandInfo extends CommandInfo
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/info/ViewCommandInfo.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/AbstractCommandFactory.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/AbstractURLFactory.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/CommandFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/CommandFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/CommandFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -39,10 +39,10 @@
* Create a command.
*
* @param controllerContext the controller context
- * @param invocation the server invocation
- * @param host the host
- * @param contextPath the context path
- * @param requestPath the request path @return the command or null if no command is recognized
+ * @param invocation the server invocation
+ * @param host the host
+ * @param contextPath the context path
+ * @param requestPath the request path @return the command or null if no command is recognized
*/
ControllerCommand doMapping(
ControllerContext controllerContext,
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/CommandFactory.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/CommandFactoryDelegate.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/DelegatingCommandFactory.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/DelegatingCommandFactoryService.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/DelegatingURLFactory.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/DelegatingURLFactoryService.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/DelegatingURLFactoryService.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/DelegatingURLFactoryService.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -44,12 +44,12 @@
public URLFactory getNextFactory()
{
- return nextFactory;
+ return nextFactory;
}
public void setNextFactory(URLFactory nextFactory)
{
- this.nextFactory = nextFactory;
+ this.nextFactory = nextFactory;
}
public ServerURL doMapping(ControllerContext controllerContext, ServerInvocation invocation, ControllerCommand cmd)
@@ -62,7 +62,7 @@
//
if (delegates != null)
{
- for (int i = 0;i < delegates.size();i++)
+ for (int i = 0; i < delegates.size(); i++)
{
URLFactory delegate = (URLFactory)delegates.get(i);
ServerURL url = delegate.doMapping(controllerContext, invocation, cmd);
@@ -76,7 +76,7 @@
//
if (nextFactory != null)
{
- return nextFactory.doMapping(controllerContext, invocation, cmd);
+ return nextFactory.doMapping(controllerContext, invocation, cmd);
}
//
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/DelegatingURLFactoryService.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SignOutCommandFactory.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SignOutCommandFactoryService.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SignOutCommandFactoryService.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SignOutCommandFactoryService.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,15 +22,15 @@
******************************************************************************/
package org.jboss.portal.core.controller.command.mapper;
-import java.io.UnsupportedEncodingException;
-import java.net.URLDecoder;
-
import org.jboss.portal.common.util.ParameterMap;
import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.core.controller.command.SignOutCommand;
import org.jboss.portal.server.ServerInvocation;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+
/**
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
* @version $Revision$
@@ -39,7 +39,7 @@
{
public ControllerCommand doMapping(ControllerContext controllerContext, ServerInvocation invocation, String host,
- String contextPath, String requestPath)
+ String contextPath, String requestPath)
{
String location = null;
ParameterMap parameterMap = controllerContext.getServerInvocation().getServerContext().getQueryParameterMap();
@@ -49,7 +49,7 @@
{
if (parameterMap.get("location") != null)
{
- location = URLDecoder.decode(((String[]) parameterMap.get("location"))[0], "UTF-8");
+ location = URLDecoder.decode(((String[])parameterMap.get("location"))[0], "UTF-8");
}
}
catch (UnsupportedEncodingException e)
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SignOutCommandFactoryService.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SignOutURLFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SignOutURLFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SignOutURLFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,9 +22,6 @@
******************************************************************************/
package org.jboss.portal.core.controller.command.mapper;
-import java.io.UnsupportedEncodingException;
-import java.net.URLEncoder;
-
import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.core.controller.command.SignOutCommand;
@@ -32,6 +29,9 @@
import org.jboss.portal.server.ServerInvocation;
import org.jboss.portal.server.ServerURL;
+import java.io.UnsupportedEncodingException;
+import java.net.URLEncoder;
+
/**
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
* @version $Revision$
@@ -50,8 +50,8 @@
}
if (cmd instanceof SignOutCommand)
{
- SignOutCommand signOutCommand = (SignOutCommand) cmd;
-
+ SignOutCommand signOutCommand = (SignOutCommand)cmd;
+
//
AbstractServerURL asu = new AbstractServerURL();
asu.setPortalRequestPath(path);
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SignOutURLFactory.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SimpleCommandFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SimpleCommandFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SimpleCommandFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -28,7 +28,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class SimpleCommandFactory extends AbstractCommandFactory
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SimpleCommandFactory.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SimpleURLFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SimpleURLFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SimpleURLFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -30,7 +30,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class SimpleURLFactory extends URLFactoryDelegate
{
@@ -68,7 +68,7 @@
throw new IllegalArgumentException("No null cmd accepted");
}
String className = cmd.getClass().getName();
- for (int i = 0;i < classNames.length;i++)
+ for (int i = 0; i < classNames.length; i++)
{
if (className.equals(classNames[i]))
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/SimpleURLFactory.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/URLFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/URLFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/URLFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -37,8 +37,9 @@
* Create an url for the command.
*
* @param controllerContext
- * @param invocation the invocation
- * @param cmd the command to encode @return the server url or null if this mapper cannot peform this operation
+ * @param invocation the invocation
+ * @param cmd the command to encode @return the server url or null if this mapper cannot peform this
+ * operation
*/
ServerURL doMapping(
ControllerContext controllerContext,
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/URLFactory.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/mapper/URLFactoryDelegate.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/ErrorResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/ErrorResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/ErrorResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,7 +26,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ErrorResponse extends ControllerResponse
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/ErrorResponse.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/RedirectionResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/RedirectionResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/RedirectionResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,7 +26,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class RedirectionResponse extends ControllerResponse
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/RedirectionResponse.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/SecurityErrorResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/SecurityErrorResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/SecurityErrorResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,7 +24,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class SecurityErrorResponse extends ErrorResponse
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/SecurityErrorResponse.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/SignOutResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/SignOutResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/SignOutResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,7 +26,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class SignOutResponse extends ControllerResponse
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/SignOutResponse.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/StreamContentResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/StreamContentResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/StreamContentResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -28,7 +28,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class StreamContentResponse extends ControllerResponse
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/StreamContentResponse.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/ThrowableResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/ThrowableResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/ThrowableResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,7 +26,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ThrowableResponse extends ControllerResponse
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/ThrowableResponse.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/UnavailableResourceResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/UnavailableResourceResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/UnavailableResourceResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -25,11 +25,11 @@
import org.jboss.portal.core.controller.ControllerResponse;
/**
- * A resource is not available either because the resource cannot be located or because it is located
- * but it is not serviceable.
+ * A resource is not available either because the resource cannot be located or because it is located but it is not
+ * serviceable.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class UnavailableResourceResponse extends ControllerResponse
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/command/response/UnavailableResourceResponse.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/AbstractResponseHandler.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/AbstractResponseHandler.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/AbstractResponseHandler.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,11 +23,10 @@
package org.jboss.portal.core.controller.handler;
import org.jboss.portal.jems.as.system.AbstractJBossService;
-import org.jboss.portal.core.controller.handler.ResponseHandler;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public abstract class AbstractResponseHandler extends AbstractJBossService implements ResponseHandler
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/AbstractResponseHandler.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/AjaxResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/AjaxResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/AjaxResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,10 +22,9 @@
******************************************************************************/
package org.jboss.portal.core.controller.handler;
-import org.jboss.portal.core.controller.handler.HandlerResponse;
+import org.jboss.portal.server.ServerInvocationContext;
import org.jboss.portal.theme.impl.render.dynamic.DynaResponse;
import org.jboss.portal.theme.impl.render.dynamic.JSONMarshaller;
-import org.jboss.portal.server.ServerInvocationContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletResponse;
@@ -33,9 +32,9 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
-public class AjaxResponse extends HandlerResponse
+public class AjaxResponse extends HandlerResponse
{
/** . */
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/AjaxResponse.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/CommandForward.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/CommandForward.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/CommandForward.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,14 +22,14 @@
******************************************************************************/
package org.jboss.portal.core.controller.handler;
+import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.server.request.URLContext;
-import org.jboss.portal.core.controller.ControllerCommand;
/**
* Forward to a new command.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class CommandForward extends HandlerResponse
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/CommandForward.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/HTTPResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/HTTPResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/HTTPResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,12 +22,12 @@
******************************************************************************/
package org.jboss.portal.core.controller.handler;
+import org.jboss.portal.common.io.IOTools;
import org.jboss.portal.server.ServerInvocationContext;
-import org.jboss.portal.common.io.IOTools;
+import javax.servlet.ServletException;
+import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
-import javax.servlet.ServletOutputStream;
-import javax.servlet.ServletException;
import java.io.IOException;
import java.io.InputStream;
@@ -35,7 +35,7 @@
* Response that sends a response to the http layer.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public abstract class HTTPResponse extends HandlerResponse
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/HTTPResponse.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/HandlerResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/HandlerResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/HandlerResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,7 +26,7 @@
* The response from a a response handler.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public abstract class HandlerResponse
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/HandlerResponse.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseForward.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseForward.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseForward.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,7 +26,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ResponseForward extends HandlerResponse
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseForward.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseHandler.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseHandler.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseHandler.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,23 +24,22 @@
import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerContext;
-import org.jboss.portal.core.controller.handler.ResponseHandlerException;
import org.jboss.portal.core.controller.ControllerResponse;
/**
- * The response handler interface defines the contract for translating the result of the execution
- * of a command into a response adapated to the client side caller.
+ * The response handler interface defines the contract for translating the result of the execution of a command into a
+ * response adapated to the client side caller.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface ResponseHandler
{
/**
* Process the command response and provides an handler response.
*
- * @param controllerContext the controller context
- * @param controllerCommand the controller command
+ * @param controllerContext the controller context
+ * @param controllerCommand the controller command
* @param controllerResponse the controller response
* @return the handler response
* @throws ResponseHandlerException
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseHandler.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseHandlerException.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseHandlerException.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseHandlerException.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,7 +24,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ResponseHandlerException extends Exception
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseHandlerException.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseHandlerSelector.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseHandlerSelector.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseHandlerSelector.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,15 +22,13 @@
******************************************************************************/
package org.jboss.portal.core.controller.handler;
-import org.jboss.portal.core.controller.handler.ResponseHandler;
-import org.jboss.portal.core.controller.handler.HandlerResponse;
-import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.core.controller.ControllerCommand;
+import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.core.controller.ControllerResponse;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ResponseHandlerSelector implements ResponseHandler
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/handler/ResponseHandlerSelector.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/ControllerResponseFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/ControllerResponseFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/ControllerResponseFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,27 +22,27 @@
******************************************************************************/
package org.jboss.portal.core.controller.portlet;
+import org.jboss.portal.Mode;
+import org.jboss.portal.WindowState;
+import org.jboss.portal.common.FixMe;
import org.jboss.portal.core.controller.ControllerResponse;
-import org.jboss.portal.core.controller.command.response.SignOutResponse;
+import org.jboss.portal.core.controller.command.response.ErrorResponse;
import org.jboss.portal.core.controller.command.response.RedirectionResponse;
import org.jboss.portal.core.controller.command.response.SecurityErrorResponse;
+import org.jboss.portal.core.controller.command.response.SignOutResponse;
import org.jboss.portal.core.controller.command.response.UnavailableResourceResponse;
-import org.jboss.portal.core.controller.command.response.ErrorResponse;
+import org.jboss.portal.core.model.instance.command.response.PortletInstanceActionResponse;
import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.command.response.PortletWindowActionResponse;
-import org.jboss.portal.core.model.instance.command.response.PortletInstanceActionResponse;
+import org.jboss.portal.portlet.NoSuchPortletException;
import org.jboss.portal.portlet.PortletInvokerException;
-import org.jboss.portal.portlet.NoSuchPortletException;
+import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
+import org.jboss.portal.portlet.invocation.response.RenderResponse;
import org.jboss.portal.portlet.spi.ActionContext;
-import org.jboss.portal.portlet.invocation.response.RenderResponse;
-import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
-import org.jboss.portal.common.FixMe;
-import org.jboss.portal.Mode;
-import org.jboss.portal.WindowState;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ControllerResponseFactory
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/ControllerResponseFactory.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/ControllerUserContext.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/ControllerUserContext.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/ControllerUserContext.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,10 +23,10 @@
package org.jboss.portal.core.controller.portlet;
import org.jboss.portal.common.util.Tools;
+import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.identity.User;
import org.jboss.portal.portlet.spi.UserContext;
import org.jboss.portal.server.ServerInvocation;
-import org.jboss.portal.core.controller.ControllerContext;
import java.util.List;
import java.util.Locale;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/ControllerUserContext.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/InvokePortletCommandFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/InvokePortletCommandFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/InvokePortletCommandFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -28,7 +28,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface InvokePortletCommandFactory
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/InvokePortletCommandFactory.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletActionResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletActionResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletActionResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,17 +22,16 @@
******************************************************************************/
package org.jboss.portal.core.controller.portlet;
-import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
-import org.jboss.portal.portlet.StateString;
-import org.jboss.portal.core.controller.ControllerResponse;
import org.jboss.portal.Mode;
import org.jboss.portal.WindowState;
+import org.jboss.portal.core.controller.ControllerResponse;
+import org.jboss.portal.portlet.StateString;
/**
* Controller response provided by a portlet.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public abstract class PortletActionResponse extends ControllerResponse
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletActionResponse.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletContextFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletContextFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletContextFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,28 +22,28 @@
******************************************************************************/
package org.jboss.portal.core.controller.portlet;
+import org.jboss.portal.Mode;
+import org.jboss.portal.WindowState;
+import org.jboss.portal.common.util.CollectionBuilder;
+import org.jboss.portal.core.controller.ControllerContext;
+import org.jboss.portal.core.model.portal.Portal;
+import org.jboss.portal.core.model.portal.Window;
+import org.jboss.portal.portlet.impl.spi.AbstractRequestContext;
+import org.jboss.portal.portlet.impl.spi.AbstractSecurityContext;
import org.jboss.portal.portlet.spi.PortalContext;
import org.jboss.portal.portlet.spi.RequestContext;
import org.jboss.portal.portlet.spi.SecurityContext;
import org.jboss.portal.portlet.spi.UserContext;
import org.jboss.portal.portlet.spi.WindowContext;
-import org.jboss.portal.portlet.impl.spi.AbstractRequestContext;
-import org.jboss.portal.portlet.impl.spi.AbstractSecurityContext;
-import org.jboss.portal.core.controller.ControllerContext;
-import org.jboss.portal.core.model.portal.Portal;
-import org.jboss.portal.core.model.portal.Window;
-import org.jboss.portal.common.util.CollectionBuilder;
-import org.jboss.portal.WindowState;
-import org.jboss.portal.Mode;
import org.jboss.portal.server.PortalConstants;
+import java.util.Collections;
+import java.util.Map;
import java.util.Set;
-import java.util.Map;
-import java.util.Collections;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortletContextFactory
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletContextFactory.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletInvocationFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletInvocationFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletInvocationFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,29 +22,29 @@
******************************************************************************/
package org.jboss.portal.core.controller.portlet;
-import org.jboss.portal.portlet.invocation.RenderInvocation;
-import org.jboss.portal.portlet.invocation.ActionInvocation;
-import org.jboss.portal.portlet.invocation.PortletInvocation;
-import org.jboss.portal.portlet.StateString;
+import org.jboss.portal.Mode;
+import org.jboss.portal.WindowState;
+import org.jboss.portal.common.invocation.EmptyAttributeResolver;
+import org.jboss.portal.common.invocation.resolver.MapAttributeResolver;
+import org.jboss.portal.common.util.MarkupInfo;
+import org.jboss.portal.core.controller.ControllerCommand;
+import org.jboss.portal.core.controller.ControllerContext;
+import org.jboss.portal.core.model.portal.Portal;
+import org.jboss.portal.core.model.portal.Window;
+import org.jboss.portal.core.model.portal.command.action.InvokePortletWindowActionCommand;
+import org.jboss.portal.core.model.portal.command.action.InvokePortletWindowRenderCommand;
+import org.jboss.portal.portlet.ActionURL;
import org.jboss.portal.portlet.PortletParameters;
import org.jboss.portal.portlet.PortletURL;
-import org.jboss.portal.portlet.ActionURL;
import org.jboss.portal.portlet.RenderURL;
+import org.jboss.portal.portlet.StateString;
import org.jboss.portal.portlet.impl.spi.AbstractActionContext;
import org.jboss.portal.portlet.impl.spi.AbstractRenderContext;
+import org.jboss.portal.portlet.invocation.ActionInvocation;
+import org.jboss.portal.portlet.invocation.PortletInvocation;
+import org.jboss.portal.portlet.invocation.RenderInvocation;
import org.jboss.portal.portlet.spi.ActionContext;
import org.jboss.portal.portlet.spi.RenderContext;
-import org.jboss.portal.core.controller.ControllerContext;
-import org.jboss.portal.core.controller.ControllerCommand;
-import org.jboss.portal.core.model.portal.command.action.InvokePortletWindowActionCommand;
-import org.jboss.portal.core.model.portal.command.action.InvokePortletWindowRenderCommand;
-import org.jboss.portal.core.model.portal.Window;
-import org.jboss.portal.core.model.portal.Portal;
-import org.jboss.portal.Mode;
-import org.jboss.portal.WindowState;
-import org.jboss.portal.common.invocation.EmptyAttributeResolver;
-import org.jboss.portal.common.invocation.resolver.MapAttributeResolver;
-import org.jboss.portal.common.util.MarkupInfo;
import org.jboss.portal.server.request.URLContext;
import org.jboss.portal.server.request.URLFormat;
@@ -53,7 +53,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortletInvocationFactory
{
@@ -84,7 +84,7 @@
{
PortletContextFactory cf = new PortletContextFactory(controllerContext, portal, window);
InternalInvokePortletCommandFactory cpc = new InternalInvokePortletCommandFactory(window, controllerContext);
- return createAction(controllerContext, mode, windowState, navigationalState, interactionState, form, cf, cpc);
+ return createAction(controllerContext, mode, windowState, navigationalState, interactionState, form, cf, cpc);
}
public static ActionInvocation createAction(
@@ -166,6 +166,7 @@
{
private InvokePortletCommandFactory cmdFactory;
private ControllerContext controllerContext;
+
public ControllerActionContext(InvokePortletCommandFactory cmdFactory, ControllerContext controllerContext, Mode mode, WindowState windowState, StateString navigationalState, MarkupInfo markupInfo, StateString interactionState, PortletParameters form)
{
super(mode, windowState, navigationalState, markupInfo, interactionState, form);
@@ -181,14 +182,17 @@
addResolver(PortletInvocation.REQUEST_PROPERTIES_SCOPE, EmptyAttributeResolver.getInstance());
addResolver(PortletInvocation.RESPONSE_PROPERTIES_SCOPE, new MapAttributeResolver());
}
+
public HttpServletRequest getClientRequest() throws IllegalStateException
{
return controllerContext.getServerInvocation().getServerContext().getClientRequest();
}
+
public HttpServletResponse getClientResponse() throws IllegalStateException
{
return controllerContext.getServerInvocation().getServerContext().getClientResponse();
}
+
public String renderURL(PortletURL portletURL, Boolean wantSecure, Boolean wantAuthenticated, boolean relative)
{
return PortletInvocationFactory.renderURL(controllerContext, cmdFactory, portletURL, wantSecure, wantAuthenticated, relative);
@@ -199,6 +203,7 @@
{
private InvokePortletCommandFactory cmdFactory;
private ControllerContext controllerContext;
+
public ControllerRenderContext(InvokePortletCommandFactory cmdFactory, ControllerContext controllerContext, Mode mode, WindowState windowState, StateString navigationalState, MarkupInfo markupInfo)
{
super(mode, windowState, navigationalState, markupInfo);
@@ -214,14 +219,17 @@
addResolver(PortletInvocation.REQUEST_PROPERTIES_SCOPE, new MapAttributeResolver());
addResolver(PortletInvocation.RESPONSE_PROPERTIES_SCOPE, new MapAttributeResolver());
}
+
public HttpServletRequest getClientRequest() throws IllegalStateException
{
return controllerContext.getServerInvocation().getServerContext().getClientRequest();
}
+
public HttpServletResponse getClientResponse() throws IllegalStateException
{
return controllerContext.getServerInvocation().getServerContext().getClientResponse();
}
+
public String renderURL(PortletURL portletURL, Boolean wantSecure, Boolean wantAuthenticated, boolean relative)
{
return PortletInvocationFactory.renderURL(controllerContext, cmdFactory, portletURL, wantSecure, wantAuthenticated, relative);
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletInvocationFactory.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletResponseHandler.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletResponseHandler.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletResponseHandler.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,21 +22,21 @@
******************************************************************************/
package org.jboss.portal.core.controller.portlet;
+import org.jboss.portal.core.controller.ControllerCommand;
+import org.jboss.portal.core.controller.ControllerContext;
+import org.jboss.portal.core.controller.ControllerResponse;
+import org.jboss.portal.core.controller.handler.CommandForward;
+import org.jboss.portal.core.controller.handler.HandlerResponse;
import org.jboss.portal.core.controller.handler.ResponseHandler;
-import org.jboss.portal.core.controller.handler.HandlerResponse;
import org.jboss.portal.core.controller.handler.ResponseHandlerException;
-import org.jboss.portal.core.controller.handler.CommandForward;
-import org.jboss.portal.core.controller.ControllerContext;
-import org.jboss.portal.core.controller.ControllerCommand;
-import org.jboss.portal.core.controller.ControllerResponse;
+import org.jboss.portal.core.model.instance.command.action.InvokePortletInstanceRenderCommand;
import org.jboss.portal.core.model.instance.command.response.PortletInstanceActionResponse;
-import org.jboss.portal.core.model.instance.command.action.InvokePortletInstanceRenderCommand;
+import org.jboss.portal.core.model.portal.command.action.InvokePortletWindowRenderCommand;
import org.jboss.portal.core.model.portal.command.response.PortletWindowActionResponse;
-import org.jboss.portal.core.model.portal.command.action.InvokePortletWindowRenderCommand;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortletResponseHandler implements ResponseHandler
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/PortletResponseHandler.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/controller/portlet/SignOutResponse.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/JBossApplicationMetaDataFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/JBossApplicationMetaDataFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/JBossApplicationMetaDataFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,11 +23,11 @@
package org.jboss.portal.core.deployment;
import org.jboss.portal.core.metadata.ServiceMetaData;
+import org.jboss.portal.core.metadata.portlet.AjaxMetaData;
+import org.jboss.portal.core.metadata.portlet.ElementMetaData;
import org.jboss.portal.core.metadata.portlet.HeaderContentMetaData;
import org.jboss.portal.core.metadata.portlet.JBossApplicationMetaData;
import org.jboss.portal.core.metadata.portlet.JBossPortletMetaData;
-import org.jboss.portal.core.metadata.portlet.ElementMetaData;
-import org.jboss.portal.core.metadata.portlet.AjaxMetaData;
import org.jboss.portal.core.metadata.portlet.PortletIconMetaData;
import org.jboss.portal.core.metadata.portlet.PortletInfoMetaData;
import org.jboss.xb.binding.UnmarshallingContext;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/JBossApplicationMetaDataFactory.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/jboss/ObjectDeployment.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/jboss/ObjectDeployment.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/jboss/ObjectDeployment.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,18 +24,18 @@
import org.jboss.deployment.DeploymentException;
import org.jboss.logging.Logger;
+import org.jboss.portal.common.io.IOTools;
+import org.jboss.portal.common.xml.NullEntityResolver;
import org.jboss.portal.common.xml.XMLTools;
-import org.jboss.portal.common.xml.NullEntityResolver;
-import org.jboss.portal.common.io.IOTools;
-import org.jboss.portal.core.model.portal.metadata.PortalObjectMetaData;
-import org.jboss.portal.core.model.portal.metadata.BuildContext;
+import org.jboss.portal.core.model.content.ContentType;
+import org.jboss.portal.core.model.content.spi.ContentProvider;
+import org.jboss.portal.core.model.content.spi.handler.ContentHandler;
import org.jboss.portal.core.model.portal.PortalObject;
import org.jboss.portal.core.model.portal.PortalObjectContainer;
import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.PortalObjectPath;
-import org.jboss.portal.core.model.content.ContentType;
-import org.jboss.portal.core.model.content.spi.ContentProvider;
-import org.jboss.portal.core.model.content.spi.handler.ContentHandler;
+import org.jboss.portal.core.model.portal.metadata.BuildContext;
+import org.jboss.portal.core.model.portal.metadata.PortalObjectMetaData;
import org.jboss.portal.server.deployment.PortalWebApp;
import org.jboss.portal.server.deployment.jboss.Deployment;
import org.w3c.dom.Document;
@@ -194,6 +194,7 @@
{
return factory.portalObjectContainer;
}
+
public ContentHandler getContentHandler(ContentType contentType)
{
ContentProvider contentProvider = factory.contentProviderRegistry.getContentProvider(contentType);
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/jboss/ObjectDeployment.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/jboss/ObjectDeploymentFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/jboss/ObjectDeploymentFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/jboss/ObjectDeploymentFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,8 +24,8 @@
import org.jboss.deployment.DeploymentException;
import org.jboss.portal.common.transaction.TransactionManagerProvider;
+import org.jboss.portal.core.model.content.spi.ContentProviderRegistry;
import org.jboss.portal.core.model.portal.PortalObjectContainer;
-import org.jboss.portal.core.model.content.spi.ContentProviderRegistry;
import org.jboss.portal.server.deployment.PortalWebApp;
import org.jboss.portal.server.deployment.jboss.AbstractDeploymentFactory;
import org.jboss.portal.server.deployment.jboss.Deployment;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/jboss/ObjectDeploymentFactory.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/jboss/PortletAppDeployment.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/jboss/PortletAppDeployment.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/jboss/PortletAppDeployment.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,19 +24,19 @@
import org.jboss.deployment.DeploymentException;
import org.jboss.mx.util.MBeanProxyExt;
+import org.jboss.portal.common.io.IOTools;
import org.jboss.portal.common.net.URLNavigator;
import org.jboss.portal.common.net.URLVisitor;
-import org.jboss.portal.common.xml.XMLTools;
import org.jboss.portal.common.value.StringValue;
import org.jboss.portal.common.value.Value;
import org.jboss.portal.common.xml.NullEntityResolver;
-import org.jboss.portal.common.io.IOTools;
-import org.jboss.portal.core.model.instance.metadata.InstanceMetaData;
-import org.jboss.portal.core.model.instance.metadata.PreferencesMetaData;
+import org.jboss.portal.common.xml.XMLTools;
import org.jboss.portal.core.metadata.ServiceMetaData;
import org.jboss.portal.core.metadata.portlet.JBossApplicationMetaData;
import org.jboss.portal.core.model.instance.DuplicateInstanceException;
import org.jboss.portal.core.model.instance.Instance;
+import org.jboss.portal.core.model.instance.metadata.InstanceMetaData;
+import org.jboss.portal.core.model.instance.metadata.PreferencesMetaData;
import org.jboss.portal.portlet.InvalidPortletIdException;
import org.jboss.portal.portlet.NoSuchPortletException;
import org.jboss.portal.portlet.PortletInvokerException;
@@ -398,7 +398,7 @@
private void configureInstance(Instance instance, InstanceMetaData metaData) throws PortletInvokerException, SecurityConfigurationException
{
List changes = new ArrayList();
-
+
// Reset all preferences that are not overridden
PreferencesMetaData preferencesMetaData = metaData.getPreferences();
PropertyMap propertyMap = instance.getProperties();
@@ -413,7 +413,7 @@
}
}
}
-
+
// Configure preferences only if needed
if (preferencesMetaData != null && preferencesMetaData.size() > 0)
{
@@ -448,7 +448,7 @@
// Resolve the portlet ref
metaData.setPortletRef(resolvePortletRef(metaData.getPortletRef()));
-
+
// Create the instance
Instance instance = factory.getInstanceContainer().createDefinition(metaData);
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/jboss/PortletAppDeployment.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/deployment/jboss/PortletAppDeploymentFactory.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/event/PortalEventListenerRegistry.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/event/PortalEventListenerRegistryImpl.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/event/PortalEventListenerService.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/event/PortalEventListenerServiceImpl.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/hibernate/ModeUserType.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/hibernate/WindowStateUserType.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/DashboardBridge.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/DashboardBridge.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/DashboardBridge.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,18 +22,18 @@
******************************************************************************/
package org.jboss.portal.core.identity;
-import org.jboss.portal.jems.as.system.AbstractJBossService;
-import org.jboss.portal.identity.event.IdentityEventListener;
+import org.jboss.portal.core.model.CustomizationManager;
import org.jboss.portal.identity.event.IdentityEvent;
import org.jboss.portal.identity.event.IdentityEventEmitter;
+import org.jboss.portal.identity.event.IdentityEventListener;
import org.jboss.portal.identity.event.UserDestroyedEvent;
-import org.jboss.portal.core.model.CustomizationManager;
+import org.jboss.portal.jems.as.system.AbstractJBossService;
/**
* Use identity destroy events to destroy corresponding dashboards.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class DashboardBridge extends AbstractJBossService implements IdentityEventListener
{
@@ -82,7 +82,7 @@
//
log.debug("User (userName=" + destroyedEvent.getUserName() + ",id=" + destroyedEvent.getUserId() +
- " ) is destroyed, will destroy its dashboard");
+ " ) is destroyed, will destroy its dashboard");
//
customizationManager.destroyDashboard(destroyedEvent.getUserName());
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/DashboardBridge.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/SecurityBridge.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/SecurityBridge.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/SecurityBridge.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,18 +22,18 @@
******************************************************************************/
package org.jboss.portal.core.identity;
-import org.jboss.portal.jems.as.system.AbstractJBossService;
+import org.jboss.portal.identity.event.IdentityEvent;
+import org.jboss.portal.identity.event.IdentityEventEmitter;
import org.jboss.portal.identity.event.IdentityEventListener;
-import org.jboss.portal.identity.event.IdentityEventEmitter;
-import org.jboss.portal.identity.event.IdentityEvent;
import org.jboss.portal.identity.event.UserDestroyedEvent;
+import org.jboss.portal.jems.as.system.AbstractJBossService;
import org.jboss.security.auth.login.DynamicLoginConfigMBean;
/**
* Use identity destroy events to destroy corresponding dashboards.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class SecurityBridge extends AbstractJBossService implements IdentityEventListener
{
@@ -82,7 +82,7 @@
//
log.debug("User (userName=" + destroyedEvent.getUserName() + ",id=" + destroyedEvent.getUserId() +
- " ) is destroyed, will invalidate security manager cache instead ");
+ " ) is destroyed, will invalidate security manager cache instead ");
//
try
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/SecurityBridge.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UserActivity.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UserActivity.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UserActivity.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -27,24 +27,24 @@
/**
* @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot com">Boleslaw Dawidowicz</a>
* @author <a href="mailto:jedim@vige.it">Luca Stancapiano</a>
- * @version $Revision: 0.1 $
+ * @version $Revision$
*/
public class UserActivity
{
-
+
public static final int NAVIGATION = 0;
public static final int SIGN_OUT = 1;
-
+
private String id;
private long timestamp;
-
+
private final int type;
private UserActivity()
{
- this.type = NAVIGATION;
+ this.type = NAVIGATION;
}
public UserActivity(String id, long timestamp, int type)
@@ -113,5 +113,5 @@
result = id.hashCode();
return result;
}
-
+
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UserActivity.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UserActivityNotificationBroadcaster.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UserActivityNotificationBroadcaster.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UserActivityNotificationBroadcaster.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,12 +26,12 @@
/**
* @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot com">Boleslaw Dawidowicz</a>
- * @version $Revision: 0.1 $
+ * @version $Revision$
*/
public class UserActivityNotificationBroadcaster extends HAServiceMBeanSupport implements UserActivityNotificationBroadcasterMBean
{
/**
* Nothing special at the moment...
*/
-
+
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UserActivityNotificationBroadcaster.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UserActivityNotificationBroadcasterMBean.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UserActivityNotificationBroadcasterMBean.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UserActivityNotificationBroadcasterMBean.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -25,12 +25,12 @@
import org.jboss.ha.jmx.HAServiceMBean;
import javax.management.Notification;
+import javax.management.NotificationFilter;
import javax.management.NotificationListener;
-import javax.management.NotificationFilter;
/**
* @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot com">Boleslaw Dawidowicz</a>
- * @version $Revision: 0.1 $
+ * @version $Revision$
*/
public interface UserActivityNotificationBroadcasterMBean extends HAServiceMBean
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UserActivityNotificationBroadcasterMBean.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UsersActivityStatsService.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UsersActivityStatsService.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UsersActivityStatsService.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,7 +26,7 @@
/**
* @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot com">Boleslaw Dawidowicz</a>
- * @version $Revision: 0.1 $
+ * @version $Revision$
*/
public interface UsersActivityStatsService
{
@@ -36,6 +36,6 @@
public Set getActiveUsersNames(long period);
public Set getUsersActivities(long period);
-
+
public void registerActivity(final UserActivity userActivity);
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UsersActivityStatsService.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UsersActivityStatsServiceImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UsersActivityStatsServiceImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UsersActivityStatsServiceImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,18 +22,6 @@
package org.jboss.portal.core.identity;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-
-import javax.management.Notification;
-import javax.management.NotificationListener;
-import javax.management.ObjectName;
-
-import org.jboss.logging.Logger;
-import org.jboss.portal.jems.as.system.AbstractJBossService;
-
import edu.emory.mathcs.backport.java.util.Queue;
import edu.emory.mathcs.backport.java.util.concurrent.Callable;
import edu.emory.mathcs.backport.java.util.concurrent.Executor;
@@ -42,11 +30,21 @@
import edu.emory.mathcs.backport.java.util.concurrent.LinkedBlockingQueue;
import edu.emory.mathcs.backport.java.util.concurrent.ScheduledExecutorService;
import edu.emory.mathcs.backport.java.util.concurrent.TimeUnit;
+import org.jboss.logging.Logger;
+import org.jboss.portal.jems.as.system.AbstractJBossService;
+import javax.management.Notification;
+import javax.management.NotificationListener;
+import javax.management.ObjectName;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.Set;
+
/**
- * @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot com">Boleslaw Dawidowicz</a>
+ * @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot com">Boleslaw Dawidowicz</a>
* @author <a href="mailto:jedim@vige.it">Luca Stancapiano</a>
- * @version $Revision: 0.1 $
+ * @version $Revision$
*/
public class UsersActivityStatsServiceImpl extends AbstractJBossService implements UsersActivityStatsService, NotificationListener
{
@@ -99,13 +97,13 @@
addNotificationListener(this, null, null);
}
-
+
}
protected void stopService() throws Exception
{
super.stopService();
-
+
// /TODO: stop all the threads
}
@@ -188,7 +186,6 @@
}
-
}
public void handleNotification(Notification notification, Object object)
@@ -303,15 +300,19 @@
UserActivity activity = (UserActivity)activityQueue.poll();
if (activity != null && ((currentTime - activity.getTimestamp()) < activityTimeout))
{
- if (activity.getType() != UserActivity.SIGN_OUT)
- stillActive.add(activity);
- else
- stillActive.remove(activity);
+ if (activity.getType() != UserActivity.SIGN_OUT)
+ {
+ stillActive.add(activity);
+ }
+ else
+ {
+ stillActive.remove(activity);
+ }
}
}
activityResults = Collections.unmodifiableSet(stillActive);
-
+
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/UsersActivityStatsServiceImpl.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/service/IdentityServiceControllerImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/service/IdentityServiceControllerImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/service/IdentityServiceControllerImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -21,32 +21,33 @@
*/
package org.jboss.portal.core.identity.service;
-import org.jboss.portal.jems.as.system.AbstractJBossService;
-import org.jboss.portal.jems.as.system.JBossServiceModelMBean;
-import org.jboss.portal.jems.as.JNDI;
-import org.jboss.portal.identity.IdentityException;
+import org.jboss.beans.metadata.plugins.AbstractBeanMetaData;
+import org.jboss.kernel.Kernel;
+import org.jboss.kernel.plugins.bootstrap.basic.BasicBootstrap;
+import org.jboss.kernel.spi.dependency.KernelControllerContext;
import org.jboss.portal.identity.IdentityContext;
import org.jboss.portal.identity.IdentityContextImpl;
+import org.jboss.portal.identity.IdentityException;
import org.jboss.portal.identity.IdentityServiceController;
import org.jboss.portal.identity.ServiceJNDIBinder;
import org.jboss.portal.identity.boot.IdentityServiceLoader;
-import org.jboss.portal.identity.event.IdentityEventBroadcaster;
import org.jboss.portal.identity.event.IdentityEvent;
+import org.jboss.portal.identity.event.IdentityEventBroadcaster;
import org.jboss.portal.identity.metadata.service.IdentityServicesMetaData;
import org.jboss.portal.identity.service.IdentityConfigurationService;
-import org.jboss.kernel.Kernel;
-import org.jboss.kernel.spi.dependency.KernelControllerContext;
-import org.jboss.kernel.plugins.bootstrap.basic.BasicBootstrap;
-import org.jboss.beans.metadata.plugins.AbstractBeanMetaData;
+import org.jboss.portal.jems.as.JNDI;
+import org.jboss.portal.jems.as.system.AbstractJBossService;
+import org.jboss.portal.jems.as.system.JBossServiceModelMBean;
import javax.management.ObjectName;
/**
* @author <a href="mailto:boleslaw dot dawidowicz at jboss.org">Boleslaw Dawidowicz</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
-public class IdentityServiceControllerImpl extends AbstractJBossService implements IdentityServiceController {
-
+public class IdentityServiceControllerImpl extends AbstractJBossService implements IdentityServiceController
+{
+
private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(IdentityServiceControllerImpl.class);
private String jndiName;
@@ -63,9 +64,7 @@
private IdentityEventBroadcaster identityEventBroadcaster;
- /**
- * .
- */
+ /** . */
protected Kernel kernel;
@@ -93,10 +92,9 @@
identityContext = bootstrapIdentityContext();
-
// IdentityEventBroadcaster
IdentityEventBroadcaster broadcaster = identityEventBroadcaster;
- if(broadcaster == null)
+ if (broadcaster == null)
{
broadcaster = new IdentityEventBroadcaster()
{
@@ -116,7 +114,6 @@
{
throw new IdentityException("Unable to install IdentityEventBroadcaster", throwable);
}
-
//process the list of modules, instantiate them, configure them, tide them
try
@@ -128,7 +125,8 @@
//TODO:set proper jndiName and serviceName and JNDI binder
configuration.start();
- IdentityServiceLoader serviceLoader = new IdentityServiceLoader(identityContext, kernel, registerMBeans) {
+ IdentityServiceLoader serviceLoader = new IdentityServiceLoader(identityContext, kernel, registerMBeans)
+ {
protected void registerMBean(String serviceName, Object serviceObject) throws Exception
{
@@ -181,7 +179,7 @@
}
catch (Throwable throwable)
{
- throw new IdentityException("Unable to install IdentityContext",throwable);
+ throw new IdentityException("Unable to install IdentityContext", throwable);
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/service/IdentityServiceControllerImpl.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/service/SimpleServiceJNDIBinder.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/service/SimpleServiceJNDIBinder.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/service/SimpleServiceJNDIBinder.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -30,9 +30,9 @@
/**
* Really dummy JNDI binder
- *
+ *
* @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot com">Boleslaw Dawidowicz</a>
- * @version $Revision: 0.1 $
+ * @version $Revision$
*/
public class SimpleServiceJNDIBinder implements ServiceJNDIBinder
{
@@ -52,14 +52,14 @@
public void unbind(String jndiName)
{
if (jndiName != null)
+ {
+ try
{
- try
- {
- NonSerializableFactory.unbind(jndiName);
- }
- catch (NameNotFoundException ignore)
- {
- }
+ NonSerializableFactory.unbind(jndiName);
}
+ catch (NameNotFoundException ignore)
+ {
+ }
+ }
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/identity/service/SimpleServiceJNDIBinder.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/PortalRuntimeContextImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/PortalRuntimeContextImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/PortalRuntimeContextImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -25,18 +25,18 @@
import org.jboss.portal.api.PortalRuntimeContext;
import org.jboss.portal.api.navstate.NavigationalStateContext;
import org.jboss.portal.api.session.PortalSession;
+import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerContext;
-import org.jboss.portal.core.controller.ControllerCommand;
-import org.jboss.portal.core.impl.api.session.PortalSessionImpl;
import org.jboss.portal.core.impl.api.navstate.NavigationalStateContextImpl;
import org.jboss.portal.core.impl.api.node.PortalNodeURLFactory;
+import org.jboss.portal.core.impl.api.session.PortalSessionImpl;
import org.jboss.portal.identity.User;
import javax.servlet.http.HttpSession;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortalRuntimeContextImpl implements PortalRuntimeContext
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/PortalRuntimeContextImpl.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/event/PortalEventContextImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/event/PortalEventContextImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/event/PortalEventContextImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,12 +22,12 @@
******************************************************************************/
package org.jboss.portal.core.impl.api.event;
+import org.jboss.portal.api.PortalRuntimeContext;
import org.jboss.portal.api.event.PortalEventContext;
-import org.jboss.portal.api.PortalRuntimeContext;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortalEventContextImpl implements PortalEventContext
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/event/PortalEventContextImpl.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/event/ServletEventBridge.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/event/ServletEventBridge.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/event/ServletEventBridge.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -29,11 +29,10 @@
import org.jboss.portal.api.event.PortalEvent;
import org.jboss.portal.api.event.PortalEventContext;
import org.jboss.portal.api.event.PortalEventListener;
-import org.jboss.portal.api.user.event.UserAuthenticationEvent;
import org.jboss.portal.api.session.event.PortalSessionEvent;
+import org.jboss.portal.api.user.event.UserAuthenticationEvent;
import org.jboss.portal.core.event.PortalEventListenerRegistry;
import org.jboss.portal.core.impl.api.PortalRuntimeContextImpl;
-import org.jboss.portal.core.impl.api.event.PortalEventContextImpl;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
@@ -47,7 +46,7 @@
* Bridge servlet event to portal events.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ServletEventBridge implements HttpSessionListener, ServletContextListener, HttpSessionAttributeListener
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/event/ServletEventBridge.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/navstate/NavigationalStateContextImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/navstate/NavigationalStateContextImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/navstate/NavigationalStateContextImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,18 +22,18 @@
******************************************************************************/
package org.jboss.portal.core.impl.api.navstate;
+import org.jboss.portal.Mode;
+import org.jboss.portal.WindowState;
import org.jboss.portal.api.navstate.NavigationalStateContext;
-import org.jboss.portal.core.navstate.NavigationalStateKey;
-import org.jboss.portal.core.model.portal.navstate.WindowNavigationalState;
-import org.jboss.portal.core.impl.api.node.PortalNodeImpl;
import org.jboss.portal.api.node.PortalNode;
-import org.jboss.portal.Mode;
-import org.jboss.portal.WindowState;
import org.jboss.portal.common.invocation.AttributeResolver;
+import org.jboss.portal.core.impl.api.node.PortalNodeImpl;
+import org.jboss.portal.core.model.portal.navstate.WindowNavigationalState;
+import org.jboss.portal.core.navstate.NavigationalStateKey;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class NavigationalStateContextImpl implements NavigationalStateContext
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/navstate/NavigationalStateContextImpl.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/AbstractPortalNodeURL.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/AbstractPortalNodeURL.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/AbstractPortalNodeURL.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,14 +23,14 @@
package org.jboss.portal.core.impl.api.node;
import org.jboss.portal.api.node.PortalNodeURL;
+import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.portlet.PortletParametersStateString;
import org.jboss.portal.server.request.URLContext;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class AbstractPortalNodeURL implements PortalNodeURL
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/AbstractPortalNodeURL.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PageURL.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PageURL.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PageURL.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,15 +22,15 @@
******************************************************************************/
package org.jboss.portal.core.impl.api.node;
+import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.command.view.ViewPageCommand;
-import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.server.request.URLContext;
import org.jboss.portal.server.request.URLFormat;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PageURL extends AbstractPortalNodeURL
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PageURL.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PortalNodeEventContextImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PortalNodeEventContextImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PortalNodeEventContextImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -31,7 +31,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortalNodeEventContextImpl implements PortalNodeEventContext
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PortalNodeEventContextImpl.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PortalNodeImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PortalNodeImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PortalNodeImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,33 +22,33 @@
******************************************************************************/
package org.jboss.portal.core.impl.api.node;
+import org.jboss.portal.api.PortalRuntimeContext;
import org.jboss.portal.api.node.PortalNode;
import org.jboss.portal.api.node.PortalNodeURL;
-import org.jboss.portal.api.PortalRuntimeContext;
-import org.jboss.portal.common.path.RelativePathParser;
import org.jboss.portal.common.i18n.ResourceBundleManager;
import org.jboss.portal.common.i18n.SimpleResourceBundleFactory;
+import org.jboss.portal.common.path.RelativePathParser;
+import org.jboss.portal.core.impl.api.PortalRuntimeContextImpl;
import org.jboss.portal.core.model.portal.PortalObject;
import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.PortalObjectPermission;
-import org.jboss.portal.core.impl.api.PortalRuntimeContextImpl;
import org.jboss.portal.security.spi.auth.PortalAuthorizationManager;
+import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
+import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
-import java.util.Map;
+import java.util.List;
import java.util.Locale;
-import java.util.ResourceBundle;
+import java.util.Map;
import java.util.MissingResourceException;
-import java.util.Comparator;
-import java.util.List;
-import java.util.ArrayList;
+import java.util.ResourceBundle;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortalNodeImpl implements PortalNode
{
@@ -252,7 +252,7 @@
private float getWeight()
{
- switch(object.getType())
+ switch (object.getType())
{
case PortalObject.TYPE_CONTEXT:
return 0;
@@ -340,9 +340,7 @@
return map;
}
- /**
- * Compute and returns a modifiable map made of the children nodes.
- */
+ /** Compute and returns a modifiable map made of the children nodes. */
protected final Map buildChildMap(PortalNodeImpl objectNode)
{
PortalObject object = objectNode.object;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PortalNodeImpl.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PortalNodeURLFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PortalNodeURLFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PortalNodeURLFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -25,11 +25,10 @@
import org.jboss.portal.api.node.PortalNode;
import org.jboss.portal.api.node.PortalNodeURL;
import org.jboss.portal.core.controller.ControllerContext;
-import org.jboss.portal.core.impl.api.node.PortalNodeImpl;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 5136 $
+ * @version $Revision$
*/
public class PortalNodeURLFactory
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/PortalNodeURLFactory.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/WindowURL.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/WindowURL.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/WindowURL.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,15 +22,15 @@
******************************************************************************/
package org.jboss.portal.core.impl.api.node;
+import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.command.action.InvokePortletWindowRenderCommand;
-import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.server.request.URLContext;
import org.jboss.portal.server.request.URLFormat;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class WindowURL extends AbstractPortalNodeURL
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/node/WindowURL.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/session/PortalSessionImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/session/PortalSessionImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/session/PortalSessionImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -28,7 +28,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortalSessionImpl implements PortalSession
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/session/PortalSessionImpl.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/user/UserEventBridgeTriggerInterceptor.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/user/UserEventBridgeTriggerInterceptor.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/user/UserEventBridgeTriggerInterceptor.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,9 +22,9 @@
******************************************************************************/
package org.jboss.portal.core.impl.api.user;
+import org.jboss.portal.common.invocation.InvocationException;
import org.jboss.portal.server.ServerInterceptor;
import org.jboss.portal.server.ServerInvocation;
-import org.jboss.portal.common.invocation.InvocationException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
@@ -34,7 +34,7 @@
* Trigger user events in the event bridge.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class UserEventBridgeTriggerInterceptor extends ServerInterceptor
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/api/user/UserEventBridgeTriggerInterceptor.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/mail/MailModuleImpl.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/CustomizationManagerService.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/CustomizationManagerService.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/CustomizationManagerService.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,8 +22,6 @@
******************************************************************************/
package org.jboss.portal.core.impl.model;
-import java.util.Iterator;
-
import org.jboss.logging.Logger;
import org.jboss.portal.core.impl.model.content.portlet.PortletContent;
import org.jboss.portal.core.model.CustomizationManager;
@@ -47,9 +45,11 @@
import org.jboss.portal.security.spi.auth.PortalAuthorizationManager;
import org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory;
+import java.util.Iterator;
+
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class CustomizationManagerService extends AbstractJBossService implements CustomizationManager
{
@@ -166,7 +166,7 @@
//
String instanceId = ((PortletContent)content).getInstanceRef();
- if (instanceId == null)
+ if (instanceId == null)
{
return null;
}
@@ -289,7 +289,7 @@
// Copy the template portal
dashboardPortal = (Portal)templatePortal.copy(dashboardContext, userId, false);
copy(templatePortal, dashboardContext.getChild(userId));
-
+
}
}
catch (DuplicatePortalObjectException e)
@@ -332,9 +332,7 @@
}
- /**
- * Destroys the user dashboard if any
- */
+ /** Destroys the user dashboard if any */
public void destroyDashboard(String userId)
{
try
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/CustomizationManagerService.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/AbstractContent.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/AbstractContent.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/AbstractContent.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -29,7 +29,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public abstract class AbstractContent implements Content
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/AbstractContent.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/ContentProviderRegistryService.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/ContentProviderRegistryService.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/ContentProviderRegistryService.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,10 +22,10 @@
******************************************************************************/
package org.jboss.portal.core.impl.model.content;
+import org.jboss.portal.common.util.CopyOnWriteRegistry;
import org.jboss.portal.core.model.content.ContentType;
import org.jboss.portal.core.model.content.spi.ContentProvider;
import org.jboss.portal.core.model.portal.content.ContentRenderer;
-import org.jboss.portal.common.util.CopyOnWriteRegistry;
import java.util.Collection;
@@ -33,7 +33,7 @@
* A simple registry to track the instance that provides content facilities.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ContentProviderRegistryService implements InternalContentProviderRegistry
{
@@ -61,7 +61,7 @@
public void start()
{
- synchronized(ContentProviderRegistryService.class)
+ synchronized (ContentProviderRegistryService.class)
{
if (instance != null)
{
@@ -73,7 +73,7 @@
public void stop()
{
- synchronized(ContentProviderRegistryService.class)
+ synchronized (ContentProviderRegistryService.class)
{
instance = null;
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/ContentProviderRegistryService.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/InternalContentProvider.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/InternalContentProvider.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/InternalContentProvider.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,14 +22,6 @@
******************************************************************************/
package org.jboss.portal.core.impl.model.content;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
import org.jboss.logging.Logger;
import org.jboss.portal.Mode;
import org.jboss.portal.WindowState;
@@ -70,9 +62,17 @@
import org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory;
import org.jboss.portal.theme.impl.render.dynamic.DynaRenderOptions;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public abstract class InternalContentProvider implements ContentRenderer
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/InternalContentProvider.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/InternalContentProviderRegistry.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/InternalContentProviderRegistry.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/InternalContentProviderRegistry.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -30,7 +30,7 @@
* A simple registry to track the instance that provides content facilities.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface InternalContentProviderRegistry extends ContentProviderRegistry, ContentRendererRegistry
{
@@ -41,7 +41,7 @@
void registerContentProvider(InternalContentProvider registration);
/**
- *
+ *
*/
void unregisterContentProvider(ContentType contentType);
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/InternalContentProviderRegistry.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/generic/GenericContent.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/generic/GenericContent.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/generic/GenericContent.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,15 +22,15 @@
******************************************************************************/
package org.jboss.portal.core.impl.model.content.generic;
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.core.impl.model.content.AbstractContent;
import org.jboss.portal.core.model.content.spi.handler.ContentState;
-import org.jboss.portal.core.impl.model.content.AbstractContent;
-import org.jboss.portal.common.i18n.LocalizedString;
import java.util.Locale;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class GenericContent extends AbstractContent
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/generic/GenericContent.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/generic/GenericContentProviderRegistry.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/generic/GenericContentProviderRegistry.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/generic/GenericContentProviderRegistry.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,19 +22,19 @@
******************************************************************************/
package org.jboss.portal.core.impl.model.content.generic;
-import org.jboss.portal.core.model.instance.InstanceContainer;
+import org.jboss.portal.common.util.CopyOnWriteRegistry;
+import org.jboss.portal.core.impl.model.content.InternalContentProviderRegistry;
import org.jboss.portal.core.model.CustomizationManager;
import org.jboss.portal.core.model.content.ContentType;
import org.jboss.portal.core.model.content.spi.portlet.ContentPortlet;
-import org.jboss.portal.core.impl.model.content.InternalContentProviderRegistry;
-import org.jboss.portal.common.util.CopyOnWriteRegistry;
+import org.jboss.portal.core.model.instance.InstanceContainer;
import org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
-public class GenericContentProviderRegistry
+public class GenericContentProviderRegistry
{
/** . */
@@ -56,7 +56,7 @@
/** . */
private CopyOnWriteRegistry registrations = new CopyOnWriteRegistry();
-
+
/** . */
private PortalAuthorizationManagerFactory pamf;
@@ -89,15 +89,15 @@
{
this.registry = registry;
}
-
+
public PortalAuthorizationManagerFactory getPortalAuthorizationManagerFactory()
{
return pamf;
}
-
+
public void setPortalAuthorizationManagerFactory(PortalAuthorizationManagerFactory portalAuthorizationManagerFactory)
{
- this.pamf = portalAuthorizationManagerFactory;
+ this.pamf = portalAuthorizationManagerFactory;
}
public void register(
@@ -111,7 +111,7 @@
provider.setContentPortletInfo(contentPortlet);
provider.setRegistry(registry);
provider.setPortalAuthorizationManagerFactory(pamf);
-
+
// Keep track
registrations.register(contentType, provider);
@@ -137,7 +137,7 @@
public void start() throws Exception
{
- synchronized(GenericContentProviderRegistry.class)
+ synchronized (GenericContentProviderRegistry.class)
{
if (instance != null)
{
@@ -149,7 +149,7 @@
public void stop() throws Exception
{
- synchronized(GenericContentProviderRegistry.class)
+ synchronized (GenericContentProviderRegistry.class)
{
instance = null;
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/generic/GenericContentProviderRegistry.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/generic/InternalGenericContentProvider.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/generic/InternalGenericContentProvider.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/generic/InternalGenericContentProvider.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,34 +22,34 @@
******************************************************************************/
package org.jboss.portal.core.impl.model.content.generic;
+import org.jboss.portal.Mode;
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.common.invocation.AttributeResolver;
+import org.jboss.portal.core.controller.ControllerContext;
+import org.jboss.portal.core.impl.model.content.InternalContentProvider;
import org.jboss.portal.core.model.content.Content;
+import org.jboss.portal.core.model.content.ContentType;
import org.jboss.portal.core.model.content.spi.ContentProvider;
-import org.jboss.portal.core.model.content.ContentType;
-import org.jboss.portal.core.model.portal.content.WindowRendition;
+import org.jboss.portal.core.model.content.spi.handler.ContentHandler;
import org.jboss.portal.core.model.content.spi.handler.ContentState;
-import org.jboss.portal.core.model.content.spi.handler.ContentHandler;
import org.jboss.portal.core.model.content.spi.portlet.ContentPortlet;
import org.jboss.portal.core.model.instance.Instance;
import org.jboss.portal.core.model.instance.InstanceContainer;
+import org.jboss.portal.core.model.portal.PortalObjectId;
+import org.jboss.portal.core.model.portal.Window;
import org.jboss.portal.core.model.portal.command.render.RenderWindowCommand;
-import org.jboss.portal.core.model.portal.Window;
-import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.command.response.MarkupResponse;
+import org.jboss.portal.core.model.portal.content.WindowRendition;
import org.jboss.portal.core.model.portal.navstate.WindowNavigationalState;
-import org.jboss.portal.core.controller.ControllerContext;
-import org.jboss.portal.core.impl.model.content.InternalContentProvider;
import org.jboss.portal.core.navstate.NavigationalStateKey;
import org.jboss.portal.portlet.PortletParametersStateString;
-import org.jboss.portal.Mode;
-import org.jboss.portal.common.i18n.LocalizedString;
-import org.jboss.portal.common.invocation.AttributeResolver;
import java.util.Iterator;
import java.util.Map;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class InternalGenericContentProvider extends InternalContentProvider implements ContentHandler
{
@@ -191,7 +191,7 @@
PortletParametersStateString state = new PortletParametersStateString();
//
- for (Iterator i = content.getParameterNames();i.hasNext();)
+ for (Iterator i = content.getParameterNames(); i.hasNext();)
{
String paramName = (String)i.next();
String paramValue = content.getParameter(paramName);
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/generic/InternalGenericContentProvider.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/portlet/InternalPortletContentProvider.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/portlet/InternalPortletContentProvider.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/portlet/InternalPortletContentProvider.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -45,7 +45,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class InternalPortletContentProvider extends InternalContentProvider implements ContentHandler
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/portlet/InternalPortletContentProvider.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/portlet/PortletContent.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/portlet/PortletContent.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/portlet/PortletContent.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,15 +22,15 @@
******************************************************************************/
package org.jboss.portal.core.impl.model.content.portlet;
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.core.impl.model.content.AbstractContent;
import org.jboss.portal.core.model.content.spi.handler.ContentState;
-import org.jboss.portal.core.impl.model.content.AbstractContent;
-import org.jboss.portal.common.i18n.LocalizedString;
import java.util.Locale;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortletContent extends AbstractContent
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/content/portlet/PortletContent.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/AbstractInstance.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/AbstractInstance.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/AbstractInstance.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,32 +24,29 @@
import org.apache.log4j.Logger;
import org.jboss.portal.core.model.instance.Instance;
-import org.jboss.portal.core.model.instance.InstanceCustomization;
import org.jboss.portal.core.model.instance.InstanceContainer;
+import org.jboss.portal.core.model.instance.InstanceCustomization;
import org.jboss.portal.core.model.instance.InstanceDefinition;
-import org.jboss.portal.core.model.instance.InstancePermission;
+import org.jboss.portal.portlet.Portlet;
import org.jboss.portal.portlet.PortletContext;
import org.jboss.portal.portlet.PortletInvoker;
import org.jboss.portal.portlet.PortletInvokerException;
-import org.jboss.portal.portlet.Portlet;
import org.jboss.portal.portlet.invocation.PortletInvocation;
import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
import org.jboss.portal.portlet.state.AccessMode;
+import org.jboss.portal.portlet.state.DestroyCloneFailure;
import org.jboss.portal.portlet.state.PropertyChange;
import org.jboss.portal.portlet.state.PropertyMap;
-import org.jboss.portal.portlet.state.DestroyCloneFailure;
-import org.jboss.portal.security.spi.auth.PortalAuthorizationManager;
-import org.jboss.portal.Mode;
import java.util.Arrays;
-import java.util.Set;
-import java.util.List;
import java.util.Collections;
import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public abstract class AbstractInstance implements Instance
{
@@ -317,11 +314,11 @@
List failures = portletInvoker.destroyClones(toDestroy);
if (failures.size() > 0)
{
- for (Iterator i = failures.iterator();i.hasNext();)
+ for (Iterator i = failures.iterator(); i.hasNext();)
{
DestroyCloneFailure failure = (DestroyCloneFailure)i.next();
log.error("Was not able to destroy " + failure.getPortletId() + " for customization " +
- customizationId + ", reason is : " + failure.getMessage());
+ customizationId + ", reason is : " + failure.getMessage());
}
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/AbstractInstance.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/AbstractInstanceCustomization.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/AbstractInstanceCustomization.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/AbstractInstanceCustomization.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,14 +22,14 @@
******************************************************************************/
package org.jboss.portal.core.impl.model.instance;
+import org.apache.log4j.Logger;
import org.jboss.portal.core.model.instance.InstanceCustomization;
+import org.jboss.portal.portlet.PortletContext;
import org.jboss.portal.portlet.state.AccessMode;
-import org.jboss.portal.portlet.PortletContext;
-import org.apache.log4j.Logger;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public abstract class AbstractInstanceCustomization extends AbstractInstance implements InstanceCustomization
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/AbstractInstanceCustomization.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/AbstractInstanceDefinition.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/AbstractInstanceDefinition.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/AbstractInstanceDefinition.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,17 +22,17 @@
******************************************************************************/
package org.jboss.portal.core.impl.model.instance;
+import org.apache.log4j.Logger;
import org.jboss.portal.core.model.instance.InstanceDefinition;
+import org.jboss.portal.portlet.PortletContext;
import org.jboss.portal.portlet.state.AccessMode;
-import org.jboss.portal.portlet.PortletContext;
-import org.apache.log4j.Logger;
import java.util.Collection;
import java.util.Set;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 6736 $
+ * @version $Revision$
*/
public abstract class AbstractInstanceDefinition extends AbstractInstance implements InstanceDefinition
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/AbstractInstanceDefinition.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/InstanceContainerContext.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/InstanceContainerImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/InstanceContainerImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/InstanceContainerImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,45 +22,45 @@
******************************************************************************/
package org.jboss.portal.core.impl.model.instance;
-import org.jboss.portal.common.invocation.InvocationHandler;
import org.jboss.portal.common.invocation.InterceptorStackFactory;
import org.jboss.portal.common.invocation.Invocation;
import org.jboss.portal.common.invocation.InvocationException;
+import org.jboss.portal.common.invocation.InvocationHandler;
import org.jboss.portal.core.model.instance.DuplicateInstanceException;
+import org.jboss.portal.core.model.instance.Instance;
import org.jboss.portal.core.model.instance.InstanceContainer;
import org.jboss.portal.core.model.instance.InstanceDefinition;
import org.jboss.portal.core.model.instance.InstancePermission;
import org.jboss.portal.core.model.instance.NoSuchInstanceException;
-import org.jboss.portal.core.model.instance.Instance;
import org.jboss.portal.core.model.instance.metadata.InstanceMetaData;
+import org.jboss.portal.jems.as.system.AbstractJBossService;
import org.jboss.portal.portlet.PortletContext;
+import org.jboss.portal.portlet.PortletInvoker;
import org.jboss.portal.portlet.PortletInvokerException;
-import org.jboss.portal.portlet.PortletInvoker;
import org.jboss.portal.portlet.invocation.PortletInvocation;
import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
import org.jboss.portal.portlet.state.DestroyCloneFailure;
import org.jboss.portal.security.PortalPermission;
+import org.jboss.portal.security.PortalPermissionCollection;
import org.jboss.portal.security.PortalSecurityException;
import org.jboss.portal.security.RoleSecurityBinding;
import org.jboss.portal.security.SecurityConstants;
-import org.jboss.portal.security.PortalPermissionCollection;
import org.jboss.portal.security.impl.JBossAuthorizationDomainRegistry;
+import org.jboss.portal.security.spi.auth.PortalAuthorizationManager;
import org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory;
-import org.jboss.portal.security.spi.auth.PortalAuthorizationManager;
import org.jboss.portal.security.spi.provider.AuthorizationDomain;
import org.jboss.portal.security.spi.provider.DomainConfigurator;
import org.jboss.portal.security.spi.provider.PermissionFactory;
import org.jboss.portal.security.spi.provider.PermissionRepository;
import org.jboss.portal.security.spi.provider.SecurityConfigurationException;
-import org.jboss.portal.jems.as.system.AbstractJBossService;
import java.util.ArrayList;
import java.util.Collection;
+import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
-import java.util.Collections;
/**
* Instance Container that is persistent
@@ -265,7 +265,7 @@
instanceMD.setPortletRef(portletId);
return internalCreateDefinition(instanceMD, clone);
}
-
+
private InstanceDefinition internalCreateDefinition(InstanceMetaData instanceMD, boolean clone) throws DuplicateInstanceException, PortletInvokerException
{
if (instanceMD == null)
@@ -403,7 +403,7 @@
PortalAuthorizationManager mgr = portalAuthorizationManagerFactory.getManager();
//
- for (Iterator i = list.iterator();i.hasNext();)
+ for (Iterator i = list.iterator(); i.hasNext();)
{
Instance instance = (Instance)i.next();
InstancePermission perm = new InstancePermission(instance.getId(), InstancePermission.VIEW_ACTION);
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/InstanceContainerImpl.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/InstanceContextImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/InstanceContextImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/InstanceContextImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,8 +23,8 @@
package org.jboss.portal.core.impl.model.instance;
import org.jboss.portal.core.model.instance.Instance;
+import org.jboss.portal.core.model.instance.InstanceCustomization;
import org.jboss.portal.core.model.instance.InstanceDefinition;
-import org.jboss.portal.core.model.instance.InstanceCustomization;
import org.jboss.portal.portlet.PortletContext;
import org.jboss.portal.portlet.StateEvent;
import org.jboss.portal.portlet.spi.InstanceContext;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/InstanceContextImpl.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/JBossInstanceContainerContext.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/JBossInstanceContainerContext.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/JBossInstanceContainerContext.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,7 +24,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface JBossInstanceContainerContext extends InstanceContainerContext
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/JBossInstanceContainerContext.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/persistent/PersistentInstanceContainerContext.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/persistent/PersistentInstanceContainerContext.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/persistent/PersistentInstanceContainerContext.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,36 +22,36 @@
******************************************************************************/
package org.jboss.portal.core.impl.model.instance.persistent;
-import org.hibernate.SessionFactory;
-import org.hibernate.Session;
+import EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap;
+import org.apache.log4j.Logger;
import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
import org.hibernate.exception.ConstraintViolationException;
-import org.jboss.portal.jems.hibernate.ObjectContextualizer;
-import org.jboss.portal.core.model.instance.DuplicateInstanceException;
-import org.jboss.portal.core.model.instance.InstancePermission;
-import org.jboss.portal.core.model.instance.metadata.InstanceMetaData;
+import org.jboss.portal.common.util.Tools;
import org.jboss.portal.core.impl.model.instance.AbstractInstance;
-import org.jboss.portal.core.impl.model.instance.AbstractInstanceDefinition;
import org.jboss.portal.core.impl.model.instance.AbstractInstanceCustomization;
+import org.jboss.portal.core.impl.model.instance.AbstractInstanceDefinition;
import org.jboss.portal.core.impl.model.instance.InstanceContainerImpl;
import org.jboss.portal.core.impl.model.instance.JBossInstanceContainerContext;
-import org.jboss.portal.common.util.Tools;
+import org.jboss.portal.core.model.instance.DuplicateInstanceException;
+import org.jboss.portal.core.model.instance.InstancePermission;
+import org.jboss.portal.core.model.instance.metadata.InstanceMetaData;
+import org.jboss.portal.jems.hibernate.ObjectContextualizer;
import org.jboss.portal.portlet.PortletContext;
-import org.jboss.portal.security.RoleSecurityBinding;
import org.jboss.portal.security.PortalSecurityException;
-import org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory;
+import org.jboss.portal.security.RoleSecurityBinding;
import org.jboss.portal.security.spi.auth.PortalAuthorizationManager;
-import org.apache.log4j.Logger;
-import EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap;
+import org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory;
import javax.naming.InitialContext;
-import java.util.Iterator;
import java.util.Collection;
+import java.util.Iterator;
import java.util.Set;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PersistentInstanceContainerContext implements JBossInstanceContainerContext
{
@@ -300,7 +300,6 @@
instance.setPortletRef(portletContext.getId());
instance.setState(portletContext.getState());
-
//
updateInstance(instance);
}
@@ -310,7 +309,7 @@
PersistentInstanceDefinition _def = (PersistentInstanceDefinition)def;
//
- for (Iterator i = _def.getRelatedSecurityBindings().values().iterator();i.hasNext();)
+ for (Iterator i = _def.getRelatedSecurityBindings().values().iterator(); i.hasNext();)
{
PersistentRoleSecurityBinding isc = (PersistentRoleSecurityBinding)i.next();
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/persistent/PersistentInstanceContainerContext.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/persistent/PersistentInstanceCustomization.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/persistent/PersistentInstanceDefinition.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/persistent/PersistentInstanceDefinition.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/persistent/PersistentInstanceDefinition.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,21 +23,21 @@
package org.jboss.portal.core.impl.model.instance.persistent;
import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.core.impl.model.instance.AbstractInstanceDefinition;
import org.jboss.portal.core.impl.model.instance.InstanceContainerContext;
-import org.jboss.portal.core.impl.model.instance.AbstractInstanceDefinition;
import org.jboss.portal.core.model.instance.metadata.InstanceMetaData;
import org.jboss.portal.jems.hibernate.ContextObject;
import org.jboss.portal.portlet.impl.jsr168.metadata.LocalizedStringMetaData;
import org.jboss.portal.portlet.impl.jsr168.metadata.LocalizedValueMetaData;
import org.jboss.portal.security.RoleSecurityBinding;
+import java.util.Collection;
import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
import java.util.Locale;
import java.util.Map;
-import java.util.Collection;
import java.util.Set;
-import java.util.HashSet;
-import java.util.Iterator;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
@@ -112,7 +112,7 @@
}
return map;
}
-
+
public LocalizedString getDisplayName()
{
return new LocalizedString(displayNames, Locale.ENGLISH);
@@ -186,7 +186,7 @@
{
return instanceId;
}
-
+
// AbstractInstanceDefinition implementation ************************************************************************
public Collection getCustomizations()
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/persistent/PersistentInstanceDefinition.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/persistent/PersistentRoleSecurityBinding.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/AbstractPortalObjectContainer.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/AbstractPortalObjectContainer.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/AbstractPortalObjectContainer.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,17 +22,17 @@
******************************************************************************/
package org.jboss.portal.core.impl.model.portal;
+import org.jboss.portal.core.model.content.ContentType;
+import org.jboss.portal.core.model.content.spi.ContentProvider;
+import org.jboss.portal.core.model.content.spi.ContentProviderRegistry;
+import org.jboss.portal.core.model.content.spi.handler.ContentHandler;
+import org.jboss.portal.core.model.portal.Context;
+import org.jboss.portal.core.model.portal.DuplicatePortalObjectException;
import org.jboss.portal.core.model.portal.PortalObject;
import org.jboss.portal.core.model.portal.PortalObjectContainer;
-import org.jboss.portal.core.model.portal.PortalObjectPermission;
import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.core.model.portal.DuplicatePortalObjectException;
import org.jboss.portal.core.model.portal.PortalObjectPath;
-import org.jboss.portal.core.model.portal.Context;
-import org.jboss.portal.core.model.content.ContentType;
-import org.jboss.portal.core.model.content.spi.ContentProviderRegistry;
-import org.jboss.portal.core.model.content.spi.ContentProvider;
-import org.jboss.portal.core.model.content.spi.handler.ContentHandler;
+import org.jboss.portal.core.model.portal.PortalObjectPermission;
import org.jboss.portal.jems.as.system.AbstractJBossService;
import org.jboss.portal.security.PortalPermission;
import org.jboss.portal.security.PortalPermissionCollection;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/AbstractPortalObjectContainer.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/ContextImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/ContextImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/ContextImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,11 +22,10 @@
******************************************************************************/
package org.jboss.portal.core.impl.model.portal;
-import org.jboss.portal.core.model.portal.PortalContainer;
+import org.jboss.portal.core.model.portal.Context;
import org.jboss.portal.core.model.portal.DuplicatePortalObjectException;
import org.jboss.portal.core.model.portal.Portal;
import org.jboss.portal.core.model.portal.PortalObject;
-import org.jboss.portal.core.model.portal.Context;
import java.util.HashMap;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/ContextImpl.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/DashboardContext.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/DashboardContext.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/DashboardContext.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -30,15 +30,12 @@
* An implementation of the <code>Context</code> interface for dashboards.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public abstract class DashboardContext implements Context
{
-
-
-
public Collection getChildren()
{
throw new UnsupportedOperationException();
@@ -49,8 +46,6 @@
throw new UnsupportedOperationException();
}
-
-
//
// public Portal getPortal(String name) throws IllegalArgumentException
// {
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/DashboardContext.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/ObjectNode.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/ObjectNodeSecurityConstraint.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/PageImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/PageImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/PageImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,12 +22,12 @@
******************************************************************************/
package org.jboss.portal.core.impl.model.portal;
+import org.jboss.portal.core.model.content.ContentType;
import org.jboss.portal.core.model.portal.DuplicatePortalObjectException;
import org.jboss.portal.core.model.portal.Page;
import org.jboss.portal.core.model.portal.Portal;
import org.jboss.portal.core.model.portal.PortalObject;
import org.jboss.portal.core.model.portal.Window;
-import org.jboss.portal.core.model.content.ContentType;
import java.util.HashMap;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/PageImpl.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/PersistentPortalObjectContainer.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/PortalImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/PortalImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/PortalImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -27,9 +27,9 @@
import org.jboss.portal.core.model.portal.Portal;
import org.jboss.portal.core.model.portal.PortalObject;
+import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
-import java.util.HashMap;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/PortalImpl.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/PortalObjectIdUserType.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/PortalObjectIdUserType.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/PortalObjectIdUserType.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,13 +22,13 @@
******************************************************************************/
package org.jboss.portal.core.impl.model.portal;
-import org.jboss.portal.jems.hibernate.StringWrapperUserType;
import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.PortalObjectPath;
+import org.jboss.portal.jems.hibernate.StringWrapperUserType;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 5448 $
+ * @version $Revision$
*/
public class PortalObjectIdUserType extends StringWrapperUserType
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/PortalObjectIdUserType.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/PortalObjectImpl.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/TransientPortalObjectContainer.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/TransientPortalObjectContainer.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/TransientPortalObjectContainer.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,15 +22,14 @@
******************************************************************************/
package org.jboss.portal.core.impl.model.portal;
-import org.jboss.portal.core.model.portal.PortalObjectId;
+import EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap;
import org.jboss.portal.core.model.portal.DuplicatePortalObjectException;
+import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.PortalObjectPath;
import java.util.Iterator;
import java.util.Map;
-import EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap;
-
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @version $Revision$
@@ -76,7 +75,7 @@
protected ObjectNode getObjectNode(PortalObjectId id)
{
ObjectNode node = (ObjectNode)roots.get(id.getNamespace());
- for (Iterator i = id.getPath().names();node != null && i.hasNext();)
+ for (Iterator i = id.getPath().names(); node != null && i.hasNext();)
{
String name = (String)i.next();
node = (ObjectNode)node.getChildren().get(name);
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/TransientPortalObjectContainer.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/WindowImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/WindowImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/WindowImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,13 +24,13 @@
import org.jboss.portal.Mode;
import org.jboss.portal.WindowState;
-import org.jboss.portal.core.model.portal.PortalObject;
-import org.jboss.portal.core.model.portal.Window;
-import org.jboss.portal.core.model.portal.Page;
import org.jboss.portal.core.model.content.Content;
import org.jboss.portal.core.model.content.ContentType;
+import org.jboss.portal.core.model.content.spi.handler.ContentHandler;
import org.jboss.portal.core.model.content.spi.handler.ContentState;
-import org.jboss.portal.core.model.content.spi.handler.ContentHandler;
+import org.jboss.portal.core.model.portal.Page;
+import org.jboss.portal.core.model.portal.PortalObject;
+import org.jboss.portal.core.model.portal.Window;
import org.jboss.portal.jems.hibernate.ContextObject;
import java.util.HashMap;
@@ -163,9 +163,7 @@
getContentState().destroy();
}
- /**
- * Encapsulate content behavior for a window.
- */
+ /** Encapsulate content behavior for a window. */
private class ContentStateImpl implements ContentState
{
@@ -226,23 +224,28 @@
{
Iterator i = getDeclaredProperties().keySet().iterator();
String next;
+
{
findNext();
}
+
public boolean hasNext()
{
return next != null;
}
+
public Object next()
{
String tmp = next;
findNext();
return tmp;
}
+
public void remove()
{
throw new UnsupportedOperationException();
}
+
void findNext()
{
next = null;
@@ -270,7 +273,7 @@
public void clearParameters()
{
- for (Iterator i = getDeclaredProperties().keySet().iterator();i.hasNext();)
+ for (Iterator i = getDeclaredProperties().keySet().iterator(); i.hasNext();)
{
String propertyName = (String)i.next();
if (propertyName.startsWith("content."))
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/portal/WindowImpl.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/AjaxInfoImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/AjaxInfoImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/AjaxInfoImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,12 +22,12 @@
******************************************************************************/
package org.jboss.portal.core.impl.portlet.info;
+import org.jboss.portal.core.metadata.portlet.AjaxMetaData;
import org.jboss.portal.core.portlet.info.AjaxInfo;
-import org.jboss.portal.core.metadata.portlet.AjaxMetaData;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class AjaxInfoImpl implements AjaxInfo
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/AjaxInfoImpl.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/CorePortletInfoFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/CorePortletInfoFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/CorePortletInfoFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,16 +22,16 @@
******************************************************************************/
package org.jboss.portal.core.impl.portlet.info;
+import org.jboss.portal.common.i18n.ResourceBundleManager;
import org.jboss.portal.portlet.container.PortletApplicationContext;
+import org.jboss.portal.portlet.impl.jsr168.metadata.PortletMetaData;
import org.jboss.portal.portlet.impl.jsr168.spi.PortletInfoFactory;
-import org.jboss.portal.portlet.impl.jsr168.metadata.PortletMetaData;
import org.jboss.portal.portlet.info.PortletInfo;
import org.jboss.portal.portlet.metadata.JBossPortletMetaData;
-import org.jboss.portal.common.i18n.ResourceBundleManager;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class CorePortletInfoFactory implements PortletInfoFactory
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/CorePortletInfoFactory.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/CorePortletInfoImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/CorePortletInfoImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/CorePortletInfoImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,23 +22,23 @@
******************************************************************************/
package org.jboss.portal.core.impl.portlet.info;
+import org.jboss.portal.common.i18n.ResourceBundleManager;
+import org.jboss.portal.common.transaction.Transactions;
+import org.jboss.portal.core.metadata.portlet.AjaxMetaData;
+import org.jboss.portal.core.metadata.portlet.HeaderContentMetaData;
+import org.jboss.portal.core.metadata.portlet.JBossPortletMetaData;
+import org.jboss.portal.core.metadata.portlet.PortletInfoMetaData;
+import org.jboss.portal.core.portlet.info.AjaxInfo;
import org.jboss.portal.core.portlet.info.CorePortletInfo;
-import org.jboss.portal.core.portlet.info.AjaxInfo;
import org.jboss.portal.core.portlet.info.MarkupHeaderInfo;
import org.jboss.portal.core.portlet.info.PortletInfoInfo;
-import org.jboss.portal.core.metadata.portlet.JBossPortletMetaData;
-import org.jboss.portal.core.metadata.portlet.AjaxMetaData;
-import org.jboss.portal.core.metadata.portlet.HeaderContentMetaData;
-import org.jboss.portal.core.metadata.portlet.PortletInfoMetaData;
import org.jboss.portal.portlet.container.PortletApplicationContext;
import org.jboss.portal.portlet.impl.jsr168.info.ContainerPortletInfo;
import org.jboss.portal.portlet.impl.jsr168.metadata.PortletMetaData;
-import org.jboss.portal.common.i18n.ResourceBundleManager;
-import org.jboss.portal.common.transaction.Transactions;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class CorePortletInfoImpl extends ContainerPortletInfo implements CorePortletInfo
{
@@ -54,7 +54,7 @@
/** . */
private final PortletInfoInfoImpl portletInfo;
-
+
public CorePortletInfoImpl(PortletApplicationContext portletApplicationContext, PortletMetaData portletMD, org.jboss.portal.portlet.metadata.JBossPortletMetaData jbossPortletMD, ResourceBundleManager bundleMgr)
{
super(portletApplicationContext, portletMD, jbossPortletMD, bundleMgr);
@@ -63,13 +63,13 @@
AjaxMetaData ajaxMD = ((JBossPortletMetaData)jbossPortletMD).getAjax();
HeaderContentMetaData headerContentMD = ((JBossPortletMetaData)jbossPortletMD).getHeaderContent();
PortletInfoMetaData portletInfoMD = ((JBossPortletMetaData)jbossPortletMD).getPortletInfo();
-
+
//
this.txType = jbossPortletMD.getTxType();
this.ajax = ajaxMD != null ? new AjaxInfoImpl(ajaxMD) : null;
this.markupHeader = headerContentMD != null ? new MarkupHeaderInfoImpl(headerContentMD) : null;
this.portletInfo = portletInfoMD != null ? new PortletInfoInfoImpl(portletApplicationContext, portletInfoMD) : null;
- }
+ }
public Transactions.Type getTxType()
{
@@ -85,7 +85,7 @@
{
return markupHeader;
}
-
+
public PortletInfoInfo getPortletInfo()
{
return portletInfo;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/CorePortletInfoImpl.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/MarkupHeaderInfoImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/MarkupHeaderInfoImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/MarkupHeaderInfoImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,18 +22,18 @@
******************************************************************************/
package org.jboss.portal.core.impl.portlet.info;
+import org.jboss.portal.core.metadata.portlet.ElementMetaData;
+import org.jboss.portal.core.metadata.portlet.HeaderContentMetaData;
import org.jboss.portal.core.portlet.info.MarkupHeaderInfo;
-import org.jboss.portal.core.metadata.portlet.HeaderContentMetaData;
-import org.jboss.portal.core.metadata.portlet.ElementMetaData;
+import java.util.ArrayList;
import java.util.Collection;
-import java.util.ArrayList;
+import java.util.Collections;
import java.util.Iterator;
-import java.util.Collections;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class MarkupHeaderInfoImpl implements MarkupHeaderInfo
{
@@ -44,7 +44,7 @@
public MarkupHeaderInfoImpl(HeaderContentMetaData headerContentMD)
{
ArrayList markupElements = new ArrayList(headerContentMD.getElements().size());
- for (Iterator i = headerContentMD.getElements().iterator();i.hasNext();)
+ for (Iterator i = headerContentMD.getElements().iterator(); i.hasNext();)
{
ElementMetaData elementMD = (ElementMetaData)i.next();
markupElements.add(elementMD.getElement());
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/MarkupHeaderInfoImpl.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/PortletIconInfoImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/PortletIconInfoImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/PortletIconInfoImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,12 +22,12 @@
******************************************************************************/
package org.jboss.portal.core.impl.portlet.info;
-import java.util.Map;
-
import org.jboss.portal.core.metadata.portlet.PortletIconMetaData;
import org.jboss.portal.core.portlet.info.PortletIconInfo;
import org.jboss.portal.portlet.container.PortletApplicationContext;
+import java.util.Map;
+
/**
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
* @version $Revision$
@@ -36,7 +36,7 @@
{
/** . */
private Map icons;
-
+
/** . */
private PortletApplicationContext portletApplicationContext;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/PortletIconInfoImpl.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/PortletInfoInfoImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/PortletInfoInfoImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/PortletInfoInfoImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -35,7 +35,7 @@
{
/** . */
private PortletInfoMetaData portletInfoMetaData;
-
+
/** . */
private PortletApplicationContext portletApplicationContext;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/info/PortletInfoInfoImpl.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/LocalPortletInvoker.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/LocalPortletInvoker.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/LocalPortletInvoker.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,21 +22,21 @@
******************************************************************************/
package org.jboss.portal.core.impl.portlet.state;
+import org.jboss.portal.portlet.Portlet;
+import org.jboss.portal.portlet.PortletContext;
import org.jboss.portal.portlet.PortletInvoker;
import org.jboss.portal.portlet.PortletInvokerException;
-import org.jboss.portal.portlet.Portlet;
-import org.jboss.portal.portlet.PortletContext;
+import org.jboss.portal.portlet.invocation.PortletInvocation;
+import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
+import org.jboss.portal.portlet.state.PropertyChange;
import org.jboss.portal.portlet.state.PropertyMap;
-import org.jboss.portal.portlet.state.PropertyChange;
-import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
-import org.jboss.portal.portlet.invocation.PortletInvocation;
+import java.util.List;
import java.util.Set;
-import java.util.List;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class LocalPortletInvoker implements PortletInvoker
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/LocalPortletInvoker.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentConsumer.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentConsumer.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentConsumer.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -37,7 +37,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PersistentConsumer implements Consumer
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentConsumer.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentConsumerGroup.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentConsumerGroup.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentConsumerGroup.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -36,7 +36,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PersistentConsumerGroup implements ConsumerGroup, ContextObject
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentConsumerGroup.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentPortletState.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentPortletState.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentPortletState.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -25,8 +25,8 @@
import org.jboss.portal.common.value.Value;
import org.jboss.portal.portlet.state.AbstractPropertyMap;
import org.jboss.portal.portlet.state.PropertyMap;
+import org.jboss.portal.portlet.state.producer.PortletState;
import org.jboss.portal.portlet.state.producer.PortletStateContext;
-import org.jboss.portal.portlet.state.producer.PortletState;
import java.util.Calendar;
import java.util.Date;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentPortletState.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentPortletStateEntry.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentPortletStatePersistenceManager.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentRegistration.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentRegistration.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentRegistration.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,20 +24,19 @@
import org.jboss.portal.common.NotYetImplemented;
import org.jboss.portal.common.util.TypedMap;
-import org.jboss.portal.common.util.MapAccessor;
import org.jboss.portal.registration.Consumer;
import org.jboss.portal.registration.Registration;
import org.jboss.portal.registration.RegistrationStatus;
import javax.xml.namespace.QName;
import java.util.Collections;
-import java.util.Map;
import java.util.HashSet;
+import java.util.Map;
import java.util.Set;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PersistentRegistration implements Registration
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/PersistentRegistration.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/ProducerPortletInvoker.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/RegistrationStatusUserType.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/RegistrationStatusUserType.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/RegistrationStatusUserType.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -34,7 +34,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class RegistrationStatusUserType implements UserType
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/RegistrationStatusUserType.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/StateManagementPolicyImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/StateManagementPolicyImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/StateManagementPolicyImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -31,7 +31,7 @@
* local portal or for wsrp invocations in the context of a registration.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class StateManagementPolicyImpl implements StateManagementPolicy
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/StateManagementPolicyImpl.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/TypedStringArray.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/portlet/state/ValueManager.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/ProxyPreferencesMetaData.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/ServiceMetaData.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/AjaxMetaData.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/AjaxMetaData.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/AjaxMetaData.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,7 +24,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class AjaxMetaData
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/AjaxMetaData.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/ElementMetaData.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/ElementMetaData.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/ElementMetaData.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,7 +26,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public abstract class ElementMetaData
{
@@ -66,7 +66,7 @@
/**
* Create a meta header element. <p>This element will create a meta tag.</p>
*
- * @param name name attribute of the meta element
+ * @param name name attribute of the meta element
* @param content content attribute of the meta element
* @return a new meta header element
*/
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/ElementMetaData.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/HeaderContentMetaData.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/JBossApplicationMetaData.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/JBossPortletMetaData.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/JBossPortletMetaData.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/JBossPortletMetaData.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -34,7 +34,7 @@
/** . */
private AjaxMetaData ajax;
-
+
/** . */
private PortletInfoMetaData portletInfo;
@@ -47,7 +47,7 @@
{
this.headerContent = headerContent;
}
-
+
public AjaxMetaData getAjax()
{
return ajax;
@@ -57,7 +57,7 @@
{
this.ajax = ajax;
}
-
+
public PortletInfoMetaData getPortletInfo()
{
return portletInfo;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/JBossPortletMetaData.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/LinkElementMetaData.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/LinkElementMetaData.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/LinkElementMetaData.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,14 +22,14 @@
******************************************************************************/
package org.jboss.portal.core.metadata.portlet;
+import org.jboss.portal.common.markup.MarkupAttribute;
import org.jboss.portal.common.markup.MarkupElement;
-import org.jboss.portal.common.markup.MarkupAttribute;
import java.util.ArrayList;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class LinkElementMetaData extends ElementMetaData
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/LinkElementMetaData.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/NamedMetaElementMetaData.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/NamedMetaElementMetaData.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/NamedMetaElementMetaData.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,14 +22,14 @@
******************************************************************************/
package org.jboss.portal.core.metadata.portlet;
+import org.jboss.portal.common.markup.MarkupAttribute;
import org.jboss.portal.common.markup.MarkupElement;
-import org.jboss.portal.common.markup.MarkupAttribute;
import java.util.ArrayList;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class NamedMetaElementMetaData extends ElementMetaData
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/NamedMetaElementMetaData.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/PortletIconMetaData.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/PortletIconMetaData.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/PortletIconMetaData.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -35,13 +35,13 @@
/** . */
public static final String SMALL = "small";
-
+
/** . */
public static final String LARGE = "large";
/** . */
private Map icons;
-
+
public PortletIconMetaData()
{
icons = new HashMap();
@@ -56,7 +56,7 @@
{
return (String)icons.get(size);
}
-
+
public Map getIcons()
{
return Collections.unmodifiableMap(icons);
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/PortletIconMetaData.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/PortletInfoMetaData.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/ScriptElementMetaData.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/ScriptElementMetaData.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/ScriptElementMetaData.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,14 +22,14 @@
******************************************************************************/
package org.jboss.portal.core.metadata.portlet;
+import org.jboss.portal.common.markup.MarkupAttribute;
import org.jboss.portal.common.markup.MarkupElement;
-import org.jboss.portal.common.markup.MarkupAttribute;
import java.util.ArrayList;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ScriptElementMetaData extends ElementMetaData
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/metadata/portlet/ScriptElementMetaData.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/CustomizationManager.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/CustomizationManager.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/CustomizationManager.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,16 +23,16 @@
package org.jboss.portal.core.model;
import org.jboss.portal.core.model.instance.Instance;
+import org.jboss.portal.core.model.portal.Portal;
+import org.jboss.portal.core.model.portal.PortalObject;
import org.jboss.portal.core.model.portal.Window;
-import org.jboss.portal.core.model.portal.PortalObject;
-import org.jboss.portal.core.model.portal.Portal;
import org.jboss.portal.identity.User;
/**
* Integration logic between portal objects, instances and users.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface CustomizationManager
{
@@ -46,11 +46,11 @@
Instance getInstance(Window window) throws IllegalArgumentException;
/**
- * Returns a contextualized portlet instance for the specified user id. If the window is in the context
- * of a dashboard then the portlet instance is further customized for that specific window.
+ * Returns a contextualized portlet instance for the specified user id. If the window is in the context of a
+ * dashboard then the portlet instance is further customized for that specific window.
*
* @param window the window of the portlet instance
- * @param user the user that can be null
+ * @param user the user that can be null
* @return the target instance or null if it cannot be found
* @throws IllegalArgumentException if the window is null
*/
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/CustomizationManager.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/Content.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/Content.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/Content.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -30,7 +30,7 @@
* Defines the base interface for content.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface Content
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/Content.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/ContentType.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/ContentType.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/ContentType.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -25,10 +25,10 @@
import java.io.Serializable;
/**
- * Type safe string for notion of content type.
+ * Type safe string for notion of content type.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public final class ContentType implements Serializable
{
@@ -75,7 +75,7 @@
public String toString()
{
- return value;
+ return value;
}
/**
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/ContentType.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/ContentProvider.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/ContentProvider.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/ContentProvider.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,14 +22,14 @@
******************************************************************************/
package org.jboss.portal.core.model.content.spi;
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.core.model.content.ContentType;
import org.jboss.portal.core.model.content.spi.handler.ContentHandler;
import org.jboss.portal.core.model.content.spi.portlet.ContentPortlet;
-import org.jboss.portal.core.model.content.ContentType;
-import org.jboss.portal.common.i18n.LocalizedString;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface ContentProvider
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/ContentProvider.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/ContentProviderRegistry.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/ContentProviderRegistry.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/ContentProviderRegistry.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -28,7 +28,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface ContentProviderRegistry
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/ContentProviderRegistry.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/handler/ContentHandler.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/handler/ContentHandler.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/handler/ContentHandler.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,25 +23,22 @@
package org.jboss.portal.core.model.content.spi.handler;
import org.jboss.portal.core.model.content.Content;
-import org.jboss.portal.core.model.content.spi.handler.ContentState;
/**
- * The content handler act as a factory for <code>Content</code> objects from their state. The interface
- * receives also callbacks of the content lifecycle in order to be able to manage additional resources
- * related to the content.
- *
+ * The content handler act as a factory for <code>Content</code> objects from their state. The interface receives also
+ * callbacks of the content lifecycle in order to be able to manage additional resources related to the content.
+ *
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface ContentHandler
{
/**
- * Factory method that creates an instance of content object. This method is called
- * whenever the frameworks needs a runtime representation of the content state which
- * can be used at runtime by content clients.
+ * Factory method that creates an instance of content object. This method is called whenever the frameworks needs a
+ * runtime representation of the content state which can be used at runtime by content clients.
*
* @param contextId the context id in which the state is used
- * @param state the state
+ * @param state the state
* @return the content interface implementation
*/
Content newContent(String contextId, ContentState state);
@@ -50,7 +47,7 @@
* Life cycle method to signal state creation.
*
* @param contextId the context id in which the state is created
- * @param state the state
+ * @param state the state
*/
void contentCreated(String contextId, ContentState state);
@@ -58,7 +55,7 @@
* Life cycle method to signal state destruction.
*
* @param contextId the context id in which the state is destroyed
- * @param state the state
+ * @param state the state
*/
void contentDestroyed(String contextId, ContentState state);
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/handler/ContentHandler.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/handler/ContentState.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/handler/ContentState.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/handler/ContentState.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -28,7 +28,7 @@
* Represents the state of the content which consist in an URI and a set of properties.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface ContentState
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/handler/ContentState.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/portlet/ContentPortlet.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/portlet/ContentPortlet.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/portlet/ContentPortlet.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -28,14 +28,12 @@
* Define the portlet integration for content interactions.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface ContentPortlet
{
- /**
- * The edit content mode.
- */
+ /** The edit content mode. */
Mode EDIT_CONTENT_MODE = Mode.create("edit_content");
/**
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/content/spi/portlet/ContentPortlet.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/DuplicateInstanceException.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/Instance.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/Instance.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/Instance.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -38,7 +38,7 @@
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @version $Revision$
*/
-public interface Instance
+public interface Instance
{
/** The attribute name under which the instance id can be accessed. */
String INSTANCE_ID_ATTRIBUTE = "instanceid";
@@ -52,11 +52,11 @@
/**
* Return the display name
- *
+ *
* @return the display name
*/
LocalizedString getDisplayName();
-
+
/**
* Return the runtime metadata for this portlet.
*
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/Instance.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceCommandFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceCommandFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceCommandFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -32,7 +32,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class InstanceCommandFactory extends AbstractCommandFactory
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceCommandFactory.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceContainer.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceContainer.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceContainer.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,13 +22,13 @@
******************************************************************************/
package org.jboss.portal.core.model.instance;
-import java.util.Collection;
-
import org.jboss.portal.core.model.instance.metadata.InstanceMetaData;
import org.jboss.portal.portlet.PortletInvoker;
import org.jboss.portal.portlet.PortletInvokerException;
import org.jboss.portal.security.spi.provider.AuthorizationDomain;
+import java.util.Collection;
+
/**
* A container for instances of component.
*
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceContainer.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceCustomization.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceCustomization.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceCustomization.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,7 +24,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface InstanceCustomization extends Instance
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceCustomization.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceDefinition.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceDefinition.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceDefinition.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,7 +24,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface InstanceDefinition extends Instance
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceDefinition.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstancePermission.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstancePermission.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstancePermission.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -85,7 +85,7 @@
public static final String PERMISSION_TYPE = "instance";
/** The action names. */
- private static final String[] ACTION_NAMES = {VIEW_ACTION,CREATE_ACTION,DESTROY_ACTION,CUSTOMIZE_ACTION};
+ private static final String[] ACTION_NAMES = {VIEW_ACTION, CREATE_ACTION, DESTROY_ACTION, CUSTOMIZE_ACTION};
public InstancePermission(PortalPermissionCollection collection)
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstancePermission.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceSecurityInterceptor.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceSecurityInterceptor.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceSecurityInterceptor.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,6 +23,7 @@
package org.jboss.portal.core.model.instance;
import org.jboss.logging.Logger;
+import org.jboss.portal.Mode;
import org.jboss.portal.common.invocation.InvocationException;
import org.jboss.portal.portlet.invocation.PortletInterceptor;
import org.jboss.portal.portlet.invocation.PortletInvocation;
@@ -30,7 +31,6 @@
import org.jboss.portal.security.PortalSecurityException;
import org.jboss.portal.security.spi.auth.PortalAuthorizationManager;
import org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory;
-import org.jboss.portal.Mode;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceSecurityInterceptor.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceURLFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceURLFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceURLFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,22 +22,22 @@
******************************************************************************/
package org.jboss.portal.core.model.instance;
-import org.jboss.portal.core.controller.command.mapper.URLFactoryDelegate;
import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerContext;
+import org.jboss.portal.core.controller.command.mapper.URLFactoryDelegate;
+import org.jboss.portal.core.model.instance.command.PortletInstanceCommand;
+import org.jboss.portal.core.model.instance.command.action.InvokePortletInstanceActionCommand;
import org.jboss.portal.core.model.instance.command.action.InvokePortletInstanceRenderCommand;
-import org.jboss.portal.core.model.instance.command.action.InvokePortletInstanceActionCommand;
import org.jboss.portal.core.model.instance.command.render.RenderPortletInstanceCommand;
-import org.jboss.portal.core.model.instance.command.PortletInstanceCommand;
+import org.jboss.portal.portlet.impl.PortletRequestEncoder;
+import org.jboss.portal.server.AbstractServerURL;
+import org.jboss.portal.server.ServerInvocation;
import org.jboss.portal.server.ServerURL;
-import org.jboss.portal.server.ServerInvocation;
-import org.jboss.portal.server.AbstractServerURL;
-import org.jboss.portal.portlet.impl.PortletRequestEncoder;
import org.jboss.util.NotImplementedException;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class InstanceURLFactory extends URLFactoryDelegate
{
@@ -47,7 +47,7 @@
/** . */
private String instanceId;
-
+
public String getPath()
{
return path;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InstanceURLFactory.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InvokePortletInstanceCommandFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InvokePortletInstanceCommandFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InvokePortletInstanceCommandFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,16 +22,16 @@
******************************************************************************/
package org.jboss.portal.core.model.instance;
+import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.portlet.InvokePortletCommandFactory;
-import org.jboss.portal.core.controller.ControllerCommand;
+import org.jboss.portal.core.model.instance.command.action.InvokePortletInstanceActionCommand;
import org.jboss.portal.core.model.instance.command.action.InvokePortletInstanceRenderCommand;
-import org.jboss.portal.core.model.instance.command.action.InvokePortletInstanceActionCommand;
import org.jboss.portal.portlet.ActionURL;
import org.jboss.portal.portlet.RenderURL;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class InvokePortletInstanceCommandFactory implements InvokePortletCommandFactory
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/InvokePortletInstanceCommandFactory.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/NoSuchInstanceException.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/PortletInstanceResponseHandler.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/PortletInstanceResponseHandler.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/PortletInstanceResponseHandler.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,28 +22,28 @@
******************************************************************************/
package org.jboss.portal.core.model.instance;
-import org.jboss.portal.core.controller.handler.ResponseHandler;
-import org.jboss.portal.core.controller.handler.HandlerResponse;
+import org.jboss.portal.common.util.MarkupInfo;
+import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerContext;
-import org.jboss.portal.core.controller.ControllerCommand;
-import org.jboss.portal.core.controller.handler.HTTPResponse;
import org.jboss.portal.core.controller.ControllerException;
import org.jboss.portal.core.controller.ControllerResponse;
+import org.jboss.portal.core.controller.handler.HTTPResponse;
+import org.jboss.portal.core.controller.handler.HandlerResponse;
+import org.jboss.portal.core.controller.handler.ResponseHandler;
import org.jboss.portal.core.controller.handler.ResponseHandlerException;
+import org.jboss.portal.core.model.instance.command.render.RenderPortletInstanceCommand;
import org.jboss.portal.core.model.instance.command.response.UpdatePortletInstanceResponse;
-import org.jboss.portal.core.model.instance.command.render.RenderPortletInstanceCommand;
+import org.jboss.portal.core.theme.PageRendition;
+import org.jboss.portal.server.ServerInvocation;
import org.jboss.portal.server.ServerInvocationContext;
-import org.jboss.portal.server.ServerInvocation;
import org.jboss.portal.web.ServletContextDispatcher;
-import org.jboss.portal.common.util.MarkupInfo;
-import org.jboss.portal.core.theme.PageRendition;
import javax.servlet.ServletException;
import java.io.IOException;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortletInstanceResponseHandler implements ResponseHandler
{
@@ -54,7 +54,7 @@
try
{
UpdatePortletInstanceResponse upir = (UpdatePortletInstanceResponse)controllerResponse;
- RenderPortletInstanceCommand render= new RenderPortletInstanceCommand(upir.getInstanceId(), upir.getNavigationalState());
+ RenderPortletInstanceCommand render = new RenderPortletInstanceCommand(upir.getInstanceId(), upir.getNavigationalState());
final PageRendition rendition = (PageRendition)controllerContext.execute(render);
final ServerInvocation invocation = controllerContext.getServerInvocation();
return new HTTPResponse()
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/PortletInstanceResponseHandler.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/PortletInstanceCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/PortletInstanceCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/PortletInstanceCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -30,7 +30,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public abstract class PortletInstanceCommand extends ControllerCommand
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/PortletInstanceCommand.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/action/InvokePortletInstanceActionCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/action/InvokePortletInstanceActionCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/action/InvokePortletInstanceActionCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,26 +22,26 @@
******************************************************************************/
package org.jboss.portal.core.model.instance.command.action;
+import org.jboss.portal.Mode;
+import org.jboss.portal.WindowState;
import org.jboss.portal.core.controller.ControllerException;
import org.jboss.portal.core.controller.ControllerResponse;
+import org.jboss.portal.core.controller.command.info.CommandInfo;
+import org.jboss.portal.core.controller.portlet.ControllerResponseFactory;
+import org.jboss.portal.core.controller.portlet.InvokePortletCommandFactory;
import org.jboss.portal.core.controller.portlet.PortletContextFactory;
-import org.jboss.portal.core.controller.portlet.InvokePortletCommandFactory;
import org.jboss.portal.core.controller.portlet.PortletInvocationFactory;
-import org.jboss.portal.core.controller.portlet.ControllerResponseFactory;
-import org.jboss.portal.core.controller.command.info.CommandInfo;
import org.jboss.portal.core.model.instance.InvokePortletInstanceCommandFactory;
import org.jboss.portal.core.model.instance.command.PortletInstanceCommand;
+import org.jboss.portal.portlet.PortletInvokerException;
+import org.jboss.portal.portlet.PortletParameters;
import org.jboss.portal.portlet.StateString;
-import org.jboss.portal.portlet.PortletParameters;
-import org.jboss.portal.portlet.PortletInvokerException;
import org.jboss.portal.portlet.invocation.ActionInvocation;
import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
-import org.jboss.portal.Mode;
-import org.jboss.portal.WindowState;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class InvokePortletInstanceActionCommand extends PortletInstanceCommand
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/action/InvokePortletInstanceActionCommand.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/action/InvokePortletInstanceRenderCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/action/InvokePortletInstanceRenderCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/action/InvokePortletInstanceRenderCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -25,13 +25,13 @@
import org.jboss.portal.core.controller.ControllerException;
import org.jboss.portal.core.controller.ControllerResponse;
import org.jboss.portal.core.controller.command.info.CommandInfo;
+import org.jboss.portal.core.model.instance.command.PortletInstanceCommand;
import org.jboss.portal.core.model.instance.command.response.UpdatePortletInstanceResponse;
-import org.jboss.portal.core.model.instance.command.PortletInstanceCommand;
import org.jboss.portal.portlet.StateString;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class InvokePortletInstanceRenderCommand extends PortletInstanceCommand
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/action/InvokePortletInstanceRenderCommand.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/render/RenderPortletInstanceCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/render/RenderPortletInstanceCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/render/RenderPortletInstanceCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,39 +22,39 @@
******************************************************************************/
package org.jboss.portal.core.model.instance.command.render;
-import org.jboss.portal.core.model.instance.command.PortletInstanceCommand;
-import org.jboss.portal.core.model.instance.InvokePortletInstanceCommandFactory;
-import org.jboss.portal.core.controller.command.info.CommandInfo;
+import org.jboss.portal.Mode;
+import org.jboss.portal.WindowState;
+import org.jboss.portal.common.NotYetImplemented;
import org.jboss.portal.core.controller.ControllerException;
import org.jboss.portal.core.controller.ControllerResponse;
+import org.jboss.portal.core.controller.command.info.CommandInfo;
+import org.jboss.portal.core.controller.portlet.InvokePortletCommandFactory;
import org.jboss.portal.core.controller.portlet.PortletContextFactory;
-import org.jboss.portal.core.controller.portlet.InvokePortletCommandFactory;
import org.jboss.portal.core.controller.portlet.PortletInvocationFactory;
+import org.jboss.portal.core.model.instance.InvokePortletInstanceCommandFactory;
+import org.jboss.portal.core.model.instance.command.PortletInstanceCommand;
import org.jboss.portal.core.theme.PageRendition;
+import org.jboss.portal.portlet.PortletInvokerException;
import org.jboss.portal.portlet.StateString;
-import org.jboss.portal.portlet.PortletInvokerException;
import org.jboss.portal.portlet.invocation.RenderInvocation;
+import org.jboss.portal.portlet.invocation.response.ErrorResponse;
+import org.jboss.portal.portlet.invocation.response.FragmentResponse;
import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
-import org.jboss.portal.portlet.invocation.response.FragmentResponse;
-import org.jboss.portal.portlet.invocation.response.ErrorResponse;
-import org.jboss.portal.Mode;
-import org.jboss.portal.WindowState;
+import org.jboss.portal.theme.LayoutService;
import org.jboss.portal.theme.PageService;
-import org.jboss.portal.theme.LayoutService;
import org.jboss.portal.theme.PortalLayout;
import org.jboss.portal.theme.ThemeConstants;
import org.jboss.portal.theme.page.PageResult;
+import org.jboss.portal.theme.page.WindowContext;
import org.jboss.portal.theme.page.WindowResult;
-import org.jboss.portal.theme.page.WindowContext;
-import org.jboss.portal.common.NotYetImplemented;
+import java.util.Collections;
+import java.util.HashMap;
import java.util.Map;
-import java.util.HashMap;
-import java.util.Collections;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class RenderPortletInstanceCommand extends PortletInstanceCommand
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/render/RenderPortletInstanceCommand.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/response/PortletInstanceActionResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/response/PortletInstanceActionResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/response/PortletInstanceActionResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,14 +22,14 @@
******************************************************************************/
package org.jboss.portal.core.model.instance.command.response;
+import org.jboss.portal.Mode;
+import org.jboss.portal.WindowState;
import org.jboss.portal.core.controller.portlet.PortletActionResponse;
import org.jboss.portal.portlet.StateString;
-import org.jboss.portal.WindowState;
-import org.jboss.portal.Mode;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortletInstanceActionResponse extends PortletActionResponse
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/response/PortletInstanceActionResponse.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/response/UpdatePortletInstanceResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/response/UpdatePortletInstanceResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/response/UpdatePortletInstanceResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,12 +22,12 @@
******************************************************************************/
package org.jboss.portal.core.model.instance.command.response;
+import org.jboss.portal.core.controller.ControllerResponse;
import org.jboss.portal.portlet.StateString;
-import org.jboss.portal.core.controller.ControllerResponse;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class UpdatePortletInstanceResponse extends ControllerResponse
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/command/response/UpdatePortletInstanceResponse.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/metadata/InstanceMetaData.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/metadata/InstanceMetaData.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/metadata/InstanceMetaData.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,12 +22,6 @@
******************************************************************************/
package org.jboss.portal.core.model.instance.metadata;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Locale;
-import java.util.Map;
-
import org.apache.log4j.Logger;
import org.jboss.portal.common.i18n.LocaleFormat;
import org.jboss.portal.common.util.ConversionException;
@@ -38,6 +32,12 @@
import org.jboss.portal.security.metadata.SecurityConstraintsMetaData;
import org.w3c.dom.Element;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Locale;
+import java.util.Map;
+
/**
* Represent metadata of an instance.
*
@@ -135,7 +135,7 @@
preferencesMD.addPreference(preferenceMD);
}
}
-
+
// Configure localized display-name
LocalizedStringMetaData localizedStringMD = new LocalizedStringMetaData();
while (displayNamesIt.hasNext())
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/metadata/InstanceMetaData.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/instance/metadata/PreferencesMetaData.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/Context.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/Context.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/Context.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,7 +24,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface Context extends PortalContainer
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/Context.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/DefaultPortalCommandFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/DefaultPortalCommandFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/DefaultPortalCommandFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,9 +24,9 @@
import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerContext;
-import org.jboss.portal.core.model.portal.command.view.ViewPageCommand;
import org.jboss.portal.core.controller.command.mapper.AbstractCommandFactory;
import org.jboss.portal.core.controller.command.mapper.CommandFactory;
+import org.jboss.portal.core.model.portal.command.view.ViewPageCommand;
import org.jboss.portal.server.ServerInvocation;
/**
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/DefaultPortalCommandFactory.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/DuplicatePortalObjectException.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/NoSuchPortalObjectException.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/Page.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/Page.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/Page.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -40,8 +40,7 @@
Portal getPortal();
/**
- * Return a page window or null if the portal object does not exist or
- * does not have the appropriate type.
+ * Return a page window or null if the portal object does not exist or does not have the appropriate type.
*
* @param name the window name
* @return the specified page window
@@ -52,12 +51,12 @@
/**
* Create a new window.
*
- * @param name window name
+ * @param name window name
* @param contentType the window content type
- * @param contentURI the window content URI
+ * @param contentURI the window content URI
* @return the created window
* @throws DuplicatePortalObjectException if a portal object with the specified name already exist
- * @throws IllegalArgumentException if the name is null
+ * @throws IllegalArgumentException if the name is null
*/
Window createWindow(String name, ContentType contentType, String contentURI) throws DuplicatePortalObjectException, IllegalArgumentException;
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/Page.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PageContainer.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PageContainer.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PageContainer.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -44,7 +44,7 @@
* @param name the name of the child page to create
* @return the create page
* @throws DuplicatePortalObjectException if an object with the specified name already exist
- * @throws IllegalArgumentException if the name argument is null
+ * @throws IllegalArgumentException if the name argument is null
*/
Page createPage(String name) throws DuplicatePortalObjectException, IllegalArgumentException;
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PageContainer.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/Portal.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalContainer.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalContainer.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalContainer.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -31,8 +31,7 @@
public interface PortalContainer extends PortalObject
{
/**
- * Return an existing portal or null if such a child does not exist or does not have
- * the right type.
+ * Return an existing portal or null if such a child does not exist or does not have the right type.
*
* @param name the portal name
* @return the specified portal
@@ -46,7 +45,7 @@
* @param name the portal name
* @return the newly created portal
* @throws DuplicatePortalObjectException if a child with the specified name already exists
- * @throws IllegalArgumentException if the name argument is null
+ * @throws IllegalArgumentException if the name argument is null
*/
Portal createPortal(String name) throws DuplicatePortalObjectException, IllegalArgumentException;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalContainer.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObject.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectCommandFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectCommandFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectCommandFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -27,15 +27,15 @@
import org.jboss.portal.common.util.ParameterMap;
import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerContext;
+import org.jboss.portal.core.controller.command.mapper.AbstractCommandFactory;
+import org.jboss.portal.core.model.portal.command.action.ImportPageToDashboardCommand;
import org.jboss.portal.core.model.portal.command.action.InvokePortletWindowActionCommand;
import org.jboss.portal.core.model.portal.command.action.InvokePortletWindowRenderCommand;
-import org.jboss.portal.core.model.portal.command.action.ImportPageToDashboardCommand;
+import org.jboss.portal.core.model.portal.command.mapping.PortalObjectPathMapper;
+import org.jboss.portal.core.model.portal.command.view.ViewContextCommand;
import org.jboss.portal.core.model.portal.command.view.ViewPageCommand;
-import org.jboss.portal.core.model.portal.command.view.ViewContextCommand;
import org.jboss.portal.core.model.portal.command.view.ViewPortalCommand;
-import org.jboss.portal.core.model.portal.command.mapping.PortalObjectPathMapper;
import org.jboss.portal.core.model.portal.navstate.WindowNavigationalState;
-import org.jboss.portal.core.controller.command.mapper.AbstractCommandFactory;
import org.jboss.portal.core.navstate.NavigationalStateKey;
import org.jboss.portal.portlet.impl.PortletRequestDecoder;
import org.jboss.portal.server.ServerInvocation;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectCommandFactory.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectContainer.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectId.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectId.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectId.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -30,7 +30,7 @@
* <ul> <li>The empty string maps to the empty namespace and the empty path</li> </ul>
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortalObjectId implements Comparable, Serializable
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectId.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectPath.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectPath.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectPath.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -35,7 +35,7 @@
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortalObjectPath implements Comparable, Serializable
{
@@ -366,7 +366,7 @@
{
break;
}
- if (next > 0 && value.charAt(next-1) != '\\')
+ if (next > 0 && value.charAt(next - 1) != '\\')
{
length++;
}
@@ -385,7 +385,7 @@
{
break;
}
- if (next > 0 && value.charAt(next-1) != '\\')
+ if (next > 0 && value.charAt(next - 1) != '\\')
{
String name = value.substring(previous, next);
name = decodeName(name);
@@ -463,7 +463,7 @@
int length = 1;
for (int next = value.indexOf('.'); next != -1; next = value.indexOf('.', next + 1))
{
- if (next > 0 && value.charAt(next-1) != '\\')
+ if (next > 0 && value.charAt(next - 1) != '\\')
{
length++;
}
@@ -475,7 +475,7 @@
int previous = 0;
for (int next = value.indexOf('.'); next != -1; next = value.indexOf('.', next + 1))
{
- if (next > 0 && value.charAt(next-1) != '\\')
+ if (next > 0 && value.charAt(next - 1) != '\\')
{
String name = value.substring(previous, next);
name = decodeName(name);
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectPath.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectPermission.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectPermission.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectPermission.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -270,8 +270,8 @@
//
if ((this.mask & DASHBOARD_MASK) == DASHBOARD_MASK &&
- caller != null &&
- thisPath.getLength() < thatPath.getLength())
+ caller != null &&
+ thisPath.getLength() < thatPath.getLength())
{
Set tmp = caller.getPrincipals(UserPrincipal.class);
if (tmp.size() > 0)
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectPermission.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectResponseHandler.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectResponseHandler.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectResponseHandler.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,31 +22,31 @@
******************************************************************************/
package org.jboss.portal.core.model.portal;
-import org.jboss.portal.core.controller.handler.AbstractResponseHandler;
-import org.jboss.portal.core.controller.handler.HandlerResponse;
-import org.jboss.portal.core.controller.handler.HTTPResponse;
+import org.jboss.portal.common.util.MarkupInfo;
import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.core.controller.ControllerException;
import org.jboss.portal.core.controller.ControllerResponse;
import org.jboss.portal.core.controller.command.response.ThrowableResponse;
+import org.jboss.portal.core.controller.handler.AbstractResponseHandler;
+import org.jboss.portal.core.controller.handler.HTTPResponse;
+import org.jboss.portal.core.controller.handler.HandlerResponse;
+import org.jboss.portal.core.controller.handler.ResponseForward;
import org.jboss.portal.core.controller.handler.ResponseHandlerException;
-import org.jboss.portal.core.controller.handler.ResponseForward;
+import org.jboss.portal.core.model.portal.command.render.RenderPageCommand;
import org.jboss.portal.core.model.portal.command.response.UpdatePageResponse;
import org.jboss.portal.core.model.portal.command.response.UpdateWindowResponse;
-import org.jboss.portal.core.model.portal.command.render.RenderPageCommand;
import org.jboss.portal.core.theme.PageRendition;
+import org.jboss.portal.server.ServerInvocation;
import org.jboss.portal.server.ServerInvocationContext;
-import org.jboss.portal.server.ServerInvocation;
import org.jboss.portal.web.ServletContextDispatcher;
-import org.jboss.portal.common.util.MarkupInfo;
import javax.servlet.ServletException;
import java.io.IOException;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortalObjectResponseHandler extends AbstractResponseHandler
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectResponseHandler.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectURLFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectURLFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectURLFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,15 +26,15 @@
import org.jboss.portal.WindowState;
import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerContext;
+import org.jboss.portal.core.controller.command.mapper.URLFactoryDelegate;
+import org.jboss.portal.core.model.portal.command.PortalObjectCommand;
+import org.jboss.portal.core.model.portal.command.action.ImportPageToDashboardCommand;
import org.jboss.portal.core.model.portal.command.action.InvokePortletWindowActionCommand;
+import org.jboss.portal.core.model.portal.command.action.InvokePortletWindowRenderCommand;
import org.jboss.portal.core.model.portal.command.action.InvokeWindowCommand;
-import org.jboss.portal.core.model.portal.command.action.InvokePortletWindowRenderCommand;
-import org.jboss.portal.core.model.portal.command.PortalObjectCommand;
+import org.jboss.portal.core.model.portal.command.mapping.PortalObjectPathMapper;
import org.jboss.portal.core.model.portal.command.view.ViewPageCommand;
import org.jboss.portal.core.model.portal.command.view.ViewPortalCommand;
-import org.jboss.portal.core.model.portal.command.mapping.PortalObjectPathMapper;
-import org.jboss.portal.core.model.portal.command.action.ImportPageToDashboardCommand;
-import org.jboss.portal.core.controller.command.mapper.URLFactoryDelegate;
import org.jboss.portal.portlet.StateString;
import org.jboss.portal.portlet.impl.PortletRequestEncoder;
import org.jboss.portal.server.AbstractServerURL;
@@ -181,7 +181,7 @@
//
mapper.appendPath(buffer, id);
-
+
//
AbstractServerURL asu = new AbstractServerURL();
asu.setPortalRequestPath(buffer.toString());
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/PortalObjectURLFactory.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/Window.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/Window.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/Window.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -51,25 +51,25 @@
ContentType getContentType();
/**
- * Returns the window content or null if no content can be provided. Content could not be provided
- * if no content handler has been found in the content handler registry.
+ * Returns the window content or null if no content can be provided. Content could not be provided if no content
+ * handler has been found in the content handler registry.
*
* @return the window content
*/
Content getContent();
-
+
/**
- * Returns the inital window state (the window state to use when no navigational
- * state exists, for example on a new page request) for this particular window
- *
+ * Returns the inital window state (the window state to use when no navigational state exists, for example on a new
+ * page request) for this particular window
+ *
* @return a windowState
*/
WindowState getInitialWindowState();
-
+
/**
- * Returns the inital mode to use (the mode to use when no navigational
- * state exists, for example on a new page request) for this particular window
- *
+ * Returns the inital mode to use (the mode to use when no navigational state exists, for example on a new page
+ * request) for this particular window
+ *
* @return a portlet mode
*/
Mode getInitialMode();
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/Window.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/ContextCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/ContextCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/ContextCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,13 +22,13 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.command;
+import org.jboss.portal.core.controller.NoSuchResourceException;
+import org.jboss.portal.core.model.portal.Context;
import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.core.model.portal.Context;
-import org.jboss.portal.core.controller.NoSuchResourceException;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public abstract class ContextCommand extends PortalObjectCommand
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/ContextCommand.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/PageCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/PageCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/PageCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,12 +23,12 @@
package org.jboss.portal.core.model.portal.command;
import org.jboss.portal.core.model.portal.Page;
+import org.jboss.portal.core.model.portal.Portal;
import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.core.model.portal.Portal;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public abstract class PageCommand extends PortalCommand
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/PageCommand.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/PortalCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/PortalCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/PortalCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -28,7 +28,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public abstract class PortalCommand extends PortalObjectCommand
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/PortalCommand.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/PortalObjectCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/PortalObjectCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/PortalObjectCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,13 +22,13 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.command;
+import org.jboss.portal.core.controller.AccessDeniedException;
import org.jboss.portal.core.controller.ControllerCommand;
+import org.jboss.portal.core.controller.NoSuchResourceException;
import org.jboss.portal.core.controller.SecurityException;
-import org.jboss.portal.core.controller.NoSuchResourceException;
-import org.jboss.portal.core.controller.AccessDeniedException;
import org.jboss.portal.core.model.portal.PortalObject;
+import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.PortalObjectPermission;
-import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.security.spi.auth.PortalAuthorizationManager;
/**
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/PortalObjectCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/WindowCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/WindowCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/WindowCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,8 +24,8 @@
import org.jboss.portal.core.controller.SecurityException;
import org.jboss.portal.core.model.portal.Page;
+import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.Window;
-import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.security.spi.auth.PortalAuthorizationManager;
/**
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/WindowCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/ImportPageToDashboardCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/ImportPageToDashboardCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/ImportPageToDashboardCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,26 +22,26 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.command.action;
-import org.jboss.portal.core.controller.command.info.CommandInfo;
-import org.jboss.portal.core.controller.command.info.ActionCommandInfo;
import org.jboss.portal.core.controller.ControllerException;
import org.jboss.portal.core.controller.ControllerResponse;
import org.jboss.portal.core.controller.NoSuchResourceException;
-import org.jboss.portal.core.model.portal.PortalObjectId;
+import org.jboss.portal.core.controller.command.info.ActionCommandInfo;
+import org.jboss.portal.core.controller.command.info.CommandInfo;
+import org.jboss.portal.core.model.CustomizationManager;
+import org.jboss.portal.core.model.portal.DuplicatePortalObjectException;
+import org.jboss.portal.core.model.portal.Page;
import org.jboss.portal.core.model.portal.Portal;
-import org.jboss.portal.core.model.portal.DuplicatePortalObjectException;
import org.jboss.portal.core.model.portal.PortalObject;
-import org.jboss.portal.core.model.portal.Page;
+import org.jboss.portal.core.model.portal.PortalObjectId;
+import org.jboss.portal.core.model.portal.command.PageCommand;
import org.jboss.portal.core.model.portal.command.response.UpdatePageResponse;
-import org.jboss.portal.core.model.portal.command.PageCommand;
-import org.jboss.portal.core.model.CustomizationManager;
import org.jboss.portal.identity.User;
import java.util.Iterator;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ImportPageToDashboardCommand extends PageCommand
{
@@ -97,7 +97,7 @@
dashboardPage = target.copy(dashboardPortal, name, false);
// Copy children windows only
- for (Iterator i = target.getChildren().iterator();i.hasNext();)
+ for (Iterator i = target.getChildren().iterator(); i.hasNext();)
{
PortalObject child = (PortalObject)i.next();
if (child.getType() == PortalObject.TYPE_WINDOW)
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/ImportPageToDashboardCommand.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/InvokePortletWindowActionCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/InvokePortletWindowActionCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/InvokePortletWindowActionCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -25,27 +25,27 @@
import org.jboss.logging.Logger;
import org.jboss.portal.Mode;
import org.jboss.portal.WindowState;
-import org.jboss.portal.identity.User;
import org.jboss.portal.core.controller.ControllerException;
import org.jboss.portal.core.controller.ControllerResponse;
import org.jboss.portal.core.controller.NoSuchResourceException;
import org.jboss.portal.core.controller.command.info.ActionCommandInfo;
import org.jboss.portal.core.controller.command.info.CommandInfo;
+import org.jboss.portal.core.controller.portlet.ControllerResponseFactory;
import org.jboss.portal.core.controller.portlet.PortletInvocationFactory;
-import org.jboss.portal.core.controller.portlet.ControllerResponseFactory;
+import org.jboss.portal.core.model.content.Content;
+import org.jboss.portal.core.model.instance.Instance;
import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.core.model.instance.Instance;
-import org.jboss.portal.core.model.content.Content;
+import org.jboss.portal.identity.User;
+import org.jboss.portal.portlet.PortletInvokerException;
import org.jboss.portal.portlet.PortletParameters;
-import org.jboss.portal.portlet.PortletInvokerException;
import org.jboss.portal.portlet.StateString;
-import org.jboss.portal.portlet.spi.ActionContext;
import org.jboss.portal.portlet.invocation.PortletInvocation;
import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
+import org.jboss.portal.portlet.spi.ActionContext;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 6912 $
+ * @version $Revision$
*/
public class InvokePortletWindowActionCommand extends InvokeWindowCommand
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/InvokePortletWindowActionCommand.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/InvokePortletWindowRenderCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/InvokePortletWindowRenderCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/InvokePortletWindowRenderCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,12 +26,11 @@
import org.jboss.portal.WindowState;
import org.jboss.portal.common.invocation.InvocationContext;
import org.jboss.portal.common.invocation.InvocationException;
-import org.jboss.portal.core.controller.command.info.CommandInfo;
-import org.jboss.portal.core.controller.command.info.ActionCommandInfo;
import org.jboss.portal.core.controller.ControllerResponse;
-import org.jboss.portal.core.model.portal.command.response.UpdateWindowResponse;
-import org.jboss.portal.core.model.portal.command.action.InvokeWindowCommand;
+import org.jboss.portal.core.controller.command.info.ActionCommandInfo;
+import org.jboss.portal.core.controller.command.info.CommandInfo;
import org.jboss.portal.core.model.portal.PortalObjectId;
+import org.jboss.portal.core.model.portal.command.response.UpdateWindowResponse;
import org.jboss.portal.core.model.portal.navstate.WindowNavigationalState;
import org.jboss.portal.core.navstate.NavigationalStateKey;
import org.jboss.portal.portlet.StateString;
@@ -40,7 +39,7 @@
* Simply update the navigational state of the window. No invocation to the underlying is done.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 6912 $
+ * @version $Revision$
*/
public class InvokePortletWindowRenderCommand extends InvokeWindowCommand
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/InvokePortletWindowRenderCommand.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/InvokeWindowCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/InvokeWindowCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/InvokeWindowCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -29,7 +29,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 6007 $
+ * @version $Revision$
*/
public abstract class InvokeWindowCommand extends WindowCommand
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/InvokeWindowCommand.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/MoveWindowCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/MoveWindowCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/MoveWindowCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,24 +22,24 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.command.action;
+import org.jboss.portal.common.util.ListMap;
import org.jboss.portal.core.controller.ControllerException;
import org.jboss.portal.core.controller.ControllerResponse;
import org.jboss.portal.core.controller.command.info.ActionCommandInfo;
import org.jboss.portal.core.controller.command.info.CommandInfo;
import org.jboss.portal.core.model.portal.PortalObject;
+import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.Window;
-import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.command.WindowCommand;
import org.jboss.portal.theme.ThemeConstants;
import org.jboss.portal.theme.ThemeTools;
-import org.jboss.portal.common.util.ListMap;
+import java.util.Comparator;
import java.util.Iterator;
-import java.util.Comparator;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class MoveWindowCommand extends WindowCommand
{
@@ -96,7 +96,7 @@
}
//
- for (Iterator i = blah.keySet().iterator();i.hasNext();)
+ for (Iterator i = blah.keySet().iterator(); i.hasNext();)
{
String key = (String)i.next();
@@ -108,7 +108,7 @@
if (!processFrom && !processTo)
{
int order = 0;
- for (Iterator j = blah.iterator(key);j.hasNext();)
+ for (Iterator j = blah.iterator(key); j.hasNext();)
{
Window window = (Window)j.next();
window.setDeclaredProperty(ThemeConstants.PORTAL_PROP_ORDER, Integer.toString(order++));
@@ -119,14 +119,14 @@
if (processFrom)
{
int order = 0;
- for (Iterator j = blah.iterator(key);j.hasNext();)
+ for (Iterator j = blah.iterator(key); j.hasNext();)
{
Window window = (Window)j.next();
//
if (window == target)
{
- order --;
+ order--;
}
else
{
@@ -137,7 +137,7 @@
if (processTo)
{
int order = 0;
- for (Iterator j = blah.iterator(key);j.hasNext();)
+ for (Iterator j = blah.iterator(key); j.hasNext();)
{
Window window = (Window)j.next();
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/action/MoveWindowCommand.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/mapping/DashboardPortalObjectPathMapper.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/mapping/DashboardPortalObjectPathMapper.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/mapping/DashboardPortalObjectPathMapper.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,23 +22,23 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.command.mapping;
+import org.jboss.portal.common.text.FastURLEncoder;
+import org.jboss.portal.core.controller.ControllerContext;
+import org.jboss.portal.core.model.CustomizationManager;
+import org.jboss.portal.core.model.portal.Portal;
import org.jboss.portal.core.model.portal.PortalObject;
+import org.jboss.portal.core.model.portal.PortalObjectContainer;
import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.core.model.portal.Portal;
-import org.jboss.portal.core.model.portal.PortalObjectContainer;
-import org.jboss.portal.core.model.CustomizationManager;
-import org.jboss.portal.core.controller.ControllerContext;
+import org.jboss.portal.identity.User;
import org.jboss.portal.server.servlet.PathMapping;
+import org.jboss.portal.server.servlet.PathMappingResult;
import org.jboss.portal.server.servlet.PathParser;
-import org.jboss.portal.server.servlet.PathMappingResult;
-import org.jboss.portal.identity.User;
-import org.jboss.portal.common.text.FastURLEncoder;
import java.util.Iterator;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class DashboardPortalObjectPathMapper implements PortalObjectPathMapper
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/mapping/DashboardPortalObjectPathMapper.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/mapping/DefaultPortalObjectPathMapper.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/mapping/DefaultPortalObjectPathMapper.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/mapping/DefaultPortalObjectPathMapper.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,20 +22,20 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.command.mapping;
+import org.jboss.portal.common.text.FastURLEncoder;
+import org.jboss.portal.core.controller.ControllerContext;
+import org.jboss.portal.core.model.portal.PortalObject;
+import org.jboss.portal.core.model.portal.PortalObjectContainer;
+import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.server.servlet.PathMapping;
import org.jboss.portal.server.servlet.PathMappingResult;
import org.jboss.portal.server.servlet.PathParser;
-import org.jboss.portal.core.controller.ControllerContext;
-import org.jboss.portal.core.model.portal.PortalObjectContainer;
-import org.jboss.portal.core.model.portal.PortalObject;
-import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.common.text.FastURLEncoder;
import java.util.Iterator;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class DefaultPortalObjectPathMapper implements PortalObjectPathMapper
{
@@ -84,6 +84,7 @@
{
return container.getContext(namespace != null ? namespace : "");
}
+
public Object getChild(Object parent, String name)
{
PortalObject po = (PortalObject)parent;
@@ -122,7 +123,7 @@
public void appendPath(StringBuffer buffer, PortalObjectId id)
{
- for (Iterator i = id.getPath().names();i.hasNext();)
+ for (Iterator i = id.getPath().names(); i.hasNext();)
{
String name = (String)i.next();
name = FastURLEncoder.getInstance().encode(name);
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/mapping/DefaultPortalObjectPathMapper.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/mapping/PortalObjectPathMapper.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/mapping/PortalObjectPathMapper.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/mapping/PortalObjectPathMapper.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,12 +23,12 @@
package org.jboss.portal.core.model.portal.command.mapping;
import org.jboss.portal.core.controller.ControllerContext;
+import org.jboss.portal.core.model.portal.PortalObject;
import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.core.model.portal.PortalObject;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface PortalObjectPathMapper
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/mapping/PortalObjectPathMapper.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/render/RenderPageCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/render/RenderPageCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/render/RenderPageCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -25,29 +25,29 @@
import org.jboss.portal.common.invocation.InvocationException;
import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.core.controller.ControllerException;
-import org.jboss.portal.core.controller.SecurityException;
import org.jboss.portal.core.controller.ControllerResponse;
import org.jboss.portal.core.controller.NoSuchResourceException;
+import org.jboss.portal.core.controller.SecurityException;
import org.jboss.portal.core.controller.command.info.CommandInfo;
import org.jboss.portal.core.controller.command.info.ViewCommandInfo;
import org.jboss.portal.core.model.portal.Page;
import org.jboss.portal.core.model.portal.PortalObject;
+import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.PortalObjectPermission;
import org.jboss.portal.core.model.portal.Window;
-import org.jboss.portal.core.model.portal.PortalObjectId;
+import org.jboss.portal.core.model.portal.command.PageCommand;
+import org.jboss.portal.core.model.portal.command.response.MarkupResponse;
import org.jboss.portal.core.model.portal.content.WindowRendition;
-import org.jboss.portal.core.model.portal.command.response.MarkupResponse;
-import org.jboss.portal.core.model.portal.command.PageCommand;
+import org.jboss.portal.core.theme.PageRendition;
+import org.jboss.portal.core.theme.WindowContextFactory;
import org.jboss.portal.identity.User;
import org.jboss.portal.identity.UserProfileModule;
import org.jboss.portal.security.spi.auth.PortalAuthorizationManager;
import org.jboss.portal.theme.LayoutService;
-import org.jboss.portal.core.theme.PageRendition;
-import org.jboss.portal.core.theme.WindowContextFactory;
+import org.jboss.portal.theme.PageService;
import org.jboss.portal.theme.PortalLayout;
import org.jboss.portal.theme.PortalTheme;
import org.jboss.portal.theme.ThemeConstants;
-import org.jboss.portal.theme.PageService;
import org.jboss.portal.theme.ThemeService;
import org.jboss.portal.theme.page.PageResult;
@@ -62,7 +62,7 @@
* Render a full page.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 6942 $
+ * @version $Revision$
*/
public final class RenderPageCommand extends PageCommand
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/render/RenderPageCommand.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/render/RenderWindowCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/render/RenderWindowCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/render/RenderWindowCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,18 +22,18 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.command.render;
+import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.core.controller.ControllerException;
import org.jboss.portal.core.controller.ControllerResponse;
-import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.core.controller.command.info.CommandInfo;
import org.jboss.portal.core.controller.command.info.ViewCommandInfo;
import org.jboss.portal.core.model.content.ContentType;
-import org.jboss.portal.core.model.portal.content.WindowRendition;
import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.core.model.portal.control.page.PageControlContext;
import org.jboss.portal.core.model.portal.command.WindowCommand;
import org.jboss.portal.core.model.portal.content.ContentRenderer;
import org.jboss.portal.core.model.portal.content.ContentRendererRegistry;
+import org.jboss.portal.core.model.portal.content.WindowRendition;
+import org.jboss.portal.core.model.portal.control.page.PageControlContext;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
@@ -59,10 +59,7 @@
return info;
}
- /**
- * Hack the command system.
- *
- */
+ /** Hack the command system. */
public WindowRendition render(ControllerContext ctx) throws ControllerException
{
ctx.execute(this);
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/render/RenderWindowCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/MarkupResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/MarkupResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/MarkupResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,7 +26,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class MarkupResponse extends ControllerResponse
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/MarkupResponse.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/PortletWindowActionResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/PortletWindowActionResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/PortletWindowActionResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,17 +22,17 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.command.response;
+import org.jboss.portal.Mode;
+import org.jboss.portal.WindowState;
import org.jboss.portal.core.controller.portlet.PortletActionResponse;
import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.portlet.StateString;
-import org.jboss.portal.WindowState;
-import org.jboss.portal.Mode;
/**
* A portlet response related to a portal object window.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortletWindowActionResponse extends PortletActionResponse
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/PortletWindowActionResponse.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/UpdatePageResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/UpdatePageResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/UpdatePageResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,12 +22,12 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.command.response;
+import org.jboss.portal.core.controller.ControllerResponse;
import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.core.controller.ControllerResponse;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class UpdatePageResponse extends ControllerResponse
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/UpdatePageResponse.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/UpdateWindowResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/UpdateWindowResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/UpdateWindowResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,12 +22,12 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.command.response;
+import org.jboss.portal.core.controller.ControllerResponse;
import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.core.controller.ControllerResponse;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class UpdateWindowResponse extends ControllerResponse
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/response/UpdateWindowResponse.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/view/ViewContextCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/view/ViewContextCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/view/ViewContextCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,20 +22,20 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.command.view;
+import org.jboss.portal.core.controller.ControllerException;
+import org.jboss.portal.core.controller.ControllerResponse;
+import org.jboss.portal.core.controller.command.info.CommandInfo;
+import org.jboss.portal.core.controller.command.info.ViewCommandInfo;
+import org.jboss.portal.core.model.portal.Page;
+import org.jboss.portal.core.model.portal.Portal;
+import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.command.ContextCommand;
import org.jboss.portal.core.model.portal.command.response.UpdatePageResponse;
-import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.core.model.portal.Portal;
-import org.jboss.portal.core.model.portal.Page;
-import org.jboss.portal.core.controller.command.info.CommandInfo;
-import org.jboss.portal.core.controller.command.info.ViewCommandInfo;
-import org.jboss.portal.core.controller.ControllerResponse;
-import org.jboss.portal.core.controller.ControllerException;
import org.jboss.portal.identity.User;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ViewContextCommand extends ContextCommand
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/view/ViewContextCommand.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/view/ViewPageCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/view/ViewPageCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/view/ViewPageCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,18 +22,18 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.command.view;
+import org.jboss.portal.core.controller.ControllerException;
+import org.jboss.portal.core.controller.ControllerResponse;
+import org.jboss.portal.core.controller.command.info.CommandInfo;
+import org.jboss.portal.core.controller.command.info.ViewCommandInfo;
+import org.jboss.portal.core.model.portal.Page;
import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.core.model.portal.Page;
+import org.jboss.portal.core.model.portal.command.PageCommand;
import org.jboss.portal.core.model.portal.command.response.UpdatePageResponse;
-import org.jboss.portal.core.model.portal.command.PageCommand;
-import org.jboss.portal.core.controller.command.info.CommandInfo;
-import org.jboss.portal.core.controller.command.info.ViewCommandInfo;
-import org.jboss.portal.core.controller.ControllerException;
-import org.jboss.portal.core.controller.ControllerResponse;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ViewPageCommand extends PageCommand
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/view/ViewPageCommand.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/view/ViewPortalCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/view/ViewPortalCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/view/ViewPortalCommand.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -27,14 +27,14 @@
import org.jboss.portal.core.controller.command.info.CommandInfo;
import org.jboss.portal.core.controller.command.info.ViewCommandInfo;
import org.jboss.portal.core.controller.command.response.UnavailableResourceResponse;
+import org.jboss.portal.core.model.portal.Portal;
import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.core.model.portal.Portal;
import org.jboss.portal.core.model.portal.command.PortalCommand;
import org.jboss.portal.core.model.portal.command.response.UpdatePageResponse;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ViewPortalCommand extends PortalCommand
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/command/view/ViewPortalCommand.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/content/ContentRenderer.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/content/ContentRenderer.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/content/ContentRenderer.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,11 +23,10 @@
package org.jboss.portal.core.model.portal.content;
import org.jboss.portal.core.model.portal.command.render.RenderWindowCommand;
-import org.jboss.portal.core.model.portal.content.WindowRendition;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface ContentRenderer
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/content/ContentRenderer.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/content/ContentRendererRegistry.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/content/ContentRendererRegistry.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/content/ContentRendererRegistry.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -28,19 +28,15 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface ContentRendererRegistry
{
- /**
- *
- * @return
- */
+ /** @return */
Collection getContentTypes();
/**
- *
* @param contentType
* @return
*/
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/content/ContentRendererRegistry.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/content/WindowRendition.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/content/WindowRendition.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/content/WindowRendition.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,18 +22,18 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.content;
+import org.jboss.portal.Mode;
+import org.jboss.portal.WindowState;
import org.jboss.portal.core.controller.ControllerResponse;
-import org.jboss.portal.WindowState;
-import org.jboss.portal.Mode;
+import java.util.List;
import java.util.Map;
-import java.util.List;
/**
* Aggregates window specific data and a controller response.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class WindowRendition
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/content/WindowRendition.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/ControlConstants.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/ControlConstants.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/ControlConstants.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,7 +26,7 @@
* Defines the constant for the control framework.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ControlConstants
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/ControlConstants.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/ControlContext.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/ControlContext.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/ControlContext.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -28,9 +28,9 @@
* Base class for the control context provided to a control policy.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
-public class ControlContext
+public class ControlContext
{
/** We expose the controller context. */
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/ControlContext.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/page/DefaultPageControlPolicy.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/page/DefaultPageControlPolicy.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/page/DefaultPageControlPolicy.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,25 +23,25 @@
package org.jboss.portal.core.model.portal.control.page;
import org.jboss.logging.Logger;
-import org.jboss.portal.server.config.ServerConfig;
-import org.jboss.portal.core.controller.ControllerResponse;
import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.core.controller.ControllerRequestDispatcher;
+import org.jboss.portal.core.controller.ControllerResponse;
import org.jboss.portal.core.controller.command.response.ErrorResponse;
import org.jboss.portal.core.controller.command.response.SecurityErrorResponse;
import org.jboss.portal.core.controller.command.response.UnavailableResourceResponse;
+import org.jboss.portal.core.model.portal.PortalObjectContainer;
import org.jboss.portal.core.model.portal.command.response.MarkupResponse;
import org.jboss.portal.core.model.portal.content.WindowRendition;
import org.jboss.portal.core.model.portal.control.ControlConstants;
-import org.jboss.portal.core.model.portal.PortalObjectContainer;
+import org.jboss.portal.server.config.ServerConfig;
import java.util.Collections;
+import java.util.HashMap;
import java.util.Map;
-import java.util.HashMap;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class DefaultPageControlPolicy implements PageControlPolicy
{
@@ -95,7 +95,7 @@
ControllerResponse response = rendition.getControllerResponse();
//
- String policyKey = null;
+ String policyKey = null;
Throwable cause = null;
String message = null;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/page/DefaultPageControlPolicy.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/page/PageControlContext.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/page/PageControlContext.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/page/PageControlContext.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,14 +22,14 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.control.page;
+import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.core.model.portal.PortalObjectId;
+import org.jboss.portal.core.model.portal.content.WindowRendition;
import org.jboss.portal.core.model.portal.control.ControlContext;
-import org.jboss.portal.core.model.portal.content.WindowRendition;
-import org.jboss.portal.core.controller.ControllerContext;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PageControlContext extends ControlContext
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/page/PageControlContext.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/page/PageControlPolicy.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/page/PageControlPolicy.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/page/PageControlPolicy.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,7 +26,7 @@
* Policy that controls the behavior of a portal window.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface PageControlPolicy
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/page/PageControlPolicy.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/portal/DefaultPortalControlPolicy.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/portal/DefaultPortalControlPolicy.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/portal/DefaultPortalControlPolicy.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,34 +22,34 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.control.portal;
-import org.jboss.portal.core.model.portal.control.ControlConstants;
-import org.jboss.portal.core.model.portal.PortalObjectContainer;
-import org.jboss.portal.core.model.portal.PortalObject;
-import org.jboss.portal.core.controller.command.response.UnavailableResourceResponse;
-import org.jboss.portal.core.controller.command.response.SecurityErrorResponse;
-import org.jboss.portal.core.controller.command.response.ErrorResponse;
-import org.jboss.portal.core.controller.ControllerResponse;
+import org.jboss.logging.Logger;
+import org.jboss.portal.Mode;
+import org.jboss.portal.WindowState;
import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.core.controller.ControllerRequestDispatcher;
+import org.jboss.portal.core.controller.ControllerResponse;
+import org.jboss.portal.core.controller.command.response.ErrorResponse;
+import org.jboss.portal.core.controller.command.response.SecurityErrorResponse;
+import org.jboss.portal.core.controller.command.response.UnavailableResourceResponse;
+import org.jboss.portal.core.model.portal.PortalObject;
+import org.jboss.portal.core.model.portal.PortalObjectContainer;
+import org.jboss.portal.core.model.portal.control.ControlConstants;
import org.jboss.portal.core.theme.PageRendition;
+import org.jboss.portal.theme.LayoutService;
import org.jboss.portal.theme.PageService;
-import org.jboss.portal.theme.LayoutService;
import org.jboss.portal.theme.PortalLayout;
import org.jboss.portal.theme.ThemeConstants;
import org.jboss.portal.theme.page.PageResult;
+import org.jboss.portal.theme.page.WindowContext;
import org.jboss.portal.theme.page.WindowResult;
-import org.jboss.portal.theme.page.WindowContext;
-import org.jboss.portal.WindowState;
-import org.jboss.portal.Mode;
-import org.jboss.logging.Logger;
+import java.util.Collections;
+import java.util.HashMap;
import java.util.Map;
-import java.util.HashMap;
-import java.util.Collections;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class DefaultPortalControlPolicy implements PortalControlPolicy
{
@@ -88,7 +88,7 @@
ControllerResponse response = controlContext.getResponse();
//
- String policyKey = null;
+ String policyKey = null;
Throwable cause = null;
String message = null;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/portal/DefaultPortalControlPolicy.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/portal/PortalControlContext.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/portal/PortalControlContext.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/portal/PortalControlContext.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,21 +22,21 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.control.portal;
+import org.jboss.portal.core.controller.ControllerContext;
+import org.jboss.portal.core.controller.ControllerResponse;
import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.control.ControlContext;
-import org.jboss.portal.core.controller.ControllerResponse;
-import org.jboss.portal.core.controller.ControllerContext;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortalControlContext extends ControlContext
{
/** The active portal id. */
private PortalObjectId portalId;
-
+
/** The controller response. */
private ControllerResponse response;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/portal/PortalControlContext.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/portal/PortalControlPolicy.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/portal/PortalControlPolicy.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/portal/PortalControlPolicy.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,7 +24,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface PortalControlPolicy
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/control/portal/PortalControlPolicy.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/BuildContext.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/BuildContext.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/BuildContext.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,15 +22,15 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.metadata;
-import org.jboss.portal.core.model.portal.PortalObjectContainer;
import org.jboss.portal.core.model.content.ContentType;
import org.jboss.portal.core.model.content.spi.handler.ContentHandler;
+import org.jboss.portal.core.model.portal.PortalObjectContainer;
/**
* Defines the callbacks for creating a portal object.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface BuildContext
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/BuildContext.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/ContentMetaData.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/ContentMetaData.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/ContentMetaData.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,7 +26,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ContentMetaData
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/ContentMetaData.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/ContextMetaData.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/ContextMetaData.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/ContextMetaData.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,17 +22,17 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.metadata;
+import org.jboss.portal.common.xml.XMLTools;
+import org.jboss.portal.core.model.content.spi.ContentProviderRegistry;
import org.jboss.portal.core.model.portal.PortalObject;
import org.jboss.portal.core.model.portal.PortalObjectContainer;
-import org.jboss.portal.core.model.content.spi.ContentProviderRegistry;
-import org.jboss.portal.common.xml.XMLTools;
import org.w3c.dom.Element;
import java.util.List;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ContextMetaData extends PortalObjectMetaData
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/ContextMetaData.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/PageMetaData.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/PageMetaData.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/PageMetaData.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,11 +22,6 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.metadata;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-
import org.jboss.logging.Logger;
import org.jboss.portal.WindowState;
import org.jboss.portal.common.xml.XMLTools;
@@ -35,6 +30,11 @@
import org.jboss.portal.core.model.portal.PortalObject;
import org.w3c.dom.Element;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.List;
+
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @author <a href="mailto:theute@jboss.org">Thoams Heute</a>
@@ -43,7 +43,7 @@
public class PageMetaData extends PortalObjectMetaData
{
private static final Logger logger = Logger.getLogger(PageMetaData.class);
-
+
public PageMetaData()
{
}
@@ -82,7 +82,7 @@
e.printStackTrace();
}
}
-
+
// Log errors if any
checkConstraints(pageMD);
@@ -105,7 +105,7 @@
//
return pageMD;
}
-
+
private static boolean checkConstraints(PageMetaData pageMD)
{
// Check that no more than 1 window has been defined as maximized
@@ -116,7 +116,7 @@
Iterator it = values.iterator();
while (it.hasNext())
{
- PortalObjectMetaData poMetaData =(PortalObjectMetaData)it.next();
+ PortalObjectMetaData poMetaData = (PortalObjectMetaData)it.next();
if (poMetaData instanceof WindowMetaData)
{
WindowMetaData windowMetaData = (WindowMetaData)poMetaData;
@@ -142,7 +142,7 @@
windowsList.append(windowMD.toString() + "\n");
}
logger.error("More than one window is defined as maximized for page '" + pageMD.getName() + "'. The following windows" +
- " have been defined as maximized:\n" + windowsList);
+ " have been defined as maximized:\n" + windowsList);
return false;
}
return true;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/PageMetaData.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/PortalMetaData.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/PortalMetaData.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/PortalMetaData.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -25,10 +25,10 @@
import org.jboss.portal.Mode;
import org.jboss.portal.WindowState;
import org.jboss.portal.common.xml.XMLTools;
+import org.jboss.portal.core.model.content.spi.ContentProviderRegistry;
+import org.jboss.portal.core.model.portal.Portal;
import org.jboss.portal.core.model.portal.PortalContainer;
-import org.jboss.portal.core.model.portal.Portal;
import org.jboss.portal.core.model.portal.PortalObject;
-import org.jboss.portal.core.model.content.spi.ContentProviderRegistry;
import org.jboss.portal.portlet.impl.jsr168.metadata.ModesMetaData;
import org.jboss.portal.portlet.impl.jsr168.metadata.WindowStatesMetaData;
import org.w3c.dom.Element;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/PortalMetaData.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/PortalObjectMetaData.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/PortalObjectMetaData.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/PortalObjectMetaData.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -28,8 +28,8 @@
import org.jboss.portal.core.model.content.spi.ContentProviderRegistry;
import org.jboss.portal.core.model.portal.PortalObject;
import org.jboss.portal.core.model.portal.PortalObjectContainer;
+import org.jboss.portal.core.model.portal.PortalObjectPath;
import org.jboss.portal.core.model.portal.PortalObjectPermission;
-import org.jboss.portal.core.model.portal.PortalObjectPath;
import org.jboss.portal.security.RoleSecurityBinding;
import org.jboss.portal.security.SecurityConstants;
import org.jboss.portal.security.metadata.SecurityConstraintsMetaData;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/PortalObjectMetaData.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/WindowMetaData.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/WindowMetaData.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/WindowMetaData.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,14 +24,14 @@
import org.jboss.logging.Logger;
import org.jboss.portal.WindowState;
+import org.jboss.portal.common.xml.XMLTools;
import org.jboss.portal.core.impl.model.portal.WindowImpl;
+import org.jboss.portal.core.model.content.ContentType;
+import org.jboss.portal.core.model.content.spi.ContentProviderRegistry;
import org.jboss.portal.core.model.portal.Page;
import org.jboss.portal.core.model.portal.PortalObject;
import org.jboss.portal.core.model.portal.Window;
-import org.jboss.portal.core.model.content.ContentType;
-import org.jboss.portal.core.model.content.spi.ContentProviderRegistry;
import org.jboss.portal.theme.ThemeConstants;
-import org.jboss.portal.common.xml.XMLTools;
import org.w3c.dom.Element;
/**
@@ -40,9 +40,9 @@
*/
public class WindowMetaData extends PortalObjectMetaData
{
-
+
private static final Logger logger = Logger.getLogger(WindowMetaData.class);
-
+
/** The window region. */
protected String region;
@@ -100,12 +100,12 @@
{
this.contentType = contentType;
}
-
+
public String getInitialWindowState()
{
return initialWindowState;
}
-
+
public void setInitialWindowState(String initialWindowState)
{
this.initialWindowState = initialWindowState;
@@ -115,7 +115,7 @@
{
return initialMode;
}
-
+
public void setInitialMode(String initialMode)
{
this.initialMode = initialMode;
@@ -142,7 +142,7 @@
{
window.setDeclaredProperty(WindowImpl.PORTAL_INITIAL_MODE, "" + initialMode);
}
-
+
//
return window;
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/metadata/WindowMetaData.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/navstate/PortalObjectNavigationalStateContext.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/navstate/PortalObjectNavigationalStateContext.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/navstate/PortalObjectNavigationalStateContext.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,24 +24,24 @@
import org.jboss.logging.Logger;
import org.jboss.portal.WindowState;
+import org.jboss.portal.common.invocation.AttributeResolver;
import org.jboss.portal.core.navstate.NavigationalStateContext;
import org.jboss.portal.core.navstate.NavigationalStateKey;
import org.jboss.portal.core.navstate.NavigationalStateObjectChange;
-import org.jboss.portal.common.invocation.AttributeResolver;
+import java.util.Iterator;
+import java.util.LinkedHashMap;
import java.util.Set;
-import java.util.LinkedHashMap;
-import java.util.Iterator;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortalObjectNavigationalStateContext implements NavigationalStateContext
{
- /** .*/
+ /** . */
private Logger logger = Logger.getLogger(PortalObjectNavigationalStateContext.class);
-
+
/** . */
private static final String VIEW_ID_KEY = "view_id";
@@ -71,7 +71,7 @@
NavigationalStateObjectChange change = (NavigationalStateObjectChange)changes.get(nsKey);
if (change != null)
{
- switch(change.getType())
+ switch (change.getType())
{
case NavigationalStateObjectChange.CREATE:
case NavigationalStateObjectChange.UPDATE:
@@ -110,7 +110,7 @@
changes.remove(wantedKey);
//
- switch(change.getType())
+ switch (change.getType())
{
case NavigationalStateObjectChange.CREATE:
case NavigationalStateObjectChange.UPDATE:
@@ -182,7 +182,7 @@
if (changes != null && changes.size() > 0)
{
Object maximizedKey = null;
- for (Iterator i = changes.values().iterator();i.hasNext();)
+ for (Iterator i = changes.values().iterator(); i.hasNext();)
{
NavigationalStateObjectChange change = (NavigationalStateObjectChange)i.next();
if (change.getNewValue() instanceof WindowNavigationalState)
@@ -212,17 +212,17 @@
Object object = store.getAttribute(key);
if (object instanceof WindowNavigationalState)
{
- WindowNavigationalState wns = (WindowNavigationalState) object;
+ WindowNavigationalState wns = (WindowNavigationalState)object;
if (!key.equals(maximizedKey) && wns.getWindowState().equals(WindowState.MAXIMIZED))
{
WindowNavigationalState wns2 = new WindowNavigationalState(WindowState.NORMAL, wns.getMode(), wns
- .getContentState());
+ .getContentState());
store.setAttribute(key, wns2);
}
}
}
}
-
+
//
changes.clear();
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/navstate/PortalObjectNavigationalStateContext.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/navstate/WindowNavigationalState.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/navstate/WindowNavigationalState.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/navstate/WindowNavigationalState.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,8 +22,8 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.navstate;
+import org.jboss.portal.Mode;
import org.jboss.portal.WindowState;
-import org.jboss.portal.Mode;
import org.jboss.portal.common.invocation.AttributeResolver;
import org.jboss.portal.core.model.portal.Window;
import org.jboss.portal.core.navstate.NavigationalStateKey;
@@ -33,7 +33,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public final class WindowNavigationalState implements Serializable
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/navstate/WindowNavigationalState.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/portlet/PortalContextImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/portlet/PortalContextImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/portlet/PortalContextImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,8 +22,8 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.portlet;
+import org.jboss.portal.core.model.portal.Portal;
import org.jboss.portal.portlet.spi.PortalContext;
-import org.jboss.portal.core.model.portal.Portal;
import org.jboss.portal.server.PortalConstants;
import java.util.Map;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/portlet/PortalContextImpl.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/portlet/WindowContextImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/portlet/WindowContextImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/portlet/WindowContextImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,9 +22,9 @@
******************************************************************************/
package org.jboss.portal.core.model.portal.portlet;
+import org.jboss.portal.core.model.portal.PortalObjectPath;
+import org.jboss.portal.core.model.portal.Window;
import org.jboss.portal.portlet.spi.WindowContext;
-import org.jboss.portal.core.model.portal.Window;
-import org.jboss.portal.core.model.portal.PortalObjectPath;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/model/portal/portlet/WindowContextImpl.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/modules/AbstractModule.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/modules/MailModule.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/modules/ModuleConstants.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/modules/ModuleException.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateChange.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateChange.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateChange.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,7 +26,7 @@
* Base navigational state change.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public abstract class NavigationalStateChange
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateChange.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateContext.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateContext.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateContext.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,7 +26,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface NavigationalStateContext extends AttributeResolver
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateContext.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateKey.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateKey.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateKey.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,14 +22,14 @@
******************************************************************************/
package org.jboss.portal.core.navstate;
+import java.io.Externalizable;
import java.io.Serializable;
-import java.io.Externalizable;
/**
* A key for navigational state.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public final class NavigationalStateKey implements Serializable
{
@@ -44,8 +44,9 @@
* Construct a new navigational state key.
*
* @param type the type of state
- * @param id the id
- * @throws IllegalArgumentException if any argument is null or the id argument does not implement either Serializable or Externalizable
+ * @param id the id
+ * @throws IllegalArgumentException if any argument is null or the id argument does not implement either Serializable
+ * or Externalizable
*/
public NavigationalStateKey(Class type, Object id)
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateKey.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateObjectChange.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateObjectChange.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateObjectChange.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,12 +23,12 @@
package org.jboss.portal.core.navstate;
/**
- * The change of the navigational state of a single object. If both old and new values are not null, it denotes
- * an update. Whenever the old value is null, a creation occured and conversely if the new value is null, a
- * destruction occured.
+ * The change of the navigational state of a single object. If both old and new values are not null, it denotes an
+ * update. Whenever the old value is null, a creation occured and conversely if the new value is null, a destruction
+ * occured.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class NavigationalStateObjectChange extends NavigationalStateChange
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/navstate/NavigationalStateObjectChange.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/AjaxInfo.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/AjaxInfo.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/AjaxInfo.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,7 +24,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface AjaxInfo
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/AjaxInfo.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/CorePortletInfo.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/CorePortletInfo.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/CorePortletInfo.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,27 +26,18 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface CorePortletInfo
{
- /**
- *
- * @return
- */
+ /** @return */
Transactions.Type getTxType();
- /**
- *
- * @return
- */
+ /** @return */
AjaxInfo getAjax();
- /**
- *
- * @return
- */
+ /** @return */
MarkupHeaderInfo getMarkupHeader();
-
+
PortletInfoInfo getPortletInfo();
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/CorePortletInfo.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/MarkupHeaderInfo.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/MarkupHeaderInfo.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/MarkupHeaderInfo.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,7 +26,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface MarkupHeaderInfo
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/MarkupHeaderInfo.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/PortletIconInfo.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/PortletIconInfo.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/PortletIconInfo.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -30,7 +30,7 @@
{
/** . */
public static final String SMALL = "small";
-
+
/** . */
public static final String LARGE = "large";
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/PortletIconInfo.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/portlet/info/PortletInfoInfo.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/PortalJsp.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/PortalJsp.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/PortalJsp.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -66,7 +66,7 @@
* HttpJspPage implementation
*
* @see javax.servlet.jsp.HttpJspPage#_jspService(javax.servlet.http.HttpServletRequest,
- *javax.servlet.http.HttpServletResponse)
+ * javax.servlet.http.HttpServletResponse)
*/
abstract public void _jspService(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException,
IOException;
@@ -170,9 +170,7 @@
jspDestroy();
}
- /**
- * For Jasper which seems to want a log method in the generated JSP.
- */
+ /** For Jasper which seems to want a log method in the generated JSP. */
protected final void log(String msg)
{
logger.debug(msg);
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/PortalJsp.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/ErrorTag.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/ErrorsTag.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/IfTag.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/IncludeTag.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/IterateTag.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/PortalLib.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/PortalLib.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/PortalLib.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -131,15 +131,15 @@
return "";
}
}
-
+
private static String convert(String toto)
{
- if (toto != null)
- {
- toto = toto.replaceAll("<", "<");
- toto = toto.replaceAll(">", ">");
- }
- return toto;
+ if (toto != null)
+ {
+ toto = toto.replaceAll("<", "<");
+ toto = toto.replaceAll(">", ">");
+ }
+ return toto;
}
-
+
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/PortalLib.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/SuccessTag.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/context/AbstractContext.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/context/BuildException.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/context/ChildrenStrategy.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/context/Context.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/context/DelegateContext.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/servlet/jsp/taglib/context/NamedContext.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/theme/PageRendition.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/theme/PageRendition.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/theme/PageRendition.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,16 +22,16 @@
******************************************************************************/
package org.jboss.portal.core.theme;
+import org.jboss.portal.common.util.MarkupInfo;
+import org.jboss.portal.core.controller.ControllerResponse;
import org.jboss.portal.theme.PageService;
-import org.jboss.portal.theme.render.RendererContext;
-import org.jboss.portal.theme.render.RenderException;
-import org.jboss.portal.theme.render.ThemeContext;
import org.jboss.portal.theme.PortalLayout;
import org.jboss.portal.theme.PortalTheme;
import org.jboss.portal.theme.page.PageResult;
-import org.jboss.portal.common.util.MarkupInfo;
+import org.jboss.portal.theme.render.RenderException;
+import org.jboss.portal.theme.render.RendererContext;
+import org.jboss.portal.theme.render.ThemeContext;
import org.jboss.portal.web.ServletContextDispatcher;
-import org.jboss.portal.core.controller.ControllerResponse;
import javax.servlet.ServletException;
import java.io.IOException;
@@ -40,7 +40,7 @@
* Should not be a controller response, but it comes from legacy design.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PageRendition extends ControllerResponse
{
@@ -80,9 +80,8 @@
dispatcher.getResponse().setContentType(contentType);
dispatcher.getResponse().setCharacterEncoding(markupInfo.getCharset());
-
//
- ThemeContext themeContext = new ThemeContext(theme, pageService.getThemeService());
+ ThemeContext themeContext = new ThemeContext(theme, pageService.getThemeService());
//
RendererContext rendererContext = layout.getRenderContext(themeContext, markupInfo, dispatcher);
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/theme/PageRendition.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/theme/WindowContextFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/theme/WindowContextFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/theme/WindowContextFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,31 +22,31 @@
******************************************************************************/
package org.jboss.portal.core.theme;
-import org.jboss.portal.theme.page.WindowContext;
-import org.jboss.portal.theme.page.WindowResult;
-import org.jboss.portal.theme.render.renderer.ActionRendererContext;
-import org.jboss.portal.theme.ThemeConstants;
+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.PortalObjectPath;
-import org.jboss.portal.core.model.portal.Window;
import org.jboss.portal.core.model.portal.content.WindowRendition;
-import org.jboss.portal.core.controller.ControllerContext;
-import org.jboss.portal.WindowState;
-import org.jboss.portal.Mode;
import org.jboss.portal.server.ServerInvocationContext;
import org.jboss.portal.server.request.URLContext;
import org.jboss.portal.server.request.URLFormat;
+import org.jboss.portal.theme.ThemeConstants;
+import org.jboss.portal.theme.page.WindowContext;
+import org.jboss.portal.theme.page.WindowResult;
+import org.jboss.portal.theme.render.renderer.ActionRendererContext;
-import java.util.Map;
-import java.util.List;
import java.util.ArrayList;
+import java.util.HashMap;
import java.util.Iterator;
-import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class WindowContextFactory
{
@@ -74,13 +74,13 @@
//
WindowResult windowResult = new WindowResult(
- markup.getTitle(),
- markup.getContent(),
- actionMap,
- context.getProperties(),
- markup.getHeaderContent(),
- context.getWindowState(),
- context.getMode());
+ markup.getTitle(),
+ markup.getContent(),
+ actionMap,
+ context.getProperties(),
+ markup.getHeaderContent(),
+ context.getWindowState(),
+ context.getMode());
//
return new WindowContext(
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/theme/WindowContextFactory.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/content/portlet/PortletContentEditorPortlet.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/content/portlet/PortletContentEditorPortlet.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/content/portlet/PortletContentEditorPortlet.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,35 +22,35 @@
******************************************************************************/
package org.jboss.portal.core.ui.content.portlet;
-import org.jboss.portal.core.model.instance.InstanceContainer;
+import org.jboss.portal.Mode;
import org.jboss.portal.core.model.instance.Instance;
+import org.jboss.portal.core.model.instance.InstanceContainer;
import org.jboss.portal.portlet.Portlet;
import org.jboss.portal.portlet.PortletInvokerException;
-import org.jboss.portal.portlet.info.PortletInfo;
import org.jboss.portal.portlet.info.ModeInfo;
-import org.jboss.portal.Mode;
+import org.jboss.portal.portlet.info.PortletInfo;
-import javax.portlet.GenericPortlet;
-import javax.portlet.PortletMode;
-import javax.portlet.PortletException;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
+import javax.portlet.GenericPortlet;
+import javax.portlet.PortletException;
+import javax.portlet.PortletMode;
+import javax.portlet.PortletRequestDispatcher;
import javax.portlet.PortletSecurityException;
+import javax.portlet.PortletURL;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
-import javax.portlet.PortletURL;
-import javax.portlet.PortletRequestDispatcher;
import java.io.IOException;
import java.io.PrintWriter;
-import java.util.List;
-import java.util.Comparator;
+import java.util.ArrayList;
import java.util.Collections;
+import java.util.Comparator;
import java.util.Iterator;
-import java.util.ArrayList;
+import java.util.List;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortletContentEditorPortlet extends GenericPortlet
{
@@ -114,7 +114,7 @@
// Remove content editors
List available_instances = new ArrayList();
nextInstance:
- for (Iterator i = instanceContainer.getDefinitions().iterator();i.hasNext();)
+ for (Iterator i = instanceContainer.getDefinitions().iterator(); i.hasNext();)
{
Instance instance = (Instance)i.next();
@@ -124,7 +124,7 @@
// Filter portlets that are editors
Portlet portlet = instance.getPortlet();
PortletInfo info = portlet.getInfo();
- for (Iterator j = info.getCapabilities().getAllModes().iterator();j.hasNext();)
+ for (Iterator j = info.getCapabilities().getAllModes().iterator(); j.hasNext();)
{
ModeInfo modeInfo = (ModeInfo)j.next();
if (modeInfo.getMode().equals(INTERNAL_EDIT_CONTENT))
@@ -176,7 +176,6 @@
//
writer.close();
}
-
-
-
+
+
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/content/portlet/PortletContentEditorPortlet.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/PortletHelper.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/PortletHelper.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/PortletHelper.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -31,7 +31,7 @@
import java.util.Locale;
import java.util.ResourceBundle;
-/** @author <a href="theute(a)jboss.org">Thomas Heute </a> $Revision: 5448 $ */
+/** @author <a href="theute(a)jboss.org">Thomas Heute </a> $Revision$ */
public class PortletHelper
{
private Logger log = Logger.getLogger(PortalJsp.class);
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/PortletHelper.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/catalog/CatalogPortlet.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/catalog/CatalogPortlet.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/catalog/CatalogPortlet.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -43,7 +43,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
- * @version $Revision: 7134 $
+ * @version $Revision$
*/
public class CatalogPortlet
extends JBossPortlet
@@ -52,12 +52,12 @@
private static final String RESOURCE_PREFIX = "PAGENAME_";
private PortalAuthorizationManagerFactory portalAuthorizationManagerFactory;
-
+
public void init() throws PortletException
{
- portalAuthorizationManagerFactory = (PortalAuthorizationManagerFactory) getPortletContext().getAttribute("PortalAuthorizationManagerFactory");
+ portalAuthorizationManagerFactory = (PortalAuthorizationManagerFactory)getPortletContext().getAttribute("PortalAuthorizationManagerFactory");
- if(portalAuthorizationManagerFactory == null)
+ if (portalAuthorizationManagerFactory == null)
{
throw new PortletException("No portal authorization manager factory");
}
@@ -95,7 +95,7 @@
// {
resp.setTitle("Pages");
PortalNode parent = current.getParent();
-
+
HashMap parentsMap = new HashMap();
PortalNode node = parent.getParent();
while (node.getType() != PortalNode.TYPE_PORTAL)
@@ -104,7 +104,7 @@
node = node.getParent();
}
req.setAttribute("parents", parentsMap);
-
+
try
{
req.setAttribute("parentNode", localize(req.getLocale(), parent.getName()));
@@ -185,7 +185,7 @@
}
// }
}
-
+
private String localize(Locale locale, String name)
{
try
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/catalog/CatalogPortlet.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/role/RolePortlet.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/role/RolePortlet.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/role/RolePortlet.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,16 +23,16 @@
package org.jboss.portal.core.ui.portlet.role;
import org.jboss.logging.Logger;
+import org.jboss.portal.core.servlet.jsp.PortalJsp;
+import org.jboss.portal.core.servlet.jsp.taglib.context.DelegateContext;
import org.jboss.portal.core.ui.portlet.PortletHelper;
import org.jboss.portal.core.ui.portlet.user.UserPortletConstants;
-import org.jboss.portal.core.servlet.jsp.PortalJsp;
-import org.jboss.portal.core.servlet.jsp.taglib.context.DelegateContext;
import org.jboss.portal.identity.IdentityException;
+import org.jboss.portal.identity.MembershipModule;
import org.jboss.portal.identity.Role;
import org.jboss.portal.identity.RoleModule;
import org.jboss.portal.identity.User;
import org.jboss.portal.identity.UserModule;
-import org.jboss.portal.identity.MembershipModule;
import org.jboss.portal.identity.UserProfileModule;
import org.jboss.portlet.JBossActionRequest;
import org.jboss.portlet.JBossActionResponse;
@@ -48,13 +48,13 @@
import javax.portlet.WindowStateException;
import java.io.IOException;
import java.io.PrintWriter;
+import java.util.Arrays;
+import java.util.HashSet;
import java.util.Iterator;
+import java.util.List;
import java.util.Locale;
import java.util.ResourceBundle;
import java.util.Set;
-import java.util.HashSet;
-import java.util.Arrays;
-import java.util.List;
/**
* This portlet aims at managing roles of users.
@@ -63,7 +63,7 @@
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @author <a href="mailto:theute@jboss.org">Thomas Heute </a>
* @author Roy Russo : roy at jboss dot org
- * @version $Revision: 7343 $
+ * @version $Revision$
*/
public class RolePortlet
extends JBossPortlet
@@ -696,8 +696,8 @@
response.setRenderParameter("selectedRoles", selectedRoles);
}
- response.setRenderParameter("op", OP_SHOWADDROLESTOUSER );
- response.setRenderParameter("userid", userId);
+ response.setRenderParameter("op", OP_SHOWADDROLESTOUSER);
+ response.setRenderParameter("userid", userId);
return;
}
@@ -712,8 +712,8 @@
roleNames = (String[])roles.toArray(roleNames);
response.setRenderParameter("selectedRoles", roleNames);
- response.setRenderParameter("op", OP_SHOWADDROLESTOUSER );
- response.setRenderParameter("userid", userId);
+ response.setRenderParameter("op", OP_SHOWADDROLESTOUSER);
+ response.setRenderParameter("userid", userId);
}
else if (request.getParameterMap().keySet().contains("removeRoles"))
{
@@ -733,11 +733,11 @@
response.setRenderParameter("selectedRoles", selectedRoles);
}
- response.setRenderParameter("op", OP_SHOWADDROLESTOUSER );
- response.setRenderParameter("userid", userId);
+ response.setRenderParameter("op", OP_SHOWADDROLESTOUSER);
+ response.setRenderParameter("userid", userId);
return;
}
-
+
List toRemove = Arrays.asList(rolesToRemove);
Set roles = new HashSet();
@@ -760,12 +760,12 @@
response.setRenderParameter("selectedRoles", roleNames);
}
- response.setRenderParameter("op", OP_SHOWADDROLESTOUSER );
- response.setRenderParameter("userid", userId);
+ response.setRenderParameter("op", OP_SHOWADDROLESTOUSER);
+ response.setRenderParameter("userid", userId);
}
else
{
-
+
String[] selectedRoles = request.getParameterValues("assignedRoles");
try
@@ -774,8 +774,8 @@
Set roles = roleModule.findRolesByNames(selectedRoles);
membershipModule.assignRoles(user, roles);
- response.setRenderParameter("op", OP_SHOWLISTROLEMEMBERS );
- response.setRenderParameter("userid", userId);
+ response.setRenderParameter("op", OP_SHOWLISTROLEMEMBERS);
+ response.setRenderParameter("userid", userId);
}
catch (IllegalArgumentException e)
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/role/RolePortlet.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/user/UserPortlet.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/user/UserPortlet.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/user/UserPortlet.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,48 +22,23 @@
******************************************************************************/
package org.jboss.portal.core.ui.portlet.user;
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.PrintWriter;
-import java.io.StringWriter;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Comparator;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Locale;
-import java.util.Map;
-import java.util.ResourceBundle;
-import java.util.Set;
-import java.util.List;
-import java.util.Arrays;
-
-import javax.portlet.PortletException;
-import javax.portlet.PortletRequestDispatcher;
-import javax.portlet.PortletSecurityException;
-import javax.portlet.PortletURL;
-import javax.portlet.WindowState;
-import javax.portlet.WindowStateException;
-
+import freemarker.template.Configuration;
+import freemarker.template.Template;
+import freemarker.template.TemplateException;
import org.jboss.logging.Logger;
import org.jboss.portal.api.node.PortalNode;
import org.jboss.portal.api.node.PortalNodeURL;
+import org.jboss.portal.common.i18n.LocaleFormat;
+import org.jboss.portal.common.i18n.LocaleManager;
+import org.jboss.portal.common.net.URLTools;
import org.jboss.portal.common.p3p.P3PConstants;
+import org.jboss.portal.common.util.ConversionException;
import org.jboss.portal.common.util.Tools;
-import org.jboss.portal.common.net.URLTools;
-import org.jboss.portal.common.util.ConversionException;
-import org.jboss.portal.common.i18n.LocaleFormat;
-import org.jboss.portal.common.i18n.LocaleManager;
import org.jboss.portal.core.aspects.controller.node.Navigation;
import org.jboss.portal.core.modules.MailModule;
-import org.jboss.portal.core.ui.portlet.PortletHelper;
import org.jboss.portal.core.servlet.jsp.PortalJsp;
import org.jboss.portal.core.servlet.jsp.taglib.context.DelegateContext;
+import org.jboss.portal.core.ui.portlet.PortletHelper;
import org.jboss.portal.identity.IdentityException;
import org.jboss.portal.identity.MembershipModule;
import org.jboss.portal.identity.Role;
@@ -80,9 +55,32 @@
import org.jboss.portlet.JBossRenderRequest;
import org.jboss.portlet.JBossRenderResponse;
-import freemarker.template.Configuration;
-import freemarker.template.Template;
-import freemarker.template.TemplateException;
+import javax.portlet.PortletException;
+import javax.portlet.PortletRequestDispatcher;
+import javax.portlet.PortletSecurityException;
+import javax.portlet.PortletURL;
+import javax.portlet.WindowState;
+import javax.portlet.WindowStateException;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.PrintWriter;
+import java.io.StringWriter;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Locale;
+import java.util.Map;
+import java.util.ResourceBundle;
+import java.util.Set;
/**
* This portlet aims at managing users
@@ -90,7 +88,7 @@
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @author <a href="mailto:theute@jboss.org">Thomas Heute </a>
* @author <a href="mailto:mageshbk@jboss.com">Magesh Kumar Bojan</a>
- * @version $Revision: 7379 $
+ * @version $Revision$
*/
public class UserPortlet
extends JBossPortlet
@@ -233,7 +231,7 @@
return;
}
*/
-
+
if (req.getRemoteUser() != null)
{
if (req.getWindowState() != WindowState.MAXIMIZED)
@@ -314,10 +312,10 @@
//
//String selectedLocale = (String)user.getProfile().get(User.INFO_USER_LOCALE);
String selectedLocale = (String)getProperty(user, User.INFO_USER_LOCALE);
-
+
ArrayList locales = new ArrayList(LocaleManager.getLocales());
Collections.sort(locales, new LocaleComparator());
-
+
for (Iterator i = locales.iterator(); i.hasNext();)
{
Locale locale = (Locale)i.next();
@@ -333,7 +331,7 @@
//
//String selectedTheme = (String)user.getProfile().get(User.INFO_USER_THEME);
- String selectedTheme = (String)getProperty(user,User.INFO_USER_THEME);
+ String selectedTheme = (String)getProperty(user, User.INFO_USER_THEME);
ThemeService themeService = (ThemeService)getPortletContext().getAttribute("ThemeService");
for (Iterator i = themeService.getThemes().iterator(); i.hasNext();)
{
@@ -395,7 +393,7 @@
ctx.put("username", user.getUserName());
fillContextWithUserProfile(user, ctx);
-
+
req.setAttribute(PortalJsp.CTX_REQUEST, ctx);
resp.setTitle(bundle.getString("REGISTER_PERSONALINFO"));
PortletRequestDispatcher rd = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/user/viewProfile.jsp");
@@ -410,7 +408,7 @@
}
if (req.getParameter("modifiedProfile") != null)
{
- ctx.next("modifiedProfile");
+ ctx.next("modifiedProfile");
}
req.setAttribute(PortalJsp.CTX_REQUEST, ctx);
PortletRequestDispatcher rd = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/user/menu.jsp");
@@ -460,7 +458,7 @@
{
rowCtx.put("cssClass", "portlet-table-alternate");
}
-
+
//
Iterator itRoles = membershipModule.getRoles(user).iterator();
while (itRoles.hasNext())
@@ -539,7 +537,7 @@
ctx.put("usernamefilter", req.getParameter("usernamefilter"));
ctx.put("offset", req.getParameter("offset"));
ctx.put("usersperpage", req.getParameter("usersperpage"));
-
+
try
{
User user = userModule.findUserById(req.getParameter("userid"));
@@ -554,7 +552,6 @@
Role role = null;
-
DelegateContext allRolesCtx = null;
for (Iterator it = roles.iterator(); it.hasNext();)
{
@@ -639,7 +636,7 @@
// User is not logged in
op = req.getParameters().get(getOperationName(), OP_SHOWLOGIN);
- if (req.getWindowState() != WindowState.MAXIMIZED && ! OP_SHOWREGISTER_TY.equals(op) && ! OP_ACTIVATEUSER.equals(op))
+ if (req.getWindowState() != WindowState.MAXIMIZED && !OP_SHOWREGISTER_TY.equals(op) && !OP_ACTIVATEUSER.equals(op))
{
op = OP_SHOWLOGIN;
}
@@ -690,7 +687,7 @@
ctx.put("username", user.getUserName());
fillContextWithUserProfile(user, ctx);
-
+
req.setAttribute(PortalJsp.CTX_REQUEST, ctx);
PortletRequestDispatcher rd = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/user/viewProfile.jsp");
rd.include(req, resp);
@@ -715,7 +712,7 @@
try
{
user = userModule.findUserById(userId);
- String hexCompare = Tools.md5AsHexString(user.getUserName() + getProperty(user,User.INFO_USER_REGISTRATION_DATE).toString() + UserPortletConstants.SALT);
+ String hexCompare = Tools.md5AsHexString(user.getUserName() + getProperty(user, User.INFO_USER_REGISTRATION_DATE).toString() + UserPortletConstants.SALT);
if (hash.equals(hexCompare))
{
setProperty(user, User.INFO_USER_ENABLED, Boolean.TRUE);
@@ -791,187 +788,190 @@
{
// TODO: Check that a bot is not creating many accounts
- if (req.getParameter("Cancel") == null)
+ if (req.getParameter("Cancel") == null)
{
- int nbErrors = 0;
+ int nbErrors = 0;
- String uname = req.getParameter("uname");
- if ((uname == null) || (uname.length() == 0))
- {
- nbErrors++;
- resp.setRenderParameter("uname_error", "REGISTER_ERROR_INVALIDUSERNAME");
- }
- else
- {
- try
+ String uname = req.getParameter("uname");
+ if ((uname == null) || (uname.length() == 0))
{
- User user = userModule.findUserByUserName(uname);
- if (user != null)
+ nbErrors++;
+ resp.setRenderParameter("uname_error", "REGISTER_ERROR_INVALIDUSERNAME");
+ }
+ else
+ {
+ try
{
- nbErrors++;
- resp.setRenderParameter("uname_error", "REGISTER_ERROR_EXISTINGUSERNAME");
+ User user = userModule.findUserByUserName(uname);
+ if (user != null)
+ {
+ nbErrors++;
+ resp.setRenderParameter("uname_error", "REGISTER_ERROR_EXISTINGUSERNAME");
+ }
}
+ catch (IllegalArgumentException e)
+ {
+ log.error("", e);
+ }
+ catch (IdentityException e)
+ {
+ // Ok the user does not exist yet
+ }
}
- catch (IllegalArgumentException e)
+
+ String pass1 = req.getParameter("pass1");
+ if ((pass1 == null) || (pass1.length() == 0))
{
- log.error("", e);
+ nbErrors++;
+ resp.setRenderParameter("pass1_error", "REGISTER_ERROR_INVALIDPASSWORD1");
}
- catch (IdentityException e)
+
+ String pass2 = req.getParameter("pass2");
+ if ((pass2 == null) || (pass2.length() == 0))
{
- // Ok the user does not exist yet
+ nbErrors++;
+ resp.setRenderParameter("pass2_error", "REGISTER_ERROR_INVALIDPASSWORD2");
}
- }
+ else if (!pass1.equals(pass2))
+ {
+ nbErrors++;
+ resp.setRenderParameter("pass2_error", "REGISTER_ERROR_PASSWORDMISMATCH");
+ }
- String pass1 = req.getParameter("pass1");
- if ((pass1 == null) || (pass1.length() == 0))
- {
- nbErrors++;
- resp.setRenderParameter("pass1_error", "REGISTER_ERROR_INVALIDPASSWORD1");
- }
+ String realEmail = req.getParameter("realemail");
+ if (!URLTools.isEmailValid(realEmail))
+ {
+ nbErrors++;
+ resp.setRenderParameter("realemail_error", "REGISTER_ERROR_INVALIDREALEMAIL");
+ }
- String pass2 = req.getParameter("pass2");
- if ((pass2 == null) || (pass2.length() == 0))
- {
- nbErrors++;
- resp.setRenderParameter("pass2_error", "REGISTER_ERROR_INVALIDPASSWORD2");
- }
- else if (!pass1.equals(pass2))
- {
- nbErrors++;
- resp.setRenderParameter("pass2_error", "REGISTER_ERROR_PASSWORDMISMATCH");
- }
+ String fakeEmail = req.getParameter("fakeemail");
+ String question = req.getParameter("question");
+ String answer = req.getParameter("answer");
+ User user;
+ if (nbErrors == 0)
+ {
+ try
+ {
- String realEmail = req.getParameter("realemail");
- if (!URLTools.isEmailValid(realEmail))
- {
- nbErrors++;
- resp.setRenderParameter("realemail_error", "REGISTER_ERROR_INVALIDREALEMAIL");
- }
+ user = userModule.createUser(uname, pass1);
- String fakeEmail = req.getParameter("fakeemail");
- String question = req.getParameter("question");
- String answer = req.getParameter("answer");
- User user;
- if (nbErrors == 0)
- {
- try
- {
-
- user = userModule.createUser(uname, pass1);
-
- setProperty(user, P3PConstants.INFO_USER_BUSINESS_INFO_ONLINE_EMAIL, realEmail);
- //user.setFakeEmail(fakeEmail);
- setProperty(user,User.INFO_USER_EMAIL_FAKE, fakeEmail);
+ setProperty(user, P3PConstants.INFO_USER_BUSINESS_INFO_ONLINE_EMAIL, realEmail);
+ //user.setFakeEmail(fakeEmail);
+ setProperty(user, User.INFO_USER_EMAIL_FAKE, fakeEmail);
- //TODO: set registration date
+ //TODO: set registration date
- String type = userProfileModule.getProfileInfo().getPropertyInfo(User.INFO_USER_REGISTRATION_DATE).getType();
- if (type.equals("java.util.Date"))
- {
- putProperty(user, User.INFO_USER_REGISTRATION_DATE, new Date());
- }
- else if (type.equals("java.lang.String"))
- {
- putProperty(user, User.INFO_USER_REGISTRATION_DATE, new Date().toString());
- }
- else
- {
- log.warn(User.INFO_USER_REGISTRATION_DATE + " property is mapped in not supported type: " + type);
- }
+ String type = userProfileModule.getProfileInfo().getPropertyInfo(User.INFO_USER_REGISTRATION_DATE).getType();
+ if (type.equals("java.util.Date"))
+ {
+ putProperty(user, User.INFO_USER_REGISTRATION_DATE, new Date());
+ }
+ else if (type.equals("java.lang.String"))
+ {
+ putProperty(user, User.INFO_USER_REGISTRATION_DATE, new Date().toString());
+ }
+ else
+ {
+ log.warn(User.INFO_USER_REGISTRATION_DATE + " property is mapped in not supported type: " + type);
+ }
- String subscriptionMode = getPortletConfig().getInitParameter(UserPortletConstants.SUBSCRIPTIONMODE);
- if (subscriptionMode == null)
- {
- subscriptionMode = UserPortletConstants.SUBSCRIPTIONMODE_AUTOMATIC;
- }
+ String subscriptionMode = getPortletConfig().getInitParameter(UserPortletConstants.SUBSCRIPTIONMODE);
+ if (subscriptionMode == null)
+ {
+ subscriptionMode = UserPortletConstants.SUBSCRIPTIONMODE_AUTOMATIC;
+ }
- setProperty(user, User.INFO_USER_LOCALE, req.getLocale().toString());
-
- if (UserPortletConstants.SUBSCRIPTIONMODE_AUTOMATIC.equals(subscriptionMode) || req.isUserInRole("Admin"))
- {
- setProperty(user, User.INFO_USER_ENABLED, Boolean.TRUE);
- }
- else if (UserPortletConstants.SUBSCRIPTIONMODE_EMAILVERIFICATION.equals(subscriptionMode))
- {
- setProperty(user, User.INFO_USER_ENABLED, Boolean.FALSE);
- String emailText = generateValidationEmail(req, resp, user, pass1);
- String from = getPortletConfig().getInitParameter(UserPortletConstants.EMAILFROM);
- Locale locale = req.getLocale();
- ResourceBundle bundle = getResourceBundle(locale);
- String subject = bundle.getString("REGISTER_CONFIRMATIONEMAIL");
- mailModule.send(from, (String)getProperty(user,P3PConstants.INFO_USER_BUSINESS_INFO_ONLINE_EMAIL), subject, emailText);
- }
+ setProperty(user, User.INFO_USER_LOCALE, req.getLocale().toString());
- /*
- * Have to define the link to /login Have to redirect after the
- * login try { resp.sendRedirect("/portal/login?username=" + uname +
- * "&password=" + pass1); } catch (IOException e1) { // TODO
- * Auto-generated catch block e1.printStackTrace(); }
- */
+ if (UserPortletConstants.SUBSCRIPTIONMODE_AUTOMATIC.equals(subscriptionMode) || req.isUserInRole("Admin"))
+ {
+ setProperty(user, User.INFO_USER_ENABLED, Boolean.TRUE);
+ }
+ else if (UserPortletConstants.SUBSCRIPTIONMODE_EMAILVERIFICATION.equals(subscriptionMode))
+ {
+ setProperty(user, User.INFO_USER_ENABLED, Boolean.FALSE);
+ String emailText = generateValidationEmail(req, resp, user, pass1);
+ String from = getPortletConfig().getInitParameter(UserPortletConstants.EMAILFROM);
+ Locale locale = req.getLocale();
+ ResourceBundle bundle = getResourceBundle(locale);
+ String subject = bundle.getString("REGISTER_CONFIRMATIONEMAIL");
+ mailModule.send(from, (String)getProperty(user, P3PConstants.INFO_USER_BUSINESS_INFO_ONLINE_EMAIL), subject, emailText);
+ }
- // Add the user to the default user role
- String defaultRole = getPortletConfig().getInitParameter(UserPortletConstants.DEFAULT_ROLE);
- if (defaultRole != null)
- {
- Set roleSet = new HashSet();
- Role role = roleModule.findRoleByName(defaultRole);
- if (role != null)
+ /*
+ * Have to define the link to /login Have to redirect after the
+ * login try { resp.sendRedirect("/portal/login?username=" + uname +
+ * "&password=" + pass1); } catch (IOException e1) { // TODO
+ * Auto-generated catch block e1.printStackTrace(); }
+ */
+
+ // Add the user to the default user role
+ String defaultRole = getPortletConfig().getInitParameter(UserPortletConstants.DEFAULT_ROLE);
+ if (defaultRole != null)
{
- roleSet.add(role);
- membershipModule.assignRoles(user, roleSet);
+ Set roleSet = new HashSet();
+ Role role = roleModule.findRoleByName(defaultRole);
+ if (role != null)
+ {
+ roleSet.add(role);
+ membershipModule.assignRoles(user, roleSet);
+ }
+ else
+ {
+ log.error("The role you specified as default role does not exist, check your portlet configuration");
+ }
}
else
{
- log.error("The role you specified as default role does not exist, check your portlet configuration");
+ log.info("You didn't specify a default role in the portlet init configuration, please refer to the documentation");
}
+ //resp.setRenderParameter("op", OP_SHOWREGISTER_TY);
+ if (req.getParameters().get("lastView", OP_SHOWMENU).equals(OP_SHOWLISTUSERS))
+ {
+ resp.setWindowState(WindowState.MAXIMIZED);
+ }
+ else
+ {
+ resp.setWindowState(WindowState.NORMAL);
+ }
}
- else
+ catch (IllegalArgumentException e)
{
- log.info("You didn't specify a default role in the portlet init configuration, please refer to the documentation");
+ log.error("Cannot create user " + uname, e);
}
- //resp.setRenderParameter("op", OP_SHOWREGISTER_TY);
- if (req.getParameters().get("lastView",OP_SHOWMENU).equals(OP_SHOWLISTUSERS))
+ catch (IdentityException e)
{
- resp.setWindowState(WindowState.MAXIMIZED);
+ log.error("Cannot create user " + uname, e);
}
- else
+ catch (WindowStateException e)
{
- resp.setWindowState(WindowState.NORMAL);
+ log.error("Normal window state not supported...");
}
}
- catch (IllegalArgumentException e)
+ else
{
- log.error("Cannot create user " + uname, e);
+ portletHelper.setRenderParameter(resp, "USERNAME", uname);
+ portletHelper.setRenderParameter(resp, "REALEMAIL", realEmail);
+ portletHelper.setRenderParameter(resp, "FAKEEMAIL", fakeEmail);
+ portletHelper.setRenderParameter(resp, "QUESTION", question);
+ portletHelper.setRenderParameter(resp, "ANSWER", answer);
+ portletHelper.setRenderParameter(resp, getOperationName(), OP_SHOWREGISTER);
}
- catch (IdentityException e)
+ }
+ else
+ {
+ resp.setRenderParameter("op", req.getParameters().get("lastView", OP_SHOWMENU));
+ try
{
- log.error("Cannot create user " + uname, e);
+ resp.setWindowState(WindowState.NORMAL);
}
catch (WindowStateException e)
{
- log.error("Normal window state not supported...");
+ // TODO Auto-generated catch block
+ e.printStackTrace();
}
}
- else
- {
- portletHelper.setRenderParameter(resp, "USERNAME", uname);
- portletHelper.setRenderParameter(resp, "REALEMAIL", realEmail);
- portletHelper.setRenderParameter(resp, "FAKEEMAIL", fakeEmail);
- portletHelper.setRenderParameter(resp, "QUESTION", question);
- portletHelper.setRenderParameter(resp, "ANSWER", answer);
- portletHelper.setRenderParameter(resp, getOperationName(), OP_SHOWREGISTER);
- }
- }
- else
- {
- resp.setRenderParameter("op", req.getParameters().get("lastView",OP_SHOWMENU));
- try {
- resp.setWindowState(WindowState.NORMAL);
- } catch (WindowStateException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
}
private void fillContextWithUserProfile(User user, DelegateContext ctx)
@@ -982,20 +982,20 @@
ctx.put("FAKEEMAIL", (String)getProperty(user, User.INFO_USER_EMAIL_FAKE));
ctx.put("THEME", (String)getProperty(user, User.INFO_USER_THEME));
ctx.put("VIEWREALEMAIL", (getProperty(user, User.INFO_USER_VIEW_EMAIL_VIEW_REAL)).equals("true") ? "checked=\"checked\"" : "");
- ctx.put("HOMEPAGE", (String)getProperty(user,User.INFO_USER_HOMEPAGE));
- ctx.put("ICQ", (String)getProperty(user,User.INFO_USER_IM_ICQ));
- ctx.put("AIM", (String)getProperty(user,User.INFO_USER_IM_AIM));
- ctx.put("YIM", (String)getProperty(user,User.INFO_USER_IM_YIM));
- ctx.put("MSNM", (String)getProperty(user,User.INFO_USER_IM_MSNM));
- ctx.put("SKYPE", (String)getProperty(user,User.INFO_USER_IM_SKYPE));
- ctx.put("XMMP", (String)getProperty(user,User.INFO_USER_IM_XMMP));
- ctx.put("SIGNATURE", (String)getProperty(user,User.INFO_USER_SIGNATURE));
- ctx.put("LOCATION", (String)getProperty(user,User.INFO_USER_LOCATION));
- ctx.put("OCCUPATION", (String)getProperty(user,User.INFO_USER_OCCUPATION));
- ctx.put("INTERESTS", (String)getProperty(user,User.INFO_USER_INTERESTS));
- ctx.put("EXTRA", (String)getProperty(user,User.INFO_USER_EXTRA));
- ctx.put("QUESTION", (String)getProperty(user,User.INFO_USER_SECURITY_QUESTION));
- ctx.put("ANSWER", (String)getProperty(user,User.INFO_USER_SECURITY_ANSWER));
+ ctx.put("HOMEPAGE", (String)getProperty(user, User.INFO_USER_HOMEPAGE));
+ ctx.put("ICQ", (String)getProperty(user, User.INFO_USER_IM_ICQ));
+ ctx.put("AIM", (String)getProperty(user, User.INFO_USER_IM_AIM));
+ ctx.put("YIM", (String)getProperty(user, User.INFO_USER_IM_YIM));
+ ctx.put("MSNM", (String)getProperty(user, User.INFO_USER_IM_MSNM));
+ ctx.put("SKYPE", (String)getProperty(user, User.INFO_USER_IM_SKYPE));
+ ctx.put("XMMP", (String)getProperty(user, User.INFO_USER_IM_XMMP));
+ ctx.put("SIGNATURE", (String)getProperty(user, User.INFO_USER_SIGNATURE));
+ ctx.put("LOCATION", (String)getProperty(user, User.INFO_USER_LOCATION));
+ ctx.put("OCCUPATION", (String)getProperty(user, User.INFO_USER_OCCUPATION));
+ ctx.put("INTERESTS", (String)getProperty(user, User.INFO_USER_INTERESTS));
+ ctx.put("EXTRA", (String)getProperty(user, User.INFO_USER_EXTRA));
+ ctx.put("QUESTION", (String)getProperty(user, User.INFO_USER_SECURITY_QUESTION));
+ ctx.put("ANSWER", (String)getProperty(user, User.INFO_USER_SECURITY_ANSWER));
}
/**
@@ -1199,7 +1199,7 @@
portletHelper.setRenderParameter(resp, "EXTRA", extra);
portletHelper.setRenderParameter(resp, getOperationName(), OP_SHOWPROFILE);
}
-
+
}
/**
@@ -1235,8 +1235,8 @@
response.setRenderParameter("selectedRoles", selectedRoles);
}
- response.setRenderParameter("op", OP_SHOWADDROLESTOUSER );
- response.setRenderParameter("userid", userId);
+ response.setRenderParameter("op", OP_SHOWADDROLESTOUSER);
+ response.setRenderParameter("userid", userId);
return;
}
@@ -1251,8 +1251,8 @@
roleNames = (String[])roles.toArray(roleNames);
response.setRenderParameter("selectedRoles", roleNames);
- response.setRenderParameter("op", OP_SHOWADDROLESTOUSER );
- response.setRenderParameter("userid", userId);
+ response.setRenderParameter("op", OP_SHOWADDROLESTOUSER);
+ response.setRenderParameter("userid", userId);
}
else if (request.getParameterMap().keySet().contains("removeRoles"))
{
@@ -1272,8 +1272,8 @@
response.setRenderParameter("selectedRoles", selectedRoles);
}
- response.setRenderParameter("op", OP_SHOWADDROLESTOUSER );
- response.setRenderParameter("userid", userId);
+ response.setRenderParameter("op", OP_SHOWADDROLESTOUSER);
+ response.setRenderParameter("userid", userId);
return;
}
@@ -1299,8 +1299,8 @@
response.setRenderParameter("selectedRoles", roleNames);
}
- response.setRenderParameter("op", OP_SHOWADDROLESTOUSER );
- response.setRenderParameter("userid", userId);
+ response.setRenderParameter("op", OP_SHOWADDROLESTOUSER);
+ response.setRenderParameter("userid", userId);
}
else
{
@@ -1347,9 +1347,9 @@
{
// gen link using username, encrypted pw, and a salt.
String hash = Tools.md5AsHexString(user.getUserName() + getProperty(user, User.INFO_USER_REGISTRATION_DATE).toString() + UserPortletConstants.SALT);
-
+
PortalNode node = req.getPortalNode();
-
+
//PortalNodeURL link = resp.createActionURL(node);
PortalNodeURL link = resp.createRenderURL(node);
link.setParameter("op", OP_ACTIVATEUSER);
@@ -1364,13 +1364,13 @@
modelRoot.put("username", user.getUserName());
modelRoot.put("password", clearPassword);
modelRoot.put("activationLink", link);
-
+
ClassLoader tcl = Thread.currentThread().getContextClassLoader();
String message = null;
try
{
Locale locale = req.getLocale();
- URL config = tcl.getResource("templates/user/emailTemplate_" + locale.getLanguage() + "_" + locale.getCountry()+ ".tpl");
+ URL config = tcl.getResource("templates/user/emailTemplate_" + locale.getLanguage() + "_" + locale.getCountry() + ".tpl");
if (config == null)
{
config = tcl.getResource("templates/user/emailTemplate_" + locale.getLanguage() + ".tpl");
@@ -1570,9 +1570,9 @@
}
return compare;
}
-
+
}
-
+
/*
* private String getTimezoneOffsetString(short timezoneOffset) {
* StringBuffer timeZone = new StringBuffer(); for (int i = 0; i <
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/user/UserPortlet.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/user/UserPortletConstants.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/user/UserPortletConstants.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/user/UserPortletConstants.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,7 +22,7 @@
******************************************************************************/
package org.jboss.portal.core.ui.portlet.user;
-/** @author <a href="theute(a)jboss.org">Thomas Heute</a> $Revision: 5448 $ */
+/** @author <a href="theute(a)jboss.org">Thomas Heute</a> $Revision$ */
public class UserPortletConstants
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/ui/portlet/user/UserPortletConstants.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/util/ProxyValidator.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/CorePortletPreferencesTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/HttpServletRequestWrapperImpl.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/I18nELTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/I18nELTestCase.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/I18nELTestCase.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -26,10 +26,8 @@
import org.jboss.portal.core.servlet.jsp.PortalJsp;
import org.jboss.portal.core.servlet.jsp.taglib.PortalLib;
import org.jboss.portal.portlet.impl.jsr168.PortletResourceBundleFactory;
-import org.jboss.portal.portlet.impl.jsr168.api.PortletConfigImpl;
import org.jboss.portal.portlet.impl.jsr168.metadata.LanguagesMetaData;
-import javax.portlet.PortletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/I18nELTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/I18nOutELTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/IfTagTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/IncludeTagTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/IterateTagTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/OutELTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/PageTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/PortalBaseTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/ProxyValidatorTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/TagLibTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/Utils.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/deployment/JBossApplicationMetaDataFactoryTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/deployment/JBossApplicationMetaDataFactoryTestCase.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/deployment/JBossApplicationMetaDataFactoryTestCase.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -132,9 +132,9 @@
assertEquals("screen", link.getMediaAttribute());
assertEquals("test.css", link.getHrefAttribute());
assertEquals("foo", link.getTitleAttribute());
-
+
}
-
+
public void testPortletInfoMetadata() throws Exception
{
URL jbossPortletXML = Thread.currentThread().getContextClassLoader().getResource("test/deployment/jboss-portlet.xml");
@@ -156,7 +156,7 @@
JBossPortletMetaData portlet = (JBossPortletMetaData)app.getPortlets().get("Portlet4");
assertNotNull(portlet);
assertEquals("Portlet4", portlet.getName());
-
+
PortletInfoMetaData portletInfo = (PortletInfoMetaData)portlet.getPortletInfo();
System.out.println(">>>" + portletInfo.getPortletIcon());
assertEquals("/tmp/toto.png", portletInfo.getPortletIcon().getIconLocation(PortletIconMetaData.SMALL));
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/deployment/JBossApplicationMetaDataFactoryTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/deployment/PortletInstancesMetaDataFactoryTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/deployment/PortletInstancesMetaDataFactoryTestCase.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/deployment/PortletInstancesMetaDataFactoryTestCase.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,17 +23,7 @@
package org.jboss.portal.test.core.deployment;
-import java.io.InputStream;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Locale;
-
-import javax.xml.parsers.DocumentBuilder;
-
import junit.framework.TestCase;
-
import org.jboss.portal.common.i18n.LocalizedString;
import org.jboss.portal.common.io.IOTools;
import org.jboss.portal.common.net.URLTools;
@@ -46,11 +36,18 @@
import org.w3c.dom.Element;
import org.xml.sax.EntityResolver;
+import javax.xml.parsers.DocumentBuilder;
+import java.io.InputStream;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Locale;
+
public class PortletInstancesMetaDataFactoryTestCase extends TestCase
{
-
public void testLocalizedDisplayNameMetadata() throws Exception
{
// Get instances from portlet-instances.xml
@@ -64,14 +61,12 @@
in = Thread.currentThread().getContextClassLoader().getResourceAsStream("test/deployment/portlet-instances.xml");
// in = IOTools.safeBufferedWrapper(in);
-
-
assertNotNull(in);
-
+
PortletAppDeploymentFactory factory = new PortletAppDeploymentFactory();
-
+
if (in != null)
{
DocumentBuilder builder = XMLTools.getDocumentBuilderFactory().newDocumentBuilder();
@@ -104,20 +99,20 @@
}
assertEquals(4, instancesMetadata.size());
-
- InstanceMetaData instanceMD = (InstanceMetaData) instancesMetadata.get(0);
+
+ InstanceMetaData instanceMD = (InstanceMetaData)instancesMetadata.get(0);
assertEquals("UserPortletInstance", instanceMD.getId());
LocalizedString lString = Utils.getLocalizedDescription(instanceMD.getDisplayName());
assertEquals("Mon instance de User portlet", lString.getString(Locale.FRENCH, false));
assertEquals("My User portlet instance", lString.getString(Locale.ENGLISH, false));
assertEquals("My User portlet instance", lString.getDefaultString());
- instanceMD = (InstanceMetaData) instancesMetadata.get(1);
+ instanceMD = (InstanceMetaData)instancesMetadata.get(1);
assertEquals("RolePortletInstance", instanceMD.getId());
- instanceMD = (InstanceMetaData) instancesMetadata.get(2);
+ instanceMD = (InstanceMetaData)instancesMetadata.get(2);
assertEquals("CatalogPortletInstance", instanceMD.getId());
- instanceMD = (InstanceMetaData) instancesMetadata.get(3);
+ instanceMD = (InstanceMetaData)instancesMetadata.get(3);
assertEquals("PortletContentEditorInstance", instanceMD.getId());
-
+
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/deployment/PortletInstancesMetaDataFactoryTestCase.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContent.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContent.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContent.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,15 +22,15 @@
******************************************************************************/
package org.jboss.portal.test.core.model.content;
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.core.impl.model.content.AbstractContent;
import org.jboss.portal.core.model.content.spi.handler.ContentState;
-import org.jboss.portal.core.impl.model.content.AbstractContent;
-import org.jboss.portal.common.i18n.LocalizedString;
import java.util.Locale;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class SimpleContent extends AbstractContent
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContent.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContentHandler.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContentHandler.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContentHandler.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,13 +22,13 @@
******************************************************************************/
package org.jboss.portal.test.core.model.content;
+import org.jboss.portal.core.model.content.Content;
+import org.jboss.portal.core.model.content.spi.handler.ContentHandler;
import org.jboss.portal.core.model.content.spi.handler.ContentState;
-import org.jboss.portal.core.model.content.spi.handler.ContentHandler;
-import org.jboss.portal.core.model.content.Content;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class SimpleContentHandler implements ContentHandler
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContentHandler.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContentProvider.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContentProvider.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContentProvider.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,15 +22,15 @@
******************************************************************************/
package org.jboss.portal.test.core.model.content;
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.core.model.content.ContentType;
import org.jboss.portal.core.model.content.spi.ContentProvider;
-import org.jboss.portal.core.model.content.ContentType;
import org.jboss.portal.core.model.content.spi.handler.ContentHandler;
import org.jboss.portal.core.model.content.spi.portlet.ContentPortlet;
-import org.jboss.portal.common.i18n.LocalizedString;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class SimpleContentProvider implements ContentProvider
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContentProvider.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContentProviderRegistry.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContentProviderRegistry.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContentProviderRegistry.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,16 +22,16 @@
******************************************************************************/
package org.jboss.portal.test.core.model.content;
+import org.jboss.portal.common.util.CopyOnWriteRegistry;
+import org.jboss.portal.core.model.content.ContentType;
+import org.jboss.portal.core.model.content.spi.ContentProvider;
import org.jboss.portal.core.model.content.spi.ContentProviderRegistry;
-import org.jboss.portal.core.model.content.spi.ContentProvider;
-import org.jboss.portal.core.model.content.ContentType;
-import org.jboss.portal.common.util.CopyOnWriteRegistry;
import java.util.Collection;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class SimpleContentProviderRegistry implements ContentProviderRegistry
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/content/SimpleContentProviderRegistry.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/ActionContextImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/ActionContextImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/ActionContextImpl.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,14 +22,14 @@
******************************************************************************/
package org.jboss.portal.test.core.model.instance;
-import org.jboss.portal.portlet.support.spi.ActionContextSupport;
-import org.jboss.portal.portlet.invocation.PortletInvocation;
import org.jboss.portal.Mode;
import org.jboss.portal.common.invocation.resolver.MapAttributeResolver;
+import org.jboss.portal.portlet.invocation.PortletInvocation;
+import org.jboss.portal.portlet.support.spi.ActionContextSupport;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ActionContextImpl extends ActionContextSupport
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/ActionContextImpl.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/InstanceContainerTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/InstanceContainerTestCase.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/InstanceContainerTestCase.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -65,8 +65,8 @@
import org.jboss.portal.security.RoleSecurityBinding;
import org.jboss.portal.security.spi.provider.DomainConfigurator;
import org.jboss.portal.test.framework.AbstractPortalTestCase;
+import org.jboss.portal.test.framework.embedded.HibernateSupport;
import org.jboss.portal.test.framework.mc.TestRuntimeContext;
-import org.jboss.portal.test.framework.embedded.HibernateSupport;
import java.util.Collection;
import java.util.Collections;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/InstanceContainerTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/PortletInvokerSupport.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/PortletInvokerSupport.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/PortletInvokerSupport.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,31 +22,31 @@
******************************************************************************/
package org.jboss.portal.test.core.model.instance;
-import org.jboss.portal.portlet.PortletInvoker;
+import org.jboss.portal.common.value.Value;
+import org.jboss.portal.portlet.InvalidPortletIdException;
+import org.jboss.portal.portlet.NoSuchPortletException;
import org.jboss.portal.portlet.Portlet;
import org.jboss.portal.portlet.PortletContext;
+import org.jboss.portal.portlet.PortletInvoker;
import org.jboss.portal.portlet.PortletInvokerException;
-import org.jboss.portal.portlet.NoSuchPortletException;
-import org.jboss.portal.portlet.InvalidPortletIdException;
+import org.jboss.portal.portlet.info.PortletInfo;
+import org.jboss.portal.portlet.invocation.PortletInvocation;
+import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
+import org.jboss.portal.portlet.state.PropertyChange;
import org.jboss.portal.portlet.state.PropertyMap;
import org.jboss.portal.portlet.state.SimplePropertyMap;
-import org.jboss.portal.portlet.state.PropertyChange;
-import org.jboss.portal.portlet.info.PortletInfo;
-import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
-import org.jboss.portal.portlet.invocation.PortletInvocation;
import org.jboss.portal.portlet.support.info.PortletInfoSupport;
-import org.jboss.portal.common.value.Value;
-import java.util.Map;
import java.util.HashMap;
-import java.util.Set;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
+import java.util.Map;
+import java.util.Set;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 6712 $
+ * @version $Revision$
*/
public class PortletInvokerSupport implements PortletInvoker
{
@@ -214,7 +214,7 @@
{
InternalPortlet internalPortlet = internalGetPortlet(portletContext);
PropertyMap props = new SimplePropertyMap();
- for (Iterator i = keys.iterator();i.hasNext();)
+ for (Iterator i = keys.iterator(); i.hasNext();)
{
String key = (String)i.next();
Value value = (Value)internalPortlet.state.get(key);
@@ -230,7 +230,7 @@
{
InternalPortlet internalPortlet = internalGetPortlet(portletContext);
PropertyMap props = new SimplePropertyMap();
- for (Iterator i = internalPortlet.state.keySet().iterator();i.hasNext();)
+ for (Iterator i = internalPortlet.state.keySet().iterator(); i.hasNext();)
{
String key = (String)i.next();
Value value = (Value)internalPortlet.state.get(key);
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/PortletInvokerSupport.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/PortletSupport.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/PortletSupport.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/PortletSupport.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,14 +22,14 @@
******************************************************************************/
package org.jboss.portal.test.core.model.instance;
+import org.jboss.portal.portlet.PortletInvokerException;
+import org.jboss.portal.portlet.invocation.PortletInvocation;
+import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
import org.jboss.portal.portlet.support.info.PortletInfoSupport;
-import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
-import org.jboss.portal.portlet.invocation.PortletInvocation;
-import org.jboss.portal.portlet.PortletInvokerException;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 6116 $
+ * @version $Revision$
*/
public class PortletSupport
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/PortletSupport.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/ValueMapAssert.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/ValueMapAssert.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/ValueMapAssert.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,15 +23,15 @@
package org.jboss.portal.test.core.model.instance;
import junit.framework.Assert;
+import org.jboss.portal.common.value.Value;
import org.jboss.portal.portlet.state.PropertyMap;
-import org.jboss.portal.common.value.Value;
import java.util.HashSet;
import java.util.Iterator;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ValueMapAssert extends Assert
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/ValueMapAssert.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/AbstractPortalObjectContainerTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/AbstractPortalObjectContainerTestCase.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/AbstractPortalObjectContainerTestCase.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -33,7 +33,7 @@
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @author <a href="mailto:anil.saldhana@jboss.org">Anil Saldhana</a>
- * @version $Revision: 7252 $
+ * @version $Revision$
*/
public class AbstractPortalObjectContainerTestCase extends PortalBaseTestCase
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/AbstractPortalObjectContainerTestCase.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalNodeTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalNodeTestCase.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalNodeTestCase.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,28 +22,27 @@
******************************************************************************/
package org.jboss.portal.test.core.model.portal;
+import junit.framework.TestSuite;
+import org.jboss.portal.api.node.PortalNode;
import org.jboss.portal.common.junit.TransactionAssert;
import org.jboss.portal.common.util.CollectionBuilder;
+import org.jboss.portal.core.impl.api.node.PortalNodeImpl;
import org.jboss.portal.core.model.portal.Context;
-import org.jboss.portal.core.model.portal.Portal;
import org.jboss.portal.core.model.portal.Page;
-import org.jboss.portal.core.model.portal.PortalObjectPath;
+import org.jboss.portal.core.model.portal.Portal;
import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.core.impl.api.node.PortalNodeImpl;
+import org.jboss.portal.core.model.portal.PortalObjectPath;
+import org.jboss.portal.security.RoleSecurityBinding;
import org.jboss.portal.security.spi.provider.AuthorizationDomain;
import org.jboss.portal.security.spi.provider.DomainConfigurator;
-import org.jboss.portal.security.RoleSecurityBinding;
-import org.jboss.portal.api.node.PortalNode;
-import junit.framework.TestSuite;
-import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.TreeMap;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortalNodeTestCase extends AbstractPortalObjectContainerTestCase
{
@@ -141,7 +140,7 @@
private Map getChildrenMap(PortalNode node)
{
Map p_1_children = new TreeMap();
- for (Iterator i = node.getChildren().iterator();i.hasNext();)
+ for (Iterator i = node.getChildren().iterator(); i.hasNext();)
{
PortalNode child = (PortalNode)i.next();
p_1_children.put(child.getName(), child);
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalNodeTestCase.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectContainerTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectIdTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectIdTestCase.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectIdTestCase.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,14 +23,12 @@
package org.jboss.portal.test.core.model.portal;
import junit.framework.TestCase;
-import org.jboss.portal.core.model.portal.PortalObjectPath;
import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.common.util.Tools;
-import org.jboss.portal.common.junit.ExtendedAssert;
+import org.jboss.portal.core.model.portal.PortalObjectPath;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortalObjectIdTestCase extends TestCase
{
@@ -132,17 +130,17 @@
{
assertCanonicalFormatEquals(new PortalObjectId("", new PortalObjectPath(new String[]{})), "/");
assertCanonicalFormatEquals(new PortalObjectId("", new PortalObjectPath(new String[]{"a"})), "/a");
- assertCanonicalFormatEquals(new PortalObjectId("", new PortalObjectPath(new String[]{"a","b"})), "/a/b");
+ assertCanonicalFormatEquals(new PortalObjectId("", new PortalObjectPath(new String[]{"a", "b"})), "/a/b");
//
assertCanonicalFormatEquals(new PortalObjectId("ns", new PortalObjectPath(new String[]{})), "ns:/");
assertCanonicalFormatEquals(new PortalObjectId("ns", new PortalObjectPath(new String[]{"a"})), "ns:/a");
- assertCanonicalFormatEquals(new PortalObjectId("ns", new PortalObjectPath(new String[]{"a","b"})), "ns:/a/b");
+ assertCanonicalFormatEquals(new PortalObjectId("ns", new PortalObjectPath(new String[]{"a", "b"})), "ns:/a/b");
//
assertCanonicalFormatParse(new PortalObjectId("", new PortalObjectPath(new String[]{})), ":/");
assertCanonicalFormatParse(new PortalObjectId("", new PortalObjectPath(new String[]{"a"})), ":/a");
- assertCanonicalFormatParse(new PortalObjectId("", new PortalObjectPath(new String[]{"a","b"})), ":/a/b");
+ assertCanonicalFormatParse(new PortalObjectId("", new PortalObjectPath(new String[]{"a", "b"})), ":/a/b");
}
private void assertCanonicalFormatParse(PortalObjectId id, String string)
@@ -160,17 +158,17 @@
{
assertLegacyFormatEquals(new PortalObjectId("", new PortalObjectPath(new String[]{})), "");
assertLegacyFormatEquals(new PortalObjectId("", new PortalObjectPath(new String[]{"a"})), "a");
- assertLegacyFormatEquals(new PortalObjectId("", new PortalObjectPath(new String[]{"a","b"})), "a.b");
+ assertLegacyFormatEquals(new PortalObjectId("", new PortalObjectPath(new String[]{"a", "b"})), "a.b");
//
assertLegacyFormatEquals(new PortalObjectId("ns", new PortalObjectPath(new String[]{})), "ns:");
assertLegacyFormatEquals(new PortalObjectId("ns", new PortalObjectPath(new String[]{"a"})), "ns:a");
- assertLegacyFormatEquals(new PortalObjectId("ns", new PortalObjectPath(new String[]{"a","b"})), "ns:a.b");
+ assertLegacyFormatEquals(new PortalObjectId("ns", new PortalObjectPath(new String[]{"a", "b"})), "ns:a.b");
//
assertLegacyFormatParse(new PortalObjectId("", new PortalObjectPath(new String[]{})), ":");
assertLegacyFormatParse(new PortalObjectId("", new PortalObjectPath(new String[]{"a"})), ":a");
- assertLegacyFormatParse(new PortalObjectId("", new PortalObjectPath(new String[]{"a","b"})), ":a.b");
+ assertLegacyFormatParse(new PortalObjectId("", new PortalObjectPath(new String[]{"a", "b"})), ":a.b");
}
private void assertLegacyFormatParse(PortalObjectId id, String string)
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectIdTestCase.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectPathTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectPathTestCase.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectPathTestCase.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,13 +23,13 @@
package org.jboss.portal.test.core.model.portal;
import junit.framework.TestCase;
-import org.jboss.portal.core.model.portal.PortalObjectPath;
import org.jboss.portal.common.junit.ExtendedAssert;
import org.jboss.portal.common.util.Tools;
+import org.jboss.portal.core.model.portal.PortalObjectPath;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortalObjectPathTestCase extends TestCase
{
@@ -128,7 +128,7 @@
}
try
{
- format.toString(new String[]{"a",null,"b"}, 0, 3);
+ format.toString(new String[]{"a", null, "b"}, 0, 3);
fail();
}
catch (IllegalArgumentException expected)
@@ -140,7 +140,7 @@
{
assertEquals(new PortalObjectPath(new String[]{}), PortalObjectPath.parse("/", PortalObjectPath.CANONICAL_FORMAT));
assertEquals(new PortalObjectPath(new String[]{"a"}), PortalObjectPath.parse("/a", PortalObjectPath.CANONICAL_FORMAT));
- assertEquals(new PortalObjectPath(new String[]{"a","b"}), PortalObjectPath.parse("/a/b", PortalObjectPath.CANONICAL_FORMAT));
+ assertEquals(new PortalObjectPath(new String[]{"a", "b"}), PortalObjectPath.parse("/a/b", PortalObjectPath.CANONICAL_FORMAT));
String a = "a.b";
String b = "c";
@@ -164,7 +164,7 @@
pop1 = new PortalObjectPath(new String[]{a});
pop2 = PortalObjectPath.parse(new PortalObjectPath(new String[]{a}).toString(PortalObjectPath.CANONICAL_FORMAT), PortalObjectPath.CANONICAL_FORMAT);
assertEquals(pop1.toString(PortalObjectPath.CANONICAL_FORMAT), pop2.toString(PortalObjectPath.CANONICAL_FORMAT));
-
+
//
try
{
@@ -188,14 +188,14 @@
{
assertEquals(new PortalObjectPath(new String[]{}), PortalObjectPath.parse("", PortalObjectPath.LEGACY_FORMAT));
assertEquals(new PortalObjectPath(new String[]{"a"}), PortalObjectPath.parse("a", PortalObjectPath.LEGACY_FORMAT));
- assertEquals(new PortalObjectPath(new String[]{"a","b"}), PortalObjectPath.parse("a.b", PortalObjectPath.LEGACY_FORMAT));
-
+ assertEquals(new PortalObjectPath(new String[]{"a", "b"}), PortalObjectPath.parse("a.b", PortalObjectPath.LEGACY_FORMAT));
+
String a = "a.b";
String b = "c";
PortalObjectPath pop1 = new PortalObjectPath(new String[]{a, b});
PortalObjectPath pop2 = PortalObjectPath.parse(new PortalObjectPath(new String[]{a, b}).toString(PortalObjectPath.LEGACY_FORMAT), PortalObjectPath.LEGACY_FORMAT);
assertEquals(pop1.toString(PortalObjectPath.LEGACY_FORMAT), pop2.toString(PortalObjectPath.LEGACY_FORMAT));
-
+
a = ".a.b";
b = "c";
pop1 = new PortalObjectPath(new String[]{a, b});
@@ -213,13 +213,13 @@
{
assertTrue(new PortalObjectPath(new String[]{}).equals(new PortalObjectPath(new String[]{})));
assertFalse(new PortalObjectPath(new String[]{}).equals(new PortalObjectPath(new String[]{"a"})));
- assertFalse(new PortalObjectPath(new String[]{}).equals(new PortalObjectPath(new String[]{"a","b"})));
+ assertFalse(new PortalObjectPath(new String[]{}).equals(new PortalObjectPath(new String[]{"a", "b"})));
assertFalse(new PortalObjectPath(new String[]{"a"}).equals(new PortalObjectPath(new String[]{})));
assertTrue(new PortalObjectPath(new String[]{"a"}).equals(new PortalObjectPath(new String[]{"a"})));
- assertFalse(new PortalObjectPath(new String[]{"a"}).equals(new PortalObjectPath(new String[]{"a","b"})));
- assertFalse(new PortalObjectPath(new String[]{"a","b"}).equals(new PortalObjectPath(new String[]{})));
- assertFalse(new PortalObjectPath(new String[]{"a","b"}).equals(new PortalObjectPath(new String[]{"a"})));
- assertTrue(new PortalObjectPath(new String[]{"a","b"}).equals(new PortalObjectPath(new String[]{"a","b"})));
+ assertFalse(new PortalObjectPath(new String[]{"a"}).equals(new PortalObjectPath(new String[]{"a", "b"})));
+ assertFalse(new PortalObjectPath(new String[]{"a", "b"}).equals(new PortalObjectPath(new String[]{})));
+ assertFalse(new PortalObjectPath(new String[]{"a", "b"}).equals(new PortalObjectPath(new String[]{"a"})));
+ assertTrue(new PortalObjectPath(new String[]{"a", "b"}).equals(new PortalObjectPath(new String[]{"a", "b"})));
}
public void testComparable()
@@ -227,28 +227,28 @@
assertTrue(new PortalObjectPath(new String[]{"a"}).compareTo(new PortalObjectPath(new String[]{"a"})) == 0);
assertTrue(new PortalObjectPath(new String[]{"a"}).compareTo(new PortalObjectPath(new String[]{"b"})) < 0);
assertTrue(new PortalObjectPath(new String[]{"b"}).compareTo(new PortalObjectPath(new String[]{"a"})) > 0);
- assertTrue(new PortalObjectPath(new String[]{"a"}).compareTo(new PortalObjectPath(new String[]{"a","b"})) > 0);
- assertTrue(new PortalObjectPath(new String[]{"a","b"}).compareTo(new PortalObjectPath(new String[]{"a"})) < 0);
+ assertTrue(new PortalObjectPath(new String[]{"a"}).compareTo(new PortalObjectPath(new String[]{"a", "b"})) > 0);
+ assertTrue(new PortalObjectPath(new String[]{"a", "b"}).compareTo(new PortalObjectPath(new String[]{"a"})) < 0);
}
public void testIterator()
{
ExtendedAssert.assertEquals(new Object[]{}, Tools.toArray(new PortalObjectPath(new String[]{}).names()));
ExtendedAssert.assertEquals(new Object[]{"a"}, Tools.toArray(new PortalObjectPath(new String[]{"a"}).names()));
- ExtendedAssert.assertEquals(new Object[]{"a","b"}, Tools.toArray(new PortalObjectPath(new String[]{"a","b"}).names()));
+ ExtendedAssert.assertEquals(new Object[]{"a", "b"}, Tools.toArray(new PortalObjectPath(new String[]{"a", "b"}).names()));
}
public void testGetChild()
{
assertEquals(new PortalObjectPath(new String[]{"a"}), new PortalObjectPath(new String[]{}).getChild("a"));
- assertEquals(new PortalObjectPath(new String[]{"a","b"}), new PortalObjectPath(new String[]{"a"}).getChild("b"));
+ assertEquals(new PortalObjectPath(new String[]{"a", "b"}), new PortalObjectPath(new String[]{"a"}).getChild("b"));
}
public void testGetParent()
{
assertEquals(null, new PortalObjectPath(new String[]{}).getParent());
assertEquals(new PortalObjectPath(new String[]{}), new PortalObjectPath(new String[]{"a"}).getParent());
- assertEquals(new PortalObjectPath(new String[]{"a"}), new PortalObjectPath(new String[]{"a","b"}).getParent());
- assertEquals(new PortalObjectPath(new String[]{"a","b"}), new PortalObjectPath(new String[]{"a","b","c"}).getParent());
+ assertEquals(new PortalObjectPath(new String[]{"a"}), new PortalObjectPath(new String[]{"a", "b"}).getParent());
+ assertEquals(new PortalObjectPath(new String[]{"a", "b"}), new PortalObjectPath(new String[]{"a", "b", "c"}).getParent());
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectPathTestCase.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectPermissionTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectPermissionTestCase.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectPermissionTestCase.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,9 +22,9 @@
******************************************************************************/
package org.jboss.portal.test.core.model.portal;
-import org.jboss.portal.core.model.portal.PortalObjectPermission;
import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.PortalObjectPath;
+import org.jboss.portal.core.model.portal.PortalObjectPermission;
import org.jboss.portal.identity.auth.UserPrincipal;
import org.jboss.portal.security.PortalPermission;
import org.jboss.portal.security.PortalPermissionCollection;
@@ -68,7 +68,7 @@
public void testImplies2()
{
PortalObjectPermission v = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"abc"})), "view");
- PortalObjectPermission vr = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"abc","def"})), "viewrecursive");
+ PortalObjectPermission vr = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"abc", "def"})), "viewrecursive");
assertTrue(v.implies(v));
assertFalse(v.implies(vr));
assertFalse(vr.implies(v));
@@ -78,7 +78,7 @@
public void testImplies3()
{
PortalObjectPermission v = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"abc"})), "viewrecursive");
- PortalObjectPermission vr = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"abc","def"})), "view");
+ PortalObjectPermission vr = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"abc", "def"})), "view");
assertTrue(v.implies(v));
assertTrue(v.implies(vr));
assertFalse(vr.implies(v));
@@ -89,9 +89,9 @@
{
PortalObjectPermission v = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[0])), "dashboard");
PortalObjectPermission v1 = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"abc"})), "view");
- PortalObjectPermission v2 = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"abc","def"})), "view");
+ PortalObjectPermission v2 = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"abc", "def"})), "view");
PortalObjectPermission v3 = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"def"})), "view");
- PortalObjectPermission v4 = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"def","ghi"})), "view");
+ PortalObjectPermission v4 = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"def", "ghi"})), "view");
Subject abc = new Subject();
abc.getPrincipals().add(new UserPrincipal("abc"));
@@ -130,10 +130,10 @@
public void testDashboard2() throws Exception
{
PortalObjectPermission v = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"abc"})), "dashboard");
- PortalObjectPermission v1 = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"abc","def"})), "view");
- PortalObjectPermission v2 = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"abc","def","ghi"})), "view");
+ PortalObjectPermission v1 = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"abc", "def"})), "view");
+ PortalObjectPermission v2 = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"abc", "def", "ghi"})), "view");
PortalObjectPermission v3 = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"jkl"})), "view");
- PortalObjectPermission v4 = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"jkl","mno"})), "view");
+ PortalObjectPermission v4 = new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"jkl", "mno"})), "view");
Subject def = new Subject();
def.getPrincipals().add(new UserPrincipal("def"));
@@ -226,7 +226,7 @@
Principal[] principals = new Principal[]{new SimplePrincipal("admin")};
assertTrue(implies(new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[0])), "view"), principals));
assertTrue(implies(new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"default"})), "view"), principals));
- assertTrue(implies(new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"default","default"})), "view"), principals));
+ assertTrue(implies(new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"default", "default"})), "view"), principals));
}
});
}
@@ -244,7 +244,7 @@
Principal[] principals = new Principal[]{new SimplePrincipal("admin")};
assertTrue(implies(new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[0])), "view"), principals));
assertFalse(implies(new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"default"})), "view"), principals));
- assertFalse(implies(new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"default","default"})), "view"), principals));
+ assertFalse(implies(new PortalObjectPermission(new PortalObjectId("", new PortalObjectPath(new String[]{"default", "default"})), "view"), principals));
}
});
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectPermissionTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/portlet/RolePortletTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/portlet/UserPortletTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/state/ProducerTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/state/ProducerTestCase.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/state/ProducerTestCase.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -31,19 +31,17 @@
import org.apache.log4j.SimpleLayout;
import org.jboss.portal.Mode;
import org.jboss.portal.common.junit.TransactionAssert;
-import org.jboss.portal.test.framework.junit.JUnitAdapter;
-import org.jboss.portal.test.framework.junit.POJOJUnitTest;
import org.jboss.portal.common.value.StringValue;
+import org.jboss.portal.core.impl.portlet.state.PersistentPortletState;
+import org.jboss.portal.core.impl.portlet.state.PersistentPortletStatePersistenceManager;
import org.jboss.portal.core.impl.portlet.state.PersistentRegistration;
-import org.jboss.portal.core.impl.portlet.state.PersistentPortletStatePersistenceManager;
import org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker;
-import org.jboss.portal.core.impl.portlet.state.PersistentPortletState;
import org.jboss.portal.portlet.NoSuchPortletException;
import org.jboss.portal.portlet.Portlet;
import org.jboss.portal.portlet.PortletContext;
import org.jboss.portal.portlet.PortletInvoker;
+import org.jboss.portal.portlet.impl.spi.AbstractInstanceContext;
import org.jboss.portal.portlet.impl.spi.AbstractUserContext;
-import org.jboss.portal.portlet.impl.spi.AbstractInstanceContext;
import org.jboss.portal.portlet.info.MetaInfo;
import org.jboss.portal.portlet.invocation.ActionInvocation;
import org.jboss.portal.portlet.invocation.PortletInvocation;
@@ -52,23 +50,25 @@
import org.jboss.portal.portlet.state.AccessMode;
import org.jboss.portal.portlet.state.DestroyCloneFailure;
import org.jboss.portal.portlet.state.PropertyChange;
+import org.jboss.portal.portlet.state.PropertyContext;
import org.jboss.portal.portlet.state.PropertyMap;
import org.jboss.portal.portlet.state.SimplePropertyMap;
-import org.jboss.portal.portlet.state.PropertyContext;
import org.jboss.portal.portlet.state.producer.PortletState;
import org.jboss.portal.portlet.state.producer.PortletStateContext;
-import org.jboss.portal.registration.RegistrationLocal;
+import org.jboss.portal.registration.Consumer;
import org.jboss.portal.registration.ConsumerGroup;
-import org.jboss.portal.registration.Consumer;
import org.jboss.portal.registration.Registration;
-import org.jboss.portal.test.framework.mc.TestRuntimeContext;
-import org.jboss.portal.test.framework.embedded.DataSourceSupport;
-import org.jboss.portal.test.framework.embedded.HibernateSupport;
-import org.jboss.portal.test.framework.TestParametrization;
+import org.jboss.portal.registration.RegistrationLocal;
+import org.jboss.portal.test.core.model.instance.ActionContextImpl;
import org.jboss.portal.test.core.model.instance.PortletInvokerSupport;
import org.jboss.portal.test.core.model.instance.PortletSupport;
-import org.jboss.portal.test.core.model.instance.ActionContextImpl;
import org.jboss.portal.test.core.model.instance.ValueMapAssert;
+import org.jboss.portal.test.framework.TestParametrization;
+import org.jboss.portal.test.framework.embedded.DataSourceSupport;
+import org.jboss.portal.test.framework.embedded.HibernateSupport;
+import org.jboss.portal.test.framework.junit.JUnitAdapter;
+import org.jboss.portal.test.framework.junit.POJOJUnitTest;
+import org.jboss.portal.test.framework.mc.TestRuntimeContext;
import javax.xml.namespace.QName;
import java.net.URL;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/state/ProducerTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/state/RegistrationPersistenceManagerTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/state/RegistrationPersistenceManagerTestCase.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/state/RegistrationPersistenceManagerTestCase.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -29,21 +29,21 @@
import org.apache.log4j.Logger;
import org.apache.log4j.SimpleLayout;
import org.jboss.portal.common.junit.TransactionAssert;
-import org.jboss.portal.test.framework.junit.JUnitAdapter;
-import org.jboss.portal.test.framework.junit.POJOJUnitTest;
import org.jboss.portal.core.impl.portlet.state.PersistentPortletStatePersistenceManager;
import org.jboss.portal.registration.RegistrationPersistenceManager;
-import org.jboss.portal.test.framework.mc.TestRuntimeContext;
+import org.jboss.portal.test.framework.TestParametrization;
import org.jboss.portal.test.framework.embedded.DataSourceSupport;
import org.jboss.portal.test.framework.embedded.HibernateSupport;
-import org.jboss.portal.test.framework.TestParametrization;
+import org.jboss.portal.test.framework.junit.JUnitAdapter;
+import org.jboss.portal.test.framework.junit.POJOJUnitTest;
+import org.jboss.portal.test.framework.mc.TestRuntimeContext;
import org.jboss.portal.test.registration.AbstractRegistrationPersistenceManagerTestCase;
import java.net.URL;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 5776 $
+ * @version $Revision$
*/
public class RegistrationPersistenceManagerTestCase extends AbstractRegistrationPersistenceManagerTestCase
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/state/RegistrationPersistenceManagerTestCase.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/theme/UserThemeTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/util/ParametersTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossAPIFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossAPIFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossAPIFactory.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,11 +22,11 @@
******************************************************************************/
package org.jboss.portlet;
-import org.jboss.portal.portlet.impl.jsr168.spi.PortletAPIFactory;
import org.jboss.portal.portlet.impl.jsr168.api.ActionRequestImpl;
import org.jboss.portal.portlet.impl.jsr168.api.ActionResponseImpl;
import org.jboss.portal.portlet.impl.jsr168.api.RenderRequestImpl;
import org.jboss.portal.portlet.impl.jsr168.api.RenderResponseImpl;
+import org.jboss.portal.portlet.impl.jsr168.spi.PortletAPIFactory;
import org.jboss.portal.portlet.invocation.ActionInvocation;
import org.jboss.portal.portlet.invocation.RenderInvocation;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossAPIFactory.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossActionRequest.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossActionRequest.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossActionRequest.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,8 +24,8 @@
import org.jboss.portal.api.node.PortalNode;
import org.jboss.portal.core.aspects.controller.node.Navigation;
+import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.core.controller.portlet.ControllerUserContext;
-import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.identity.User;
import org.jboss.portal.portlet.impl.jsr168.api.ActionRequestImpl;
import org.jboss.portal.portlet.invocation.ActionInvocation;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossActionRequest.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossActionResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossActionResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossActionResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,9 +22,9 @@
******************************************************************************/
package org.jboss.portlet;
+import org.jboss.portal.api.PortalRuntimeContext;
import org.jboss.portal.api.node.PortalNode;
import org.jboss.portal.api.node.PortalNodeURL;
-import org.jboss.portal.api.PortalRuntimeContext;
import org.jboss.portal.common.net.URLTools;
import org.jboss.portal.core.aspects.controller.node.Navigation;
import org.jboss.portal.core.controller.portlet.SignOutResponse;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossActionResponse.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossPortlet.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossPortlet.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossPortlet.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -111,12 +111,11 @@
* <p>This method looks up the method corresponding to the action. It uses the action parameter using the parameter
* name defines by the <code>operationName</code> field of this class. If not method is found it uses the method
* defined by the return of the method <code>getDefaultOperation()</code> of this class. In order to be found a
- * method must use <code>JBossActionRequest</code> and <JBossActionResponse> in the signature.</p>
+ * method must use <code>JBossActionRequest</code> and <JBossActionResponse> in the signature.</p> <p/> <p>If not
+ * valid dispatcher is found it throws a PortletException, otherwise it invokes the method by reflection. The invoked
+ * method may declare exceptions in the throws clause of the method. Whenever an exception is raised during the
+ * invocation of the method, a decision is taken depending on the nature of the exception :</p>
* <p/>
- * <p>If not valid dispatcher is found it throws a PortletException, otherwise it invokes the method by reflection.
- * The invoked method may declare exceptions in the throws clause of the method. Whenever an exception is raised
- * during the invocation of the method, a decision is taken depending on the nature of the exception :</p>
- * <p/>
* <ul> <li>If the exception is an instanceof <code>PortletException</code>, <code>IOException</code> then this
* exception is rethrown as is since this method declares them in its throws clause</li> <li>If the exception is an
* instance of <code>RuntimeException</code> or <code>Error>/code>, it is rethrown as is</li> <li>Otherwise a
@@ -212,19 +211,19 @@
Throwable t = e.getCause();
if (t instanceof PortletException)
{
- throw(PortletException)t;
+ throw (PortletException)t;
}
else if (t instanceof IOException)
{
- throw(IOException)t;
+ throw (IOException)t;
}
else if (t instanceof RuntimeException)
{
- throw(RuntimeException)t;
+ throw (RuntimeException)t;
}
else if (t instanceof Error)
{
- throw(Error)t;
+ throw (Error)t;
}
else
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossPortlet.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossPortletPreferences.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossRenderRequest.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossRenderRequest.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossRenderRequest.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,12 +24,12 @@
import org.jboss.portal.api.node.PortalNode;
import org.jboss.portal.core.aspects.controller.node.Navigation;
+import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.core.controller.portlet.ControllerUserContext;
-import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.identity.User;
import org.jboss.portal.portlet.impl.jsr168.api.RenderRequestImpl;
+import org.jboss.portal.portlet.invocation.PortletInvocation;
import org.jboss.portal.portlet.invocation.RenderInvocation;
-import org.jboss.portal.portlet.invocation.PortletInvocation;
import org.jboss.portlet.util.Parameters;
import javax.portlet.PortletPreferences;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossRenderRequest.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossRenderResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossRenderResponse.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossRenderResponse.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,9 +22,9 @@
******************************************************************************/
package org.jboss.portlet;
+import org.jboss.portal.api.PortalRuntimeContext;
import org.jboss.portal.api.node.PortalNode;
import org.jboss.portal.api.node.PortalNodeURL;
-import org.jboss.portal.api.PortalRuntimeContext;
import org.jboss.portal.core.aspects.controller.node.Navigation;
import org.jboss.portal.portlet.impl.jsr168.api.PortletRequestImpl;
import org.jboss.portal.portlet.impl.jsr168.api.RenderResponseImpl;
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/JBossRenderResponse.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/content/ContentTypeRegistration.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/content/ContentTypeRegistration.java 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/content/ContentTypeRegistration.java 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,16 +22,6 @@
******************************************************************************/
package org.jboss.portlet.content;
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.management.Attribute;
-import javax.management.MBeanServer;
-import javax.management.ObjectName;
-import javax.servlet.ServletContext;
-import javax.servlet.ServletContextEvent;
-import javax.servlet.ServletContextListener;
-
import org.apache.log4j.Logger;
import org.jboss.mx.util.MBeanProxy;
import org.jboss.mx.util.MBeanServerLocator;
@@ -44,13 +34,22 @@
import org.jboss.portal.jems.as.system.JBossServiceModelMBean;
import org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory;
+import javax.management.Attribute;
+import javax.management.MBeanServer;
+import javax.management.ObjectName;
+import javax.servlet.ServletContext;
+import javax.servlet.ServletContextEvent;
+import javax.servlet.ServletContextListener;
+import java.util.ArrayList;
+import java.util.List;
+
/**
- * Provide registration of a content type with a portlet instance. This listener can be used
- * in war files to register content driven portlet.
+ * Provide registration of a content type with a portlet instance. This listener can be used in war files to register
+ * content driven portlet.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ContentTypeRegistration implements ServletContextListener
{
@@ -91,7 +90,7 @@
};
//
- log.debug("About to register content type "+ contentType + " with portlet instance " + portletInstanceName);
+ log.debug("About to register content type " + contentType + " with portlet instance " + portletInstanceName);
InternalGenericContentProvider provider = new InternalGenericContentProvider();
provider.setContentType(contentType.toString());
@@ -111,7 +110,7 @@
//
ObjectName scObjectName = new ObjectName("jboss.system:service=ServiceController");
- mbeanServer.invoke(scObjectName, "create", new ObjectName[] {objectName} , new String[] {"javax.management.ObjectName"});
+ mbeanServer.invoke(scObjectName, "create", new ObjectName[]{objectName}, new String[]{"javax.management.ObjectName"});
// Get proxy on Content Provide Registry
ObjectName contentProviderRegistryON = new ObjectName("portal:service=ContentProviderRegistry");
@@ -127,33 +126,33 @@
ObjectName pamfON = new ObjectName("portal:service=PortalAuthorizationManagerFactory");
Object factory = MBeanProxy.get(PortalAuthorizationManagerFactory.class, pamfON, mbeanServer);
mbean.setAttribute(new Attribute("PortalAuthorizationManagerFactory", factory));
-
+
// Set dependencies
List dependencies = new ArrayList();
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"});
+ 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"});
+ mbeanServer.invoke(scObjectName, "start", new ObjectName[]{objectName}, new String[]{"javax.management.ObjectName"});
log.debug("Registered InternalGenericContentProvider with name:" + name);
}
- catch(Exception e)
+ catch (Exception e)
{
log.warn("Couldn't perform ContentProvider registration", e);
return;
}
- log.debug("Registered content type "+ contentType + " with portlet instance " + portletInstanceName);
+ log.debug("Registered content type " + contentType + " with portlet instance " + portletInstanceName);
}
public void contextDestroyed(ServletContextEvent event)
{
if (contentType != null)
{
- log.debug("About to unregister content type "+ contentType);
-
+ log.debug("About to unregister content type " + contentType);
+
//
final String portletInstanceName = event.getServletContext().getInitParameter("org.jboss.portal.portlet_instance");
String name = "portal:service=ContentRenderer,type=" + portletInstanceName;
@@ -161,19 +160,19 @@
{
ObjectName objectName = new ObjectName(name);
ObjectName scObjectName = new ObjectName("jboss.system:service=ServiceController");
-
+
// Stop the mbean
MBeanServer mbeanServer = MBeanServerLocator.locateJBoss();
- mbeanServer.invoke(scObjectName, "stop", new ObjectName[] {objectName} , new String[] {"javax.management.ObjectName"});
- mbeanServer.invoke(scObjectName, "remove", new Object[] {objectName} , new String[] {"javax.management.ObjectName"});
+ mbeanServer.invoke(scObjectName, "stop", new ObjectName[]{objectName}, new String[]{"javax.management.ObjectName"});
+ mbeanServer.invoke(scObjectName, "remove", new Object[]{objectName}, new String[]{"javax.management.ObjectName"});
}
- catch(Exception e)
+ catch (Exception e)
{
log.warn("Couldn't perform ContentProvider registration", e);
return;
}
- log.debug("Content type "+ contentType + " has been unregistered");
+ log.debug("Content type " + contentType + " has been unregistered");
}
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/content/ContentTypeRegistration.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/session/PortletSessionListener.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portlet/util/Parameters.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/dtd/jboss-app_2_0.dtd
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/dtd/jboss-portlet_2_0.dtd
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/dtd/portal-layouts_2_0.dtd
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/dtd/portal-renderSet_2_0.dtd
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/dtd/portal-strategies_2_0.dtd
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/dtd/portal-themes_2_0.dtd
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/dtd/portal_2_0.dtd
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/dtd/portlet-instances_2_0.dtd
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/META-INF/jboss-service.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/META-INF/jboss-service.xml 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/META-INF/jboss-service.xml 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1265,7 +1265,8 @@
proxy-type="attribute">portal:service=EntityResolver</depends>
<attribute name="StandardJBossApplicationMetaDataLocation">conf/standardjboss-portlet.xml</attribute>
<attribute name="PortletAPIFactoryClassName">org.jboss.portlet.JBossAPIFactory</attribute>
- <attribute name="PortletInfoFactoryClassName">org.jboss.portal.core.impl.portlet.info.CorePortletInfoFactory</attribute>
+ <attribute
+ name="PortletInfoFactoryClassName">org.jboss.portal.core.impl.portlet.info.CorePortletInfoFactory</attribute>
<!-- Set to false in clustered mode, otherwise set to true -->
<attribute name="CreateInstances">@portal.single@</attribute>
</mbean>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/META-INF/jboss-service.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/bundles/Resource.properties
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/bundles/Resource_en.properties
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/bundles/Resource_es.properties
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/bundles/Resource_fr.properties
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/bundles/Resource_it.properties
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/config.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/data/default-object.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/instance/domain.hbm.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/instance/domain.hbm.xml 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/instance/domain.hbm.xml 2007-10-28 01:14:48 UTC (rev 8786)
@@ -76,7 +76,7 @@
name="displayNames"
table="JBP_INSTANCE_DISPLAY_NAMES">
<key column="INSTANCE_PK"/>
- <map-key type="locale" column="LOCALE" />
+ <map-key type="locale" column="LOCALE"/>
<element type="string" column="TEXT"/>
</map>
<map
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/instance/domain.hbm.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/instance/ehcache.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/instance/hibernate.cfg.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/portal/domain.hbm.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/portal/ehcache.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/portal/hibernate.cfg.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/portlet/domain.hbm.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/portlet/ehcache.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/portlet/hibernate.cfg.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/user/ehcache.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/user/hibernate.cfg.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/user/setup.txt
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/workflow/ehcache.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/workflow/hibernate.cfg.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/workflow/hibernate.cfg.xml 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/workflow/hibernate.cfg.xml 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1,59 +1,60 @@
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
- "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
- "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+ "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- jdbc connection properties -->
- <property name="connection.datasource">java:@portal.datasource.name@</property>
+ <property name="connection.datasource">java:@portal.datasource.name@</property>
- <!-- other hibernate properties -->
- <property name="show_sql">@portal.sql.show@</property>
+ <!-- other hibernate properties -->
+ <property name="show_sql">@portal.sql.show@</property>
<property name="hibernate.format_sql">true</property>
<property name="hibernate.use_sql_comments">true</property>
- <!-- caching properties -->
- <property name="cache.use_second_level_cache">true</property>
+ <!-- caching properties -->
+ <property name="cache.use_second_level_cache">true</property>
<property name="cache.use_query_cache">true</property>
<property name="cache.provider_configuration_file_resource_path">conf/hibernate/workflow/ehcache.xml</property>
<property name="cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
- <!-- managed environment transaction configuration -->
- <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+ <!-- managed environment transaction configuration -->
+ <property
+ name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
- <!-- ############################################ -->
- <!-- # mapping files with external dependencies # -->
- <!-- ############################################ -->
+ <!-- ############################################ -->
+ <!-- # mapping files with external dependencies # -->
+ <!-- ############################################ -->
- <!-- following mapping file has a dependendy on -->
- <!-- 'bsh-{version}.jar'. -->
- <!-- uncomment this if you don't have bsh on your -->
- <!-- classpath. you won't be able to use the -->
- <!-- script element in process definition files -->
- <mapping resource="org/jbpm/graph/action/Script.hbm.xml"/>
+ <!-- following mapping file has a dependendy on -->
+ <!-- 'bsh-{version}.jar'. -->
+ <!-- uncomment this if you don't have bsh on your -->
+ <!-- classpath. you won't be able to use the -->
+ <!-- script element in process definition files -->
+ <mapping resource="org/jbpm/graph/action/Script.hbm.xml"/>
- <!-- following mapping files have a dependendy on -->
- <!-- 'jbpm-identity-{version}.jar', mapping files -->
- <!-- of the pluggable jbpm identity component. -->
- <!-- comment out the following 3 lines if you don't-->
- <!-- want to use the default jBPM identity mgmgt -->
- <!-- component -->
- <mapping resource="org/jbpm/identity/User.hbm.xml"/>
+ <!-- following mapping files have a dependendy on -->
+ <!-- 'jbpm-identity-{version}.jar', mapping files -->
+ <!-- of the pluggable jbpm identity component. -->
+ <!-- comment out the following 3 lines if you don't-->
+ <!-- want to use the default jBPM identity mgmgt -->
+ <!-- component -->
+ <mapping resource="org/jbpm/identity/User.hbm.xml"/>
<mapping resource="org/jbpm/identity/Group.hbm.xml"/>
<mapping resource="org/jbpm/identity/Membership.hbm.xml"/>
- <!-- ###################### -->
- <!-- # jbpm mapping files # -->
- <!-- ###################### -->
+ <!-- ###################### -->
+ <!-- # jbpm mapping files # -->
+ <!-- ###################### -->
- <!-- hql queries and type defs -->
- <mapping resource="org/jbpm/db/hibernate.queries.hbm.xml"/>
+ <!-- hql queries and type defs -->
+ <mapping resource="org/jbpm/db/hibernate.queries.hbm.xml"/>
- <!-- graph.def mapping files -->
- <mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/>
+ <!-- graph.def mapping files -->
+ <mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/>
<mapping resource="org/jbpm/graph/def/Node.hbm.xml"/>
<mapping resource="org/jbpm/graph/def/Transition.hbm.xml"/>
<mapping resource="org/jbpm/graph/def/Event.hbm.xml"/>
@@ -62,8 +63,8 @@
<mapping resource="org/jbpm/graph/def/ExceptionHandler.hbm.xml"/>
<mapping resource="org/jbpm/instantiation/Delegation.hbm.xml"/>
- <!-- graph.node mapping files -->
- <mapping resource="org/jbpm/graph/node/StartState.hbm.xml"/>
+ <!-- graph.node mapping files -->
+ <mapping resource="org/jbpm/graph/node/StartState.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/EndState.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/ProcessState.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/Decision.hbm.xml"/>
@@ -72,40 +73,40 @@
<mapping resource="org/jbpm/graph/node/State.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/TaskNode.hbm.xml"/>
- <!-- context.def mapping files -->
- <mapping resource="org/jbpm/context/def/ContextDefinition.hbm.xml"/>
+ <!-- context.def mapping files -->
+ <mapping resource="org/jbpm/context/def/ContextDefinition.hbm.xml"/>
<mapping resource="org/jbpm/context/def/VariableAccess.hbm.xml"/>
- <!-- taskmgmt.def mapping files -->
- <mapping resource="org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml"/>
+ <!-- taskmgmt.def mapping files -->
+ <mapping resource="org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/def/Swimlane.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/def/Task.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/def/TaskController.hbm.xml"/>
- <!-- module.def mapping files -->
- <mapping resource="org/jbpm/module/def/ModuleDefinition.hbm.xml"/>
+ <!-- module.def mapping files -->
+ <mapping resource="org/jbpm/module/def/ModuleDefinition.hbm.xml"/>
- <!-- bytes mapping files -->
- <mapping resource="org/jbpm/bytes/ByteArray.hbm.xml"/>
+ <!-- bytes mapping files -->
+ <mapping resource="org/jbpm/bytes/ByteArray.hbm.xml"/>
- <!-- file.def mapping files -->
- <mapping resource="org/jbpm/file/def/FileDefinition.hbm.xml"/>
+ <!-- file.def mapping files -->
+ <mapping resource="org/jbpm/file/def/FileDefinition.hbm.xml"/>
- <!-- scheduler.def mapping files -->
- <mapping resource="org/jbpm/scheduler/def/CreateTimerAction.hbm.xml"/>
+ <!-- scheduler.def mapping files -->
+ <mapping resource="org/jbpm/scheduler/def/CreateTimerAction.hbm.xml"/>
<mapping resource="org/jbpm/scheduler/def/CancelTimerAction.hbm.xml"/>
- <!-- graph.exe mapping files -->
- <mapping resource="org/jbpm/graph/exe/Comment.hbm.xml"/>
+ <!-- graph.exe mapping files -->
+ <mapping resource="org/jbpm/graph/exe/Comment.hbm.xml"/>
<mapping resource="org/jbpm/graph/exe/ProcessInstance.hbm.xml"/>
<mapping resource="org/jbpm/graph/exe/Token.hbm.xml"/>
<mapping resource="org/jbpm/graph/exe/RuntimeAction.hbm.xml"/>
- <!-- module.exe mapping files -->
- <mapping resource="org/jbpm/module/exe/ModuleInstance.hbm.xml"/>
+ <!-- module.exe mapping files -->
+ <mapping resource="org/jbpm/module/exe/ModuleInstance.hbm.xml"/>
- <!-- context.exe mapping files -->
- <mapping resource="org/jbpm/context/exe/ContextInstance.hbm.xml"/>
+ <!-- context.exe mapping files -->
+ <mapping resource="org/jbpm/context/exe/ContextInstance.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/TokenVariableMap.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/VariableInstance.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/variableinstance/ByteArrayInstance.hbm.xml"/>
@@ -117,25 +118,25 @@
<mapping resource="org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml"/>
- <!-- msg.db mapping files -->
- <mapping resource="org/jbpm/msg/Message.hbm.xml"/>
+ <!-- msg.db mapping files -->
+ <mapping resource="org/jbpm/msg/Message.hbm.xml"/>
<mapping resource="org/jbpm/msg/db/TextMessage.hbm.xml"/>
<mapping resource="org/jbpm/command/ExecuteActionCommand.hbm.xml"/>
<mapping resource="org/jbpm/command/ExecuteNodeCommand.hbm.xml"/>
<mapping resource="org/jbpm/command/SignalCommand.hbm.xml"/>
<mapping resource="org/jbpm/command/TaskInstanceEndCommand.hbm.xml"/>
- <!-- taskmgmt.exe mapping files -->
- <mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/>
+ <!-- taskmgmt.exe mapping files -->
+ <mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/exe/PooledActor.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml"/>
- <!-- scheduler.exe mapping files -->
- <mapping resource="org/jbpm/scheduler/exe/Timer.hbm.xml"/>
+ <!-- scheduler.exe mapping files -->
+ <mapping resource="org/jbpm/scheduler/exe/Timer.hbm.xml"/>
- <!-- logging mapping files -->
- <mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/>
+ <!-- logging mapping files -->
+ <mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/>
<mapping resource="org/jbpm/logging/log/MessageLog.hbm.xml"/>
<mapping resource="org/jbpm/logging/log/CompositeLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/ActionLog.hbm.xml"/>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/workflow/hibernate.cfg.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/identity/identity-config.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/identity/identity-config.xml 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/identity/identity-config.xml 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,7 +22,7 @@
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org. ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
- <!DOCTYPE identity-configuration PUBLIC
+<!DOCTYPE identity-configuration PUBLIC
"-//JBoss Portal//DTD JBoss Identity Configuration 1.0//EN"
"http://www.jboss.org/portal/dtd/identity-config_2_6.dtd">
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/identity/identity-config.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/identity/ldap_identity-config.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/identity/ldap_identity-config.xml 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/identity/ldap_identity-config.xml 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,9 +22,9 @@
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org. ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
- <!--<!DOCTYPE identity-configuration PUBLIC
- "-//JBoss Portal//DTD JBoss Identity Configuration 1.0//EN"
- "http://www.jboss.org/portal/dtd/identity-config_1_0.dtd">-->
+<!--<!DOCTYPE identity-configuration PUBLIC
+"-//JBoss Portal//DTD JBoss Identity Configuration 1.0//EN"
+"http://www.jboss.org/portal/dtd/identity-config_1_0.dtd">-->
<identity-configuration>
<datasources>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/identity/ldap_identity-config.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/identity/profile-config.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/identity/profile-config.xml 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/identity/profile-config.xml 2007-10-28 01:14:48 UTC (rev 8786)
@@ -22,7 +22,7 @@
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org. ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
- <!DOCTYPE profile PUBLIC
+<!DOCTYPE profile PUBLIC
"-//JBoss Portal//DTD JBoss User Profile Configuration 1.0//EN"
"http://www.jboss.org/portal/dtd/profile-config_2_6.dtd">
@@ -234,7 +234,7 @@
<value>portal.user.locale</value>
</database>
<!--<ldap>-->
- <!--<value>localityName</value>-->
+ <!--<value>localityName</value>-->
<!--</ldap>-->
</mapping>
</property>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/identity/profile-config.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/identity/standardidentity-config.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/login-config.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/standardjboss-portlet.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/theme/portal-layout.tld
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/dtd/jboss-app_2_6.dtd
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/dtd/jboss-portlet_2_6.dtd
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/dtd/portal-object_2_6.dtd
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/dtd/portlet-instances_2_6.dtd
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/portal-aop.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/instance/persistent-jboss-beans.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/instance/persistent-jboss-beans.xml 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/instance/persistent-jboss-beans.xml 2007-10-28 01:14:48 UTC (rev 8786)
@@ -59,7 +59,8 @@
<bean name="DataSourceSupport" class="org.jboss.portal.test.framework.embedded.DataSourceSupport">
<property name="transactionManager"><inject bean="TransactionManagerSupport" property="transactionManager"/></property>
- <property name="connectionManagerReference"><inject bean="ConnectionManagerSupport" property="connectionManagerReference"/></property>
+ <property name="connectionManagerReference"><inject bean="ConnectionManagerSupport"
+ property="connectionManagerReference"/></property>
<property name="config"><inject bean="DataSourceConfig"/></property>
</bean>
@@ -88,7 +89,8 @@
<bean name="StateManagementPolicy" class="org.jboss.portal.portlet.impl.state.StateManagementPolicyService">
<property name="persistLocally"><inject bean="TestCaseConfig" property="persistLocally"/></property>
</bean>
- <bean name="PersistenceManager" class="org.jboss.portal.core.impl.portlet.state.PersistentPortletStatePersistenceManager">
+ <bean name="PersistenceManager"
+ class="org.jboss.portal.core.impl.portlet.state.PersistentPortletStatePersistenceManager">
<property name="sessionFactoryJNDIName">java:/PortletSessionFactory</property>
</bean>
<bean name="PortletContainer" class="org.jboss.portal.test.core.model.instance.PortletInvokerSupport">
@@ -102,7 +104,8 @@
<bean name="StackFactory" class="org.jboss.portal.common.invocation.EmptyInterceptorStackFactory">
</bean>
- <bean name="ContainerContext" class="org.jboss.portal.core.impl.model.instance.persistent.PersistentInstanceContainerContext">
+ <bean name="ContainerContext"
+ class="org.jboss.portal.core.impl.model.instance.persistent.PersistentInstanceContainerContext">
<property name="sessionFactoryJNDIName">java:/InstanceSessionFactory</property>
<property name="cacheNaturalId"><inject bean="TestCaseConfig" property="cacheNaturalId"/></property>
</bean>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/instance/persistent-jboss-beans.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/instance/transient-jboss-beans.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/instance/transient-jboss-beans.xml 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/instance/transient-jboss-beans.xml 2007-10-28 01:14:48 UTC (rev 8786)
@@ -59,7 +59,8 @@
<bean name="DataSourceSupport" class="org.jboss.portal.test.framework.embedded.DataSourceSupport">
<property name="transactionManager"><inject bean="TransactionManagerSupport" property="transactionManager"/></property>
- <property name="connectionManagerReference"><inject bean="ConnectionManagerSupport" property="connectionManagerReference"/></property>
+ <property name="connectionManagerReference"><inject bean="ConnectionManagerSupport"
+ property="connectionManagerReference"/></property>
<property name="config"><inject bean="DataSourceConfig"/></property>
</bean>
@@ -88,7 +89,8 @@
<bean name="StateManagementPolicy" class="org.jboss.portal.portlet.impl.state.StateManagementPolicyService">
<property name="persistLocally"><inject bean="TestCaseConfig" property="persistLocally"/></property>
</bean>
- <bean name="PersistenceManager" class="org.jboss.portal.core.impl.portlet.state.PersistentPortletStatePersistenceManager">
+ <bean name="PersistenceManager"
+ class="org.jboss.portal.core.impl.portlet.state.PersistentPortletStatePersistenceManager">
<property name="sessionFactoryJNDIName">java:/PortletSessionFactory</property>
</bean>
<bean name="PortletContainer" class="org.jboss.portal.test.core.model.instance.PortletInvokerSupport">
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/instance/transient-jboss-beans.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/portal/persistent-jboss-beans.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/portal/persistent-jboss-beans.xml 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/portal/persistent-jboss-beans.xml 2007-10-28 01:14:48 UTC (rev 8786)
@@ -53,7 +53,8 @@
<bean name="DataSourceSupport" class="org.jboss.portal.test.framework.embedded.DataSourceSupport">
<property name="transactionManager"><inject bean="TransactionManagerSupport" property="transactionManager"/></property>
- <property name="connectionManagerReference"><inject bean="ConnectionManagerSupport" property="connectionManagerReference"/></property>
+ <property name="connectionManagerReference"><inject bean="ConnectionManagerSupport"
+ property="connectionManagerReference"/></property>
<property name="config"><inject bean="DataSourceConfig"/></property>
</bean>
@@ -70,7 +71,8 @@
<bean name="AuthorizationDomainRegistry" class="org.jboss.portal.security.impl.JBossAuthorizationDomainRegistryImpl">
</bean>
- <bean name="AuthorizationManagerFactory" class="org.jboss.portal.security.impl.jacc.JACCPortalAuthorizationManagerFactory">
+ <bean name="AuthorizationManagerFactory"
+ class="org.jboss.portal.security.impl.jacc.JACCPortalAuthorizationManagerFactory">
<property name="authorizationDomainRegistry"><inject bean="AuthorizationDomainRegistry"/></property>
</bean>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/portal/persistent-jboss-beans.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/portal/transient-jboss-beans.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/portal/transient-jboss-beans.xml 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/portal/transient-jboss-beans.xml 2007-10-28 01:14:48 UTC (rev 8786)
@@ -53,7 +53,8 @@
<bean name="DataSourceSupport" class="org.jboss.portal.test.framework.embedded.DataSourceSupport">
<property name="transactionManager"><inject bean="TransactionManagerSupport" property="transactionManager"/></property>
- <property name="connectionManagerReference"><inject bean="ConnectionManagerSupport" property="connectionManagerReference"/></property>
+ <property name="connectionManagerReference"><inject bean="ConnectionManagerSupport"
+ property="connectionManagerReference"/></property>
<property name="config"><inject bean="DataSourceConfig"/></property>
</bean>
@@ -70,7 +71,8 @@
<bean name="AuthorizationDomainRegistry" class="org.jboss.portal.security.impl.JBossAuthorizationDomainRegistryImpl">
</bean>
- <bean name="AuthorizationManagerFactory" class="org.jboss.portal.security.impl.jacc.JACCPortalAuthorizationManagerFactory">
+ <bean name="AuthorizationManagerFactory"
+ class="org.jboss.portal.security.impl.jacc.JACCPortalAuthorizationManagerFactory">
<property name="authorizationDomainRegistry"><inject bean="AuthorizationDomainRegistry"/></property>
</bean>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/model/portal/transient-jboss-beans.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/state/jboss-beans.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/state/jboss-beans.xml 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/state/jboss-beans.xml 2007-10-28 01:14:48 UTC (rev 8786)
@@ -53,7 +53,8 @@
<bean name="DataSourceSupport" class="org.jboss.portal.test.framework.embedded.DataSourceSupport">
<property name="transactionManager"><inject bean="TransactionManagerSupport" property="transactionManager"/></property>
- <property name="connectionManagerReference"><inject bean="ConnectionManagerSupport" property="connectionManagerReference"/></property>
+ <property name="connectionManagerReference"><inject bean="ConnectionManagerSupport"
+ property="connectionManagerReference"/></property>
<property name="config"><inject bean="DataSourceConfig"/></property>
</bean>
@@ -73,7 +74,8 @@
<bean name="StateManagementPolicy" class="org.jboss.portal.core.impl.portlet.state.StateManagementPolicyImpl">
</bean>
- <bean name="PersistenceManager" class="org.jboss.portal.core.impl.portlet.state.PersistentPortletStatePersistenceManager">
+ <bean name="PersistenceManager"
+ class="org.jboss.portal.core.impl.portlet.state.PersistentPortletStatePersistenceManager">
<property name="sessionFactoryJNDIName">java:/SessionFactory</property>
</bean>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/state/jboss-beans.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/state/registration-persistence-manager-beans.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/state/registration-persistence-manager-beans.xml 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/state/registration-persistence-manager-beans.xml 2007-10-28 01:14:48 UTC (rev 8786)
@@ -53,7 +53,8 @@
<bean name="DataSourceSupport" class="org.jboss.portal.test.framework.embedded.DataSourceSupport">
<property name="transactionManager"><inject bean="TransactionManagerSupport" property="transactionManager"/></property>
- <property name="connectionManagerReference"><inject bean="ConnectionManagerSupport" property="connectionManagerReference"/></property>
+ <property name="connectionManagerReference"><inject bean="ConnectionManagerSupport"
+ property="connectionManagerReference"/></property>
<property name="config"><inject bean="DataSourceConfig"/></property>
</bean>
@@ -67,7 +68,8 @@
<property name="jNDIName">java:/SessionFactory</property>
</bean>
- <bean name="PersistenceManager" class="org.jboss.portal.core.impl.portlet.state.PersistentPortletStatePersistenceManager">
+ <bean name="PersistenceManager"
+ class="org.jboss.portal.core.impl.portlet.state.PersistentPortletStatePersistenceManager">
<property name="sessionFactoryJNDIName">java:/SessionFactory</property>
</bean>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-test-jar/org/jboss/portal/test/core/state/registration-persistence-manager-beans.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/Resource.properties
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/Resource_es.properties
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/Resource_fr.properties
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/Resource_it.properties
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/Resource_pt_BR.properties
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/nodesk/Modes.properties
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/nodesk/WindowStates.properties
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/phalanx/Modes.properties
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/phalanx/WindowStates.properties
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/templates/user/emailTemplate.tpl
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/classes/templates/user/emailTemplate_fr.tpl
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jboss-app.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jboss-portlet.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jboss-web.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/catalog/index.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/catalog/index.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/catalog/index.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1,4 +1,3 @@
-<%@ page import="org.jboss.portal.api.node.PortalNode" %>
<%@ page import="org.jboss.portal.api.node.PortalNodeURL" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Iterator" %>
@@ -9,10 +8,10 @@
<%
String contextPath = request.getContextPath();
- String parent = (String) request.getAttribute("parentNode");
- HashMap parents = (HashMap) request.getAttribute("parents");
- HashMap parentChildMap = (HashMap) request.getAttribute("pchild");
- HashMap parentSiblingMap = (HashMap) request.getAttribute("psib");
+ String parent = (String)request.getAttribute("parentNode");
+ HashMap parents = (HashMap)request.getAttribute("parents");
+ HashMap parentChildMap = (HashMap)request.getAttribute("pchild");
+ HashMap parentSiblingMap = (HashMap)request.getAttribute("psib");
%>
<style>
@@ -22,12 +21,12 @@
margin-left: 10px;
padding: 3px 0 3px 0px;
vertical-align: top;
- list-style-image: url( <%= contextPath %>/images/catalog/bullet.gif )
+ list-style-image: url( <%= contextPath %> /images/catalog/bullet.gif )
}
.pagenosub {
- margin-left: - 20px;
- list-style-image: url( <%= contextPath %>/images/catalog/bullet.gif )
+ margin-left: -20px;
+ list-style-image: url( <%= contextPath %> /images/catalog/bullet.gif )
}
/
@@ -36,40 +35,47 @@
</style>
<%
-String output = new String();
-for (Iterator i = parents.keySet().iterator(); i.hasNext();)
-{
- String name = (String) i.next();
- PortalNodeURL nodeURL = (PortalNodeURL) parents.get(name);
- output = "<a href=\"" + nodeURL.toString() + "\">" + name + "</a> > " + output;
-}
-output += parent;
+ String output = new String();
+ for (Iterator i = parents.keySet().iterator(); i.hasNext();)
+ {
+ String name = (String)i.next();
+ PortalNodeURL nodeURL = (PortalNodeURL)parents.get(name);
+ output = "<a href=\"" + nodeURL.toString() + "\">" + name + "</a> > " + output;
+ }
+ output += parent;
%>
-<div class="portlet-form-field-label"><%= output %></div>
+<div class="portlet-form-field-label"><%= output %>
+</div>
<ul id="foldinglist">
<li class="pagenosub">
- <div class="portlet-form-field-label"><%= parent %></div>
+ <div class="portlet-form-field-label"><%= parent %>
+ </div>
</li>
<%
- for(Iterator i = parentChildMap.keySet().iterator(); i.hasNext();)
+ for (Iterator i = parentChildMap.keySet().iterator(); i.hasNext();)
{
- String childName = (String) i.next();
- PortalNodeURL childURL = (PortalNodeURL) parentChildMap.get(childName);
+ String childName = (String)i.next();
+ PortalNodeURL childURL = (PortalNodeURL)parentChildMap.get(childName);
%>
- <li class="foldinglist"><div class="portlet-form-field-label"><a
- href="<%= childURL.toString() %>"><%= childName %></a></div></li>
+ <li class="foldinglist">
+ <div class="portlet-form-field-label"><a
+ href="<%= childURL.toString() %>"><%= childName %>
+ </a></div>
+ </li>
<%
}
- for(Iterator j = parentSiblingMap.keySet().iterator(); j.hasNext();)
+ for (Iterator j = parentSiblingMap.keySet().iterator(); j.hasNext();)
{
- String siblingName = (String) j.next();
- PortalNodeURL siblingURL = (PortalNodeURL) parentSiblingMap.get(siblingName);
+ String siblingName = (String)j.next();
+ PortalNodeURL siblingURL = (PortalNodeURL)parentSiblingMap.get(siblingName);
%>
<li class="pagenosub">
- <div class="portlet-form-field-label"><a href="<%= siblingURL.toString() %>"><%= siblingName %></a></div></li>
+ <div class="portlet-form-field-label"><a href="<%= siblingURL.toString() %>"><%= siblingName %>
+ </a></div>
+ </li>
<%
}
%>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/catalog/index.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/catalog/sitemap.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/catalog/sitemap.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/catalog/sitemap.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1,7 +1,7 @@
+<%@ page import="org.jboss.portal.api.node.PortalNode" %>
+<%@ page import="org.jboss.portal.api.node.PortalNodeURL" %>
<%@ page import="org.jboss.portlet.JBossRenderResponse" %>
<%@ page import="java.util.Iterator" %>
-<%@ page import="org.jboss.portal.api.node.PortalNode"%>
-<%@ page import="org.jboss.portal.api.node.PortalNodeURL"%>
<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
@@ -9,14 +9,14 @@
<%
String contextPath = request.getContextPath();
- PortalNode parent = (PortalNode) request.getAttribute("parentNode");
- JBossRenderResponse jresponse = (JBossRenderResponse) renderResponse;
+ PortalNode parent = (PortalNode)request.getAttribute("parentNode");
+ JBossRenderResponse jresponse = (JBossRenderResponse)renderResponse;
%>
<style>
<!--
#foldheader {
- margin-left: - 10px;
+ margin-left: -10px;
padding: 0px 0px 0px 0px;
cursor: pointer;
cursor: hand;
@@ -34,7 +34,7 @@
}
#pagenosub {
- margin-left: - 10px;
+ margin-left: -10px;
list-style-image: url( <%= contextPath %> /images/catalog/bullet.gif )
}
@@ -47,57 +47,61 @@
<%
int colCount = 4;
PortalNode rootNode = parent.getRoot();
- for(Iterator i = rootNode.getChildren().iterator(); i.hasNext();)
+ for (Iterator i = rootNode.getChildren().iterator(); i.hasNext();)
{
- if(colCount % 4 == 0) // create new row every 4 columns
+ if (colCount % 4 == 0) // create new row every 4 columns
{
%>
<tr>
<%
}
- PortalNode parentSibling = (PortalNode) i.next();
- for(Iterator j = parentSibling.getChildren().iterator(); j.hasNext();)
+ PortalNode parentSibling = (PortalNode)i.next();
+ for (Iterator j = parentSibling.getChildren().iterator(); j.hasNext();)
{
- PortalNode child = (PortalNode) j.next();
- if(child.getType() == PortalNode.TYPE_PAGE)
+ PortalNode child = (PortalNode)j.next();
+ if (child.getType() == PortalNode.TYPE_PAGE)
{
colCount++;
PortalNodeURL childURL = jresponse.createRenderURL(child);
%>
<td valign="top" class="portlet-section-body">
- <table width="100%" cellpadding="0" cellspacing="0">
- <tr>
- <td colspan="2">
- <a href="<%= childURL %>"><b><%= child.getName() %></b></a>
- </td>
- </tr>
+ <table width="100%" cellpadding="0" cellspacing="0">
+ <tr>
+ <td colspan="2">
+ <a href="<%= childURL %>"><b><%= child.getName() %>
+ </b></a>
+ </td>
+ </tr>
- <%
- for(Iterator k = child.getChildren().iterator(); k.hasNext();)
- {
- PortalNode subChild = (PortalNode) k.next();
- if(subChild.getType() == PortalNode.TYPE_PAGE)
+ <%
+ for (Iterator k = child.getChildren().iterator(); k.hasNext();)
{
- // child page
- PortalNodeURL subchildURL = jresponse.createRenderURL(subChild);
- %>
- <tr>
- <td><img src="<%= contextPath %>/images/catalog/T.gif"/></td>
- <td><a href="<%= subchildURL %>"><%= subChild.getName() %></a></td>
- </tr>
- <%
+ PortalNode subChild = (PortalNode)k.next();
+ if (subChild.getType() == PortalNode.TYPE_PAGE)
+ {
+ // child page
+ PortalNodeURL subchildURL = jresponse.createRenderURL(subChild);
+ %>
+ <tr>
+ <td><img src="<%= contextPath %>/images/catalog/T.gif"/></td>
+ <td><a href="<%= subchildURL %>"><%= subChild.getName() %>
+ </a></td>
+ </tr>
+ <%
+ }
+ }// for children
+ %>
+ <%
}
- }// for children
- %>
+ %>
+ </table>
<%
- }
+
+ } // for parents
+ if(colCount % 3 == 0)
+ {
+
%>
- </table>
- <%
- } // for parents
- if(colCount % 3 == 0)
- {
- %>
</tr>
<%
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/catalog/sitemap.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -23,7 +23,10 @@
Instance instance = (Instance)i.next();
String rowClass = instance == selectedInstance ? "portlet-section-selected" : (i.getIndex() % 2 == 0 ? "portlet-section-body" : "portlet-section-alternate");
String displayName = instance.getDisplayName().getString(renderRequest.getLocale(), true);
- if (displayName == null) { displayName = instance.getId(); }
+ if (displayName == null)
+ {
+ displayName = instance.getId();
+ }
%>
<portlet:actionURL var="url">
<portlet:param name="content.action.select" value="true"/>
@@ -43,7 +46,10 @@
if (selectedInstance != null)
{
String displayName = selectedInstance.getDisplayName().getString(renderRequest.getLocale(), true);
- if (displayName == null) { displayName = selectedInstance.getId(); }
+ if (displayName == null)
+ {
+ displayName = selectedInstance.getId();
+ }
%>
<div class="portlet-font">
<div><span class="portlet-form-field-label">Portlet instance:</span><%= displayName %>
@@ -54,6 +60,7 @@
+
Portlet portlet = null;
try
{
@@ -71,6 +78,7 @@
+
%>
<div><span
class="portlet-form-field-label">Portlet name:</span><%= metaInfo.getMetaValue(MetaInfo.DISPLAY_NAME).getDefaultString() %>
@@ -90,6 +98,7 @@
+
}
}
@@ -97,4 +106,5 @@
+
%>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/error/page.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/error/page.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/error/page.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1,14 +1,19 @@
-<%@page import="java.lang.Throwable"%>
-<%@page import="org.jboss.portal.common.util.Exceptions"%>
+<%@ page import="org.jboss.portal.common.util.Exceptions" %>
-<h2 class="portlet-msg-error"><%= request.getAttribute("org.jboss.portal.control.ERROR_TYPE") %></h2>
-<div class="portlet-font">Cause: <%= request.getAttribute("org.jboss.portal.control.CAUSE") %></div>
+<h2 class="portlet-msg-error"><%= request.getAttribute("org.jboss.portal.control.ERROR_TYPE") %>
+</h2>
+
+<div class="portlet-font">Cause: <%= request.getAttribute("org.jboss.portal.control.CAUSE") %>
+</div>
<%
- if (request.getAttribute("org.jboss.portal.control.MESSAGE") != null)
- {
-%>
-<div class="portlet-font">Message: <%= request.getAttribute("org.jboss.portal.control.MESSAGE") %></div>
+ if (request.getAttribute("org.jboss.portal.control.MESSAGE") != null)
+ {
+%>
+<div class="portlet-font">Message: <%= request.getAttribute("org.jboss.portal.control.MESSAGE") %>
+</div>
<%
- }
-%>
-<div class="portlet-font">StackTrace: <%= Exceptions.toHTML((Throwable)request.getAttribute("org.jboss.portal.control.CAUSE")) %></div>
\ No newline at end of file
+ }
+%>
+<div class="portlet-font">
+ StackTrace: <%= Exceptions.toHTML((Throwable)request.getAttribute("org.jboss.portal.control.CAUSE")) %>
+</div>
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/error/page.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/error/portal.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/error/portal.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/error/portal.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1,14 +1,19 @@
-<%@page import="java.lang.Throwable"%>
-<%@page import="org.jboss.portal.common.util.Exceptions"%>
+<%@ page import="org.jboss.portal.common.util.Exceptions" %>
-<h2 class="portlet-msg-error"><%= request.getAttribute("org.jboss.portal.control.ERROR_TYPE") %></h2>
-<div class="portlet-font">Cause: <%= request.getAttribute("org.jboss.portal.control.CAUSE") %></div>
+<h2 class="portlet-msg-error"><%= request.getAttribute("org.jboss.portal.control.ERROR_TYPE") %>
+</h2>
+
+<div class="portlet-font">Cause: <%= request.getAttribute("org.jboss.portal.control.CAUSE") %>
+</div>
<%
- if (request.getAttribute("org.jboss.portal.control.MESSAGE") != null)
- {
-%>
-<div class="portlet-font">Message: <%= request.getAttribute("org.jboss.portal.control.MESSAGE") %></div>
+ if (request.getAttribute("org.jboss.portal.control.MESSAGE") != null)
+ {
+%>
+<div class="portlet-font">Message: <%= request.getAttribute("org.jboss.portal.control.MESSAGE") %>
+</div>
<%
- }
-%>
-<div class="portlet-font">StackTrace: <%= Exceptions.toHTML((Throwable)request.getAttribute("org.jboss.portal.control.CAUSE")) %></div>
\ No newline at end of file
+ }
+%>
+<div class="portlet-font">
+ StackTrace: <%= Exceptions.toHTML((Throwable)request.getAttribute("org.jboss.portal.control.CAUSE")) %>
+</div>
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/error/portal.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/header/header.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/header/header.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/header/header.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1,5 +1,4 @@
<%@ page import="org.jboss.portal.api.PortalURL" %>
-<%@ page import="org.jboss.portal.identity.User" %>
<%
User user = (User)request.getAttribute("org.jboss.portal.header.USER");
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/header/header.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/header/tabs.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/header/tabs.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/header/tabs.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1,20 +1,20 @@
+<%@ page import="org.jboss.portal.api.PortalRuntimeContext" %>
+<%@ page import="org.jboss.portal.api.node.PortalNode" %>
+<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.Iterator" %>
-<%@ page import="org.jboss.portal.api.node.PortalNode" %>
<%@ page import="java.util.Locale" %>
-<%@ page import="java.util.ArrayList" %>
-<%@ page import="org.jboss.portal.api.PortalRuntimeContext" %>
<%
PortalNode root = (PortalNode)request.getAttribute("org.jboss.portal.api.PORTAL_NODE");
PortalNode portal = root;
- PortalNode mainPage = portal;
-
+ PortalNode mainPage = portal;
+
while (portal.getType() != PortalNode.TYPE_PORTAL)
{
mainPage = portal;
portal = portal.getParent();
}
-
+
PortalRuntimeContext context = (PortalRuntimeContext)request.getAttribute("org.jboss.portal.api.PORTAL_RUNTIME_CONTEXT");
// Get a locale
@@ -26,53 +26,60 @@
%>
<ul id="tabsHeader">
-<%
- ArrayList tmp = new ArrayList(10);
- Iterator childrenIt = portal.getChildren().iterator();
- while (childrenIt.hasNext())
- {
- PortalNode child = (PortalNode)childrenIt.next();
+ <%
+ ArrayList tmp = new ArrayList(10);
+ Iterator childrenIt = portal.getChildren().iterator();
+ while (childrenIt.hasNext())
+ {
+ PortalNode child = (PortalNode)childrenIt.next();
- // Get the list of child pages
- tmp.clear();
- for (Iterator i = child.getChildren().iterator();i.hasNext();)
- {
- PortalNode childChild = (PortalNode)i.next();
- if (childChild.getType() == PortalNode.TYPE_PAGE)
+ // Get the list of child pages
+ tmp.clear();
+ for (Iterator i = child.getChildren().iterator(); i.hasNext();)
{
- tmp.add(childChild);
+ PortalNode childChild = (PortalNode)i.next();
+ if (childChild.getType() == PortalNode.TYPE_PAGE)
+ {
+ tmp.add(childChild);
+ }
}
- }
-%>
- <li <% if(child == mainPage) out.println(" id=\"current\""); %> onmouseover="this.className='hoverOn'" onmouseout="this.className='hoverOff'"><a href="<%= child.createURL(context) %>"><%= child.getDisplayName(locale) %><%
+ %>
+ <li <%
+ if (child == mainPage)
+ {
+ out.println(" id=\"current\"");
+ } %> onmouseover="this.className='hoverOn'"
+ onmouseout="this.className='hoverOff'"><a
+ href="<%= child.createURL(context) %>"><%= child.getDisplayName(locale) %><%
if (tmp.size() == 0)
{
-%></a>
-<%
+ %></a>
+ <%
}
else
{
-%>
- <!--[if IE 7]><!--></a><!--<![endif]-->
- <!--[if lte IE 6]> <table><tr><td><![endif]-->
- <ul>
-<%
- for (Iterator j = tmp.iterator(); j.hasNext();)
- {
- PortalNode childChild = (PortalNode)j.next();
-%>
- <li><a href='<%= childChild.createURL(context) %>'><%= childChild.getDisplayName(locale) %></a></li>
-<%
+ %>
+ <!--[if IE 7]><!--></a><!--<![endif]-->
+ <!--[if lte IE 6]> <table><tr><td><![endif]-->
+ <ul>
+ <%
+ for (Iterator j = tmp.iterator(); j.hasNext();)
+ {
+ PortalNode childChild = (PortalNode)j.next();
+ %>
+ <li><a href='<%= childChild.createURL(context) %>'><%= childChild.getDisplayName(locale) %>
+ </a></li>
+ <%
+ }
+ %>
+ </ul>
+ <!--[if lte IE 6]></td></tr></table></a><![endif]-->
+ <%
}
-%>
- </ul>
- <!--[if lte IE 6]></td></tr></table></a><![endif]-->
-<%
+ %>
+ </li>
+ <%
}
-%>
- </li>
-<%
- }
-%>
+ %>
</ul>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/header/tabs.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/createRole.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editListRoleMembers.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editListRoleMembers.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editListRoleMembers.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -75,15 +75,16 @@
<br/>
</form>
<p>
-<input name="Find" class="portlet-form-button" id="Save" type="submit"
- onclick="document.forms['<portlet:namespace/>editListRoleMembers'].submit();"
- value="${n:i18n("Search")}"/>
-
-<input name="Cancel" class="portlet-form-button" id="Cancel" type="submit"
- onclick="document.forms['<portlet:namespace/>cancelEditListRoleMembers'].submit();"
- value="${n:i18n("Cancel")}"/>
+ <input name="Find" class="portlet-form-button" id="Save" type="submit"
+ onclick="document.forms['<portlet:namespace/>editListRoleMembers'].submit();"
+ value="${n:i18n("Search")}"/>
+
+ <input name="Cancel" class="portlet-form-button" id="Cancel" type="submit"
+ onclick="document.forms['<portlet:namespace/>cancelEditListRoleMembers'].submit();"
+ value="${n:i18n("Cancel")}"/>
</p>
+
<form
- name="<portlet:namespace/>cancelEditListRoleMembers"
- action="<portlet:renderURL windowState="normal"><portlet:param name="op" value="showSummary"/></portlet:renderURL>"
- method="post"/>
+ name="<portlet:namespace/>cancelEditListRoleMembers"
+ action="<portlet:renderURL windowState="normal"><portlet:param name="op" value="showSummary"/></portlet:renderURL>"
+ method="post"/>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editListRoleMembers.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editRole.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editRole.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editRole.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -12,13 +12,14 @@
<input type="hidden" name="roleid" value="${n:out("editroleid")}"/>
<p>
- <label class="portlet-form-label">${n:i18n("ROLE_DISPLAYNAME")}: </label>
+ <label class="portlet-form-label">${n:i18n("ROLE_DISPLAYNAME")}: </label>
<input name="roledisplayname" type="text" value="${param["editroledisplayname"]}" size="21" maxlength="25"/>
<n:error key="roledisplayname_error"/>
</p>
</form>
<form name="<portlet:namespace/>cancelEditRole"
- action="<portlet:renderURL windowState="normal"><portlet:param name="op" value="showSummary"/></portlet:renderURL>" method="post">
+ action="<portlet:renderURL windowState="normal"><portlet:param name="op" value="showSummary"/></portlet:renderURL>"
+ method="post">
</form>
<p>
<input name="Save" class="portlet-form-button" id="Save" type="submit"
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editRole.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editRoleMembers.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editRoleMembers.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editRoleMembers.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1,51 +1,54 @@
<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
-<%@ page isELIgnored ="false" %>
+<%@ page isELIgnored="false" %>
<portlet:defineObjects/>
<div align="center">
-<form id="editRoleMembers" action="<portlet:actionURL><portlet:param name="op" value="showListEditRoleMembers"/></portlet:actionURL>" method="post">
- <table border="0" class="portlet-font" cellspacing="0" cellpadding="5">
- <tr>
- <td colspan="2" class="portlet-section-alternate" align="left">
- <img border="0" src="<%= renderRequest.getContextPath() %>/images/role/role.gif" align="absmiddle"/>
- ${n:i18n("MENU_EDITROLEMEMBERS")}</td>
- </tr>
- <tr>
- <td class="portlet-section-body">${n:i18n("ROLE_SELECTONETOMODIFY")}:</td>
- <td class="portlet-section-body">
- <select name="roleid" class="portlet-form-input-field">
- <n:iterate ctx="role">
- <option value="${n:out("role.id")}" ${n:out("role.selected")}>${n:out("role.displayname")}</option>
- </n:iterate>
- </select> <n:error key="roledelete_error"/>
- </td>
- </tr>
- <tr>
- <td class="portlet-section-body">${n:i18n("LIST_USERNAMECONTAINS")}:</td>
- <td class="portlet-section-body" align="left">
- <input type="text" name="usernamefilter" value="${n:out("usernamefilter")}" size="15" class="portlet-form-input-field"/>
- </td>
- </tr>
- <tr>
- <td class="portlet-section-body">${n:i18n("LIST_USERSPERPAGE")}:</td>
- <td class="portlet-section-body" align="left">
- <select name="usersperpage" class="portlet-form-input-field">
- <option value="10">10</option>
- <option value="20">20</option>
- <option value="30">30</option>
- <option value="50">50</option>
- <option value="75">75</option>
- <option value="100">100</option>
- </select>
- </td>
- </tr>
- <tr>
- <td colspan="2" align="center" class="portlet-section-body">
- <input type="submit" value="${n:i18n("ROLE_EDIT_MEMBERS")}" class="portlet-form-button">
- </td>
- </tr>
- </table>
-</form>
+ <form id="editRoleMembers"
+ action="<portlet:actionURL><portlet:param name="op" value="showListEditRoleMembers"/></portlet:actionURL>"
+ method="post">
+ <table border="0" class="portlet-font" cellspacing="0" cellpadding="5">
+ <tr>
+ <td colspan="2" class="portlet-section-alternate" align="left">
+ <img border="0" src="<%= renderRequest.getContextPath() %>/images/role/role.gif" align="absmiddle"/>
+ ${n:i18n("MENU_EDITROLEMEMBERS")}</td>
+ </tr>
+ <tr>
+ <td class="portlet-section-body">${n:i18n("ROLE_SELECTONETOMODIFY")}:</td>
+ <td class="portlet-section-body">
+ <select name="roleid" class="portlet-form-input-field">
+ <n:iterate ctx="role">
+ <option value="${n:out("role.id")}" ${n:out("role.selected")}>${n:out("role.displayname")}</option>
+ </n:iterate>
+ </select> <n:error key="roledelete_error"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="portlet-section-body">${n:i18n("LIST_USERNAMECONTAINS")}:</td>
+ <td class="portlet-section-body" align="left">
+ <input type="text" name="usernamefilter" value="${n:out("usernamefilter")}" size="15"
+ class="portlet-form-input-field"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="portlet-section-body">${n:i18n("LIST_USERSPERPAGE")}:</td>
+ <td class="portlet-section-body" align="left">
+ <select name="usersperpage" class="portlet-form-input-field">
+ <option value="10">10</option>
+ <option value="20">20</option>
+ <option value="30">30</option>
+ <option value="50">50</option>
+ <option value="75">75</option>
+ <option value="100">100</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" align="center" class="portlet-section-body">
+ <input type="submit" value="${n:i18n("ROLE_EDIT_MEMBERS")}" class="portlet-form-button">
+ </td>
+ </tr>
+ </table>
+ </form>
</div>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editRoleMembers.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editUserRoles.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editUserRoles.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editUserRoles.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -24,7 +24,7 @@
<input type="hidden" name="usersperpage" value="${n:out("usersperpage")}"/>
<n:iterate ctx="userRoles">
- <input type="hidden" name="assignedRoles" value="${n:out("userRoles.name")}"/>
+ <input type="hidden" name="assignedRoles" value="${n:out("userRoles.name")}"/>
</n:iterate>
<tr>
@@ -52,8 +52,10 @@
</form>
- <tr><td><br/></td></tr>
<tr>
+ <td><br/></td>
+ </tr>
+ <tr>
<td colspan="3">
<input name="Save" class="portlet-form-button" id="Assign" type="submit"
onclick="document.forms['<portlet:namespace/>editRoles'].submit();"
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/editUserRoles.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/menu.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/menu.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/menu.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -29,7 +29,8 @@
<portlet:param name="op" value="removeRole"/>
<portlet:param name="roleid" value="${n:out('role.id')}"/>
</portlet:actionURL>"
- onClick="javascript:return confirm('${n:i18n("ROLE_CONFIRM_DELETE")}')">Delete</a></td>
+ onClick="javascript:return confirm('${n:i18n("ROLE_CONFIRM_DELETE")}')">Delete</a>
+ </td>
</tr>
</n:iterate>
</table>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/role/menu.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIf01.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIf01.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIf01.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1,5 +1,5 @@
<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
-<%@ page isELIgnored ="false" %>
+<%@ page isELIgnored="false" %>
<n:if ctx="IfCond">Some text</n:if>
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIf01.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testInclude01.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testInclude01.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testInclude01.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1,5 +1,5 @@
<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
-<%@ page isELIgnored ="false" %>
+<%@ page isELIgnored="false" %>
BeginInclude:<n:include page="testInclude02.jsp"/>:EndInclude
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testInclude01.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testInclude02.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testInclude03.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testInclude03.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testInclude03.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1,5 +1,5 @@
<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
-<%@ page isELIgnored ="false" %>
+<%@ page isELIgnored="false" %>
Foo:<n:include page="testInclude01.jsp"/>:Bar
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testInclude03.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIterate01.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIterate01.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIterate01.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1,5 +1,5 @@
<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
-<%@ page isELIgnored ="false" %>
+<%@ page isELIgnored="false" %>
<n:iterate ctx="row">Some text</n:iterate>
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIterate01.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIterate02.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIterate02.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIterate02.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1,5 +1,5 @@
<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
-<%@ page isELIgnored ="false" %>
+<%@ page isELIgnored="false" %>
<n:iterate ctx="row">A<n:iterate ctx="col">B</n:iterate>C</n:iterate>
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIterate02.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIterate03.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIterate03.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIterate03.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1,5 +1,5 @@
<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
-<%@ page isELIgnored ="false" %>
+<%@ page isELIgnored="false" %>
<n:iterate ctx="row">A<n:iterate ctx="col">B<n:iterate ctx="foo">C</n:iterate></n:iterate>D</n:iterate>
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testIterate03.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testTaglib01.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testTaglib01.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testTaglib01.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1,5 +1,5 @@
<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
-<%@ page isELIgnored ="false" %>
+<%@ page isELIgnored="false" %>
${n:out("foo")}:<n:include page="testTaglib02.jsp"/>:${n:out("bar")}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testTaglib01.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testTaglib02.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testTaglib02.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testTaglib02.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1,9 +1,9 @@
<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
-<%@ page isELIgnored ="false" %>
+<%@ page isELIgnored="false" %>
${n:out("foo")}:
<n:iterate ctx="row1">
-${n:out("row1.value1")}:
+ ${n:out("row1.value1")}:
</n:iterate>
${n:out("bar")}
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/test/testTaglib02.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/editProfile.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/editProfile.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/editProfile.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -8,7 +8,8 @@
<hr/>
<table cellpadding="0" cellspacing="8" border="0" class="pn-normal">
-<form name="<portlet:namespace/>save" action="<portlet:actionURL><portlet:param name="op" value="storeProfile"/></portlet:actionURL>" method="post">
+<form name="<portlet:namespace/>save"
+ action="<portlet:actionURL><portlet:param name="op" value="storeProfile"/></portlet:actionURL>" method="post">
<input type="hidden" name="userid" value="${n:out("userid")}"/>
<tr>
<td colspan="3" nowrap><h4>${n:i18n("REGISTER_BASICINFO")}</h4></td>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/editProfile.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/editUserRoles.jsp
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/editUserRoles.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/listUsers.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/listUsers.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/listUsers.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -57,6 +57,7 @@
</div>
<br/>
+
<form
id="<portlet:namespace/>searchUsers"
action="<portlet:actionURL><portlet:param name="op" value="showListUsers"/></portlet:actionURL>"
@@ -74,12 +75,13 @@
<br/>
</form>
<input name="Save" class="portlet-form-button" id="Save" type="submit"
- onclick="document.forms['<portlet:namespace/>searchUsers'].submit();"
- value="${n:i18n("Search")}"/>
-
- <input name="Cancel" class="portlet-form-button" id="Cancel" type="submit"
- onclick="document.forms['<portlet:namespace/>cancel'].submit();"
- value="${n:i18n("Cancel")}"/>
+ onclick="document.forms['<portlet:namespace/>searchUsers'].submit();"
+ value="${n:i18n("Search")}"/>
+
+<input name="Cancel" class="portlet-form-button" id="Cancel" type="submit"
+ onclick="document.forms['<portlet:namespace/>cancel'].submit();"
+ value="${n:i18n("Cancel")}"/>
+
<form
name="<portlet:namespace/>cancel"
action="<portlet:renderURL windowState="normal"><portlet:param name="op" value="showMenu"/></portlet:renderURL>"
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/listUsers.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/login.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/login.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/login.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1,4 +1,3 @@
-<%@ page import="org.jboss.portal.core.CoreConstants" %>
<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
@@ -6,15 +5,15 @@
<portlet:defineObjects/>
<div class="box" align="center">
- <table border="0" class="portlet-font" cellspacing="0" cellpadding="2">
- <tr>
- <td colspan="1">
+ <table border="0" class="portlet-font" cellspacing="0" cellpadding="2">
+ <tr>
+ <td colspan="1">
<span class="portlet-text">
${n:i18n("REGISTER_NOT_LOGGED_IN")}
<br/><br/>
<a id="register"
href="<portlet:renderURL windowState="maximized"><portlet:param name="op" value="showRegister"/></portlet:renderURL>">${n:i18n("REGISTER_REGISTER")}</a></span>
- </td>
- </tr>
- </table>
+ </td>
+ </tr>
+ </table>
</div>
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/login.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/menu.jsp
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/menu.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/register.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/register.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/register.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -7,67 +7,67 @@
<p><span class="requiredfield">*</span> ${n:i18n("REQUIRED")}</p>
<hr/>
<table width="100%" cellpadding="0" cellspacing="10" border="0" class="pn-normal">
- <form name="<portlet:namespace/>register"
- action="<portlet:actionURL><portlet:param name="op" value="userRegister"/></portlet:actionURL>" method="post">
- <tr>
- <td colspan="3" nowrap><h4>${n:i18n("REGISTER_BASICINFO")}</h4></td>
- </tr>
- <tr>
+ <form name="<portlet:namespace/>register"
+ action="<portlet:actionURL><portlet:param name="op" value="userRegister"/></portlet:actionURL>" method="post">
+ <tr>
+ <td colspan="3" nowrap><h4>${n:i18n("REGISTER_BASICINFO")}</h4></td>
+ </tr>
+ <tr>
- <td class="portlet-form-label" nowrap>${n:i18n("USERNAME")}<span class="requiredfield">*</span></td>
- <td colspan="2"><input type="text" name="uname" value="${param["USERNAME"]}"
- size="30" maxlength="25">
- <n:error key="uname_error"/>
- </td>
- </tr>
- <tr>
- <td class="portlet-form-label" nowrap>${n:i18n("REGISTER_REALEMAIL")}<span class="requiredfield">*</span>
- </td>
- <td><input type="text" name="realemail" value="user(a)portal.com" size="30" maxlength="60">
- <n:error key="realemail_error"/>
- </td>
+ <td class="portlet-form-label" nowrap>${n:i18n("USERNAME")}<span class="requiredfield">*</span></td>
+ <td colspan="2"><input type="text" name="uname" value="${param["USERNAME"]}"
+ size="30" maxlength="25">
+ <n:error key="uname_error"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="portlet-form-label" nowrap>${n:i18n("REGISTER_REALEMAIL")}<span class="requiredfield">*</span>
+ </td>
+ <td><input type="text" name="realemail" value="user(a)portal.com" size="30" maxlength="60">
+ <n:error key="realemail_error"/>
+ </td>
- <td><input type="checkbox" name="viewrealemail" value="true" checked="checked" class="portlet-form-label"/>Allow
- other users to view my real e-mail address
- </td>
- </tr>
- <tr>
- <td class="portlet-form-label" nowrap>${n:i18n("REGISTER_FAKEEMAIL")}</td>
- <td colspan="2"><input type="text" name="fakeemail" value="" size="30" maxlength="60"></td>
- </tr>
- <tr>
- <td class="portlet-form-label" nowrap>${n:i18n("PASSWORD")}<span class="requiredfield">*</span></td>
+ <td><input type="checkbox" name="viewrealemail" value="true" checked="checked" class="portlet-form-label"/>Allow
+ other users to view my real e-mail address
+ </td>
+ </tr>
+ <tr>
+ <td class="portlet-form-label" nowrap>${n:i18n("REGISTER_FAKEEMAIL")}</td>
+ <td colspan="2"><input type="text" name="fakeemail" value="" size="30" maxlength="60"></td>
+ </tr>
+ <tr>
+ <td class="portlet-form-label" nowrap>${n:i18n("PASSWORD")}<span class="requiredfield">*</span></td>
- <td colspan="2"><input type="password" name="pass1" size="30" maxlength="20">
- <n:error key="pass1_error"/>
- </td>
- </tr>
- <tr>
- <td class="portlet-form-label" nowrap>${n:i18n("REGISTER_PASSWORDAGAIN")}<span
- class="requiredfield">*</span></td>
- <td colspan="2"><input type="password" name="pass2" size="30" maxlength="20">
- <n:error key="pass2_error"/>
- </td>
- </tr>
- <tr>
- <td class="portlet-form-label" nowrap>${n:i18n("REGISTER_QUESTION")}</td>
+ <td colspan="2"><input type="password" name="pass1" size="30" maxlength="20">
+ <n:error key="pass1_error"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="portlet-form-label" nowrap>${n:i18n("REGISTER_PASSWORDAGAIN")}<span
+ class="requiredfield">*</span></td>
+ <td colspan="2"><input type="password" name="pass2" size="30" maxlength="20">
+ <n:error key="pass2_error"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="portlet-form-label" nowrap>${n:i18n("REGISTER_QUESTION")}</td>
- <td class="pn-normal" colspan="2"><input type="text" name="question" value="" size="30" maxlength="100">
- </td>
- </tr>
- <tr>
- <td class="portlet-form-label" nowrap>${n:i18n("REGISTER_ANSWER")}</td>
- <td class="pn-normal" colspan="2"><input type="text" name="answer" value="" size="30" maxlength="100">
- </td>
- </tr>
- <tr>
- <td colspan="3" class="bottombuttonbar">
- <input name="Save" class="portlet-form-button" id="register" type="submit"
- value="${n:i18n("REGISTER_NEWUSER")}"/>
-
- <input name="Cancel" class="portlet-form-button" id="Cancel" type="submit"
- value="${n:i18n("Cancel")}"/>
- </td>
- </tr>
- </form>
+ <td class="pn-normal" colspan="2"><input type="text" name="question" value="" size="30" maxlength="100">
+ </td>
+ </tr>
+ <tr>
+ <td class="portlet-form-label" nowrap>${n:i18n("REGISTER_ANSWER")}</td>
+ <td class="pn-normal" colspan="2"><input type="text" name="answer" value="" size="30" maxlength="100">
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" class="bottombuttonbar">
+ <input name="Save" class="portlet-form-button" id="register" type="submit"
+ value="${n:i18n("REGISTER_NEWUSER")}"/>
+
+ <input name="Cancel" class="portlet-form-button" id="Cancel" type="submit"
+ value="${n:i18n("Cancel")}"/>
+ </td>
+ </tr>
+ </form>
</table>
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/register.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/registerUser.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/registerUser_admin.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/registerUser_admin.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/registerUser_admin.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1,4 +1,3 @@
-<%@ page import="org.jboss.portal.core.CoreConstants" %>
<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/registerUser_admin.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/register_ty.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/register_ty.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/register_ty.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -1,19 +1,18 @@
-<%@ page import="org.jboss.portal.core.CoreConstants" %>
-<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
-<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
-<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
-<%@ page isELIgnored="false" %>
-<portlet:defineObjects/>
-
-
-<div class="box" align="center">
- <table border="0" class="portlet-font" cellspacing="0" cellpadding="2">
- <tr>
- <td align="center">${n:i18n("REGISTER_TY")}</td>
- </tr>
- </table>
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+<%@ page isELIgnored="false" %>
+<portlet:defineObjects/>
+
+
+<div class="box" align="center">
+ <table border="0" class="portlet-font" cellspacing="0" cellpadding="2">
+ <tr>
+ <td align="center">${n:i18n("REGISTER_TY")}</td>
+ </tr>
+ </table>
</div>
<br/>
<br/>
<span class="portlet-font"><a
- href="<portlet:renderURL windowState="normal"><portlet:param name="op" value="showMenu"/></portlet:renderURL>">${n:i18n("REGISTER_SHOWMENU")}</a></span>
+ href="<portlet:renderURL windowState="normal"><portlet:param name="op" value="showMenu"/></portlet:renderURL>">${n:i18n("REGISTER_SHOWMENU")}</a></span>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/register_ty.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/viewProfile.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/viewProfile.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/viewProfile.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -5,30 +5,30 @@
<table cellpadding="0" cellspacing="8" border="0" class="pn-normal">
-<tr>
- <td class="portlet-form-label">${n:i18n("LIST_USERNAME")}</td>
- <td>${n:out("username")}</td>
-</tr>
-<tr>
- <td class="portlet-form-label">${n:i18n("REGISTER_GIVENNAME")}</td>
- <td>${n:out("GIVENNAME")}</td>
-</tr>
-<tr>
- <td class="portlet-form-label">${n:i18n("REGISTER_FAMILYNAME")}</td>
- <td>${n:out("FAMILYNAME")}</td>
-</tr>
-<tr>
- <td class="portlet-form-label">${n:i18n("REGISTER_FAKEEMAIL")}</td>
- <td>${n:out("FAKEEMAIL")}</td>
-</tr>
-<tr>
- <td class="portlet-form-label">${n:i18n("REGISTER_HOMEPAGE")}</td>
- <td>${n:out("HOMEPAGE")}</td>
-</tr>
-<tr>
- <td class="portlet-form-label">${n:i18n("REGISTER_LOCATION")}</td>
- <td>${n:out("LOCATION")}</td>
-</tr>
+ <tr>
+ <td class="portlet-form-label">${n:i18n("LIST_USERNAME")}</td>
+ <td>${n:out("username")}</td>
+ </tr>
+ <tr>
+ <td class="portlet-form-label">${n:i18n("REGISTER_GIVENNAME")}</td>
+ <td>${n:out("GIVENNAME")}</td>
+ </tr>
+ <tr>
+ <td class="portlet-form-label">${n:i18n("REGISTER_FAMILYNAME")}</td>
+ <td>${n:out("FAMILYNAME")}</td>
+ </tr>
+ <tr>
+ <td class="portlet-form-label">${n:i18n("REGISTER_FAKEEMAIL")}</td>
+ <td>${n:out("FAKEEMAIL")}</td>
+ </tr>
+ <tr>
+ <td class="portlet-form-label">${n:i18n("REGISTER_HOMEPAGE")}</td>
+ <td>${n:out("HOMEPAGE")}</td>
+ </tr>
+ <tr>
+ <td class="portlet-form-label">${n:i18n("REGISTER_LOCATION")}</td>
+ <td>${n:out("LOCATION")}</td>
+ </tr>
</table>
<form
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/user/viewProfile.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/layout/portal-renderSet.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/portal-layouts.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/portal-lib.tld
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/portal-themes.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/portlet-instances.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/portlet.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/theme-basic-lib.tld
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-server-war/WEB-INF/context.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-server-war/WEB-INF/jboss-web.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-server-war/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-server-war/error.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-server-war/error.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-server-war/error.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -25,12 +25,12 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
- | Uncomment to enable JOSSO server based SSO authentication.
- | Redirects the user to the propper login page. Configured as the login url the web.xml for this application.
+| Uncomment to enable JOSSO server based SSO authentication.
+| Redirects the user to the propper login page. Configured as the login url the web.xml for this application.
-->
<%
- /* response.sendRedirect(request.getContextPath() + "/josso_login/"); */
+ /* response.sendRedirect(request.getContextPath() + "/josso_login/"); */
%>
<html>
@@ -39,6 +39,7 @@
body {
background-color: #FFFFFF;
}
+
td {
color: #000000;
font-family: verdana, arial, sans-serif;
@@ -50,61 +51,63 @@
<body OnLoad="document.loginform.j_username.focus();">
-<table width="100%" height="600" cellpadding="0" cellspacing="1" >
+<table width="100%" height="600" cellpadding="0" cellspacing="1">
<tr>
<td valign="middle" align="center">
<form method="POST" action="<%= response.encodeURL("j_security_check") %>" name="loginform" id="loginForm">
<% String prefix = request.getContextPath(); %>
- <table cellspacing="0" cellpadding="0">
- <tr>
- <td ><img src="<%= prefix %>/images/login_top_left.png" /></td>
- <td style="background-image:url('<%= prefix %>/images/login_top.png')"></td>
- <td><img src="<%= prefix %>/images/login_top_right.png" /></td>
- </tr>
- <tr>
- <td style="background-image:url('<%= prefix %>/images/login_left.png')"></td>
- <!-- REAL CONTENT CELL : begin -->
- <td style="background-color:#b4b4b4" align="center">
- <b>JBoss Portal Login</b><br/><br/>
- <p style="color:red"><%= request.getAttribute("org.jboss.portal.loginError") %></p>
- <table>
- <tr>
- <td align="right" width="50">
- Username:
- </td>
- <td align="left">
- <input type="text" name="j_username" value=""/>
- </td>
- </tr>
- <tr>
- <td align="right" width="50">
- Password:
- </td>
- <td align="left">
- <input type="password" name="j_password" value=""/>
- </td>
- </tr>
- <tr>
- <td colspan="2" align="right">
- <input type="submit" name="login" value="Login"/>
- </td>
- </tr>
- </table>
+ <table cellspacing="0" cellpadding="0">
+ <tr>
+ <td><img src="<%= prefix %>/images/login_top_left.png"/></td>
+ <td style="background-image:url('<%= prefix %>/images/login_top.png')"></td>
+ <td><img src="<%= prefix %>/images/login_top_right.png"/></td>
+ </tr>
+ <tr>
+ <td style="background-image:url('<%= prefix %>/images/login_left.png')"></td>
+ <!-- REAL CONTENT CELL : begin -->
+ <td style="background-color:#b4b4b4" align="center">
+ <b>JBoss Portal Login</b><br/><br/>
- </td>
- <!-- REAL CONTENT CELL : end -->
- <td style="background-image:url('<%= prefix %>/images/login_right.png')"></td>
- </tr>
- <tr>
- <td><img src="<%= prefix %>/images/login_bottom_left.png" /></td>
- <td style="background-image:url('<%= prefix %>/images/login_bottom.png')"></td>
- <td><img src="<%= prefix %>/images/login_bottom_right.png" /></td>
- </tr>
- </table>
+ <p style="color:red"><%= request.getAttribute("org.jboss.portal.loginError") %>
+ </p>
+ <table>
+ <tr>
+ <td align="right" width="50">
+ Username:
+ </td>
+ <td align="left">
+ <input type="text" name="j_username" value=""/>
+ </td>
+ </tr>
+ <tr>
+ <td align="right" width="50">
+ Password:
+ </td>
+ <td align="left">
+ <input type="password" name="j_password" value=""/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" align="right">
+ <input type="submit" name="login" value="Login"/>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <!-- REAL CONTENT CELL : end -->
+ <td style="background-image:url('<%= prefix %>/images/login_right.png')"></td>
+ </tr>
+ <tr>
+ <td><img src="<%= prefix %>/images/login_bottom_left.png"/></td>
+ <td style="background-image:url('<%= prefix %>/images/login_bottom.png')"></td>
+ <td><img src="<%= prefix %>/images/login_bottom_right.png"/></td>
+ </tr>
+ </table>
+
</form>
</td>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-server-war/error.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-server-war/login.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-server-war/login.jsp 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-server-war/login.jsp 2007-10-28 01:14:48 UTC (rev 8786)
@@ -25,12 +25,12 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
- | Uncomment to enable JOSSO server based SSO authentication.
- | Redirects the user to the propper login page. Configured as the login url the web.xml for this application.
+| Uncomment to enable JOSSO server based SSO authentication.
+| Redirects the user to the propper login page. Configured as the login url the web.xml for this application.
-->
<%
- /* response.sendRedirect(request.getContextPath() + "/josso_login/"); */
+ /* response.sendRedirect(request.getContextPath() + "/josso_login/"); */
%>
@@ -40,6 +40,7 @@
body {
background-color: #FFFFFF;
}
+
td {
color: #000000;
font-family: verdana, arial, sans-serif;
@@ -51,58 +52,58 @@
<body OnLoad="document.loginform.j_username.focus();">
-<table width="100%" height="600" cellpadding="0" cellspacing="1" >
+<table width="100%" height="600" cellpadding="0" cellspacing="1">
<tr>
<td valign="middle" align="center">
<form method="POST" action="<%= response.encodeURL("j_security_check") %>" name="loginform" id="loginForm">
<% String prefix = request.getContextPath(); %>
- <table cellspacing="0" cellpadding="0">
- <tr>
- <td ><img src="<%= prefix %>/images/login_top_left.png" /></td>
- <td style="background-image:url('<%= prefix %>/images/login_top.png')"></td>
- <td><img src="<%= prefix %>/images/login_top_right.png" /></td>
- </tr>
- <tr>
- <td style="background-image:url('<%= prefix %>/images/login_left.png')"></td>
- <!-- REAL CONTENT CELL : begin -->
- <td style="background-color:#b4b4b4" align="center">
- <b>JBoss Portal Login</b><br/><br/>
- <table>
- <tr>
- <td align="right" width="50">
- Username:
- </td>
- <td align="left">
- <input type="text" name="j_username" value=""/>
- </td>
- </tr>
- <tr>
- <td align="right" width="50">
- Password:
- </td>
- <td align="left">
- <input type="password" name="j_password" value=""/>
- </td>
- </tr>
- <tr>
- <td colspan="2" align="right">
- <input type="submit" name="login" value="Login"/>
- </td>
- </tr>
- </table>
+ <table cellspacing="0" cellpadding="0">
+ <tr>
+ <td><img src="<%= prefix %>/images/login_top_left.png"/></td>
+ <td style="background-image:url('<%= prefix %>/images/login_top.png')"></td>
+ <td><img src="<%= prefix %>/images/login_top_right.png"/></td>
+ </tr>
+ <tr>
+ <td style="background-image:url('<%= prefix %>/images/login_left.png')"></td>
+ <!-- REAL CONTENT CELL : begin -->
+ <td style="background-color:#b4b4b4" align="center">
+ <b>JBoss Portal Login</b><br/><br/>
+ <table>
+ <tr>
+ <td align="right" width="50">
+ Username:
+ </td>
+ <td align="left">
+ <input type="text" name="j_username" value=""/>
+ </td>
+ </tr>
+ <tr>
+ <td align="right" width="50">
+ Password:
+ </td>
+ <td align="left">
+ <input type="password" name="j_password" value=""/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" align="right">
+ <input type="submit" name="login" value="Login"/>
+ </td>
+ </tr>
+ </table>
- </td>
- <!-- REAL CONTENT CELL : end -->
- <td style="background-image:url('<%= prefix %>/images/login_right.png')"></td>
- </tr>
- <tr>
- <td><img src="<%= prefix %>/images/login_bottom_left.png" /></td>
- <td style="background-image:url('<%= prefix %>/images/login_bottom.png')"></td>
- <td><img src="<%= prefix %>/images/login_bottom_right.png" /></td>
- </tr>
- </table>
+ </td>
+ <!-- REAL CONTENT CELL : end -->
+ <td style="background-image:url('<%= prefix %>/images/login_right.png')"></td>
+ </tr>
+ <tr>
+ <td><img src="<%= prefix %>/images/login_bottom_left.png"/></td>
+ <td style="background-image:url('<%= prefix %>/images/login_bottom.png')"></td>
+ <td><img src="<%= prefix %>/images/login_bottom_right.png"/></td>
+ </tr>
+ </table>
</form>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-server-war/login.jsp
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/setup/portal-ds.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/setup/setup.sql
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/test/cache/domain.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/test/cache/local.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/test/cache/replicated.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/test/datarole.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/test/datarolecreated.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/test/dataroledeleted.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/test/dataroleedited.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/test/deployment/jboss-portlet.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/test/deployment/jboss-portlet.xml 2007-10-28 01:09:21 UTC (rev 8785)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/test/deployment/jboss-portlet.xml 2007-10-28 01:14:48 UTC (rev 8786)
@@ -20,7 +20,8 @@
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ~
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org. ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
-<!DOCTYPE portlet-app PUBLIC "-//JBoss Portal//DTD JBoss Portlet 2.6//EN" "http://www.jboss.org/portal/dtd/jboss-portlet_2_6.dtd">
+<!DOCTYPE portlet-app PUBLIC "-//JBoss Portal//DTD JBoss Portlet 2.6//EN"
+ "http://www.jboss.org/portal/dtd/jboss-portlet_2_6.dtd">
<portlet-app>
<portlet>
<portlet-name>Portlet1</portlet-name>
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/test/deployment/jboss-portlet.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/test/deployment/portlet-instances.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/test/hibernate.properties
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/test/log4j.properties
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core/src/resources/test/theme.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
16 years, 6 months
JBoss Portal SVN: r8785 - in branches/JBoss_Portal_Branch_2_6: api/src/main/org/jboss/portal/api and 72 other directories.
by portal-commits@lists.jboss.org
Author: chris.laprun(a)jboss.com
Date: 2007-10-27 21:09:21 -0400 (Sat, 27 Oct 2007)
New Revision: 8785
Modified:
branches/JBoss_Portal_Branch_2_6/api/build.bat
branches/JBoss_Portal_Branch_2_6/api/build.sh
branches/JBoss_Portal_Branch_2_6/api/build.xml
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/PortalRuntimeContext.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/PortalURL.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/event/PortalEvent.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/event/PortalEventContext.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/event/PortalEventListener.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/navstate/NavigationalStateContext.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/PortalNode.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/PortalNodeURL.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PageEvent.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PageRenderEvent.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PortalNodeEvent.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PortalNodeEventContext.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PortalNodeEventListener.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/WindowActionEvent.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/WindowEvent.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/WindowNavigationEvent.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/WindowRenderEvent.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/session/PortalSession.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/session/event/PortalSessionEvent.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/user/event/UserAuthenticationEvent.java
branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/user/event/UserEvent.java
branches/JBoss_Portal_Branch_2_6/cms/build.bat
branches/JBoss_Portal_Branch_2_6/cms/build.sh
branches/JBoss_Portal_Branch_2_6/cms/build.xml
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CMS.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CMSException.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CMSInterceptor.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CMSMimeMappings.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/Command.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CommandFactory.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/CMSEntry.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/HibernateStore.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/HibernateStoreConstants.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/RepositoryEntry.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/VersionEntry.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/Base.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/HibernatePersistenceManager.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/JBossCachePersistenceManager.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/PortalCMSCacheLoader.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/Tools.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/VersionBinVal.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/VersionNode.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/VersionProp.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/VersionRefs.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/WSPBinVal.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/WSPNode.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/WSPProp.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/WSPRefs.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/CMSCacheException.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/CMSObjectImpl.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/CMSTreeCacheService.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/ContentImpl.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/FileImpl.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/FolderImpl.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/cache/CMSTreeCacheServiceImpl.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/interceptors/ACLInterceptor.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/interceptors/ApprovalWorkflowInterceptor.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/interceptors/CacheInterceptor.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/interceptors/LogInterceptor.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCMS.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCommandContext.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCommandFactory.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCompositeCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRService.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ACLEnforcer.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentCreateCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentCreateNewVersionCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentGetCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentGetVersionsCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/CopyCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/DeleteCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FileCreateCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FileGetCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FileGetListCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FileUpdateAndVersionCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FileUpdateCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FolderCreateCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FolderGetCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FolderGetListCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FolderUpdateCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/GetArchiveCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ItemExistsCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/MakeLiveVersionCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/MoveCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/RenameCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/SearchCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/StoreArchiveCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/composite/NewFileCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/composite/UpdateFileCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/ha/HAJCRCMS.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/jackrabbit/ClusteredCacheListener.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/jackrabbit/JackrabbitJCRService.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/util/NodeTypeUtil.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/util/VersionUtil.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/management/CMS.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/management/CMSImpl.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/model/CMSObject.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/model/CMSUser.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/model/Content.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/model/File.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/model/Folder.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/search/CMSFederatedSearch.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/search/CMSResult.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/search/CMSResultURL.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationManager.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationManagerImpl.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationProvider.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationProviderImpl.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/CMSPermission.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/Criteria.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/PermRoleAssoc.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/PermUserAssoc.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/Permission.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/PortalCMSSecurityContext.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/util/FileUtil.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/util/HibernateUtil.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/util/NodeUtil.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/util/RepositoryUtil.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/ApprovePublish.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/ApprovePublishImpl.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/ApprovePublishServlet.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/Content.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/FinalizePublish.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/PublishAssignmentHandler.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/TaskExceptionHandler.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/AbstractCMSTestCase.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/JackrabbitTestCase.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/TestRegEx.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/TestRepositoryBootStrap.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/TestRepositoryUtil.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/clustering/FileDeleteTest.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/clustering/FileUpdateTest.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/AbstractCommandTestCase.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/CMSInterceptorStackFactory.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileArchiveUpload.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileCopy.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileCreate.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileCreateFailed.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileDelete.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileGet.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileGetList.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileGetVersion.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileUpdate.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderCopy.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderCreate.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderDelete.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderGet.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderUpdate.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestSearch.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/mock/RuntimeExceptionCommand.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/IdentityDataLoader.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/SecureCommandTestCase.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/TestManageAccess.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/TestReadAccess.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/TestWriteAccess.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/AbstractWorkflowTestCase.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/TestApprovedPublish.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/TestDeniedPublish.java
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/TestWorkflowEnvironment.java
branches/JBoss_Portal_Branch_2_6/cms/src/resources/hibernate/domain.hbm.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-jar/org/jboss/portal/cms/jboss-beans-security.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-jar/org/jboss/portal/cms/jboss-beans-workflow.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-jar/org/jboss/portal/cms/jboss-beans.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-jar/org/jboss/portal/cms/mime-mappings.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-sar/default-content/default/index.html
branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-sar/default-content/default/private/license.html
branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-sar/default-content/default/project.html
branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-sar/default-content/default/support.html
branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/datasource/ports01-ds.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/datasource/ports02-ds.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/sar/META-INF/jboss-service.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/sar/conf/hibernate/cms/domain.hbm.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/sar/conf/hibernate/cms/hibernate.cfg.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/test-cms-clustering-war/WEB-INF/jboss-portlet.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/test-cms-clustering-war/WEB-INF/portlet.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/test-cms-clustering-war/WEB-INF/web.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/db-config.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/domain-identity.hbm.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/jbpm-ehcache.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/jbpm-hibernate.cfg.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/jcr/fs-repository.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/jcr/repository.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/log4j.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/pm-cache.xml
branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/standardidentity-config.xml
branches/JBoss_Portal_Branch_2_6/core-admin/build.bat
branches/JBoss_Portal_Branch_2_6/core-admin/build.sh
branches/JBoss_Portal_Branch_2_6/core-admin/build.xml
branches/JBoss_Portal_Branch_2_6/core-admin/src/bin/portal-admin-war/style.css
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/AdminPropertyResolver.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/AuthorizationBean.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/ControlPropertiesBean.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/ControlPropertyBean.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/InstanceManagerBean.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PortalObjectManagerBean.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PortletManagerBean.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PreferenceBean.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PreferencesBean.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertiesBean.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertiesInfo.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertyBean.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertyBeanContainer.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertyInfo.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/Refresher.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/ThemeBean.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/AddPageAction.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/AssignContentToWindowAction.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/CreateInstanceAction.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/PortalAction.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/PropertyAction.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/RenameAction.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/WindowComparator.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/common/PageManagerBean.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/conversion/ContentTypeConverter.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/conversion/PortalObjectIdConverter.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/dashboard/DashboardBean.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/portlet/PortletDefinitionInvoker.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/wizard/NewWindowWizard.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-sar/META-INF/jboss-service.xml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/faces-config.xml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jboss-portlet.xml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jboss_portal.tld
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/confirm.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editPageErrorHandling.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editPageLayout.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editPortalErrorHandling.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editPreferences.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editProperties.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editSecurity.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editTheme.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editWindowTheme.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/showPortletDetails.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/tabContainer.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/confirmDeleteInstance.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/dashboard/dashboard.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/dashboards.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/dashboardsTemplate.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editContext.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editPage.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editPageLayout.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editPageSecurity.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editPageTheme.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editPortalSecurity.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editPortalTheme.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editProperties.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editWindow.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editWindowSecurity.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editWindowTheme.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/instances.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/instancesTemplate.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objectNavigation.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objectTemplate.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objects.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/portlets.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/portletsTemplate.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/renameObject.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/newWindowTpl.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/newWindowWizardConfirm.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/selectPage.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/selectPortal.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/selectPortlet.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/selectRegion.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/portal.taglib.xml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/portlet-instances.xml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/portlet.xml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/web.xml
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSConstants.java
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSObjectCommandFactory.java
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSObjectCommandFactoryService.java
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSObjectURLFactory.java
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/aspect/IdentityBindingInterceptor.java
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/command/StreamContentCommand.java
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/content/InternalCMSContentProvider.java
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/servlet/CMSExportServlet.java
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/servlet/CMSPreviewServlet.java
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/CMSPortlet.java
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminConstants.java
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminPortlet.java
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSContentEditorPortlet.java
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSEditorConstants.java
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-sar/META-INF/jboss-service.xml
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-sar/conf/hibernate/cms/domain.hbm.xml
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-sar/conf/hibernate/cms/ehcache.xml
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-sar/conf/hibernate/cms/hibernate.cfg.xml
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/classes/Resource.properties
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/classes/Resource_es.properties
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/classes/Resource_fr.properties
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/classes/Resource_it.properties
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/classes/Resource_pt_BR.properties
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/default-object.xml
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jboss-portlet.xml
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jboss-web.xml
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmcopy.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmcreatecollection.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmdelete.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmmove.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/create.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/edit.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/editbinary.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/exportarchive.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/exportarchive_pickup.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/exportarchive_pickup_error.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/folderlist.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/help.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/main.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/pending_items.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/searchResults.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/securenode.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/upload.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/uploadarchive.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/viewfile.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/edit.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/editor/main.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/help.jsp
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/portal-lib.tld
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/portlet-instances.xml
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/portlet.xml
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/web.xml
branches/JBoss_Portal_Branch_2_6/core-samples/src/main/org/jboss/portal/core/samples/basic/event/PortletB.java
Log:
Updated svn properties
Property changes on: branches/JBoss_Portal_Branch_2_6/api/build.bat
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/api/build.sh
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/api/build.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/PortalRuntimeContext.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/PortalRuntimeContext.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/PortalRuntimeContext.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -29,7 +29,7 @@
* The portal runtime context which provides access to runtime objects.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface PortalRuntimeContext
{
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/PortalRuntimeContext.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/PortalURL.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/PortalURL.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/PortalURL.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -26,25 +26,23 @@
* Base interface for portal urls.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface PortalURL
{
/**
- * Affect the authentication mode of the transport protocol that the URL will designate.
- * A null value indicates that it should reuse the value of the incoming transport.
+ * Affect the authentication mode of the transport protocol that the URL will designate. A null value indicates that
+ * it should reuse the value of the incoming transport.
*/
void setAuthenticated(Boolean wantAuthenticated);
/**
- * Affect the security mode of the transport protocol that the URL will designate.
- * A null value indicates that it should reuse the value of the incoming transport.
+ * Affect the security mode of the transport protocol that the URL will designate. A null value indicates that it
+ * should reuse the value of the incoming transport.
*/
void setSecure(Boolean wantSecure);
- /**
- * Affet the URL generation by creating either a relative or an absolute URL.
- */
+ /** Affet the URL generation by creating either a relative or an absolute URL. */
void setRelative(boolean relative);
/**
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/PortalURL.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/event/PortalEvent.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/event/PortalEventContext.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/event/PortalEventContext.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/event/PortalEventContext.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -26,7 +26,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface PortalEventContext
{
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/event/PortalEventContext.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/event/PortalEventListener.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/event/PortalEventListener.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/event/PortalEventListener.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -24,7 +24,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface PortalEventListener
{
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/event/PortalEventListener.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/navstate/NavigationalStateContext.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/navstate/NavigationalStateContext.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/navstate/NavigationalStateContext.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,15 +22,15 @@
******************************************************************************/
package org.jboss.portal.api.navstate;
+import org.jboss.portal.Mode;
import org.jboss.portal.WindowState;
-import org.jboss.portal.Mode;
import org.jboss.portal.api.node.PortalNode;
/**
* Provide access to a portion of the navigational state managed by the portal.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface NavigationalStateContext
{
@@ -46,7 +46,7 @@
/**
* Updates the window state of a window.
*
- * @param window the window to update
+ * @param window the window to update
* @param windowState the new window state value
* @throws IllegalArgumentException
*/
@@ -65,7 +65,7 @@
* Updates the mode of a window.
*
* @param window the window to update
- * @param mode the new mode value
+ * @param mode the new mode value
* @throws IllegalArgumentException
*/
void setMode(PortalNode window, Mode mode) throws IllegalArgumentException;
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/navstate/NavigationalStateContext.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/PortalNode.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/PortalNode.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/PortalNode.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -25,8 +25,8 @@
import org.jboss.portal.api.PortalRuntimeContext;
import java.util.Collection;
+import java.util.Locale;
import java.util.Map;
-import java.util.Locale;
/**
* Represents a portal node, a first class entity for the portal.
@@ -80,7 +80,7 @@
/**
* Returns the best display name for specified locale.
*
- * @return the display name
+ * @return the display name
*/
String getDisplayName(Locale locale);
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/PortalNode.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/PortalNodeURL.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/PortalNodeURL.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/PortalNodeURL.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -35,7 +35,7 @@
/**
* Set a parameter on the URL.
*
- * @param name the parameter name
+ * @param name the parameter name
* @param value the parameter value
* @throws IllegalArgumentException if the name is null
*/
@@ -44,7 +44,7 @@
/**
* Set a parameter on the URL.
*
- * @param name the parameter name
+ * @param name the parameter name
* @param values the parameter values
* @throws IllegalArgumentException if the name is null
*/
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/PortalNodeURL.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PageEvent.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PageEvent.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PageEvent.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -28,7 +28,7 @@
* Base class for page events.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public abstract class PageEvent extends PortalNodeEvent
{
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PageEvent.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PageRenderEvent.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PageRenderEvent.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PageRenderEvent.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -28,7 +28,7 @@
* This event is raised whenever a page is rendered.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PageRenderEvent extends PageEvent
{
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PageRenderEvent.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PortalNodeEvent.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PortalNodeEvent.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PortalNodeEvent.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,8 +22,8 @@
******************************************************************************/
package org.jboss.portal.api.node.event;
+import org.jboss.portal.api.event.PortalEvent;
import org.jboss.portal.api.node.PortalNode;
-import org.jboss.portal.api.event.PortalEvent;
/**
* Base class for all portal node events.
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PortalNodeEvent.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PortalNodeEventContext.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PortalNodeEventContext.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PortalNodeEventContext.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,12 +22,12 @@
******************************************************************************/
package org.jboss.portal.api.node.event;
+import org.jboss.portal.api.event.PortalEventContext;
import org.jboss.portal.api.node.PortalNode;
-import org.jboss.portal.api.event.PortalEventContext;
/**
* The context in which a <code>PortalNodeEvent</code> is dispatched.
- *
+ *
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @version $Revision$
*/
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PortalNodeEventContext.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PortalNodeEventListener.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PortalNodeEventListener.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PortalNodeEventListener.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -32,15 +32,13 @@
{
/**
* <p>Dispatch an event to the listener. If the listener does not care about replacing the current event with a new
- * one then it should return the event returned by the <code>PortalNodeEventContext</code> provided such as:</p>
+ * one then it should return the event returned by the <code>PortalNodeEventContext</code> provided such as:</p> <p/>
+ * <p><code>return context.dispatch()</code></p> <p/> <p>Otherwise it can return a new event to replace the current
+ * one. Only events of type <code>WindowNavigationEvent</code> or <code>WindowActionEvent;</code> will have an
+ * effect.</p>
*
- * <p><code>return context.dispatch()</code></p>
- *
- * <p>Otherwise it can return a new event to replace the current one. Only events of type <code>WindowNavigationEvent</code>
- * or <code>WindowActionEvent;</code> will have an effect.</p>
- *
* @param context the context in which the event is triggered
- * @param event the fired event
+ * @param event the fired event
* @return an event
*/
PortalNodeEvent onEvent(PortalNodeEventContext context, PortalNodeEvent event);
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/PortalNodeEventListener.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/WindowActionEvent.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/WindowEvent.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/WindowNavigationEvent.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/node/event/WindowRenderEvent.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/session/PortalSession.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/session/PortalSession.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/session/PortalSession.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -23,11 +23,11 @@
package org.jboss.portal.api.session;
/**
- * The portal session, the portal session attributes are accessible however it is not possible to influence
- * the lifecycle of the session as it is managed by the portal.
+ * The portal session, the portal session attributes are accessible however it is not possible to influence the
+ * lifecycle of the session as it is managed by the portal.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public interface PortalSession
{
@@ -50,7 +50,7 @@
/**
* Update an attribute value. If the attribute value is null, then it is considered as a removal.
*
- * @param name the attribute name
+ * @param name the attribute name
* @param attribute the attribute value
* @throws IllegalArgumentException if the attribute name is null
*/
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/session/PortalSession.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/session/event/PortalSessionEvent.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/session/event/PortalSessionEvent.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/session/event/PortalSessionEvent.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -26,7 +26,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortalSessionEvent extends PortalEvent
{
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/session/event/PortalSessionEvent.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/user/event/UserAuthenticationEvent.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/user/event/UserAuthenticationEvent.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/user/event/UserAuthenticationEvent.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -24,7 +24,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class UserAuthenticationEvent extends UserEvent
{
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/user/event/UserAuthenticationEvent.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/user/event/UserEvent.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/user/event/UserEvent.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/user/event/UserEvent.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -26,7 +26,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public abstract class UserEvent extends PortalEvent
{
Property changes on: branches/JBoss_Portal_Branch_2_6/api/src/main/org/jboss/portal/api/user/event/UserEvent.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/build.bat
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/build.sh
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/cms/build.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/build.xml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/build.xml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -115,8 +115,8 @@
<!-- cms optimization integration -->
<path refid="jgroups.jgroups.classpath"/>
<path refid="sun.servlet.classpath"/>
- <!-- jbpm integration -->
- <path refid="jbpm.jaronly.classpath"/>
+ <!-- jbpm integration -->
+ <path refid="jbpm.jaronly.classpath"/>
</path>
<path id="javac.classpath">
@@ -132,11 +132,11 @@
<path refid="jboss.portal-jems.classpath"/>
<path refid="jboss.portal-search.classpath"/>
<!-- fine grained security integration -->
- <path refid="jboss.portal-security.classpath"/>
+ <path refid="jboss.portal-security.classpath"/>
<!-- clustered testcases related -->
- <path refid="jboss.portal-api.classpath"/>
- <!-- workflow integration -->
- <path refid="jboss.portal-workflow.classpath"/>
+ <path refid="jboss.portal-api.classpath"/>
+ <!-- workflow integration -->
+ <path refid="jboss.portal-workflow.classpath"/>
</path>
@@ -202,7 +202,7 @@
<fileset dir="${jackrabbit.jackrabbit.lib}" includes="jackrabbit-index-filters.jar"/>
<fileset dir="${nekohtml.nekohtml.lib}" includes="nekohtml.jar"/>
-
+
<!-- cms optimization integration -->
<fileset dir="${jackrabbit.jackrabbit.lib}" includes="jackrabbit-core.jar"/>
<fileset dir="${jboss.cache.lib}" includes="jboss-cache.jar"/>
@@ -230,27 +230,27 @@
<fileset dir="${apache.collections.root}/lib" includes="commons-collections.jar"/>
<fileset dir="${apache.lucene.root}/lib" includes="lucene.jar"/>
- <!-- cms optimization integration -->
- <fileset dir="${jackrabbit.jackrabbit.lib}" includes="jackrabbit-core.jar"/>
+ <!-- cms optimization integration -->
+ <fileset dir="${jackrabbit.jackrabbit.lib}" includes="jackrabbit-core.jar"/>
<fileset dir="${jboss.cache.lib}" includes="jboss-cache.jar"/>
<fileset dir="${jgroups.jgroups.lib}" includes="jgroups.jar"/>
<fileset dir="${slf4j.slf4j.lib}" includes="slf4j-log4j12.jar"/>
- <!-- add the jboss-service.xml and hibernate configuration -->
- <fileset dir="${build.resources}/test/cms/clustering/sar"/>
-
- <!-- add dependencies -->
- <!--
- <fileset dir="${jboss.portal-core.lib}" includes="portal-core-lib.jar"/>
- <fileset dir="${jboss.portal/modules/common.lib}" includes="portal-common-lib.jar"/>
- <fileset dir="${jboss.portal-jems.lib}" includes="portal-jems-lib.jar"/>
- <fileset dir="${jboss.portal-server.lib}" includes="portal-server-lib.jar"/>
- <fileset dir="${jboss.portal-portlet.lib}" includes="portal-portlet-lib.jar"/>
- <fileset dir="${jboss.portlet-api.lib}" includes="portal-api-lib.jar"/>
- <fileset dir="${jboss.portal-security.lib}" includes="portal-security-lib.jar"/>
- -->
- <fileset dir="${jboss.portal-core-cms.lib}" includes="portal-core-cms-lib.jar"/>
+ <!-- add the jboss-service.xml and hibernate configuration -->
+ <fileset dir="${build.resources}/test/cms/clustering/sar"/>
+
+ <!-- add dependencies -->
+ <!--
+ <fileset dir="${jboss.portal-core.lib}" includes="portal-core-lib.jar"/>
+ <fileset dir="${jboss.portal/modules/common.lib}" includes="portal-common-lib.jar"/>
+ <fileset dir="${jboss.portal-jems.lib}" includes="portal-jems-lib.jar"/>
+ <fileset dir="${jboss.portal-server.lib}" includes="portal-server-lib.jar"/>
+ <fileset dir="${jboss.portal-portlet.lib}" includes="portal-portlet-lib.jar"/>
+ <fileset dir="${jboss.portlet-api.lib}" includes="portal-api-lib.jar"/>
+ <fileset dir="${jboss.portal-security.lib}" includes="portal-security-lib.jar"/>
+ -->
+ <fileset dir="${jboss.portal-core-cms.lib}" includes="portal-core-cms-lib.jar"/>
<fileset dir="${jboss.portal/modules/identity.lib}" includes="portal-identity-lib.jar"/>
<fileset dir="${jboss.portal/modules/identity.lib}" includes="portal-identity-sso-lib.jar"/>
<fileset dir="${jboss.portal-workflow.lib}" includes="portal-workflow-lib.jar"/>
@@ -274,23 +274,25 @@
<copy file="${jgroups.jgroups.lib}/jgroups.jar" todir="${jboss.home}/server/ports-01/lib" overwrite="true"/>
<copy file="${jboss.cache.lib}/jboss-cache.jar" todir="${jboss.home}/server/ports-02/lib" overwrite="true"/>
<copy file="${jgroups.jgroups.lib}/jgroups.jar" todir="${jboss.home}/server/ports-02/lib" overwrite="true"/>
-
- <!-- deploying the test datasources -->
- <copy file="${build.resources}/test/cms/clustering/datasource/ports01-ds.xml" todir="${jboss.home}/server/ports-01/deploy" overwrite="true"/>
- <copy file="${build.resources}/test/cms/clustering/datasource/ports02-ds.xml" todir="${jboss.home}/server/ports-02/deploy" overwrite="true"/>
+ <!-- deploying the test datasources -->
+ <copy file="${build.resources}/test/cms/clustering/datasource/ports01-ds.xml"
+ todir="${jboss.home}/server/ports-01/deploy" overwrite="true"/>
+ <copy file="${build.resources}/test/cms/clustering/datasource/ports02-ds.xml"
+ todir="${jboss.home}/server/ports-02/deploy" overwrite="true"/>
+
<!-- install test sars needed for the testsuite framework -->
<!--
<copy file="${jboss.portal-portlet.lib}/test.sar" todir="${jboss.home}/server/ports-01/deploy"/>
<copy file="${jboss.portal-portlet.lib}/test.sar" todir="${jboss.home}/server/ports-02/deploy"/>
-->
-
- <!--
- <copy file="${jboss.portal-test.lib}/portal-test.sar" todir="${jboss.home}/server/ports-01/deploy"/>
- <copy file="${jboss.portal-test.lib}/portal-test.sar" todir="${jboss.home}/server/ports-02/deploy"/>
- -->
-
- <copy file="${build.lib}/test-cms-cluster.sar" todir="${jboss.home}/server/ports-01/deploy"/>
+
+ <!--
+ <copy file="${jboss.portal-test.lib}/portal-test.sar" todir="${jboss.home}/server/ports-01/deploy"/>
+ <copy file="${jboss.portal-test.lib}/portal-test.sar" todir="${jboss.home}/server/ports-02/deploy"/>
+ -->
+
+ <copy file="${build.lib}/test-cms-cluster.sar" todir="${jboss.home}/server/ports-01/deploy"/>
<copy file="${build.lib}/test-cms-cluster.sar" todir="${jboss.home}/server/ports-02/deploy"/>
</target>
@@ -298,16 +300,16 @@
description="UnDeploy."
depends="output">
<!-- install test sars needed for the testsuite framework -->
- <!--
- <delete file="${jboss.home}/server/ports-01/deploy/test.sar"/>
- <delete file="${jboss.home}/server/ports-02/deploy/test.sar"/>
- -->
- <!--
- <delete file="${jboss.home}/server/ports-01/deploy/portal-test.sar"/>
- <delete file="${jboss.home}/server/ports-02/deploy/portal-test.sar"/>
- -->
-
- <delete file="${jboss.home}/server/ports-01/deploy/test-cms-cluster.sar"/>
+ <!--
+ <delete file="${jboss.home}/server/ports-01/deploy/test.sar"/>
+ <delete file="${jboss.home}/server/ports-02/deploy/test.sar"/>
+ -->
+ <!--
+ <delete file="${jboss.home}/server/ports-01/deploy/portal-test.sar"/>
+ <delete file="${jboss.home}/server/ports-02/deploy/portal-test.sar"/>
+ -->
+
+ <delete file="${jboss.home}/server/ports-01/deploy/test-cms-cluster.sar"/>
<delete file="${jboss.home}/server/ports-02/deploy/test-cms-cluster.sar"/>
</target>
@@ -409,11 +411,11 @@
<jvmarg value="-Xdebug"/>
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"/>
-->
- <!--
- prefer IPv4 when running test with jdk1.5 on linux.
- This supposedly is a java bug as per jgroups page.
- -->
- <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
+ <!--
+ prefer IPv4 when running test with jdk1.5 on linux.
+ This supposedly is a java bug as per jgroups page.
+ -->
+ <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
</x-sysproperty>
<x-test>
<!-- general cms setup related tests -->
@@ -439,15 +441,15 @@
<test todir="${test.reports}" name="org.jboss.portal.test.cms.commands.TestFolderCreate"/>
<test todir="${test.reports}" name="org.jboss.portal.test.cms.commands.TestFolderDelete"/>
<test todir="${test.reports}" name="org.jboss.portal.test.cms.commands.TestFolderGet"/>
- <test todir="${test.reports}" name="org.jboss.portal.test.cms.commands.TestFolderUpdate"/>
+ <test todir="${test.reports}" name="org.jboss.portal.test.cms.commands.TestFolderUpdate"/>
- <!-- cms fine grained security related tests -->
- <test todir="${test.reports}" name="org.jboss.portal.test.cms.security.TestReadAccess"/>
+ <!-- cms fine grained security related tests -->
+ <test todir="${test.reports}" name="org.jboss.portal.test.cms.security.TestReadAccess"/>
<test todir="${test.reports}" name="org.jboss.portal.test.cms.security.TestWriteAccess"/>
- <test todir="${test.reports}" name="org.jboss.portal.test.cms.security.TestManageAccess"/>
-
- <!-- cms workflow related tests -->
- <test todir="${test.reports}" name="org.jboss.portal.test.cms.workflow.TestApprovedPublish"/>
+ <test todir="${test.reports}" name="org.jboss.portal.test.cms.security.TestManageAccess"/>
+
+ <!-- cms workflow related tests -->
+ <test todir="${test.reports}" name="org.jboss.portal.test.cms.workflow.TestApprovedPublish"/>
<test todir="${test.reports}" name="org.jboss.portal.test.cms.workflow.TestDeniedPublish"/>
</x-test>
<x-classpath>
@@ -491,11 +493,11 @@
<path refid="nekohtml.nekohtml.classpath"/>
<path refid="jboss.cache.classpath"/>
<path refid="jgroups.jgroups.classpath"/>
- <!-- fine grained security integration -->
- <path refid="jboss.portal/modules/identity.classpath"/>
+ <!-- fine grained security integration -->
+ <path refid="jboss.portal/modules/identity.classpath"/>
<path refid="jboss.portal-security.classpath"/>
- <!-- workflow integration -->
- <path refid="jbpm.jaronly.classpath"/>
+ <!-- workflow integration -->
+ <path refid="jbpm.jaronly.classpath"/>
<path refid="beanshell.beanshell.classpath"/>
<path refid="jboss.portal-workflow.classpath"/>
</x-classpath>
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/build.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CMS.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CMS.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CMS.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -25,7 +25,7 @@
/**
* @author <a href="mailto:roy@jboss.org">Roy Russo</a>
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision$
+ * @version $Revision: 6112 $
*/
public interface CMS
{
@@ -37,10 +37,7 @@
/** Return default locale */
String getDefaultLocale();
-
- /**
- *
- * @return
- */
+
+ /** @return */
public boolean isWorkflowActivated();
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CMS.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CMSException.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CMSException.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CMSException.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -24,7 +24,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision$
+ * @version $Revision: 5806 $
*/
public class CMSException extends RuntimeException
{
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CMSException.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CMSInterceptor.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CMSMimeMappings.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CMSMimeMappings.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CMSMimeMappings.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,8 +22,8 @@
******************************************************************************/
package org.jboss.portal.cms;
+import org.jboss.portal.common.io.IOTools;
import org.jboss.portal.common.xml.XMLTools;
-import org.jboss.portal.common.io.IOTools;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CMSMimeMappings.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/Command.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/Command.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/Command.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -29,7 +29,7 @@
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
- * @version $Revision$
+ * @version $Revision: 5448 $
*/
public abstract class Command extends Invocation
{
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/Command.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CommandFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CommandFactory.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CommandFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,20 +22,20 @@
******************************************************************************/
package org.jboss.portal.cms;
-import java.io.InputStream;
-import java.util.List;
-import java.util.Locale;
-
import org.jboss.portal.cms.model.Content;
import org.jboss.portal.cms.model.File;
import org.jboss.portal.cms.model.Folder;
import org.jboss.portal.search.impl.jcr.JCRQuery;
+import java.io.InputStream;
+import java.util.List;
+import java.util.Locale;
+
/**
* Factory to create commands for the cms service.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision$
+ * @version $Revision: 8332 $
*/
public interface CommandFactory
{
@@ -85,7 +85,7 @@
Command createGetArchiveCommand(String sRootPath, String sLanguage);
- Command createSearchCommand(JCRQuery query);
-
+ Command createSearchCommand(JCRQuery query);
+
Command createMakeLiveVersionCommand(String filePath, String language, String version);
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/CommandFactory.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/CMSEntry.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/HibernateStore.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/HibernateStore.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/HibernateStore.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -32,9 +32,9 @@
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
+import org.jboss.logging.Logger;
import org.jboss.portal.cms.util.HibernateUtil;
import org.jboss.portal.common.io.IOTools;
-import org.jboss.logging.Logger;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/HibernateStore.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/HibernateStoreConstants.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/RepositoryEntry.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/VersionEntry.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/Base.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/HibernatePersistenceManager.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/HibernatePersistenceManager.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/HibernatePersistenceManager.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -41,16 +41,15 @@
import org.apache.jackrabbit.core.state.util.Serializer;
import org.apache.jackrabbit.core.value.BLOBFileValue;
import org.apache.jackrabbit.core.value.InternalValue;
-
import org.hibernate.Hibernate;
import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
+import org.jboss.logging.Logger;
import org.jboss.portal.cms.hibernate.HibernateStoreConstants;
import org.jboss.portal.common.io.IOTools;
-import org.jboss.logging.Logger;
import javax.jcr.PropertyType;
import java.io.ByteArrayOutputStream;
@@ -70,7 +69,7 @@
/** Logger instance */
private static Logger log = Logger
- .getLogger(HibernatePersistenceManager.class);
+ .getLogger(HibernatePersistenceManager.class);
protected static final String SCHEMA_OBJECT_PREFIX_VARIABLE = "${schemaObjectPrefix}";
@@ -121,10 +120,7 @@
/** file system where BLOB data is stored (if <code>externalBLOBs==true</code>) */
protected FileSystem blobFS;
- /**
- * BLOBStore that manages BLOB data in the file system (if
- * <code>externalBLOBs==true</code>)
- */
+ /** BLOBStore that manages BLOB data in the file system (if <code>externalBLOBs==true</code>) */
protected BLOBStore blobStore;
/** Creates a new <code>SimpleDbPersistenceManager</code> instance. */
@@ -138,7 +134,7 @@
// ---------------------------------------------------< PersistenceManager >
/**
- *
+ *
*/
public void init(PMContext context) throws Exception
{
@@ -150,30 +146,30 @@
// hibernateSessionFactory = HibernateUtil.getSessionFactory(jndiName);
org.jboss.portal.cms.hibernate.state.Tools.init(jndiName);
hibernateSessionFactory = org.jboss.portal.cms.hibernate.state.Tools
- .getSessionFactory();
+ .getSessionFactory();
nodeBinValSelect = "from " + schemaObjectPrefix
- + "BinVal where BINVAL_ID = ?";
+ + "BinVal where BINVAL_ID = ?";
nodeStateSelect = "from " + schemaObjectPrefix + "Node where NODE_ID = ?";
nodeStateSelectData = "select data from " + schemaObjectPrefix
- + "Node where NODE_ID = ?";
+ + "Node where NODE_ID = ?";
nodeStateSelectExist = "select 1 from " + schemaObjectPrefix
- + "Node where NODE_ID = ?";
+ + "Node where NODE_ID = ?";
propertyStateSelect = "from " + schemaObjectPrefix
- + "Prop where PROP_ID = ?";
+ + "Prop where PROP_ID = ?";
propertyStateSelectData = "select data from " + schemaObjectPrefix
- + "Prop where PROP_ID = ?";
+ + "Prop where PROP_ID = ?";
propertyStateSelectExist = "select 1 from " + schemaObjectPrefix
- + "Prop where PROP_ID = ?";
+ + "Prop where PROP_ID = ?";
nodeReferenceSelect = "from " + schemaObjectPrefix
- + "Refs where NODE_ID = ?";
+ + "Refs where NODE_ID = ?";
nodeReferenceSelectData = "select data from " + schemaObjectPrefix
- + "Refs where NODE_ID = ?";
+ + "Refs where NODE_ID = ?";
nodeReferenceSelectExist = "select 1 from " + schemaObjectPrefix
- + "Refs where NODE_ID = ?";
+ + "Refs where NODE_ID = ?";
if (externalBLOBs)
{
@@ -195,11 +191,11 @@
blobStore = new DbBLOBStore();
blobSelect = "from " + schemaObjectPrefix
- + "BinVal where BINVAL_ID = ?";
+ + "BinVal where BINVAL_ID = ?";
blobSelectData = "select data from " + schemaObjectPrefix
- + "BinVal where BINVAL_ID = ?";
+ + "BinVal where BINVAL_ID = ?";
blobSelectExist = "select 1 from " + schemaObjectPrefix
- + "BinVal where BINVAL_ID = ?";
+ + "BinVal where BINVAL_ID = ?";
}
initialized = true;
@@ -208,7 +204,7 @@
// ---------------------------------------------------< PersistenceManager >
/**
- *
+ *
*/
public void close() throws Exception
{
@@ -322,46 +318,46 @@
Iterator iter = changeLog.deletedStates();
while (iter.hasNext())
{
- ItemState state = (ItemState) iter.next();
+ ItemState state = (ItemState)iter.next();
if (state.isNode())
{
- destroy((NodeState) state);
+ destroy((NodeState)state);
}
else
{
- destroy((PropertyState) state);
+ destroy((PropertyState)state);
}
}
iter = changeLog.addedStates();
while (iter.hasNext())
{
- ItemState state = (ItemState) iter.next();
+ ItemState state = (ItemState)iter.next();
if (state.isNode())
{
- store((NodeState) state);
+ store((NodeState)state);
}
else
{
- store((PropertyState) state);
+ store((PropertyState)state);
}
}
iter = changeLog.modifiedStates();
while (iter.hasNext())
{
- ItemState state = (ItemState) iter.next();
+ ItemState state = (ItemState)iter.next();
if (state.isNode())
{
- update((NodeState) state);
+ update((NodeState)state);
}
else
{
- update((PropertyState) state);
+ update((PropertyState)state);
}
}
iter = changeLog.modifiedRefs();
while (iter.hasNext())
{
- NodeReferences refs = (NodeReferences) iter.next();
+ NodeReferences refs = (NodeReferences)iter.next();
if (refs.hasReferences())
{
store(refs);
@@ -377,7 +373,7 @@
}
public NodeState load(NodeId id) throws NoSuchItemStateException,
- ItemStateException
+ ItemStateException
{
if (!initialized)
{
@@ -391,13 +387,13 @@
try
{
List rs = session.createQuery(nodeStateSelectData).setString(0,
- id.toString()).list();
+ id.toString()).list();
Iterator iter = rs.iterator();
// java.sql.Blob blob = (java.sql.Blob) iter.next();
// in = blob.getBinaryStream();
- byte[] data = (byte[]) iter.next();
+ byte[] data = (byte[])iter.next();
in = new java.io.ByteArrayInputStream(data);
NodeState state = createNew(id);
@@ -411,7 +407,7 @@
tx.rollback();
if (e instanceof NoSuchItemStateException)
{
- throw (NoSuchItemStateException) e;
+ throw (NoSuchItemStateException)e;
}
String msg = "failed to read node state: " + id;
log.error(msg, e);
@@ -424,7 +420,7 @@
}
public PropertyState load(PropertyId id) throws NoSuchItemStateException,
- ItemStateException
+ ItemStateException
{
if (!initialized)
{
@@ -438,12 +434,12 @@
try
{
List rs = session.createQuery(propertyStateSelectData).setCacheable(
- true).setString(0, id.toString()).list();
+ true).setString(0, id.toString()).list();
Iterator iter = rs.iterator();
// java.sql.Blob blob = (java.sql.Blob) iter.next();
// in = blob.getBinaryStream();
- byte[] data = (byte[]) iter.next();
+ byte[] data = (byte[])iter.next();
in = new java.io.ByteArrayInputStream(data);
PropertyState state = createNew(id);
@@ -457,7 +453,7 @@
tx.rollback();
if (e instanceof NoSuchItemStateException)
{
- throw (NoSuchItemStateException) e;
+ throw (NoSuchItemStateException)e;
}
String msg = "failed to read property state: " + id.toString();
log.error(msg, e);
@@ -470,10 +466,10 @@
}
/**
- *
+ *
*/
public NodeReferences load(NodeReferencesId targetId)
- throws NoSuchItemStateException, ItemStateException
+ throws NoSuchItemStateException, ItemStateException
{
if (!initialized)
{
@@ -486,13 +482,13 @@
try
{
List rs = session.createQuery(nodeReferenceSelectData).setCacheable(
- true).setString(0, targetId.toString()).list();
+ true).setString(0, targetId.toString()).list();
Iterator iter = rs.iterator();
if (!iter.hasNext())
{
throw new NoSuchItemStateException(targetId.toString());
}
- byte[] data = (byte[]) iter.next();
+ byte[] data = (byte[])iter.next();
in = new java.io.ByteArrayInputStream(data);
NodeReferences refs = new NodeReferences(targetId);
@@ -506,7 +502,7 @@
tx.rollback();
if (e instanceof NoSuchItemStateException)
{
- throw (NoSuchItemStateException) e;
+ throw (NoSuchItemStateException)e;
}
String msg = "failed to read references: " + targetId;
log.error(msg, e);
@@ -533,18 +529,18 @@
{
Serializer.serialize(state, out);
if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
VersionNode versionNode = new VersionNode(state.getId().toString(),
- out.toByteArray());
+ out.toByteArray());
session.save(versionNode);
}
else if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
WSPNode wspNode = new WSPNode(state.getId().toString(), out
- .toByteArray());
+ .toByteArray());
session.save(wspNode);
}
}
@@ -589,19 +585,19 @@
{
Serializer.serialize(refs, out);
if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
VersionRefs versionRefs = new VersionRefs(refs.getTargetId()
- .toString(), out.toByteArray());
+ .toString(), out.toByteArray());
session.save(versionRefs);
}
else if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
WSPRefs wspRefs = new WSPRefs(refs.getTargetId().toString(), out
- .toByteArray());
+ .toByteArray());
session.save(wspRefs);
}
}
@@ -626,11 +622,9 @@
}
/**
- * <p/> This method uses shared <code>PreparedStatement</code>s which must
- * be executed strictly sequentially. Because this method synchronizes on the
- * persistence manager instance there is no need to synchronize on the shared
- * statement. If the method would not be sychronized the shared statements
- * would have to be synchronized.
+ * <p/> This method uses shared <code>PreparedStatement</code>s which must be executed strictly sequentially. Because
+ * this method synchronizes on the persistence manager instance there is no need to synchronize on the shared
+ * statement. If the method would not be sychronized the shared statements would have to be synchronized.
*/
// public synchronized void store(PropertyState state)
private void store(PropertyState state) throws ItemStateException
@@ -649,17 +643,17 @@
Serializer.serialize(state, out, blobStore);
if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
VersionProp versionProp = new VersionProp(state.getId().toString(),
- out.toByteArray());
+ out.toByteArray());
session.save(versionProp);
}
else if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
WSPProp wspProp = new WSPProp(state.getId().toString(), out
- .toByteArray());
+ .toByteArray());
session.save(wspProp);
}
}
@@ -700,10 +694,10 @@
Query query = session.createQuery(nodeStateSelect).setCacheable(true);
if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
query.setString(0, state.getId().toString());
- VersionNode versionNode = (VersionNode) query.uniqueResult();
+ VersionNode versionNode = (VersionNode)query.uniqueResult();
if (versionNode == null)
{
throw new Exception("No such Node: " + state.getId());
@@ -711,10 +705,10 @@
versionNode.setData(out.toByteArray());
}
else if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
query.setString(0, state.getId().toString());
- WSPNode wspNode = (WSPNode) query.uniqueResult();
+ WSPNode wspNode = (WSPNode)query.uniqueResult();
if (wspNode == null)
{
throw new Exception("No such Node: " + state.getId());
@@ -758,12 +752,12 @@
Serializer.serialize(state, out, blobStore);
Query query = session.createQuery(propertyStateSelect).setCacheable(
- true);
+ true);
if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
query.setString(0, state.getId().toString());
- VersionProp versionProp = (VersionProp) query.uniqueResult();
+ VersionProp versionProp = (VersionProp)query.uniqueResult();
if (versionProp == null)
{
throw new Exception("No such Property: " + state.getId());
@@ -771,10 +765,10 @@
versionProp.setData(out.toByteArray());
}
else if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
query.setString(0, state.getId().toString());
- WSPProp wspProp = (WSPProp) query.uniqueResult();
+ WSPProp wspProp = (WSPProp)query.uniqueResult();
if (wspProp == null)
{
throw new Exception("No such Property: " + state.getId());
@@ -814,7 +808,7 @@
try
{
Query query = session.createQuery(nodeStateSelect).setCacheable(true)
- .setString(0, state.getId().toString());
+ .setString(0, state.getId().toString());
Object result = query.uniqueResult();
if (result != null)
{
@@ -848,12 +842,12 @@
{
if (val.getType() == PropertyType.BINARY)
{
- BLOBFileValue blobVal = (BLOBFileValue) val.internalValue();
+ BLOBFileValue blobVal = (BLOBFileValue)val.internalValue();
// delete internal resource representation of BLOB value
blobVal.delete(true);
// also remove from BLOBStore
String blobId = blobStore.createId(
- (PropertyId) state.getId(), i);
+ (PropertyId)state.getId(), i);
try
{
blobStore.remove(blobId);
@@ -873,7 +867,7 @@
try
{
Query query = session.createQuery(propertyStateSelect).setCacheable(
- true).setString(0, state.getId().toString());
+ true).setString(0, state.getId().toString());
Object result = query.uniqueResult();
if (result != null)
{
@@ -891,7 +885,7 @@
}
/**
- *
+ *
*/
private void destroy(NodeReferences refs) throws ItemStateException
{
@@ -904,7 +898,7 @@
try
{
Query query = session.createQuery(nodeReferenceSelect).setCacheable(
- true).setString(0, refs.getTargetId().toString());
+ true).setString(0, refs.getTargetId().toString());
List list = query.list();
if (list == null)
@@ -932,7 +926,7 @@
}
/**
- *
+ *
*/
public boolean exists(NodeId id) throws ItemStateException
{
@@ -940,7 +934,7 @@
}
/**
- *
+ *
*/
protected boolean exists(String blobid) throws ItemStateException
{
@@ -948,7 +942,7 @@
}
/**
- *
+ *
*/
public boolean exists(PropertyId id) throws ItemStateException
{
@@ -956,7 +950,7 @@
}
/**
- *
+ *
*/
public boolean exists(NodeReferencesId targetId) throws ItemStateException
{
@@ -974,7 +968,7 @@
try
{
List rs = session.createQuery(query).setCacheable(true).setString(0,
- id).list();
+ id).list();
Iterator iter = rs.iterator();
return iter.hasNext();
}
@@ -1009,7 +1003,7 @@
{
/**
- *
+ *
*/
public String createId(PropertyId id, int index)
{
@@ -1023,7 +1017,7 @@
}
/**
- *
+ *
*/
public InputStream get(String blobId) throws Exception
{
@@ -1032,7 +1026,7 @@
{
List rs = session.createQuery(blobSelectData).setString(0, blobId).list();
Iterator iter = rs.iterator();
- java.sql.Blob blob = (java.sql.Blob) iter.next();
+ java.sql.Blob blob = (java.sql.Blob)iter.next();
InputStream is = blob.getBinaryStream();
return is;
}
@@ -1040,7 +1034,7 @@
{
if (e instanceof NoSuchItemStateException)
{
- throw (NoSuchItemStateException) e;
+ throw (NoSuchItemStateException)e;
}
String msg = "failed to read binary data: " + blobId;
log.error(msg, e);
@@ -1049,10 +1043,10 @@
}
/**
- *
+ *
*/
public void put(String blobId, InputStream in, long size)
- throws Exception
+ throws Exception
{
boolean update = exists(blobId);
@@ -1065,11 +1059,11 @@
Query query = session.createQuery(blobSelect);
if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
query.setString(0, blobId);
- VersionBinVal versionNode = (VersionBinVal) query
- .uniqueResult();
+ VersionBinVal versionNode = (VersionBinVal)query
+ .uniqueResult();
if (versionNode == null)
{
throw new Exception("No such Node: " + blobId);
@@ -1078,10 +1072,10 @@
versionNode.setData(Hibernate.createBlob(in));
}
else if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
query.setString(0, blobId);
- WSPBinVal wspNode = (WSPBinVal) query.uniqueResult();
+ WSPBinVal wspNode = (WSPBinVal)query.uniqueResult();
if (wspNode == null)
{
throw new Exception("No such Node: " + blobId);
@@ -1108,17 +1102,17 @@
{
if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
VersionBinVal versionNode = new VersionBinVal(blobId,
- Hibernate.createBlob(in));
+ Hibernate.createBlob(in));
session.save(versionNode);
}
else if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
WSPBinVal wspNode = new WSPBinVal(blobId, Hibernate
- .createBlob(in));
+ .createBlob(in));
session.save(wspNode);
}
}
@@ -1136,7 +1130,7 @@
}
/**
- *
+ *
*/
// public synchronized boolean remove(String blobId) throws Exception
public boolean remove(String blobId) throws Exception
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/HibernatePersistenceManager.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/JBossCachePersistenceManager.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/JBossCachePersistenceManager.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/JBossCachePersistenceManager.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -41,7 +41,6 @@
import org.apache.jackrabbit.core.state.util.Serializer;
import org.apache.jackrabbit.core.value.BLOBFileValue;
import org.apache.jackrabbit.core.value.InternalValue;
-
import org.hibernate.Hibernate;
import org.hibernate.Query;
import org.hibernate.Session;
@@ -50,15 +49,14 @@
import org.jboss.cache.PropertyConfigurator;
import org.jboss.cache.TreeCache;
import org.jboss.cache.TreeCacheMBean;
+import org.jboss.logging.Logger;
import org.jboss.mx.util.MBeanProxyExt;
import org.jboss.mx.util.MBeanServerLocator;
import org.jboss.portal.cms.hibernate.HibernateStoreConstants;
import org.jboss.portal.common.io.IOTools;
-import org.jboss.logging.Logger;
import javax.jcr.PropertyType;
import javax.management.MBeanServer;
-
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
@@ -77,7 +75,7 @@
{
/** Logger instance */
private static Logger log = Logger
- .getLogger(JBossCachePersistenceManager.class);
+ .getLogger(JBossCachePersistenceManager.class);
protected static final String SCHEMA_OBJECT_PREFIX_VARIABLE = "${schemaObjectPrefix}";
@@ -105,27 +103,22 @@
/** file system where BLOB data is stored (if <code>externalBLOBs==true</code>) */
protected FileSystem blobFS = null;
- /**
- * BLOBStore that manages BLOB data in the file system (if
- * <code>externalBLOBs==true</code>)
- */
+ /** BLOBStore that manages BLOB data in the file system (if <code>externalBLOBs==true</code>) */
protected BLOBStore blobStore = null;
/**
- * JackRabbit initalizes multiple instances of the Persistence Manager to
- * perform its operations. A static TreeCache is used to make sure there is
- * only once instance of the cache per VM where the CMS node runs.
- *
- * One side effect of using a static instance is proper cleanup which is
- * addressed in the close method
+ * JackRabbit initalizes multiple instances of the Persistence Manager to perform its operations. A static TreeCache
+ * is used to make sure there is only once instance of the cache per VM where the CMS node runs.
+ * <p/>
+ * One side effect of using a static instance is proper cleanup which is addressed in the close method
*/
private static TreeCacheMBean pmCache = null;
private static boolean preloaded = false;
/**
- *
- *
+ *
+ *
*/
public JBossCachePersistenceManager()
{
@@ -181,7 +174,7 @@
}
nodeBinValSelect = "from " + schemaObjectPrefix
- + "BinVal where BINVAL_ID = ?";
+ + "BinVal where BINVAL_ID = ?";
if (externalBLOBs)
{
@@ -203,11 +196,11 @@
blobStore = new DbBLOBStore();
blobSelect = "from " + schemaObjectPrefix
- + "BinVal where BINVAL_ID = ?";
+ + "BinVal where BINVAL_ID = ?";
blobSelectData = "select data from " + schemaObjectPrefix
- + "BinVal where BINVAL_ID = ?";
+ + "BinVal where BINVAL_ID = ?";
blobSelectExist = "select 1 from " + schemaObjectPrefix
- + "BinVal where BINVAL_ID = ?";
+ + "BinVal where BINVAL_ID = ?";
}
initialized = true;
@@ -234,9 +227,9 @@
try
{
MBeanServer server = MBeanServerLocator.locateJBoss();
- pmCache = (TreeCacheMBean) MBeanProxyExt.create(
- TreeCacheMBean.class, "cms.pm.cache:service=TreeCache",
- server);
+ pmCache = (TreeCacheMBean)MBeanProxyExt.create(
+ TreeCacheMBean.class, "cms.pm.cache:service=TreeCache",
+ server);
}
catch (Exception e)
{
@@ -255,7 +248,7 @@
// configure the cache
PropertyConfigurator configurator = new PropertyConfigurator();
is = JBossCachePersistenceManager.class.getClassLoader()
- .getResourceAsStream("pm-cache.xml");
+ .getResourceAsStream("pm-cache.xml");
configurator.configure(pmCache, is);
pmCache.createService();
@@ -287,8 +280,8 @@
}
/**
- *
- *
+ *
+ *
*/
private static synchronized void loadProperties() throws Exception
{
@@ -298,25 +291,25 @@
}
log
- .info("Pre-loading the PersistenceManager Cache in the background (started).......");
+ .info("Pre-loading the PersistenceManager Cache in the background (started).......");
CacheLoader wspProp = new CacheLoader(CacheLoader.wspProp,
- PortalCMSCacheLoader.WSP_PROP_NODE);
+ PortalCMSCacheLoader.WSP_PROP_NODE);
Thread wspPropLoader = new Thread(wspProp);
CacheLoader versionProp = new CacheLoader(CacheLoader.versionProp,
- PortalCMSCacheLoader.VERSION_PROP_NODE);
+ PortalCMSCacheLoader.VERSION_PROP_NODE);
Thread versionPropLoader = new Thread(versionProp);
CacheLoader wspNode = new CacheLoader(CacheLoader.wspNode,
- PortalCMSCacheLoader.WSP_NODE_NODE);
+ PortalCMSCacheLoader.WSP_NODE_NODE);
Thread wspNodeLoader = new Thread(wspNode);
CacheLoader versionNode = new CacheLoader(CacheLoader.versionNode,
- PortalCMSCacheLoader.VERSION_NODE_NODE);
+ PortalCMSCacheLoader.VERSION_NODE_NODE);
Thread versionNodeLoader = new Thread(versionNode);
CacheLoader wspRef = new CacheLoader(CacheLoader.wspRef,
- PortalCMSCacheLoader.WSP_REF_NODE);
+ PortalCMSCacheLoader.WSP_REF_NODE);
Thread wspRefLoader = new Thread(wspRef);
CacheLoader versionRef = new CacheLoader(CacheLoader.versionRef,
- PortalCMSCacheLoader.VERSION_REF_NODE);
+ PortalCMSCacheLoader.VERSION_REF_NODE);
Thread versionRefLoader = new Thread(versionRef);
wspPropLoader.start();
@@ -331,9 +324,9 @@
// of the CMS...don't allow the usage of CMS till this operation is
// completed.
while (!wspProp.done || !versionProp.done || !wspNode.done
- || !versionNode.done || !wspRef.done || !versionRef.done)
+ || !versionNode.done || !wspRef.done || !versionRef.done)
{
- Thread.currentThread().sleep((long) 2000);
+ Thread.currentThread().sleep((long)2000);
}
JBossCachePersistenceManager.preloaded = true;
@@ -342,7 +335,7 @@
private static class CacheLoader implements Runnable
{
/**
- *
+ *
*/
private static final String wspProp = "from org.jboss.portal.cms.hibernate.state.WSPProp";
@@ -357,7 +350,7 @@
private static final String versionRef = "from org.jboss.portal.cms.hibernate.state.VersionRefs";
/**
- *
+ *
*/
private String nodeQuery = null;
@@ -382,63 +375,63 @@
{
for (Iterator itr = rs.iterator(); itr.hasNext();)
{
- Base cour = (Base) itr.next();
+ Base cour = (Base)itr.next();
cour.disableCacheItemPersistence();
if (cour instanceof WSPProp)
{
String node = this.nodePrefix
- + "/"
- + PortalCMSCacheLoader
- .parseNodeName(((WSPProp) cour).getPropId());
- pmCache.put(node, ((WSPProp) cour).getPropId(), cour);
+ + "/"
+ + PortalCMSCacheLoader
+ .parseNodeName(((WSPProp)cour).getPropId());
+ pmCache.put(node, ((WSPProp)cour).getPropId(), cour);
}
else if (cour instanceof VersionProp)
{
String node = this.nodePrefix
- + "/"
- + PortalCMSCacheLoader
- .parseNodeName(((VersionProp) cour)
- .getPropId());
- pmCache.put(node, ((VersionProp) cour).getPropId(), cour);
+ + "/"
+ + PortalCMSCacheLoader
+ .parseNodeName(((VersionProp)cour)
+ .getPropId());
+ pmCache.put(node, ((VersionProp)cour).getPropId(), cour);
}
else if (cour instanceof WSPNode)
{
String node = this.nodePrefix
- + "/"
- + PortalCMSCacheLoader
- .parseNodeName(((WSPNode) cour).getNodeId());
- pmCache.put(node, ((WSPNode) cour).getNodeId(), cour);
+ + "/"
+ + PortalCMSCacheLoader
+ .parseNodeName(((WSPNode)cour).getNodeId());
+ pmCache.put(node, ((WSPNode)cour).getNodeId(), cour);
}
else if (cour instanceof VersionNode)
{
String node = this.nodePrefix
- + "/"
- + PortalCMSCacheLoader
- .parseNodeName(((VersionNode) cour)
- .getNodeId());
- pmCache.put(node, ((VersionNode) cour).getNodeId(), cour);
+ + "/"
+ + PortalCMSCacheLoader
+ .parseNodeName(((VersionNode)cour)
+ .getNodeId());
+ pmCache.put(node, ((VersionNode)cour).getNodeId(), cour);
}
else if (cour instanceof WSPRefs)
{
String node = this.nodePrefix
- + "/"
- + PortalCMSCacheLoader
- .parseNodeName(((WSPRefs) cour).getRefId());
- pmCache.put(node, ((WSPRefs) cour).getRefId(), cour);
+ + "/"
+ + PortalCMSCacheLoader
+ .parseNodeName(((WSPRefs)cour).getRefId());
+ pmCache.put(node, ((WSPRefs)cour).getRefId(), cour);
}
else if (cour instanceof VersionRefs)
{
String node = this.nodePrefix
- + "/"
- + PortalCMSCacheLoader
- .parseNodeName(((VersionRefs) cour).getRefId());
- pmCache.put(node, ((VersionRefs) cour).getRefId(), cour);
+ + "/"
+ + PortalCMSCacheLoader
+ .parseNodeName(((VersionRefs)cour).getRefId());
+ pmCache.put(node, ((VersionRefs)cour).getRefId(), cour);
}
}
}
log.info("Pre-loading the PersistenceManager Cache for"
- + this.nodePrefix + " (finished).......");
+ + this.nodePrefix + " (finished).......");
}
catch (CacheException ce)
{
@@ -464,24 +457,24 @@
boolean exists = false;
String nodeId = node.toString();
if (this.schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
Object o = this.pmCache.get(PortalCMSCacheLoader.WSP_NODE_NODE
- + "/" + PortalCMSCacheLoader.parseNodeName(nodeId), nodeId);
+ + "/" + PortalCMSCacheLoader.parseNodeName(nodeId), nodeId);
if (o != null)
{
exists = true;
- }
+ }
}
else if (this.schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
Object o = this.pmCache.get(PortalCMSCacheLoader.VERSION_NODE_NODE
- + "/" + PortalCMSCacheLoader.parseNodeName(nodeId), nodeId);
+ + "/" + PortalCMSCacheLoader.parseNodeName(nodeId), nodeId);
if (o != null)
{
exists = true;
- }
+ }
}
return exists;
}
@@ -495,7 +488,7 @@
*
*/
public NodeState load(NodeId node) throws NoSuchItemStateException,
- ItemStateException
+ ItemStateException
{
try
{
@@ -505,18 +498,18 @@
// get the nodeData
byte[] nodeData = null;
if (this.schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
Object o = this.pmCache.get(PortalCMSCacheLoader.WSP_NODE_NODE
- + "/" + PortalCMSCacheLoader.parseNodeName(nodeId), nodeId);
- nodeData = ((WSPNode) o).getData();
+ + "/" + PortalCMSCacheLoader.parseNodeName(nodeId), nodeId);
+ nodeData = ((WSPNode)o).getData();
}
else if (this.schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
Object o = this.pmCache.get(PortalCMSCacheLoader.VERSION_NODE_NODE
- + "/" + PortalCMSCacheLoader.parseNodeName(nodeId), nodeId);
- nodeData = ((VersionNode) o).getData();
+ + "/" + PortalCMSCacheLoader.parseNodeName(nodeId), nodeId);
+ nodeData = ((VersionNode)o).getData();
}
// parse propertyData into propertyState
@@ -544,10 +537,10 @@
{
if (e instanceof NoSuchItemStateException)
{
- throw (NoSuchItemStateException) e;
+ throw (NoSuchItemStateException)e;
}
String msg = "failed to read node state from cache: "
- + node.toString();
+ + node.toString();
log.error(msg, e);
throw new ItemStateException(msg, e);
}
@@ -570,8 +563,8 @@
}
/**
- *
- *
+ *
+ *
*/
private void store(NodeState state) throws ItemStateException
{
@@ -585,28 +578,28 @@
{
Serializer.serialize(state, out);
if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
VersionNode versionNode = new VersionNode(state.getId().toString(),
- out.toByteArray());
+ out.toByteArray());
// place this in the cache
versionNode.resetCacheItemPersistence();
String cacheNode = PortalCMSCacheLoader.VERSION_NODE_NODE + "/"
- + PortalCMSCacheLoader.parseNodeName(versionNode.getNodeId());
+ + PortalCMSCacheLoader.parseNodeName(versionNode.getNodeId());
pmCache.put(cacheNode, versionNode.getNodeId(), versionNode);
}
else if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
WSPNode wspNode = new WSPNode(state.getId().toString(), out
- .toByteArray());
+ .toByteArray());
// place this in the cache
wspNode.resetCacheItemPersistence();
String cacheNode = PortalCMSCacheLoader.WSP_NODE_NODE + "/"
- + PortalCMSCacheLoader.parseNodeName(wspNode.getNodeId());
+ + PortalCMSCacheLoader.parseNodeName(wspNode.getNodeId());
pmCache.put(cacheNode, wspNode.getNodeId(), wspNode);
}
}
@@ -630,8 +623,8 @@
}
/**
- *
- *
+ *
+ *
*/
private void update(NodeState state) throws ItemStateException
{
@@ -647,11 +640,11 @@
String id = state.getId().toString();
String cacheNodeName = PortalCMSCacheLoader.parseNodeName(id);
if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
- VersionNode versionNode = (VersionNode) pmCache.get(
- PortalCMSCacheLoader.VERSION_NODE_NODE + "/" + cacheNodeName,
- id);
+ VersionNode versionNode = (VersionNode)pmCache.get(
+ PortalCMSCacheLoader.VERSION_NODE_NODE + "/" + cacheNodeName,
+ id);
if (versionNode == null)
{
throw new Exception("No such Node: " + state.getId());
@@ -659,13 +652,13 @@
versionNode.setData(out.toByteArray());
versionNode.resetCacheItemPersistence();
pmCache.put(PortalCMSCacheLoader.VERSION_NODE_NODE + "/"
- + cacheNodeName, id, versionNode);
+ + cacheNodeName, id, versionNode);
}
else if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
- WSPNode wspNode = (WSPNode) pmCache.get(
- PortalCMSCacheLoader.WSP_NODE_NODE + "/" + cacheNodeName, id);
+ WSPNode wspNode = (WSPNode)pmCache.get(
+ PortalCMSCacheLoader.WSP_NODE_NODE + "/" + cacheNodeName, id);
if (wspNode == null)
{
throw new Exception("No such Node: " + state.getId());
@@ -673,7 +666,7 @@
wspNode.setData(out.toByteArray());
wspNode.resetCacheItemPersistence();
pmCache.put(PortalCMSCacheLoader.WSP_NODE_NODE + "/"
- + cacheNodeName, id, wspNode);
+ + cacheNodeName, id, wspNode);
}
}
catch (Exception e)
@@ -708,16 +701,16 @@
try
{
if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
pmCache.remove(PortalCMSCacheLoader.VERSION_NODE_NODE + "/"
- + cacheNodeName, id);
+ + cacheNodeName, id);
}
else if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
pmCache.remove(PortalCMSCacheLoader.WSP_NODE_NODE + "/"
- + cacheNodeName, id);
+ + cacheNodeName, id);
}
}
catch (Exception e)
@@ -740,24 +733,24 @@
boolean exists = false;
String propId = property.toString();
if (this.schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
Object o = this.pmCache.get(PortalCMSCacheLoader.WSP_PROP_NODE
- + "/" + PortalCMSCacheLoader.parseNodeName(propId), propId);
+ + "/" + PortalCMSCacheLoader.parseNodeName(propId), propId);
if (o != null)
{
exists = true;
- }
+ }
}
else if (this.schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
Object o = this.pmCache.get(PortalCMSCacheLoader.VERSION_PROP_NODE
- + "/" + PortalCMSCacheLoader.parseNodeName(propId), propId);
+ + "/" + PortalCMSCacheLoader.parseNodeName(propId), propId);
if (o != null)
{
exists = true;
- }
+ }
}
return exists;
}
@@ -771,7 +764,7 @@
*
*/
public PropertyState load(PropertyId property)
- throws NoSuchItemStateException, ItemStateException
+ throws NoSuchItemStateException, ItemStateException
{
try
{
@@ -781,18 +774,18 @@
// get the propertyData
byte[] propertyData = null;
if (this.schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
Object o = this.pmCache.get(PortalCMSCacheLoader.WSP_PROP_NODE
- + "/" + PortalCMSCacheLoader.parseNodeName(propId), propId);
- propertyData = ((WSPProp) o).getData();
+ + "/" + PortalCMSCacheLoader.parseNodeName(propId), propId);
+ propertyData = ((WSPProp)o).getData();
}
else if (this.schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
Object o = this.pmCache.get(PortalCMSCacheLoader.VERSION_PROP_NODE
- + "/" + PortalCMSCacheLoader.parseNodeName(propId), propId);
- propertyData = ((VersionProp) o).getData();
+ + "/" + PortalCMSCacheLoader.parseNodeName(propId), propId);
+ propertyData = ((VersionProp)o).getData();
}
// parse propertyData into propertyState
@@ -820,10 +813,10 @@
{
if (e instanceof NoSuchItemStateException)
{
- throw (NoSuchItemStateException) e;
+ throw (NoSuchItemStateException)e;
}
String msg = "failed to read property state from cache: "
- + property.toString();
+ + property.toString();
log.error(msg, e);
throw new ItemStateException(msg, e);
}
@@ -846,7 +839,7 @@
}
/**
- *
+ *
*/
private void store(PropertyState state) throws ItemStateException
{
@@ -860,28 +853,28 @@
{
Serializer.serialize(state, out, blobStore);
if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
VersionProp versionProp = new VersionProp(state.getId().toString(),
- out.toByteArray());
+ out.toByteArray());
// place this in the cache
versionProp.resetCacheItemPersistence();
String cacheNode = PortalCMSCacheLoader.VERSION_PROP_NODE + "/"
- + PortalCMSCacheLoader.parseNodeName(versionProp.getPropId());
+ + PortalCMSCacheLoader.parseNodeName(versionProp.getPropId());
pmCache.put(cacheNode, versionProp.getPropId(), versionProp);
}
else if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
WSPProp wspProp = new WSPProp(state.getId().toString(), out
- .toByteArray());
+ .toByteArray());
// place this in the cache
wspProp.resetCacheItemPersistence();
String cacheNode = PortalCMSCacheLoader.WSP_PROP_NODE + "/"
- + PortalCMSCacheLoader.parseNodeName(wspProp.getPropId());
+ + PortalCMSCacheLoader.parseNodeName(wspProp.getPropId());
pmCache.put(cacheNode, wspProp.getPropId(), wspProp);
}
}
@@ -905,8 +898,8 @@
}
/**
- *
- *
+ *
+ *
*/
private void update(PropertyState state) throws ItemStateException
{
@@ -922,11 +915,11 @@
String id = state.getId().toString();
String cacheNodeName = PortalCMSCacheLoader.parseNodeName(id);
if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
- VersionProp versionProp = (VersionProp) pmCache.get(
- PortalCMSCacheLoader.VERSION_PROP_NODE + "/" + cacheNodeName,
- id);
+ VersionProp versionProp = (VersionProp)pmCache.get(
+ PortalCMSCacheLoader.VERSION_PROP_NODE + "/" + cacheNodeName,
+ id);
if (versionProp == null)
{
throw new Exception("No such Property: " + state.getId());
@@ -934,13 +927,13 @@
versionProp.setData(out.toByteArray());
versionProp.resetCacheItemPersistence();
pmCache.put(PortalCMSCacheLoader.VERSION_PROP_NODE + "/"
- + cacheNodeName, id, versionProp);
+ + cacheNodeName, id, versionProp);
}
else if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
- WSPProp wspProp = (WSPProp) pmCache.get(
- PortalCMSCacheLoader.WSP_PROP_NODE + "/" + cacheNodeName, id);
+ WSPProp wspProp = (WSPProp)pmCache.get(
+ PortalCMSCacheLoader.WSP_PROP_NODE + "/" + cacheNodeName, id);
if (wspProp == null)
{
throw new Exception("No such Property: " + state.getId());
@@ -948,7 +941,7 @@
wspProp.setData(out.toByteArray());
wspProp.resetCacheItemPersistence();
pmCache.put(PortalCMSCacheLoader.WSP_PROP_NODE + "/"
- + cacheNodeName, id, wspProp);
+ + cacheNodeName, id, wspProp);
}
}
catch (Exception e)
@@ -989,12 +982,12 @@
{
if (val.getType() == PropertyType.BINARY)
{
- BLOBFileValue blobVal = (BLOBFileValue) val.internalValue();
+ BLOBFileValue blobVal = (BLOBFileValue)val.internalValue();
// delete internal resource representation of BLOB value
blobVal.delete(true);
// also remove from BLOBStore
String blobId = blobStore.createId(
- (PropertyId) state.getId(), i);
+ (PropertyId)state.getId(), i);
try
{
blobStore.remove(blobId);
@@ -1014,16 +1007,16 @@
try
{
if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
pmCache.remove(PortalCMSCacheLoader.VERSION_PROP_NODE + "/"
- + cacheNodeName, id);
+ + cacheNodeName, id);
}
else if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
pmCache.remove(PortalCMSCacheLoader.WSP_PROP_NODE + "/"
- + cacheNodeName, id);
+ + cacheNodeName, id);
}
}
catch (Exception e)
@@ -1037,7 +1030,7 @@
// ----------actions for nodereferences
// entities-------------------------------------------------------------------------------------------------------------
/**
- *
+ *
*/
public boolean exists(NodeReferencesId targetId) throws ItemStateException
{
@@ -1046,24 +1039,24 @@
boolean exists = false;
String nodeId = targetId.toString();
if (this.schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
Object o = this.pmCache.get(PortalCMSCacheLoader.WSP_REF_NODE + "/"
- + PortalCMSCacheLoader.parseNodeName(nodeId), nodeId);
+ + PortalCMSCacheLoader.parseNodeName(nodeId), nodeId);
if (o != null)
{
exists = true;
- }
+ }
}
else if (this.schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
Object o = this.pmCache.get(PortalCMSCacheLoader.VERSION_REF_NODE
- + "/" + PortalCMSCacheLoader.parseNodeName(nodeId), nodeId);
+ + "/" + PortalCMSCacheLoader.parseNodeName(nodeId), nodeId);
if (o != null)
{
exists = true;
- }
+ }
}
return exists;
}
@@ -1074,10 +1067,10 @@
}
/**
- *
+ *
*/
public NodeReferences load(NodeReferencesId targetId)
- throws NoSuchItemStateException, ItemStateException
+ throws NoSuchItemStateException, ItemStateException
{
try
{
@@ -1087,26 +1080,26 @@
// get the nodeData
byte[] nodeData = null;
if (this.schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
Object o = this.pmCache.get(PortalCMSCacheLoader.WSP_REF_NODE + "/"
- + PortalCMSCacheLoader.parseNodeName(nodeId), nodeId);
+ + PortalCMSCacheLoader.parseNodeName(nodeId), nodeId);
if (o == null || !(o instanceof Base))
{
throw new NoSuchItemStateException(targetId.toString());
}
- nodeData = ((WSPRefs) o).getData();
+ nodeData = ((WSPRefs)o).getData();
}
else if (this.schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
Object o = this.pmCache.get(PortalCMSCacheLoader.VERSION_REF_NODE
- + "/" + PortalCMSCacheLoader.parseNodeName(nodeId), nodeId);
+ + "/" + PortalCMSCacheLoader.parseNodeName(nodeId), nodeId);
if (o == null || !(o instanceof Base))
{
throw new NoSuchItemStateException(targetId.toString());
}
- nodeData = ((VersionRefs) o).getData();
+ nodeData = ((VersionRefs)o).getData();
}
// parse propertyData into propertyState
@@ -1134,10 +1127,10 @@
{
if (e instanceof NoSuchItemStateException)
{
- throw (NoSuchItemStateException) e;
+ throw (NoSuchItemStateException)e;
}
String msg = "failed to read reference from cache: "
- + targetId.toString();
+ + targetId.toString();
log.error(msg, e);
throw new ItemStateException(msg, e);
}
@@ -1160,8 +1153,8 @@
}
/**
- *
- *
+ *
+ *
*/
private void store(NodeReferences refs) throws ItemStateException
{
@@ -1175,28 +1168,28 @@
{
Serializer.serialize(refs, out);
if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
VersionRefs versionRefs = new VersionRefs(refs.getId().toString(),
- out.toByteArray());
+ out.toByteArray());
// place this in the cache
versionRefs.resetCacheItemPersistence();
String cacheNode = PortalCMSCacheLoader.VERSION_REF_NODE + "/"
- + PortalCMSCacheLoader.parseNodeName(versionRefs.getRefId());
+ + PortalCMSCacheLoader.parseNodeName(versionRefs.getRefId());
pmCache.put(cacheNode, versionRefs.getRefId(), versionRefs);
}
else if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
WSPRefs wspRefs = new WSPRefs(refs.getId().toString(), out
- .toByteArray());
+ .toByteArray());
// place this in the cache
wspRefs.resetCacheItemPersistence();
String cacheNode = PortalCMSCacheLoader.WSP_REF_NODE + "/"
- + PortalCMSCacheLoader.parseNodeName(wspRefs.getRefId());
+ + PortalCMSCacheLoader.parseNodeName(wspRefs.getRefId());
pmCache.put(cacheNode, wspRefs.getRefId(), wspRefs);
}
}
@@ -1220,7 +1213,7 @@
}
/**
- *
+ *
*/
private void destroy(NodeReferences refs) throws ItemStateException
{
@@ -1234,16 +1227,16 @@
try
{
if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
pmCache.remove(PortalCMSCacheLoader.VERSION_REF_NODE + "/"
- + cacheNodeName, id);
+ + cacheNodeName, id);
}
else if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
pmCache.remove(PortalCMSCacheLoader.WSP_REF_NODE + "/"
- + cacheNodeName, id);
+ + cacheNodeName, id);
}
}
catch (Exception e)
@@ -1256,7 +1249,7 @@
// ----------------------------------------------------------------------------------------------------------------------------------------
/**
- *
+ *
*/
public void close() throws Exception
{
@@ -1306,7 +1299,7 @@
}
/**
- *
+ *
*/
public void store(ChangeLog changeLog) throws ItemStateException
{
@@ -1341,46 +1334,46 @@
Iterator iter = changeLog.deletedStates();
while (iter.hasNext())
{
- ItemState state = (ItemState) iter.next();
+ ItemState state = (ItemState)iter.next();
if (state.isNode())
{
- destroy((NodeState) state);
+ destroy((NodeState)state);
}
else
{
- destroy((PropertyState) state);
+ destroy((PropertyState)state);
}
}
iter = changeLog.addedStates();
while (iter.hasNext())
{
- ItemState state = (ItemState) iter.next();
+ ItemState state = (ItemState)iter.next();
if (state.isNode())
{
- store((NodeState) state);
+ store((NodeState)state);
}
else
{
- store((PropertyState) state);
+ store((PropertyState)state);
}
}
iter = changeLog.modifiedStates();
while (iter.hasNext())
{
- ItemState state = (ItemState) iter.next();
+ ItemState state = (ItemState)iter.next();
if (state.isNode())
{
- update((NodeState) state);
+ update((NodeState)state);
}
else
{
- update((PropertyState) state);
+ update((PropertyState)state);
}
}
iter = changeLog.modifiedRefs();
while (iter.hasNext())
{
- NodeReferences refs = (NodeReferences) iter.next();
+ NodeReferences refs = (NodeReferences)iter.next();
if (refs.hasReferences())
{
store(refs);
@@ -1396,7 +1389,7 @@
}
/**
- *
+ *
*/
protected boolean exists(String blobid) throws ItemStateException
{
@@ -1404,8 +1397,8 @@
}
/**
- *
- *
+ *
+ *
*/
private boolean exists(String query, String id) throws ItemStateException
{
@@ -1451,7 +1444,7 @@
{
/**
- *
+ *
*/
public String createId(PropertyId id, int index)
{
@@ -1465,7 +1458,7 @@
}
/**
- *
+ *
*/
public InputStream get(String blobId) throws Exception
{
@@ -1473,9 +1466,9 @@
try
{
List rs = session.createQuery(blobSelectData).setString(0, blobId)
- .list();
+ .list();
Iterator iter = rs.iterator();
- java.sql.Blob blob = (java.sql.Blob) iter.next();
+ java.sql.Blob blob = (java.sql.Blob)iter.next();
InputStream is = blob.getBinaryStream();
return is;
}
@@ -1483,7 +1476,7 @@
{
if (e instanceof NoSuchItemStateException)
{
- throw (NoSuchItemStateException) e;
+ throw (NoSuchItemStateException)e;
}
String msg = "failed to read binary data: " + blobId;
log.error(msg, e);
@@ -1492,10 +1485,10 @@
}
/**
- *
+ *
*/
public void put(String blobId, InputStream in, long size)
- throws Exception
+ throws Exception
{
boolean update = exists(blobId);
@@ -1507,11 +1500,11 @@
Query query = session.createQuery(blobSelect);
if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
query.setString(0, blobId);
- VersionBinVal versionNode = (VersionBinVal) query
- .uniqueResult();
+ VersionBinVal versionNode = (VersionBinVal)query
+ .uniqueResult();
if (versionNode == null)
{
throw new Exception("No such Node: " + blobId);
@@ -1520,10 +1513,10 @@
versionNode.setData(Hibernate.createBlob(in));
}
else if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
query.setString(0, blobId);
- WSPBinVal wspNode = (WSPBinVal) query.uniqueResult();
+ WSPBinVal wspNode = (WSPBinVal)query.uniqueResult();
if (wspNode == null)
{
throw new Exception("No such Node: " + blobId);
@@ -1550,17 +1543,17 @@
{
if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.versionPrefix))
{
VersionBinVal versionNode = new VersionBinVal(blobId,
- Hibernate.createBlob(in));
+ Hibernate.createBlob(in));
session.save(versionNode);
}
else if (schemaObjectPrefix
- .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
+ .equalsIgnoreCase(HibernateStoreConstants.wspPrefix))
{
WSPBinVal wspNode = new WSPBinVal(blobId, Hibernate
- .createBlob(in));
+ .createBlob(in));
session.save(wspNode);
}
}
@@ -1578,7 +1571,7 @@
}
/**
- *
+ *
*/
// public synchronized boolean remove(String blobId) throws Exception
public boolean remove(String blobId) throws Exception
@@ -1587,7 +1580,7 @@
try
{
Query query = session.createQuery(nodeBinValSelect).setString(0,
- blobId);
+ blobId);
Object result = query.uniqueResult();
if (result != null)
{
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/JBossCachePersistenceManager.java
___________________________________________________________________
Name: svn:keywords
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/PortalCMSCacheLoader.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/Tools.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/Tools.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/Tools.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -36,10 +36,11 @@
/**
* Static state is evil.
- *
+ * <p/>
* Created on Aug 29, 2006
- *
- * A Tool for performing some Hibernate related utilities. This is designed to work in both managed as well as non-managed environments
+ * <p/>
+ * A Tool for performing some Hibernate related utilities. This is designed to work in both managed as well as
+ * non-managed environments
*
* @author <a href="mailto:sohil.shah@jboss.com">Sohil Shah</a>
*/
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/Tools.java
___________________________________________________________________
Name: svn:keywords
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/VersionBinVal.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/VersionNode.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/VersionProp.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/VersionRefs.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/WSPBinVal.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/WSPNode.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/WSPProp.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/hibernate/state/WSPRefs.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/CMSCacheException.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/CMSCacheException.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/CMSCacheException.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -26,7 +26,7 @@
/**
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
- * @version $Revision$
+ * @version $Revision: 5448 $
*/
public class CMSCacheException extends Exception
{
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/CMSCacheException.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/CMSObjectImpl.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/CMSTreeCacheService.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/CMSTreeCacheService.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/CMSTreeCacheService.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -28,7 +28,7 @@
/**
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
- * @version $Revision$
+ * @version $Revision: 5448 $
*/
public interface CMSTreeCacheService
{
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/CMSTreeCacheService.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/ContentImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/ContentImpl.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/ContentImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -61,7 +61,7 @@
protected String mimeType;
protected int size;
-
+
protected boolean isWaitingForPublishApproval = false;
protected String approvalProcessId = null;
@@ -185,39 +185,32 @@
{
this.size = size;
}
-
+
/**
- *
+ *
*/
public boolean isWaitingForPublishApproval()
{
- return this.isWaitingForPublishApproval;
+ return this.isWaitingForPublishApproval;
}
-
- /**
- *
- * @param isWaitingForPublishApproval
- */
+
+ /** @param isWaitingForPublishApproval */
public void setWaitingForPublishApproval(boolean isWaitingForPublishApproval)
{
- this.isWaitingForPublishApproval = isWaitingForPublishApproval;
+ this.isWaitingForPublishApproval = isWaitingForPublishApproval;
}
- /**
- * @return the approvalProcessId
- */
- public String getApprovalProcessId()
- {
- return approvalProcessId;
- }
-
- /**
- * @param approvalProcessId the approvalProcessId to set
- */
- public void setApprovalProcessId(String approvalProcessId)
- {
- this.approvalProcessId = approvalProcessId;
- }
+ /** @return the approvalProcessId */
+ public String getApprovalProcessId()
+ {
+ return approvalProcessId;
+ }
+
+ /** @param approvalProcessId the approvalProcessId to set */
+ public void setApprovalProcessId(String approvalProcessId)
+ {
+ this.approvalProcessId = approvalProcessId;
+ }
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/ContentImpl.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/FileImpl.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/FolderImpl.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/cache/CMSTreeCacheServiceImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/cache/CMSTreeCacheServiceImpl.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/cache/CMSTreeCacheServiceImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -35,7 +35,7 @@
/**
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
- * @version $Revision$
+ * @version $Revision: 6728 $
*/
public class CMSTreeCacheServiceImpl extends AbstractJBossService implements CMSTreeCacheService
{
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/cache/CMSTreeCacheServiceImpl.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/interceptors/ACLInterceptor.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/interceptors/ACLInterceptor.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/interceptors/ACLInterceptor.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,50 +22,50 @@
******************************************************************************/
package org.jboss.portal.cms.impl.interceptors;
-import org.w3c.dom.*;
-
-import javax.xml.parsers.DocumentBuilderFactory;
-
-import java.io.InputStream;
-import java.io.ByteArrayInputStream;
-import java.util.Collection;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
-import java.util.HashSet;
-
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-
-import org.jboss.portal.security.PortalPermission;
-
+import org.apache.log4j.Logger;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
import org.jboss.portal.cms.CMSException;
import org.jboss.portal.cms.CMSInterceptor;
-import org.jboss.portal.cms.impl.jcr.JCRCommand;
+import org.jboss.portal.cms.hibernate.state.Tools;
import org.jboss.portal.cms.impl.jcr.JCRCMS;
+import org.jboss.portal.cms.impl.jcr.JCRCommand;
import org.jboss.portal.cms.impl.jcr.command.SearchCommand;
import org.jboss.portal.cms.model.File;
import org.jboss.portal.cms.model.Folder;
-import org.jboss.portal.cms.hibernate.state.Tools;
+import org.jboss.portal.cms.security.AuthorizationManager;
+import org.jboss.portal.cms.security.CMSPermission;
+import org.jboss.portal.cms.security.Criteria;
+import org.jboss.portal.cms.security.PermRoleAssoc;
+import org.jboss.portal.cms.security.Permission;
+import org.jboss.portal.cms.security.PortalCMSSecurityContext;
import org.jboss.portal.common.invocation.InvocationException;
-
-import org.hibernate.SessionFactory;
-import org.hibernate.Session;
-import org.hibernate.Transaction;
-import org.hibernate.Query;
-
-import org.jboss.portal.cms.security.*;
-
-import org.jboss.portal.identity.User;
import org.jboss.portal.identity.Role;
import org.jboss.portal.identity.RoleModule;
+import org.jboss.portal.identity.User;
import org.jboss.portal.jems.as.JNDI;
-import org.apache.log4j.Logger;
+import org.jboss.portal.security.PortalPermission;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import javax.xml.parsers.DocumentBuilderFactory;
+import java.io.ByteArrayInputStream;
+import java.io.InputStream;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
+
/**
- * ACLInterceptor is plugged into the CMS system to enforce fine grained security access control
- * on resources stored in the CMS system.
+ * ACLInterceptor is plugged into the CMS system to enforce fine grained security access control on resources stored in
+ * the CMS system.
*
* @author Sohil Shah - sohil.shah(a)jboss.com - Nov 27, 2006
*/
@@ -74,125 +74,95 @@
private static Logger log = Logger.getLogger(ACLInterceptor.class);
- /**
- * default security policy that the cms service should be booted with
- */
+ /** default security policy that the cms service should be booted with */
private String defaultPolicy = null;
- /** . */
+ /** . */
private RoleModule roleModule = null;
- /** . */
+ /** . */
private String jndiName = null;
-
- /** . */
+
+ /** . */
private JNDI.Binding jndiBinding = null;
- /** . */
+ /** . */
private AuthorizationManager authorizationManager = null;
-
- /** . */
+
+ /** . */
private String cmsSessionFactory = null;
-
- /** . */
+
+ /** . */
private String identitySessionFactory = null;
- /**
- * @return
- */
+ /** @return */
public AuthorizationManager getAuthorizationManager()
{
return this.authorizationManager;
}
- /**
- * @param authorizationManager
- */
+ /** @param authorizationManager */
public void setAuthorizationManager(AuthorizationManager authorizationManager)
{
this.authorizationManager = authorizationManager;
}
- /**
- * @return
- */
+ /** @return */
public String getDefaultPolicy()
{
return this.defaultPolicy;
}
- /**
- * @param defaultPolicy
- */
+ /** @param defaultPolicy */
public void setDefaultPolicy(String defaultPolicy)
{
this.defaultPolicy = defaultPolicy;
}
- /**
- * @return
- */
+ /** @return */
public RoleModule getRoleModule()
{
return this.roleModule;
}
- /**
- * @param roleModule
- */
+ /** @param roleModule */
public void setRoleModule(RoleModule roleModule)
{
this.roleModule = roleModule;
}
- /**
- * @return
- */
+ /** @return */
public String getJNDIName()
{
return this.jndiName;
}
- /**
- * @param jndiName
- */
+ /** @param jndiName */
public void setJNDIName(String jndiName)
{
this.jndiName = jndiName;
}
-
- /**
- *
- * @return
- */
+
+ /** @return */
public String getIdentitySessionFactory()
{
return this.identitySessionFactory;
}
-
- /**
- *
- * @param identitySessionFactory
- */
+
+ /** @param identitySessionFactory */
public void setIdentitySessionFactory(String identitySessionFactory)
{
this.identitySessionFactory = identitySessionFactory;
}
-
- /**
- *
- * @return
- */
+
+ /** @return */
public String getCmsSessionFactory()
{
return cmsSessionFactory;
}
- /**
- *
- * @param cmsSessionFactory
- */
+ /** @param cmsSessionFactory */
public void setCmsSessionFactory(String cmsSessionFactory)
{
this.cmsSessionFactory = cmsSessionFactory;
@@ -217,7 +187,7 @@
//perform access check
PortalPermission cmsPermission = new CMSPermission(securityContext);
- boolean allowAccess = this.authorizationManager.checkPermission(cmsPermission);
+ boolean allowAccess = this.authorizationManager.checkPermission(cmsPermission);
if (allowAccess)
{
Object response = invocation.invokeNext();
@@ -250,8 +220,8 @@
}
/**
- * Filters any files/folders based on the user's access. The filter is applied to folders/files
- * returned by invoking a CMS command
+ * Filters any files/folders based on the user's access. The filter is applied to folders/files returned by invoking
+ * a CMS command
*
* @param response
* @return
@@ -268,7 +238,7 @@
List filteredFolders = new ArrayList();
List filteredFiles = new ArrayList();
securityContext.removeAttribute("command");
- if(folder.getFolders()!=null)
+ if (folder.getFolders() != null)
{
for (Iterator itr = folder.getFolders().iterator(); itr.hasNext();)
{
@@ -282,7 +252,7 @@
}
}
}
- if(folder.getFiles()!=null)
+ if (folder.getFiles() != null)
{
for (Iterator itr = folder.getFiles().iterator(); itr.hasNext();)
{
@@ -320,7 +290,7 @@
catch (Exception e)
{
throw new RuntimeException(e);
- }
+ }
return filteredResponse;
}
@@ -330,8 +300,8 @@
public void start() throws Exception
{
log.info("AuthorizationManager initialized=" + this.authorizationManager);
-
- if(this.jndiName != null)
+
+ if (this.jndiName != null)
{
this.jndiBinding = new JNDI.Binding(jndiName, this);
this.jndiBinding.bind();
@@ -414,18 +384,15 @@
}
}
}
-
- /**
- *
- * @throws Exception
- */
+
+ /** @throws Exception */
public void stop() throws Exception
{
- if(this.jndiBinding != null)
+ if (this.jndiBinding != null)
{
this.jndiBinding.unbind();
this.jndiBinding = null;
- }
+ }
Tools.destroy();
}
@@ -533,12 +500,12 @@
}
/**
- * This turns off acl security only for a particular thread.
- * This is used by system level operations that need to integrate with the CMS
+ * This turns off acl security only for a particular thread. This is used by system level operations that need to
+ * integrate with the CMS
* <p/>
- * Example is: the workflow daemon that publishes a content as live when a manager
- * approves it. Without turning this off, the daemon thread is running in Anonymous mode
- * which obviously does not have the rights to publish the content
+ * Example is: the workflow daemon that publishes a content as live when a manager approves it. Without turning this
+ * off, the daemon thread is running in Anonymous mode which obviously does not have the rights to publish the
+ * content
*/
private static ThreadLocal turnOff = new ThreadLocal();
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/interceptors/ACLInterceptor.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/interceptors/ApprovalWorkflowInterceptor.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/interceptors/ApprovalWorkflowInterceptor.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/interceptors/ApprovalWorkflowInterceptor.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,126 +22,109 @@
******************************************************************************/
package org.jboss.portal.cms.impl.interceptors;
-import java.util.Date;
-import java.lang.reflect.Method;
-
import org.jboss.portal.cms.CMSInterceptor;
import org.jboss.portal.cms.impl.jcr.JCRCommand;
import org.jboss.portal.cms.impl.jcr.JCRCommandContext;
-
import org.jboss.portal.cms.impl.jcr.composite.NewFileCommand;
import org.jboss.portal.cms.impl.jcr.composite.UpdateFileCommand;
-
+import org.jboss.portal.cms.workflow.ApprovePublish;
+import org.jboss.portal.cms.workflow.Content;
import org.jboss.portal.common.invocation.InvocationException;
-
import org.jboss.portal.identity.User;
import org.jboss.portal.jems.as.JNDI;
-import org.jboss.portal.cms.workflow.ApprovePublish;
-import org.jboss.portal.cms.workflow.Content;
+import java.lang.reflect.Method;
+import java.util.Date;
/**
- *
* Created on : Jan 29, 2007
- * @author Sohil Shah - sohil.shah(a)jboss.com
*
+ * @author Sohil Shah - sohil.shah(a)jboss.com
*/
public class ApprovalWorkflowInterceptor extends CMSInterceptor
{
/**
- *
+ *
*/
private String jndiName = null;
-
+
/**
- *
+ *
*/
private JNDI.Binding jndiBinding = null;
-
- /**
- *
- * @return
- */
+
+ /** @return */
public String getJNDIName()
{
return this.jndiName;
}
-
- /**
- *
- * @param jndiName
- */
+
+ /** @param jndiName */
public void setJNDIName(String jndiName)
{
this.jndiName = jndiName;
}
-
- /**
- *
- */
- protected Object invoke(JCRCommand invocation) throws Exception, InvocationException
- {
- //pre-processing
- if(invocation instanceof NewFileCommand || invocation instanceof UpdateFileCommand)
- {
- ApprovePublish approvePublishWorkflow = (ApprovePublish)invocation.getContext().
- getAttribute(JCRCommandContext.scope, "approvePublishWorkflow");
-
- if(approvePublishWorkflow!=null)
- {
- User user = (User)invocation.getContext().getAttribute(JCRCommandContext.scope,"user");
- org.jboss.portal.cms.model.Content content = null;
- Method getContentMethod = invocation.getClass().getMethod("getContent", null);
- content = (org.jboss.portal.cms.model.Content)getContentMethod.invoke(invocation, null);
-
- //call the workflow service here
- Content workflowContent = new Content();
- workflowContent.setPath(content.getBasePath());
- workflowContent.setUserName(user.getUserName());
- workflowContent.setMimeType(content.getMimeType());
- if(content.getBytes()!=null)
- {
- workflowContent.setSize(content.getBytes().length);
- }
- workflowContent.setCreationDate(new Date());
-
- long processId = approvePublishWorkflow.requestApproval(workflowContent);
-
- //save the processId in the context
- invocation.setAttribute(JCRCommandContext.scope, "processid", String.valueOf(processId));
- }
- }
-
- Object returnVal = invocation.invokeNext();
-
- //post-processing
-
- //no post-processing needed for this interceptor
-
- return returnVal;
- }
-
+
/**
- *
- * @throws Exception
+ *
*/
+ protected Object invoke(JCRCommand invocation) throws Exception, InvocationException
+ {
+ //pre-processing
+ if (invocation instanceof NewFileCommand || invocation instanceof UpdateFileCommand)
+ {
+ ApprovePublish approvePublishWorkflow = (ApprovePublish)invocation.getContext().
+ getAttribute(JCRCommandContext.scope, "approvePublishWorkflow");
+
+ if (approvePublishWorkflow != null)
+ {
+ User user = (User)invocation.getContext().getAttribute(JCRCommandContext.scope, "user");
+ org.jboss.portal.cms.model.Content content = null;
+ Method getContentMethod = invocation.getClass().getMethod("getContent", null);
+ content = (org.jboss.portal.cms.model.Content)getContentMethod.invoke(invocation, null);
+
+ //call the workflow service here
+ Content workflowContent = new Content();
+ workflowContent.setPath(content.getBasePath());
+ workflowContent.setUserName(user.getUserName());
+ workflowContent.setMimeType(content.getMimeType());
+ if (content.getBytes() != null)
+ {
+ workflowContent.setSize(content.getBytes().length);
+ }
+ workflowContent.setCreationDate(new Date());
+
+ long processId = approvePublishWorkflow.requestApproval(workflowContent);
+
+ //save the processId in the context
+ invocation.setAttribute(JCRCommandContext.scope, "processid", String.valueOf(processId));
+ }
+ }
+
+ Object returnVal = invocation.invokeNext();
+
+ //post-processing
+
+ //no post-processing needed for this interceptor
+
+ return returnVal;
+ }
+
+ /** @throws Exception */
public void start() throws Exception
{
- if(this.jndiName != null)
+ if (this.jndiName != null)
{
this.jndiBinding = new JNDI.Binding(jndiName, this);
this.jndiBinding.bind();
}
}
-
- /**
- *
- * @throws Exception
- */
+
+ /** @throws Exception */
public void stop() throws Exception
{
- if(this.jndiBinding != null)
+ if (this.jndiBinding != null)
{
this.jndiBinding.unbind();
this.jndiBinding = null;
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/interceptors/ApprovalWorkflowInterceptor.java
___________________________________________________________________
Name: svn:keywords
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/interceptors/CacheInterceptor.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/interceptors/LogInterceptor.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCMS.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCMS.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCMS.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -34,29 +34,27 @@
import org.jboss.portal.cms.impl.FileImpl;
import org.jboss.portal.cms.impl.FolderImpl;
import org.jboss.portal.cms.impl.jcr.jackrabbit.JackrabbitJCRService;
+import org.jboss.portal.cms.model.CMSUser;
import org.jboss.portal.cms.model.Content;
import org.jboss.portal.cms.model.File;
import org.jboss.portal.cms.model.Folder;
-import org.jboss.portal.cms.model.CMSUser;
import org.jboss.portal.cms.util.RepositoryUtil;
+import org.jboss.portal.cms.workflow.ApprovePublish;
import org.jboss.portal.common.invocation.InterceptorStackFactory;
import org.jboss.portal.common.invocation.Invocation;
import org.jboss.portal.common.invocation.InvocationException;
import org.jboss.portal.common.invocation.InvocationHandler;
+import org.jboss.portal.common.io.IOTools;
import org.jboss.portal.common.net.URLNavigator;
import org.jboss.portal.common.net.URLVisitor;
import org.jboss.portal.common.xml.XMLTools;
-import org.jboss.portal.common.io.IOTools;
-import org.jboss.portal.jems.as.JNDI;
-import org.jboss.portal.identity.User;
-import org.jboss.portal.identity.UserModule;
-import org.jboss.portal.identity.IdentityServiceController;
import org.jboss.portal.identity.IdentityContext;
import org.jboss.portal.identity.IdentityException;
+import org.jboss.portal.identity.IdentityServiceController;
+import org.jboss.portal.identity.User;
+import org.jboss.portal.identity.UserModule;
+import org.jboss.portal.jems.as.JNDI;
import org.jboss.portal.jems.as.system.AbstractJBossService;
-
-import org.jboss.portal.cms.workflow.ApprovePublish;
-
import org.jboss.util.StopWatch;
import org.w3c.dom.DOMImplementation;
import org.w3c.dom.Document;
@@ -99,13 +97,13 @@
private InterceptorStackFactory stackFactory;
private Element config;
-
+
private String identitySessionFactory = null;
-
+
private IdentityServiceController identityServiceController;
-
+
private ApprovePublish approvePublishWorkflow;
-
+
private String jndiName;
private JNDI.Binding jndiBinding;
@@ -118,28 +116,26 @@
return cmd.execute();
}
};
-
- /**
- * Used for storing the logged in user information
- */
+
+ /** Used for storing the logged in user information */
protected static ThreadLocal userInfo = new ThreadLocal();
+
public static ThreadLocal getUserInfo()
{
- return JCRCMS.userInfo;
+ return JCRCMS.userInfo;
}
-
- /**
- * This is used to turnoff workflow triggering only
- * for this particular request through the CMS commands
- */
+
+ /** This is used to turnoff workflow triggering only for this particular request through the CMS commands */
protected static ThreadLocal turnOffWorkflow = new ThreadLocal();
+
public static void turnOffWorkflow()
{
- turnOffWorkflow.set(new Boolean(true));
+ turnOffWorkflow.set(new Boolean(true));
}
+
public static void turnOnWorkflow()
{
- turnOffWorkflow.set(null);
+ turnOffWorkflow.set(null);
}
public JCRCMS()
@@ -211,25 +207,20 @@
{
this.doChecking = doChecking;
}
-
-
- /**
- * @return the approvePublishWorkflow
- */
- public ApprovePublish getApprovePublishWorkflow()
- {
- return approvePublishWorkflow;
- }
-
- /**
- * @param approvePublishWorkflow the approvePublishWorkflow to set
- */
- public void setApprovePublishWorkflow(ApprovePublish approvePublishWorkflow)
- {
- this.approvePublishWorkflow = approvePublishWorkflow;
- }
+ /** @return the approvePublishWorkflow */
+ public ApprovePublish getApprovePublishWorkflow()
+ {
+ return approvePublishWorkflow;
+ }
+
+ /** @param approvePublishWorkflow the approvePublishWorkflow to set */
+ public void setApprovePublishWorkflow(ApprovePublish approvePublishWorkflow)
+ {
+ this.approvePublishWorkflow = approvePublishWorkflow;
+ }
+
public UserModule getUserModule()
{
if (identityServiceController != null)
@@ -257,43 +248,31 @@
this.identityServiceController = identityServiceController;
}
- /**
- *
- * @return
- */
+ /** @return */
public String getJNDIName()
{
- return this.jndiName;
+ return this.jndiName;
}
-
- /**
- *
- * @param jndiName
- */
+
+ /** @param jndiName */
public void setJNDIName(String jndiName)
{
- this.jndiName = jndiName;
+ this.jndiName = jndiName;
}
-
- /**
- *
- * @return
- */
+
+ /** @return */
public String getIdentitySessionFactory()
{
return identitySessionFactory;
}
-
- /**
- *
- * @param identitySessionFactory
- */
+
+ /** @param identitySessionFactory */
public void setIdentitySessionFactory(String identitySessionFactory)
{
this.identitySessionFactory = identitySessionFactory;
}
-
-
+
+
/** CMS Start */
public void startService() throws Exception
{
@@ -307,7 +286,6 @@
String cacheVersion = Version.getVersionString(Version.getVersionShort());
log.info("JBossCache Version=" + cacheVersion);
-
// See how long it takes us to start up
StopWatch watch = new StopWatch(true);
log.info("Starting JCR CMS");
@@ -395,25 +373,24 @@
public void createContent() throws Exception
{
log.info("Creating default CMS content.");
-
// Get the content
URL root = Thread.currentThread().getContextClassLoader().getResource(defaultContentLocation);
-
+
//make the user executing these to create the default content, an 'Admin' user
//without this, the fine grained security won't allow the creation
UserModule userModule = getUserModule();
- if(userModule != null)
+ if (userModule != null)
{
- org.hibernate.Session session = org.jboss.portal.cms.hibernate.state.Tools.getOpenSession();
- org.hibernate.Transaction tx = session.beginTransaction();
- User user = userModule.findUserByUserName("admin");
- if(user!=null)
- {
- JCRCMS.getUserInfo().set(user);
- }
- tx.rollback();
- org.jboss.portal.cms.hibernate.state.Tools.closeSession(session);
+ org.hibernate.Session session = org.jboss.portal.cms.hibernate.state.Tools.getOpenSession();
+ org.hibernate.Transaction tx = session.beginTransaction();
+ User user = userModule.findUserByUserName("admin");
+ if (user != null)
+ {
+ JCRCMS.getUserInfo().set(user);
+ }
+ tx.rollback();
+ org.jboss.portal.cms.hibernate.state.Tools.closeSession(session);
}
// Iterate over the content
@@ -588,20 +565,20 @@
try
{
xares.start(xid, XAResource.TMNOFLAGS);
-
+
//Check and make sure in the case of a clustered call, the Identity propagated
//as part of the invocation is handled correctly
JCRCommandContext propagatedContext = (JCRCommandContext)((JCRCommand)cmd).getContext();
- if(propagatedContext != null)
+ if (propagatedContext != null)
{
CMSUser propagatedUser = (CMSUser)propagatedContext.getClusterContextInfo("user");
- if(propagatedUser != null)
- {
+ if (propagatedUser != null)
+ {
JCRCMS.getUserInfo().set(propagatedUser);
isClusterDelegatedRequest = true;
- }
+ }
Boolean workflowStatus = (Boolean)propagatedContext.getClusterContextInfo("workflowStatus");
- if(workflowStatus != null)
+ if (workflowStatus != null)
{
JCRCMS.turnOffWorkflow();
clusterWorkflowStatus = true;
@@ -612,15 +589,15 @@
JCRCommand jcrCmd = (JCRCommand)cmd;
JCRCommandContext ctx = new JCRCommandContext(session, commandFactory, defaultLocale);
jcrCmd.setContext(ctx);
-
+
ctx.setAttribute(JCRCommandContext.scope, "user", JCRCMS.getUserInfo().get());
Object isWorkflowOff = JCRCMS.turnOffWorkflow.get();
- if( this.approvePublishWorkflow!=null //this checks and makes sure workflow is activated for the CMS
- &&
- isWorkflowOff==null //this checks and makes sure workflow is not turned off only for this particular request
- )
+ if (this.approvePublishWorkflow != null //this checks and makes sure workflow is activated for the CMS
+ &&
+ isWorkflowOff == null //this checks and makes sure workflow is not turned off only for this particular request
+ )
{
- ctx.setAttribute(JCRCommandContext.scope, "approvePublishWorkflow", this.approvePublishWorkflow);
+ ctx.setAttribute(JCRCommandContext.scope, "approvePublishWorkflow", this.approvePublishWorkflow);
}
@@ -656,11 +633,11 @@
if (e instanceof CMSException)
{
- throw(CMSException)e;
+ throw (CMSException)e;
}
else if (e instanceof RuntimeException)
{
- throw(RuntimeException)e;
+ throw (RuntimeException)e;
}
else
{
@@ -674,25 +651,22 @@
//must do this otherwise, the whole cms will hang
session.logout();
}
- if(isClusterDelegatedRequest)
+ if (isClusterDelegatedRequest)
{
JCRCMS.getUserInfo().set(null);
}
- if(clusterWorkflowStatus)
+ if (clusterWorkflowStatus)
{
JCRCMS.turnOnWorkflow();
}
}
return obj;
}
-
- /**
- *
- * @return
- */
+
+ /** @return */
public boolean isWorkflowActivated()
{
- return (this.approvePublishWorkflow!=null);
+ return (this.approvePublishWorkflow != null);
}
public void setStackFactory(InterceptorStackFactory stackFactory)
@@ -703,5 +677,5 @@
public InterceptorStackFactory getStackFactory()
{
return stackFactory;
- }
+ }
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCMS.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCommandContext.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCommandContext.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCommandContext.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,33 +22,31 @@
******************************************************************************/
package org.jboss.portal.cms.impl.jcr;
-import java.io.Serializable;
-import java.util.Map;
-import java.util.HashMap;
-
import org.jboss.portal.cms.CMSException;
-import org.jboss.portal.cms.model.CMSUser;
import org.jboss.portal.common.invocation.AbstractInvocationContext;
-import org.jboss.portal.common.invocation.resolver.MapAttributeResolver;
import org.jboss.portal.common.invocation.Scope;
+import org.jboss.portal.common.invocation.resolver.MapAttributeResolver;
import javax.jcr.Session;
+import java.io.Serializable;
+import java.util.HashMap;
import java.util.Locale;
+import java.util.Map;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision$
+ * @version $Revision: 7163 $
*/
public class JCRCommandContext extends AbstractInvocationContext implements Serializable
{
public static final Scope scope = Scope.THREAD_SCOPE;
-
+
private transient final Session session;
private transient final JCRCommandFactory commandFactory;
private transient final Locale locale;
-
+
private Map clusterContext = null;
public JCRCommandContext(Session session, JCRCommandFactory factory, Locale locale)
@@ -81,17 +79,15 @@
}
/**
- *
* @param key
* @param data
*/
- public void setClusterContextInfo(String key,Object data)
+ public void setClusterContextInfo(String key, Object data)
{
this.getClusterContext().put(key, data);
}
-
+
/**
- *
* @param key
* @return
*/
@@ -99,14 +95,15 @@
{
return this.getClusterContext().get(key);
}
-
+
/**
* Instantiates the cluser context only on-demand
+ *
* @return
*/
private Map getClusterContext()
{
- if(this.clusterContext == null)
+ if (this.clusterContext == null)
{
this.clusterContext = new HashMap();
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCommandContext.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCommandFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCommandFactory.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCommandFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,10 +22,6 @@
******************************************************************************/
package org.jboss.portal.cms.impl.jcr;
-import java.io.InputStream;
-import java.util.List;
-import java.util.Locale;
-
import org.jboss.portal.cms.Command;
import org.jboss.portal.cms.CommandFactory;
import org.jboss.portal.cms.impl.jcr.command.ContentCreateCommand;
@@ -44,19 +40,22 @@
import org.jboss.portal.cms.impl.jcr.command.FolderUpdateCommand;
import org.jboss.portal.cms.impl.jcr.command.GetArchiveCommand;
import org.jboss.portal.cms.impl.jcr.command.ItemExistsCommand;
+import org.jboss.portal.cms.impl.jcr.command.MakeLiveVersionCommand;
import org.jboss.portal.cms.impl.jcr.command.MoveCommand;
import org.jboss.portal.cms.impl.jcr.command.RenameCommand;
import org.jboss.portal.cms.impl.jcr.command.SearchCommand;
import org.jboss.portal.cms.impl.jcr.command.StoreArchiveCommand;
-import org.jboss.portal.cms.impl.jcr.command.MakeLiveVersionCommand;
import org.jboss.portal.cms.impl.jcr.composite.NewFileCommand;
import org.jboss.portal.cms.impl.jcr.composite.UpdateFileCommand;
import org.jboss.portal.cms.model.Content;
import org.jboss.portal.cms.model.File;
import org.jboss.portal.cms.model.Folder;
-import org.jboss.portal.search.Query;
import org.jboss.portal.search.impl.jcr.JCRQuery;
+import java.io.InputStream;
+import java.util.List;
+import java.util.Locale;
+
/**
* @author <a href="mailto:roy@jboss.org">Roy Russo</a>
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
@@ -186,9 +185,9 @@
{
return new SearchCommand(query);
}
-
+
public Command createMakeLiveVersionCommand(String filePath, String language, String version)
{
- return new MakeLiveVersionCommand(filePath,language,version);
+ return new MakeLiveVersionCommand(filePath, language, version);
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCommandFactory.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCompositeCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRService.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRService.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRService.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -27,7 +27,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision$
+ * @version $Revision: 5448 $
*/
public interface JCRService
{
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/JCRService.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ACLEnforcer.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ACLEnforcer.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ACLEnforcer.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -21,725 +21,717 @@
*/
package org.jboss.portal.cms.impl.jcr.command;
-import java.util.Collection;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.StringTokenizer;
-
import org.jboss.portal.cms.impl.jcr.JCRCommand;
import org.jboss.portal.cms.impl.jcr.composite.NewFileCommand;
import org.jboss.portal.cms.impl.jcr.composite.UpdateFileCommand;
-import org.jboss.portal.cms.security.PortalCMSSecurityContext;
-import org.jboss.portal.cms.security.Permission;
-import org.jboss.portal.cms.security.Criteria;
import org.jboss.portal.cms.security.AuthorizationManager;
-
-import org.jboss.portal.identity.User;
+import org.jboss.portal.cms.security.Criteria;
+import org.jboss.portal.cms.security.Permission;
+import org.jboss.portal.cms.security.PortalCMSSecurityContext;
+import org.jboss.portal.cms.workflow.ApprovePublish;
import org.jboss.portal.identity.Role;
+import org.jboss.portal.identity.User;
-import org.jboss.portal.cms.workflow.ApprovePublish;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
+import java.util.StringTokenizer;
/**
- * ACLEnforcer checks proper access privileges for actions before
- * the Command objects are allowed to execute and do their job on the CMS
- *
- * @author Sohil Shah - sohil.shah(a)jboss.com - Nov 28, 2006
+ * ACLEnforcer checks proper access privileges for actions before the Command objects are allowed to execute and do
+ * their job on the CMS
*
+ * @author Sohil Shah - sohil.shah(a)jboss.com - Nov 28, 2006
*/
public class ACLEnforcer
{
- private Collection readCommands = new ArrayList(); //a list of commands that perform read action on the cms
- private Collection writeCommands = new ArrayList();//a list of commands that perform write action on the cms
- private Collection manageCommands = new ArrayList();//a list of commands that perform manage action on the cms
-
- private static final int read = 0;
- private static final int write = 1;
- private static final int manage = 2;
+ private Collection readCommands = new ArrayList(); //a list of commands that perform read action on the cms
+ private Collection writeCommands = new ArrayList();//a list of commands that perform write action on the cms
+ private Collection manageCommands = new ArrayList();//a list of commands that perform manage action on the cms
+
+ private static final int read = 0;
+ private static final int write = 1;
+ private static final int manage = 2;
// private static final int manageWorkflow = 3;
-
- private AuthorizationManager authorizationManager = null;
-
- /**
- *
- *
- */
- public ACLEnforcer(AuthorizationManager authorizationManager)
- {
- super();
- this.authorizationManager = authorizationManager;
-
- String packageName = "org.jboss.portal.cms.impl.jcr.command.";
-
- //load the read related commands
- readCommands.add(packageName+"FolderGetListCommand");
- readCommands.add(packageName+"FolderGetCommand");
- readCommands.add(packageName+"FileGetListCommand");
- readCommands.add(packageName+"FileGetCommand");
-
- //load the write related commands
- writeCommands.add(packageName+"ContentCreateCommand");
- writeCommands.add(packageName+"FileCreateCommand");
- writeCommands.add(packageName+"FolderCreateCommand");
- writeCommands.add(packageName+"FileUpdateCommand");
- writeCommands.add(packageName+"StoreArchiveCommand");
- writeCommands.add("org.jboss.portal.cms.impl.jcr.composite.NewFileCommand");
- writeCommands.add("org.jboss.portal.cms.impl.jcr.composite.UpdateFileCommand");
-
-
- //load the manage related commands
- manageCommands.add(packageName+"CopyCommand");
- manageCommands.add(packageName+"DeleteCommand");
- manageCommands.add(packageName+"MoveCommand");
- }
-
-
- /**
- *
- * @param securityContext
- * @return
- */
- public boolean hasAccess(PortalCMSSecurityContext cmsSecurityContext)
- {
- boolean hasAccess = true;
- User loggedInUser = (User)cmsSecurityContext.getIdentity();
- JCRCommand command = (JCRCommand)cmsSecurityContext.getAttribute("command");
-
- //get the action code of the action being protected
- int actionCode = -1;
- if(command != null)
- {
- actionCode = this.getActionCode(command);
- }
-
- switch(actionCode)
- {
- case read:
- hasAccess = this.hasReadAccess(loggedInUser,command);
+ private AuthorizationManager authorizationManager = null;
+
+
+ /**
+ *
+ *
+ */
+ public ACLEnforcer(AuthorizationManager authorizationManager)
+ {
+ super();
+ this.authorizationManager = authorizationManager;
+
+ String packageName = "org.jboss.portal.cms.impl.jcr.command.";
+
+ //load the read related commands
+ readCommands.add(packageName + "FolderGetListCommand");
+ readCommands.add(packageName + "FolderGetCommand");
+ readCommands.add(packageName + "FileGetListCommand");
+ readCommands.add(packageName + "FileGetCommand");
+
+ //load the write related commands
+ writeCommands.add(packageName + "ContentCreateCommand");
+ writeCommands.add(packageName + "FileCreateCommand");
+ writeCommands.add(packageName + "FolderCreateCommand");
+ writeCommands.add(packageName + "FileUpdateCommand");
+ writeCommands.add(packageName + "StoreArchiveCommand");
+ writeCommands.add("org.jboss.portal.cms.impl.jcr.composite.NewFileCommand");
+ writeCommands.add("org.jboss.portal.cms.impl.jcr.composite.UpdateFileCommand");
+
+ //load the manage related commands
+ manageCommands.add(packageName + "CopyCommand");
+ manageCommands.add(packageName + "DeleteCommand");
+ manageCommands.add(packageName + "MoveCommand");
+ }
+
+
+ /**
+ * @param securityContext
+ * @return
+ */
+ public boolean hasAccess(PortalCMSSecurityContext cmsSecurityContext)
+ {
+ boolean hasAccess = true;
+ User loggedInUser = (User)cmsSecurityContext.getIdentity();
+ JCRCommand command = (JCRCommand)cmsSecurityContext.getAttribute("command");
+
+ //get the action code of the action being protected
+ int actionCode = -1;
+ if (command != null)
+ {
+ actionCode = this.getActionCode(command);
+ }
+
+ switch (actionCode)
+ {
+ case read:
+ hasAccess = this.hasReadAccess(loggedInUser, command);
break;
-
- case write:
- hasAccess = this.hasWriteAccess(loggedInUser,command);
+
+ case write:
+ hasAccess = this.hasWriteAccess(loggedInUser, command);
break;
-
- case manage:
- hasAccess = this.hasManageAccess(loggedInUser,command);
+
+ case manage:
+ hasAccess = this.hasManageAccess(loggedInUser, command);
break;
-
- default:
- //check if a filter needs to be applied here......
- //only show resources that the user has write or more access to
- if(cmsSecurityContext.getAttribute("applyFilter")!=null)
- {
- String path = (String)cmsSecurityContext.getAttribute("applyFilter");
- hasAccess = this.computeToolAccess(loggedInUser, path);
- }
- else if(cmsSecurityContext.getAttribute("path")!=null)
- {
- String path = (String)cmsSecurityContext.getAttribute("path");
- hasAccess = this.computeAccess(loggedInUser, path, "read");
- }
- //check if workflow management protection needs to be enforced
- else if(cmsSecurityContext.getAttribute("manageWorkflow")!=null)
- {
- ApprovePublish service = (ApprovePublish)cmsSecurityContext.
- getAttribute("approvePublish");
- hasAccess = this.computeWorkflowManagementAccess(loggedInUser,service.getManagers());
- }
- break;
- }
-
- return hasAccess;
- }
-
- /**
- *
- * @param command
- * @return
- */
- private int getActionCode(JCRCommand command)
- {
- int actionCode = -1;
-
- if(this.readCommands.contains(command.getClass().getName()))
- {
- actionCode = read;
- }
- else if(this.writeCommands.contains(command.getClass().getName()))
- {
- actionCode = write;
- }
- else if(this.manageCommands.contains(command.getClass().getName()))
- {
- actionCode = manage;
- }
- return actionCode;
- }
- //---------------------------------------------------------------------------------------------------------------------------------------
- /**
- *
- * @param user
- * @param command
- * @return
- */
- private boolean hasReadAccess(User user,JCRCommand command)
- {
- boolean hasReadAccess = false;
-
- String path = null;
- if(command instanceof FolderGetListCommand)
- {
- path = ((FolderGetListCommand)command).sFolderPath;
- }
- else if(command instanceof FolderGetCommand)
- {
- path = ((FolderGetCommand)command).msPath;
- }
- else if(command instanceof FileGetCommand)
- {
- path = ((FileGetCommand)command).path;
- }
- else if(command instanceof FileGetListCommand)
- {
- path = ((FileGetListCommand)command).sFilePath;
- }
-
- hasReadAccess = this.computeAccess(user,path,"read");
- if(!hasReadAccess)
- {
- //make sure implied write is not available
- hasReadAccess = this.computeAccess(user,path,"write");
- if(!hasReadAccess)
+
+ default:
+ //check if a filter needs to be applied here......
+ //only show resources that the user has write or more access to
+ if (cmsSecurityContext.getAttribute("applyFilter") != null)
{
- //make sure implied manage is not available
- hasReadAccess = this.computeAccess(user,path,"manage");
+ String path = (String)cmsSecurityContext.getAttribute("applyFilter");
+ hasAccess = this.computeToolAccess(loggedInUser, path);
}
- }
-
- return hasReadAccess;
- }
- //-------------------------------------------------------------------------------------------------------------------------------------------
- /**
- *
- * @param user
- * @param command
- * @return
- */
- private boolean hasWriteAccess(User user,JCRCommand command)
- {
- boolean hasWriteAccess = false;
-
- String path = null;
- if(command instanceof ContentCreateCommand)
- {
- path = ((ContentCreateCommand)command).mFile.getBasePath();
- }
- else if(command instanceof FileCreateCommand)
- {
- path = ((FileCreateCommand)command).mFile.getBasePath();
- }
- else if(command instanceof FolderCreateCommand)
- {
- path = ((FolderCreateCommand)command).mFolder.getBasePath();
- }
- else if(command instanceof FileUpdateCommand)
- {
- path = ((FileUpdateCommand)command).mFile.getBasePath();
- }
- else if(command instanceof StoreArchiveCommand)
- {
- path = ((StoreArchiveCommand)command).msRootPath;
- }
- else if(command instanceof NewFileCommand)
- {
- path = ((NewFileCommand)command).getPath();
- }
- else if(command instanceof UpdateFileCommand)
- {
- path = ((UpdateFileCommand)command).getPath();
- }
-
- hasWriteAccess = this.computeAccess(user,path,"write");
- if(!hasWriteAccess)
- {
- //make sure implied manage is not available
- hasWriteAccess = this.computeAccess(user,path,"manage");
- }
-
- return hasWriteAccess;
- }
- //-----------------------------------------------------------------------------------------------------------------------------------------
- /**
- *
- * @param user
- * @param command
- * @return
- */
- private boolean hasManageAccess(User user,JCRCommand command)
- {
- boolean hasManageAccess = false;
-
- String path = null;
- if(command instanceof CopyCommand)
- {
- path = ((CopyCommand)command).msFromPath;
- hasManageAccess = this.computeAccess(user,path,"manage");
- if(hasManageAccess)
+ else if (cmsSecurityContext.getAttribute("path") != null)
{
- path = ((CopyCommand)command).msToPath;
- hasManageAccess = this.computeAccess(user,path,"manage");
+ String path = (String)cmsSecurityContext.getAttribute("path");
+ hasAccess = this.computeAccess(loggedInUser, path, "read");
}
- }
- else if(command instanceof DeleteCommand)
- {
- path = ((DeleteCommand)command).msPath;
- hasManageAccess = this.computeAccess(user,path,"manage");
- }
- else if(command instanceof MoveCommand)
- {
- path = ((MoveCommand)command).msFromPath;
- hasManageAccess = this.computeAccess(user,path,"manage");
- if(hasManageAccess)
+ //check if workflow management protection needs to be enforced
+ else if (cmsSecurityContext.getAttribute("manageWorkflow") != null)
{
- path = ((MoveCommand)command).msToPath;
- hasManageAccess = this.computeAccess(user,path,"manage");
+ ApprovePublish service = (ApprovePublish)cmsSecurityContext.
+ getAttribute("approvePublish");
+ hasAccess = this.computeWorkflowManagementAccess(loggedInUser, service.getManagers());
}
- }
-
- return hasManageAccess;
- }
- //-----------------------------------------------------------------------------------------------------------------------------------------
- /**
- *
- */
- private boolean computeAccess(User user,String path,String action)
- {
- boolean hasAccess = false;
-
- //to prevent any administration issues, if the user is the 'admin'
- //treat him like a super user with access to everything in the cms
- if(user!= null && user.getUserName()!=null && user.getUserName().equals("admin"))
- {
- return true;
- }
-
-
- //get the permissions available for the user in question
- Collection userPermissions = this.getPermissions(user);
-
- //check against permissions that are explicitly specified on this node (file or folder)
- Collection specificPermissions = this.getPermissions(path);
- for(Iterator itr=specificPermissions.iterator();itr.hasNext();)
- {
- Permission specificPermission = (Permission)itr.next();
- if(specificPermission.getService().equals("cms") && specificPermission.getAction().equals(action))
+ break;
+ }
+
+ return hasAccess;
+ }
+
+ /**
+ * @param command
+ * @return
+ */
+ private int getActionCode(JCRCommand command)
+ {
+ int actionCode = -1;
+
+ if (this.readCommands.contains(command.getClass().getName()))
+ {
+ actionCode = read;
+ }
+ else if (this.writeCommands.contains(command.getClass().getName()))
+ {
+ actionCode = write;
+ }
+ else if (this.manageCommands.contains(command.getClass().getName()))
+ {
+ actionCode = manage;
+ }
+ return actionCode;
+ }
+
+ //---------------------------------------------------------------------------------------------------------------------------------------
+ /**
+ * @param user
+ * @param command
+ * @return
+ */
+ private boolean hasReadAccess(User user, JCRCommand command)
+ {
+ boolean hasReadAccess = false;
+
+ String path = null;
+ if (command instanceof FolderGetListCommand)
+ {
+ path = ((FolderGetListCommand)command).sFolderPath;
+ }
+ else if (command instanceof FolderGetCommand)
+ {
+ path = ((FolderGetCommand)command).msPath;
+ }
+ else if (command instanceof FileGetCommand)
+ {
+ path = ((FileGetCommand)command).path;
+ }
+ else if (command instanceof FileGetListCommand)
+ {
+ path = ((FileGetListCommand)command).sFilePath;
+ }
+
+ hasReadAccess = this.computeAccess(user, path, "read");
+ if (!hasReadAccess)
+ {
+ //make sure implied write is not available
+ hasReadAccess = this.computeAccess(user, path, "write");
+ if (!hasReadAccess)
+ {
+ //make sure implied manage is not available
+ hasReadAccess = this.computeAccess(user, path, "manage");
+ }
+ }
+
+ return hasReadAccess;
+ }
+
+ //-------------------------------------------------------------------------------------------------------------------------------------------
+ /**
+ * @param user
+ * @param command
+ * @return
+ */
+ private boolean hasWriteAccess(User user, JCRCommand command)
+ {
+ boolean hasWriteAccess = false;
+
+ String path = null;
+ if (command instanceof ContentCreateCommand)
+ {
+ path = ((ContentCreateCommand)command).mFile.getBasePath();
+ }
+ else if (command instanceof FileCreateCommand)
+ {
+ path = ((FileCreateCommand)command).mFile.getBasePath();
+ }
+ else if (command instanceof FolderCreateCommand)
+ {
+ path = ((FolderCreateCommand)command).mFolder.getBasePath();
+ }
+ else if (command instanceof FileUpdateCommand)
+ {
+ path = ((FileUpdateCommand)command).mFile.getBasePath();
+ }
+ else if (command instanceof StoreArchiveCommand)
+ {
+ path = ((StoreArchiveCommand)command).msRootPath;
+ }
+ else if (command instanceof NewFileCommand)
+ {
+ path = ((NewFileCommand)command).getPath();
+ }
+ else if (command instanceof UpdateFileCommand)
+ {
+ path = ((UpdateFileCommand)command).getPath();
+ }
+
+ hasWriteAccess = this.computeAccess(user, path, "write");
+ if (!hasWriteAccess)
+ {
+ //make sure implied manage is not available
+ hasWriteAccess = this.computeAccess(user, path, "manage");
+ }
+
+ return hasWriteAccess;
+ }
+
+ //-----------------------------------------------------------------------------------------------------------------------------------------
+ /**
+ * @param user
+ * @param command
+ * @return
+ */
+ private boolean hasManageAccess(User user, JCRCommand command)
+ {
+ boolean hasManageAccess = false;
+
+ String path = null;
+ if (command instanceof CopyCommand)
+ {
+ path = ((CopyCommand)command).msFromPath;
+ hasManageAccess = this.computeAccess(user, path, "manage");
+ if (hasManageAccess)
+ {
+ path = ((CopyCommand)command).msToPath;
+ hasManageAccess = this.computeAccess(user, path, "manage");
+ }
+ }
+ else if (command instanceof DeleteCommand)
+ {
+ path = ((DeleteCommand)command).msPath;
+ hasManageAccess = this.computeAccess(user, path, "manage");
+ }
+ else if (command instanceof MoveCommand)
+ {
+ path = ((MoveCommand)command).msFromPath;
+ hasManageAccess = this.computeAccess(user, path, "manage");
+ if (hasManageAccess)
+ {
+ path = ((MoveCommand)command).msToPath;
+ hasManageAccess = this.computeAccess(user, path, "manage");
+ }
+ }
+
+ return hasManageAccess;
+ }
+
+ //-----------------------------------------------------------------------------------------------------------------------------------------
+ /**
+ *
+ */
+ private boolean computeAccess(User user, String path, String action)
+ {
+ boolean hasAccess = false;
+
+ //to prevent any administration issues, if the user is the 'admin'
+ //treat him like a super user with access to everything in the cms
+ if (user != null && user.getUserName() != null && user.getUserName().equals("admin"))
+ {
+ return true;
+ }
+
+ //get the permissions available for the user in question
+ Collection userPermissions = this.getPermissions(user);
+
+ //check against permissions that are explicitly specified on this node (file or folder)
+ Collection specificPermissions = this.getPermissions(path);
+ for (Iterator itr = specificPermissions.iterator(); itr.hasNext();)
+ {
+ Permission specificPermission = (Permission)itr.next();
+ if (specificPermission.getService().equals("cms") && specificPermission.getAction().equals(action))
+ {
+ for (Iterator itr2 = userPermissions.iterator(); itr2.hasNext();)
{
- for(Iterator itr2=userPermissions.iterator();itr2.hasNext();)
- {
- Permission userPermission = (Permission)itr2.next();
- if(userPermission.getService().equals("cms") && userPermission.getAction().equals(action))
- {
+ Permission userPermission = (Permission)itr2.next();
+ if (userPermission.getService().equals("cms") && userPermission.getAction().equals(action))
+ {
+ String pathCriteria = userPermission.findCriteriaValue("path");
+ if (pathCriteria.equals(path))
+ {
+ //this means this user has read access to this path
+ hasAccess = true;
+ }
+ }
+ }
+ }
+ }
+
+ if (specificPermissions != null && !specificPermissions.isEmpty())
+ {
+ //explicit permissions on this node have been specified....
+ //which override any permissions that could be inherited via the path hierarchy
+ return hasAccess;
+ }
+
+ //check against the full path of this resource and make sure,
+ //there aren't any specific node permissions specified on any node along the path
+ //that excludes this user from having access for this action
+ StringTokenizer st = new StringTokenizer(path, "/");
+ StringBuffer buffer = new StringBuffer("/");
+ List list = new ArrayList();
+ list.add(new String(buffer.toString()));
+ while (st.hasMoreTokens())
+ {
+ String token = st.nextToken();
+
+ buffer.append(token);
+ list.add(buffer.toString());
+
+ //Make sure only path leading up to the resource is checked against.
+ //Not on the full path to the resource...
+ //Because if that was the case, the specificPermissions would have been applied
+ //in earlier checks...This is to check the recursive application of permissions
+ //to the resource in question
+ if (st.hasMoreTokens())
+ {
+ buffer.append("/");
+ }
+ else
+ {
+ continue;
+ }
+ }
+
+ boolean explicitPermissionsFound = false;
+ Iterator it = list.iterator();
+ while (it.hasNext())
+ {
+ String currentPath = (String)it.next();
+ Collection permissions = this.getPermissions(currentPath);
+
+ //perform processing for permissions explicitly set on this node
+ //in the path hierarchy
+ if (permissions != null && !permissions.isEmpty())
+ {
+ explicitPermissionsFound = true;
+
+ //specific node permissions found on one of the nodes in the path...
+ //make sure the current user is listed to have access to this.
+ boolean accessFound = false;
+ for (Iterator itr = permissions.iterator(); itr.hasNext();)
+ {
+ Permission nodePermission = (Permission)itr.next();
+ if (nodePermission.getService().equals("cms") && nodePermission.getAction().equals(action))
+ {
+ for (Iterator itr2 = userPermissions.iterator(); itr2.hasNext();)
+ {
+ Permission userPermission = (Permission)itr2.next();
+ if (userPermission.getService().equals("cms") &&
+ this.isActionImplied(userPermission.getAction(), action)
+ )
+ {
String pathCriteria = userPermission.findCriteriaValue("path");
- if(pathCriteria.equals(path))
+ if (pathCriteria.equals(currentPath))
{
- //this means this user has read access to this path
- hasAccess = true;
+ //this means this user has read access to this path
+ accessFound = true;
}
- }
- }
+ }
+ }
+ }
+ if (accessFound)
+ {
+ break;
+ }
}
- }
-
- if(specificPermissions!=null && !specificPermissions.isEmpty())
- {
- //explicit permissions on this node have been specified....
- //which override any permissions that could be inherited via the path hierarchy
- return hasAccess;
- }
-
-
- //check against the full path of this resource and make sure,
- //there aren't any specific node permissions specified on any node along the path
- //that excludes this user from having access for this action
- StringTokenizer st = new StringTokenizer(path,"/");
- StringBuffer buffer = new StringBuffer("/");
- List list = new ArrayList();
- list.add(new String(buffer.toString()));
- while(st.hasMoreTokens())
- {
- String token = st.nextToken();
-
- buffer.append(token);
- list.add(buffer.toString());
-
- //Make sure only path leading up to the resource is checked against.
- //Not on the full path to the resource...
- //Because if that was the case, the specificPermissions would have been applied
- //in earlier checks...This is to check the recursive application of permissions
- //to the resource in question
- if(st.hasMoreTokens())
- {
- buffer.append("/");
- }
- else
+ if (!accessFound)
{
- continue;
+ //the user does not have access through the path hierarchy
+ return false;
}
- }
-
- boolean explicitPermissionsFound = false;
- Iterator it = list.iterator();
- while (it.hasNext())
- {
- String currentPath = (String)it.next();
- Collection permissions = this.getPermissions(currentPath);
+ }
+ }
- //perform processing for permissions explicitly set on this node
- //in the path hierarchy
- if(permissions!=null && !permissions.isEmpty())
- {
- explicitPermissionsFound = true;
-
- //specific node permissions found on one of the nodes in the path...
- //make sure the current user is listed to have access to this.
- boolean accessFound = false;
- for(Iterator itr=permissions.iterator();itr.hasNext();)
- {
- Permission nodePermission = (Permission)itr.next();
- if(nodePermission.getService().equals("cms") && nodePermission.getAction().equals(action))
- {
- for(Iterator itr2=userPermissions.iterator();itr2.hasNext();)
- {
- Permission userPermission = (Permission)itr2.next();
- if( userPermission.getService().equals("cms") &&
- this.isActionImplied(userPermission.getAction(),action)
- )
- {
- String pathCriteria = userPermission.findCriteriaValue("path");
- if(pathCriteria.equals(currentPath))
- {
- //this means this user has read access to this path
- accessFound = true;
- }
- }
- }
- }
- if(accessFound)
- {
- break;
- }
- }
- if(!accessFound)
- {
- //the user does not have access through the path hierarchy
- return false;
- }
- }
- }
-
- //if i am here the user has access to this node via path hierarchy inheritance
- if(explicitPermissionsFound)
- {
- //and without the hierarchy access *not being overriden* by any *explicit permissions*
- //on nodes in the hierarchy
- hasAccess = true;
- }
- else
- {
- //there were no permissions found anywhere throughout the resource's path hierarchy
- hasAccess = false;
- }
-
- return hasAccess;
- }
-
- /**
- * This is used to filter out cms resources in the CMS Admin tool, so that the user
- * can see only the resources that he has write/manage access to
- *
- * @param user
- * @param path
- * @return
- */
- private boolean computeToolAccess(User user,String path)
- {
- boolean toolAccess = false;
-
- //to prevent any administration issues, if the user is the 'admin'
- //treat him like a super user with access to everything in the cms
- if(user!= null && user.getUserName()!=null && user.getUserName().equals("admin"))
- {
- return true;
- }
+ //if i am here the user has access to this node via path hierarchy inheritance
+ if (explicitPermissionsFound)
+ {
+ //and without the hierarchy access *not being overriden* by any *explicit permissions*
+ //on nodes in the hierarchy
+ hasAccess = true;
+ }
+ else
+ {
+ //there were no permissions found anywhere throughout the resource's path hierarchy
+ hasAccess = false;
+ }
- //get the permissions available for the user in question
- Collection userPermissions = this.getPermissions(user);
-
- //check against permissions that are explicitly specified on this node (file or folder)
- Collection specificPermissions = this.getPermissions(path);
- for(Iterator itr=specificPermissions.iterator();itr.hasNext();)
- {
- Permission specificPermission = (Permission)itr.next();
- if( (specificPermission.getService().equals("cms")) &&
- (specificPermission.getAction().equals("write") || specificPermission.getAction().equals("manage"))
+ return hasAccess;
+ }
+
+ /**
+ * This is used to filter out cms resources in the CMS Admin tool, so that the user can see only the resources that
+ * he has write/manage access to
+ *
+ * @param user
+ * @param path
+ * @return
+ */
+ private boolean computeToolAccess(User user, String path)
+ {
+ boolean toolAccess = false;
+
+ //to prevent any administration issues, if the user is the 'admin'
+ //treat him like a super user with access to everything in the cms
+ if (user != null && user.getUserName() != null && user.getUserName().equals("admin"))
+ {
+ return true;
+ }
+
+ //get the permissions available for the user in question
+ Collection userPermissions = this.getPermissions(user);
+
+ //check against permissions that are explicitly specified on this node (file or folder)
+ Collection specificPermissions = this.getPermissions(path);
+ for (Iterator itr = specificPermissions.iterator(); itr.hasNext();)
+ {
+ Permission specificPermission = (Permission)itr.next();
+ if ((specificPermission.getService().equals("cms")) &&
+ (specificPermission.getAction().equals("write") || specificPermission.getAction().equals("manage"))
)
+ {
+ for (Iterator itr2 = userPermissions.iterator(); itr2.hasNext();)
{
- for(Iterator itr2=userPermissions.iterator();itr2.hasNext();)
- {
- Permission userPermission = (Permission)itr2.next();
- if( (userPermission.getService().equals("cms")) &&
- (userPermission.getAction().equals("write") || userPermission.getAction().equals("manage"))
- )
- {
- String pathCriteria = userPermission.findCriteriaValue("path");
- if(pathCriteria.equals(path))
- {
- //this means this user has read access to this path
- toolAccess = true;
- }
- }
- }
+ Permission userPermission = (Permission)itr2.next();
+ if ((userPermission.getService().equals("cms")) &&
+ (userPermission.getAction().equals("write") || userPermission.getAction().equals("manage"))
+ )
+ {
+ String pathCriteria = userPermission.findCriteriaValue("path");
+ if (pathCriteria.equals(path))
+ {
+ //this means this user has read access to this path
+ toolAccess = true;
+ }
+ }
}
- }
-
- if(specificPermissions!=null && !specificPermissions.isEmpty())
- {
- //explicit permissions on this node have been specified....
- //which override any permissions that could be inherited via the path hierarchy
- return toolAccess;
- }
-
- //if i am here...calculate based on permissions inherited via path hierarchy
- Collection writeOrMoreCriteria = this.getWriteOrMore(userPermissions);
- for(Iterator itr=writeOrMoreCriteria.iterator();itr.hasNext();)
- {
- Criteria cour = (Criteria)itr.next();
- if(this.doesPathMatchPattern(path,cour.getValue()))
+ }
+ }
+
+ if (specificPermissions != null && !specificPermissions.isEmpty())
+ {
+ //explicit permissions on this node have been specified....
+ //which override any permissions that could be inherited via the path hierarchy
+ return toolAccess;
+ }
+
+ //if i am here...calculate based on permissions inherited via path hierarchy
+ Collection writeOrMoreCriteria = this.getWriteOrMore(userPermissions);
+ for (Iterator itr = writeOrMoreCriteria.iterator(); itr.hasNext();)
+ {
+ Criteria cour = (Criteria)itr.next();
+ if (this.doesPathMatchPattern(path, cour.getValue()))
+ {
+
+ toolAccess = true;
+ break;
+ }
+ }
+
+ return toolAccess;
+ }
+
+ /**
+ * @param user
+ * @return
+ */
+ private boolean computeWorkflowManagementAccess(User user, Set managerRoles)
+ {
+ if (managerRoles == null || managerRoles.isEmpty())
+ {
+ return false;
+ }
+
+ //now check to see if the currently logged in user has workflow management access
+ try
+ {
+ boolean hasAccess = false;
+
+ Set userRoles = this.authorizationManager.getProvider().
+ getMembershipModule().getRoles(user);
+
+ if (userRoles != null)
+ {
+ for (Iterator itr = userRoles.iterator(); itr.hasNext();)
{
-
- toolAccess = true;
- break;
+ Role userRole = (Role)itr.next();
+ String userRoleName = userRole.getName();
+ if (managerRoles.contains(userRoleName))
+ {
+ hasAccess = true;
+ break;
+ }
}
- }
-
- return toolAccess;
- }
+ }
- /**
- *
- * @param user
- * @return
- */
- private boolean computeWorkflowManagementAccess(User user,Set managerRoles)
- {
- if(managerRoles == null || managerRoles.isEmpty())
- {
- return false;
- }
-
- //now check to see if the currently logged in user has workflow management access
- try
- {
- boolean hasAccess = false;
-
- Set userRoles = this.authorizationManager.getProvider().
- getMembershipModule().getRoles(user);
-
- if(userRoles != null)
- {
- for(Iterator itr=userRoles.iterator();itr.hasNext();)
- {
- Role userRole = (Role)itr.next();
- String userRoleName = userRole.getName();
- if(managerRoles.contains(userRoleName))
- {
- hasAccess = true;
- break;
- }
- }
- }
-
- return hasAccess;
- }
- catch(Exception e)
- {
- throw new RuntimeException(e);
- }
- }
- //----------------------------------------------------------------------------------------------------------------------------------------------
- /**
- *
- * @param user
- * @return
- */
- private Collection getPermissions(User user)
- {
- Collection permissions = null;
-
- if(user!=null)
- {
- //this is not an anonymous access
- String userId = user.getUserName();
- String uri = this.authorizationManager.getProvider().getUserURI(userId);
- permissions = this.authorizationManager.getProvider().getSecurityBindings(uri);
- }
- else
- {
- //this is an anonymous access
- String uri = this.authorizationManager.getProvider().getRoleURI(AuthorizationManager.Anonymous);
- permissions = this.authorizationManager.getProvider().getSecurityBindings(uri);
- }
- return permissions;
- }
-
- /**
- *
- * @param user
- * @return
- */
- private Collection getPermissions(String path)
- {
- Criteria criteria = new Criteria("path",path);
-
- String uri = this.authorizationManager.getProvider().
- getCriteriaURI(criteria.getName(), criteria.getValue());
-
- return this.authorizationManager.getProvider().getSecurityBindings(uri);
- }
-
- /**
- *
- * @param allPermissions
- * @return
- */
- private Collection getWriteOrMore(Collection allPermissions)
- {
- Collection writeOrMore = new HashSet();
-
- if(allPermissions!=null)
- {
- for(Iterator itr=allPermissions.iterator();itr.hasNext();)
- {
- Permission cour = (Permission)itr.next();
- if( (cour.getService().equals("cms")) &&
- ( cour.getAction().equals("write") || cour.getAction().equals("manage") )
+ return hasAccess;
+ }
+ catch (Exception e)
+ {
+ throw new RuntimeException(e);
+ }
+ }
+
+ //----------------------------------------------------------------------------------------------------------------------------------------------
+ /**
+ * @param user
+ * @return
+ */
+ private Collection getPermissions(User user)
+ {
+ Collection permissions = null;
+
+ if (user != null)
+ {
+ //this is not an anonymous access
+ String userId = user.getUserName();
+ String uri = this.authorizationManager.getProvider().getUserURI(userId);
+ permissions = this.authorizationManager.getProvider().getSecurityBindings(uri);
+ }
+ else
+ {
+ //this is an anonymous access
+ String uri = this.authorizationManager.getProvider().getRoleURI(AuthorizationManager.Anonymous);
+ permissions = this.authorizationManager.getProvider().getSecurityBindings(uri);
+ }
+ return permissions;
+ }
+
+ /**
+ * @param user
+ * @return
+ */
+ private Collection getPermissions(String path)
+ {
+ Criteria criteria = new Criteria("path", path);
+
+ String uri = this.authorizationManager.getProvider().
+ getCriteriaURI(criteria.getName(), criteria.getValue());
+
+ return this.authorizationManager.getProvider().getSecurityBindings(uri);
+ }
+
+ /**
+ * @param allPermissions
+ * @return
+ */
+ private Collection getWriteOrMore(Collection allPermissions)
+ {
+ Collection writeOrMore = new HashSet();
+
+ if (allPermissions != null)
+ {
+ for (Iterator itr = allPermissions.iterator(); itr.hasNext();)
+ {
+ Permission cour = (Permission)itr.next();
+ if ((cour.getService().equals("cms")) &&
+ (cour.getAction().equals("write") || cour.getAction().equals("manage"))
)
- {
- writeOrMore.addAll(cour.getCriteria());
- }
- }
- }
-
- return writeOrMore;
- }
-
- /**
- * @param path
- * @param pattern
- * @return
- */
- private boolean doesPathMatchPattern(String path,String pattern)
- {
- boolean match = true;
-
- //format the path first before starting to match it with the specified pattern
- if(!path.startsWith("/"))
- {
- path = "/" + path;
- }
- if(!path.endsWith("/"))
- {
- path = path + "/";
- }
-
- StringTokenizer patternTokenizer = new StringTokenizer(pattern,"/");
- StringTokenizer pathTokenizer = new StringTokenizer(path,"/");
- StringBuffer pathMatched = new StringBuffer("/");
- StringBuffer patternMatched = new StringBuffer();
- if(pattern.startsWith("/"))
- {
- patternMatched.append("/");
- }
- while(
- patternTokenizer.hasMoreTokens() &&
- pathTokenizer.hasMoreTokens()
- )
- {
- String patternToken = patternTokenizer.nextToken();
- String pathToken = pathTokenizer.nextToken();
-
- //setup token tracking
- pathMatched.append(pathToken+"/");
- if(patternTokenizer.hasMoreTokens())
{
- patternMatched.append(patternToken+"/");
+ writeOrMore.addAll(cour.getCriteria());
}
- else
+ }
+ }
+
+ return writeOrMore;
+ }
+
+ /**
+ * @param path
+ * @param pattern
+ * @return
+ */
+ private boolean doesPathMatchPattern(String path, String pattern)
+ {
+ boolean match = true;
+
+ //format the path first before starting to match it with the specified pattern
+ if (!path.startsWith("/"))
+ {
+ path = "/" + path;
+ }
+ if (!path.endsWith("/"))
+ {
+ path = path + "/";
+ }
+
+ StringTokenizer patternTokenizer = new StringTokenizer(pattern, "/");
+ StringTokenizer pathTokenizer = new StringTokenizer(path, "/");
+ StringBuffer pathMatched = new StringBuffer("/");
+ StringBuffer patternMatched = new StringBuffer();
+ if (pattern.startsWith("/"))
+ {
+ patternMatched.append("/");
+ }
+ while (
+ patternTokenizer.hasMoreTokens() &&
+ pathTokenizer.hasMoreTokens()
+ )
+ {
+ String patternToken = patternTokenizer.nextToken();
+ String pathToken = pathTokenizer.nextToken();
+
+ //setup token tracking
+ pathMatched.append(pathToken + "/");
+ if (patternTokenizer.hasMoreTokens())
+ {
+ patternMatched.append(patternToken + "/");
+ }
+ else
+ {
+ patternMatched.append(patternToken);
+ }
+
+ //perform token matching
+ if (!match)
+ {
+ continue;
+ }
+ int wildCardIndex = patternToken.indexOf('*');
+ //if wildCard is not relevant
+ if (wildCardIndex <= 0)
+ {
+ //if wildCardIndex == 0 then this token matches...
+ if (wildCardIndex != 0 && !pathToken.equals(patternToken))
{
- patternMatched.append(patternToken);
+ match = false;
}
-
- //perform token matching
- if(!match){continue;}
- int wildCardIndex = patternToken.indexOf('*');
- //if wildCard is not relevant
- if(wildCardIndex<=0)
+ }
+ else
+ {
+ String wildPath = pathToken.substring(0, wildCardIndex);
+ String wildPattern = patternToken.substring(0, wildCardIndex);
+ if (!wildPath.equals(wildPattern))
{
- //if wildCardIndex == 0 then this token matches...
- if(wildCardIndex!=0 && !pathToken.equals(patternToken))
- {
- match = false;
- }
+ match = false;
}
- else
- {
- String wildPath = pathToken.substring(0,wildCardIndex);
- String wildPattern = patternToken.substring(0,wildCardIndex);
- if(!wildPath.equals(wildPattern))
- {
- match = false;
- }
- }
- }
-
- return match;
- }
-
- /**
- *
- * @param action
- * @param impliedTarget
- * @return
- */
- private boolean isActionImplied(String action,String impliedTarget)
- {
- boolean implied = false;
-
- if(impliedTarget.equalsIgnoreCase("read"))
- {
- if(action.equalsIgnoreCase("read") || action.equalsIgnoreCase("write") || action.equalsIgnoreCase("manage"))
- {
- implied = true;
- }
- }
- else if(impliedTarget.equalsIgnoreCase("write"))
- {
- if(action.equalsIgnoreCase("write") || action.equalsIgnoreCase("manage"))
- {
- implied = true;
- }
- }
- else if(impliedTarget.equalsIgnoreCase("manage"))
- {
- if(action.equalsIgnoreCase("manage"))
- {
- implied = true;
- }
- }
-
- return implied;
- }
+ }
+ }
+
+ return match;
+ }
+
+ /**
+ * @param action
+ * @param impliedTarget
+ * @return
+ */
+ private boolean isActionImplied(String action, String impliedTarget)
+ {
+ boolean implied = false;
+
+ if (impliedTarget.equalsIgnoreCase("read"))
+ {
+ if (action.equalsIgnoreCase("read") || action.equalsIgnoreCase("write") || action.equalsIgnoreCase("manage"))
+ {
+ implied = true;
+ }
+ }
+ else if (impliedTarget.equalsIgnoreCase("write"))
+ {
+ if (action.equalsIgnoreCase("write") || action.equalsIgnoreCase("manage"))
+ {
+ implied = true;
+ }
+ }
+ else if (impliedTarget.equalsIgnoreCase("manage"))
+ {
+ if (action.equalsIgnoreCase("manage"))
+ {
+ implied = true;
+ }
+ }
+
+ return implied;
+ }
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ACLEnforcer.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentCreateCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentCreateCommand.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentCreateCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -62,8 +62,8 @@
contentNode.setProperty("portalcms:description", new StringValue(mFile.getContent().getDescription()));
contentNode.setProperty("portalcms:title", new StringValue(mFile.getContent().getTitle()));
contentNode.setProperty("portalcms:language", new StringValue(mFile.getContent().getLocale().getLanguage()));
-
+
if (mFile.getContent().getMimeType() != null)
{
contentNode.setProperty("jcr:mimeType", mFile.getContent().getMimeType());
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentCreateCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentCreateNewVersionCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentCreateNewVersionCommand.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentCreateNewVersionCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -27,7 +27,6 @@
import org.jboss.portal.cms.impl.jcr.util.VersionUtil;
import org.jboss.portal.cms.model.Content;
import org.jboss.portal.common.invocation.Scope;
-
import org.jboss.portal.identity.User;
import javax.jcr.Node;
@@ -36,7 +35,7 @@
/**
* Creates a new version of the content and labels it "LIVE".
- *
+ *
* @author <a href="mailto:roy@jboss.org">Roy Russo</a>
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
* @author Sohil Shah - sohil.shah(a)jboss.com
@@ -53,8 +52,7 @@
/**
* @param content
- * @param bMakeLive
- * Whether this updated version should be made "LIVE"
+ * @param bMakeLive Whether this updated version should be made "LIVE"
*/
public ContentCreateNewVersionCommand(Content content, boolean bMakeLive)
{
@@ -69,7 +67,7 @@
}
/**
- *
+ *
*/
public Object execute()
{
@@ -80,27 +78,27 @@
// create versions
for (int i = 0; i < mContents.size(); i++)
{
- Content content = (Content) mContents.get(i);
- Node contentNode = (Node) context.getSession().getItem(
- content.getBasePath());
+ Content content = (Content)mContents.get(i);
+ Node contentNode = (Node)context.getSession().getItem(
+ content.getBasePath());
// if the creator of this content is known, record it
- User user = (User) this.context.getAttribute(scope, "user");
+ User user = (User)this.context.getAttribute(scope, "user");
if (user != null)
{
contentNode.setProperty("portalcms:user", user.getUserName());
}
contentNode.setProperty("portalcms:size", new StringValue(String
- .valueOf(content.getBytes().length)));
+ .valueOf(content.getBytes().length)));
context.getSession().save();
- String processId = (String) context
- .getAttribute(scope, "processid");
+ String processId = (String)context
+ .getAttribute(scope, "processid");
// integration of publish/approval workflow
if (this.bMakeLive && processId != null
- && processId.trim().length() != 0)
+ && processId.trim().length() != 0)
{
// now save workflow related meta data on this version
// so that this version can be processed later in the execution
@@ -116,7 +114,7 @@
else
{
// remove any processid if they are present on the node
- contentNode.setProperty("portalcms:processid", (String) null);
+ contentNode.setProperty("portalcms:processid", (String)null);
contentNode.save();
// not asking to publish the content...no workflow needed
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentCreateNewVersionCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentGetCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentGetCommand.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentGetCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,12 +22,12 @@
******************************************************************************/
package org.jboss.portal.cms.impl.jcr.command;
+import org.jboss.logging.Logger;
import org.jboss.portal.cms.impl.ContentImpl;
import org.jboss.portal.cms.impl.jcr.JCRCommand;
+import org.jboss.portal.cms.impl.jcr.util.VersionUtil;
import org.jboss.portal.cms.model.Content;
import org.jboss.portal.cms.util.FileUtil;
-import org.jboss.logging.Logger;
-import org.jboss.portal.cms.impl.jcr.util.VersionUtil;
import javax.jcr.Node;
import javax.jcr.NodeIterator;
@@ -108,12 +108,12 @@
contentNode = (Node)session.getItem(content.getBasePath());
VersionHistory vh = contentNode.getVersionHistory();
Version version = VersionUtil.getLiveVersion(vh);
-
- if(version == null)
+
+ if (version == null)
{
return null;
}
-
+
NodeIterator ni = version.getNodes();
contentNode = ni.nextNode();
content.setCreationDate(version.getCreated().getTime());
@@ -139,7 +139,7 @@
content.setVersionNumber(version.getName());
content.setVersionPath(version.getPath());
content.setVersionUUID(version.getUUID());
- if(liveVersion != null && liveVersion.getName().equals(version.getName())) // check if this version is the live one.
+ if (liveVersion != null && liveVersion.getName().equals(version.getName())) // check if this version is the live one.
{
content.setLive(true);
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentGetCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentGetVersionsCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentGetVersionsCommand.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentGetVersionsCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -24,16 +24,16 @@
import org.jboss.portal.cms.impl.ContentImpl;
import org.jboss.portal.cms.impl.jcr.JCRCommand;
+import org.jboss.portal.cms.impl.jcr.util.VersionUtil;
import org.jboss.portal.cms.model.Content;
-import org.jboss.portal.cms.impl.jcr.util.VersionUtil;
import javax.jcr.Node;
import javax.jcr.NodeIterator;
+import javax.jcr.PathNotFoundException;
import javax.jcr.Session;
import javax.jcr.version.Version;
import javax.jcr.version.VersionHistory;
import javax.jcr.version.VersionIterator;
-import javax.jcr.PathNotFoundException;
import java.util.Locale;
import java.util.Vector;
@@ -65,10 +65,10 @@
Node fileNode = (Node)session.getItem(this.msFilePath);
VersionHistory vh = fileNode.getVersionHistory();
-
+
Version liveVersion = VersionUtil.getLiveVersion(vh);
-
-
+
+
Version rootVersion = vh.getRootVersion();
@@ -96,9 +96,9 @@
content.setBytes("".getBytes());
int size = 0;
- if(node.hasProperty("portalcms:size"))
+ if (node.hasProperty("portalcms:size"))
{
- size = Integer.parseInt(node.getProperty("portalcms:size").getString());
+ size = Integer.parseInt(node.getProperty("portalcms:size").getString());
}
content.setSize(size);
@@ -115,26 +115,26 @@
content.setEncoding(node.getProperty("jcr:encoding").getString());
-
+
//check if this content is waiting to be approved for publishing or not
try
{
- String processid = node.getProperty("portalcms:processid").getString();
- if(processid != null && processid.trim().length()>0)
- {
- content.setWaitingForPublishApproval(true);
- content.setApprovalProcessId(processid);
- }
- else
- {
- content.setWaitingForPublishApproval(false);
- content.setApprovalProcessId(null);
- }
+ String processid = node.getProperty("portalcms:processid").getString();
+ if (processid != null && processid.trim().length() > 0)
+ {
+ content.setWaitingForPublishApproval(true);
+ content.setApprovalProcessId(processid);
+ }
+ else
+ {
+ content.setWaitingForPublishApproval(false);
+ content.setApprovalProcessId(null);
+ }
}
- catch(PathNotFoundException pne)
+ catch (PathNotFoundException pne)
{
- content.setWaitingForPublishApproval(false);
- content.setApprovalProcessId(null);
+ content.setWaitingForPublishApproval(false);
+ content.setApprovalProcessId(null);
}
contents.addElement(content);
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ContentGetVersionsCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/CopyCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/DeleteCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FileCreateCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FileGetCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FileGetCommand.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FileGetCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -126,7 +126,7 @@
}
return null;
}
-
+
public String toString()
{
return "FileGetCommand[path=" + path + ", versionNumber=" + versionNumber + ", locale=" + locale + "]";
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FileGetCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FileGetListCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FileUpdateAndVersionCommand.java
___________________________________________________________________
Name: svn:keywords
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FileUpdateCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FolderCreateCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FolderGetCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FolderGetListCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/FolderUpdateCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/GetArchiveCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/ItemExistsCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/MakeLiveVersionCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/MakeLiveVersionCommand.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/MakeLiveVersionCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -23,7 +23,6 @@
package org.jboss.portal.cms.impl.jcr.command;
import org.apache.log4j.Logger;
-
import org.jboss.portal.cms.CMSException;
import org.jboss.portal.cms.impl.jcr.JCRCommand;
@@ -40,10 +39,10 @@
public class MakeLiveVersionCommand extends JCRCommand
{
/**
- *
+ *
*/
private static Logger log = Logger.getLogger(MakeLiveVersionCommand.class);
-
+
/** The serialVersionUID */
private static final long serialVersionUID = 6853173755818339647L;
String msFilePath = null;
@@ -51,7 +50,6 @@
String version = null;
/**
- *
* @param sFilePath
* @param language
* @param version
@@ -64,7 +62,7 @@
}
/**
- *
+ *
*/
public Object execute()
{
@@ -72,17 +70,17 @@
try
{
Session session = context.getSession();
- Node fileNode = (Node)session.getItem(this.msFilePath+"/"+this.language);
+ Node fileNode = (Node)session.getItem(this.msFilePath + "/" + this.language);
- VersionHistory vh = fileNode.getVersionHistory();
+ VersionHistory vh = fileNode.getVersionHistory();
vh.addVersionLabel(this.version, "LIVE", true);
- versionMadeLive = this.version;
+ versionMadeLive = this.version;
}
catch (Exception e)
{
- log.error(this,e);
+ log.error(this, e);
throw new CMSException(e);
- }
+ }
return versionMadeLive;
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/MakeLiveVersionCommand.java
___________________________________________________________________
Name: svn:keywords
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/MoveCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/RenameCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/SearchCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/SearchCommand.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/SearchCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,8 +22,11 @@
******************************************************************************/
package org.jboss.portal.cms.impl.jcr.command;
-import java.util.ArrayList;
-import java.util.List;
+import org.jboss.portal.cms.CMSException;
+import org.jboss.portal.cms.impl.FileImpl;
+import org.jboss.portal.cms.impl.jcr.JCRCommand;
+import org.jboss.portal.cms.model.File;
+import org.jboss.portal.search.impl.jcr.JCRQuery;
import javax.jcr.Node;
import javax.jcr.NodeIterator;
@@ -31,17 +34,9 @@
import javax.jcr.Workspace;
import javax.jcr.query.QueryManager;
import javax.jcr.query.QueryResult;
+import java.util.ArrayList;
+import java.util.List;
-import org.jboss.portal.cms.CMSException;
-import org.jboss.portal.cms.impl.FileImpl;
-import org.jboss.portal.cms.impl.jcr.JCRCommand;
-import org.jboss.portal.cms.model.File;
-import org.jboss.portal.search.Query;
-import org.jboss.portal.search.QueryConverter;
-import org.jboss.portal.search.impl.StandardQueryConverter;
-import org.jboss.portal.search.impl.jcr.JCRQuery;
-import org.jboss.portal.search.impl.jcr.JCRQueryConverter;
-
/**
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
* @version $Revision$
@@ -52,13 +47,13 @@
private static final long serialVersionUID = 2614067614144410297L;
private JCRQuery query;
-
+
public SearchCommand(JCRQuery query)
{
this.query = query;
}
-
-
+
+
public Object execute() throws CMSException
{
Session session = context.getSession();
@@ -69,7 +64,7 @@
try
{
queryManager = workspace.getQueryManager();
-
+
queryString = query.getJcrQuery();
if (!"".equals(queryString) && query != null)
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/SearchCommand.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/StoreArchiveCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/StoreArchiveCommand.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/StoreArchiveCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,6 +22,8 @@
******************************************************************************/
package org.jboss.portal.cms.impl.jcr.command;
+import org.apache.tools.zip.ZipEntry;
+import org.apache.tools.zip.ZipFile;
import org.jboss.portal.cms.CMSException;
import org.jboss.portal.cms.impl.ContentImpl;
import org.jboss.portal.cms.impl.FileImpl;
@@ -32,18 +34,14 @@
import org.jboss.portal.cms.util.FileUtil;
import org.jboss.portal.cms.util.NodeUtil;
-import java.io.InputStream;
-import java.io.FileOutputStream;
import java.io.File;
+import java.io.FileOutputStream;
+import java.io.InputStream;
import java.util.ArrayList;
import java.util.Date;
+import java.util.Enumeration;
import java.util.List;
import java.util.Locale;
-import java.util.Enumeration;
-
-import org.apache.tools.zip.ZipFile;
-import org.apache.tools.zip.ZipEntry;
-
import java.util.StringTokenizer;
/**
@@ -61,7 +59,6 @@
String msLanguage;
/**
- *
* @param sRootPath
* @param is
* @param sLanguage
@@ -74,7 +71,7 @@
}
/**
- *
+ *
*/
public Object execute()
{
@@ -87,12 +84,12 @@
ZipFile zipFile = new ZipFile(tmpFile);
ZipEntry zipEntry;
Enumeration entries = zipFile.getEntries();
- while(entries.hasMoreElements())
+ while (entries.hasMoreElements())
{
zipEntry = (ZipEntry)entries.nextElement();
String itemName = zipEntry.getName();
if (!zipEntry.isDirectory())
- {
+ {
long fileSize = zipEntry.getSize();
byte[] zipBytes = new byte[(int)fileSize];
InputStream zipDataStream = zipFile.getInputStream(zipEntry);
@@ -102,7 +99,7 @@
{
bytesRead += zipDataStream.read(zipBytes, (int)bytesRead, (int)(fileSize - bytesRead));
}
-
+
org.jboss.portal.cms.model.File file = new FileImpl();
String sBasePath = FileUtil.cleanDoubleSlashes("/" + this.msRootPath + "/" + itemName);
@@ -179,44 +176,40 @@
}
finally
{
- if(tmpFile != null)
+ if (tmpFile != null)
{
tmpFile.delete();
}
}
return null;
}
-
- /**
- *
- * @param parentPath
- */
+
+ /** @param parentPath */
private void createParentHierarchy(String parentPath) throws CMSException
{
- StringTokenizer tokenizer = new StringTokenizer(parentPath,"/");
-
+ StringTokenizer tokenizer = new StringTokenizer(parentPath, "/");
+
StringBuffer buffer = new StringBuffer("/");
- while(tokenizer.hasMoreTokens())
+ while (tokenizer.hasMoreTokens())
{
buffer.append(tokenizer.nextToken());
String cour = buffer.toString();
-
+
JCRCommand nodeExists = (JCRCommand)context.getCommandFactory().createItemExistsCommand(cour);
Boolean bExists = (Boolean)context.execute(nodeExists);
- if(!bExists.booleanValue())
+ if (!bExists.booleanValue())
{
this.createFolder(cour);
}
-
- if(tokenizer.hasMoreTokens())
+
+ if (tokenizer.hasMoreTokens())
{
buffer.append("/");
}
}
}
-
+
/**
- *
* @param folderPath
* @throws CMSException
*/
@@ -232,17 +225,14 @@
JCRCommand parentSave = (JCRCommand)context.getCommandFactory().createFolderSaveCommand(folder);
context.execute(parentSave);
}
-
- /**
- *
- * @return
- */
+
+ /** @return */
private File getZipFile() throws Exception
{
File zipFile = null;
-
+
zipFile = File.createTempFile("jbportal_", "_cmsimport.zip");
- FileOutputStream fos = new FileOutputStream(zipFile.getCanonicalPath());
+ FileOutputStream fos = new FileOutputStream(zipFile.getCanonicalPath());
try
{
int count;
@@ -257,7 +247,7 @@
{
fos.close();
}
-
+
return zipFile;
}
}
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/command/StoreArchiveCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/composite/NewFileCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/composite/NewFileCommand.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/composite/NewFileCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -30,44 +30,39 @@
import org.jboss.portal.cms.model.Content;
import org.jboss.portal.cms.model.File;
-/** @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
- * @author <a href="mailto:sohil.shah@jboss.com">Sohil Shah</a> - Nov 28, 2006
- **/
+/**
+ * @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
+ * @author <a href="mailto:sohil.shah@jboss.com">Sohil Shah</a> - Nov 28, 2006
+ */
public class NewFileCommand extends JCRCompositeCommand
{
/** The serialVersionUID */
private static final long serialVersionUID = -6134173065175936408L;
-
+
//
private String path = null;
private Content content = null;
-
- /**
- *
- * @return
- */
+
+ /** @return */
public String getPath()
{
- return this.path;
+ return this.path;
}
-
- /**
- *
- * @return
- */
+
+ /** @return */
public Content getContent()
{
- return this.content;
+ return this.content;
}
public NewFileCommand(File file, Content content)
{
// setAttribute("file", file);
// setAttribute("content", content);
- this.path = file.getBasePath();
- this.content = content;
-
+ this.path = file.getBasePath();
+ this.content = content;
+
Command saveFileCMD = new FileCreateCommand(file);
commands.add(saveFileCMD);
Command saveContentCMD = new ContentCreateCommand(file);
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/composite/NewFileCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/composite/UpdateFileCommand.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/composite/UpdateFileCommand.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/composite/UpdateFileCommand.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -48,14 +48,11 @@
{
return path;
}
-
- /**
- *
- * @return
- */
+
+ /** @return */
public Content getContent()
{
- return this.content;
+ return this.content;
}
public Locale getLocale()
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/composite/UpdateFileCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/ha/HAJCRCMS.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/ha/HAJCRCMS.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/ha/HAJCRCMS.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -24,20 +24,19 @@
import org.jboss.portal.cms.CMSException;
import org.jboss.portal.cms.Command;
-import org.jboss.portal.cms.model.CMSUser;
import org.jboss.portal.cms.impl.jcr.JCRCMS;
import org.jboss.portal.cms.impl.jcr.JCRCommand;
import org.jboss.portal.cms.impl.jcr.JCRCommandContext;
+import org.jboss.portal.cms.model.CMSUser;
+import org.jboss.portal.identity.User;
import org.jboss.portal.jems.ha.HASingletonInvoker;
-import org.jboss.portal.identity.User;
-
/**
* Extend the JCR CMS and make it run as an ha singleton.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
- * @version $Revision$
+ * @version $Revision: 7163 $
*/
public class HAJCRCMS extends JCRCMS implements HASingletonInvoker.Callback
{
@@ -58,31 +57,31 @@
try
{
//Add the user Identity ThreadLocal variable to the Command Context for propagation to the Master Node
- if(this.getUserInfo().get() != null)
+ if (this.getUserInfo().get() != null)
{
User user = (User)this.getUserInfo().get();
JCRCommandContext context = (JCRCommandContext)((JCRCommand)cmd).getContext();
- if(context == null)
+ if (context == null)
{
- context = new JCRCommandContext(null,null,null);
+ context = new JCRCommandContext(null, null, null);
((JCRCommand)cmd).setContext(context);
}
- context.setClusterContextInfo("user",new CMSUser(user.getUserName()));
+ context.setClusterContextInfo("user", new CMSUser(user.getUserName()));
}
-
+
//Add the Workflow ThreadLocal variable to the Command Context for propagation to the Master Node
- if(this.turnOffWorkflow.get() != null)
+ if (this.turnOffWorkflow.get() != null)
{
Boolean workflowStatus = (Boolean)this.turnOffWorkflow.get();
JCRCommandContext context = (JCRCommandContext)((JCRCommand)cmd).getContext();
- if(context == null)
+ if (context == null)
{
- context = new JCRCommandContext(null,null,null);
+ context = new JCRCommandContext(null, null, null);
((JCRCommand)cmd).setContext(context);
}
- context.setClusterContextInfo("workflowStatus",workflowStatus);
+ context.setClusterContextInfo("workflowStatus", workflowStatus);
}
-
+
// Use the proxy to invoke on the singleton
return invoker.invoke("execute", new Class[]{Command.class}, new Object[]{cmd});
}
@@ -90,7 +89,7 @@
{
e.printStackTrace();
throw new RuntimeException("Fixme bad contract", e);
- }
+ }
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/ha/HAJCRCMS.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/jackrabbit/ClusteredCacheListener.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/jackrabbit/JackrabbitJCRService.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/jackrabbit/JackrabbitJCRService.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/jackrabbit/JackrabbitJCRService.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -33,10 +33,9 @@
import org.apache.jackrabbit.core.nodetype.PropDef;
import org.apache.jackrabbit.core.nodetype.PropDefImpl;
import org.apache.jackrabbit.name.QName;
-
+import org.jboss.logging.Logger;
import org.jboss.portal.cms.impl.jcr.JCRService;
import org.jboss.portal.cms.util.RepositoryUtil;
-import org.jboss.logging.Logger;
import org.xml.sax.InputSource;
import javax.jcr.NamespaceRegistry;
@@ -50,7 +49,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision$
+ * @version $Revision: 6469 $
*/
public class JackrabbitJCRService implements JCRService
{
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/jackrabbit/JackrabbitJCRService.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/util/NodeTypeUtil.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/util/VersionUtil.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/util/VersionUtil.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/util/VersionUtil.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -216,25 +216,24 @@
e.printStackTrace();
}
}
-
+
/**
- *
* @param history
* @return
*/
public static Version getLiveVersion(VersionHistory history)
{
Version liveVersion = null;
-
+
try
{
liveVersion = history.getVersionByLabel("LIVE");
}
- catch(Exception e)
+ catch (Exception e)
{
liveVersion = null;
}
-
+
return liveVersion;
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/impl/jcr/util/VersionUtil.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/management/CMS.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/management/CMS.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/management/CMS.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -26,7 +26,8 @@
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
* @version $Revision$
*/
-public interface CMS {
+public interface CMS
+{
- public int getNbFiles();
+ public int getNbFiles();
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/management/CMS.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/management/CMSImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/management/CMSImpl.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/management/CMSImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,56 +22,57 @@
******************************************************************************/
package org.jboss.portal.cms.management;
-import java.util.List;
-
import org.jboss.portal.cms.CMSException;
import org.jboss.portal.cms.Command;
import org.jboss.portal.cms.model.Folder;
import org.jboss.portal.jems.as.system.AbstractJBossService;
+import java.util.List;
+
/**
- * Unused. With the introduction of CMS security, this can
- * no longer count CMS files.
- *
+ * Unused. With the introduction of CMS security, this can no longer count CMS files.
+ *
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
* @version $Revision$
*/
-public class CMSImpl extends AbstractJBossService implements CMS {
+public class CMSImpl extends AbstractJBossService implements CMS
+{
- private org.jboss.portal.cms.CMS cms;
-
- public void setCMS(org.jboss.portal.cms.CMS cms)
- {
- this.cms = cms;
- }
-
- /** Very costly
- * TODO: Make it cheap
- */
- public int getNbFiles()
- {
- String sPath ="/";
- try {
- return nbFiles(sPath);
- } catch (CMSException e) {
- e.printStackTrace();
- }
- return -1;
- }
-
- private int nbFiles(String path) throws CMSException
- {
- Command listCMD = cms.getCommandFactory().createFolderGetListCommand(path);
- Folder mainFolder = (Folder)cms.execute(listCMD);
- List files = mainFolder.getFiles();
- int nbFiles = files.size();
- List folders = mainFolder.getFolders();
- for (int i=0; i<folders.size(); i++)
- {
- Folder folder = (Folder)folders.get(i);
- nbFiles += nbFiles(folder.getBasePath());
- }
- return nbFiles;
- }
-
+ private org.jboss.portal.cms.CMS cms;
+
+ public void setCMS(org.jboss.portal.cms.CMS cms)
+ {
+ this.cms = cms;
+ }
+
+ /** Very costly TODO: Make it cheap */
+ public int getNbFiles()
+ {
+ String sPath = "/";
+ try
+ {
+ return nbFiles(sPath);
+ }
+ catch (CMSException e)
+ {
+ e.printStackTrace();
+ }
+ return -1;
+ }
+
+ private int nbFiles(String path) throws CMSException
+ {
+ Command listCMD = cms.getCommandFactory().createFolderGetListCommand(path);
+ Folder mainFolder = (Folder)cms.execute(listCMD);
+ List files = mainFolder.getFiles();
+ int nbFiles = files.size();
+ List folders = mainFolder.getFolders();
+ for (int i = 0; i < folders.size(); i++)
+ {
+ Folder folder = (Folder)folders.get(i);
+ nbFiles += nbFiles(folder.getBasePath());
+ }
+ return nbFiles;
+ }
+
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/management/CMSImpl.java
___________________________________________________________________
Name: svn:keywords
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/model/CMSObject.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/model/CMSUser.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/model/CMSUser.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/model/CMSUser.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,47 +22,42 @@
******************************************************************************/
package org.jboss.portal.cms.model;
-import java.io.Serializable;
import org.jboss.portal.identity.User;
-/**
- * @author <a href="mailto:sshah@redhat.com">Sohil Shah</a>
- *
- */
+import java.io.Serializable;
+
+/** @author <a href="mailto:sshah@redhat.com">Sohil Shah</a> */
public class CMSUser implements User, Serializable
{
/**
- *
+ *
*/
private String username = null;
-
- /**
- *
- * @param username
- */
+
+ /** @param username */
public CMSUser(String username)
{
this.username = username;
}
-
+
/**
- *
+ *
*/
public Object getId()
- {
+ {
return null;
}
/**
- *
+ *
*/
public String getUserName()
- {
+ {
return this.username;
}
/**
- *
+ *
*/
public void updatePassword(String password)
{
@@ -70,10 +65,10 @@
}
/**
- *
+ *
*/
public boolean validatePassword(String password)
- {
+ {
throw new RuntimeException("Illegal Operation");
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/model/CMSUser.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/model/Content.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/model/Content.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/model/Content.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -29,7 +29,7 @@
* CMS content interface.
*
* @author <a href="mailto:roy@jboss.org">Roy Russo</a>
- * @version $Id$
+ * @version $Id: Content.java 5929 2006-12-22 20:15:42Z sohil.shah(a)jboss.com $
*/
public interface Content extends CMSObject, Cloneable
{
@@ -41,7 +41,7 @@
int getSize();
void setSize(int size);
-
+
/** @return Returns the content. */
InputStream getStream();
@@ -73,30 +73,26 @@
boolean isLive();
void setLive(boolean live);
-
+
/**
- * this is used to signify that a content is waiting to be approved before being published to go
- * live
- *
+ * this is used to signify that a content is waiting to be approved before being published to go live
+ *
* @return
*/
public boolean isWaitingForPublishApproval();
-
+
/**
- *
*
+ *
*/
public void setWaitingForPublishApproval(boolean isWaitingForPublishApproval);
-
- /**
- *
- * @return
- */
+
+ /** @return */
public String getApprovalProcessId();
-
+
/**
- *
*
+ *
*/
public void setApprovalProcessId(String processId);
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/model/Content.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/model/File.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/model/File.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/model/File.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -29,7 +29,7 @@
*
* @author <a href="mailto:christophe.lombart@sword-technologies.com">Christophe Lombart</a>
* @author <a href="mailto:roy@jboss.org">Roy Russo</a>
- * @version $Id$
+ * @version $Id: File.java 5448 2006-10-13 19:29:17Z chris.laprun(a)jboss.com $
*/
public interface File extends CMSObject, Cloneable
{
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/model/File.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/model/Folder.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/search/CMSFederatedSearch.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/search/CMSFederatedSearch.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/search/CMSFederatedSearch.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,9 +22,6 @@
******************************************************************************/
package org.jboss.portal.cms.search;
-import java.util.Iterator;
-import java.util.List;
-
import org.jboss.portal.cms.CMS;
import org.jboss.portal.cms.Command;
import org.jboss.portal.cms.model.File;
@@ -36,6 +33,9 @@
import org.jboss.portal.search.impl.jcr.JCRQueryConverter;
import org.jboss.portal.search.result.ResultSet;
+import java.util.Iterator;
+import java.util.List;
+
/**
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
* @version $Revision$
@@ -78,5 +78,5 @@
{
return queryConverter;
}
-
+
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/search/CMSFederatedSearch.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/search/CMSResult.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/search/CMSResult.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/search/CMSResult.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -33,10 +33,10 @@
*/
public class CMSResult implements Result
{
-
+
private File file;
private ResultURL url;
-
+
public CMSResult(File file, String prefix)
{
this.file = file;
@@ -53,7 +53,7 @@
{
return url;
}
-
+
public LocalizedString getTitle()
{
if (file.getTitle() != null)
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/search/CMSResult.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/search/CMSResultURL.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/search/CMSResultURL.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/search/CMSResultURL.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -31,10 +31,10 @@
*/
public class CMSResultURL extends SimpleResultURL
{
-
+
public CMSResultURL(String prefix, File file)
{
super("/" + prefix + file.getBasePath());
}
-
+
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/search/CMSResultURL.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationManager.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationManager.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationManager.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -27,18 +27,15 @@
/**
* Created on : Jan 24, 2007
- * @author Sohil Shah - sohil.shah(a)jboss.com
*
+ * @author Sohil Shah - sohil.shah(a)jboss.com
*/
public interface AuthorizationManager extends
-PortalAuthorizationManagerFactory,
-PortalAuthorizationManager
+ PortalAuthorizationManagerFactory,
+ PortalAuthorizationManager
{
- public static final String Anonymous = "Anonymous";
-
- /**
- *
- * @return
- */
- public AuthorizationProvider getProvider();
+ public static final String Anonymous = "Anonymous";
+
+ /** @return */
+ public AuthorizationProvider getProvider();
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationManager.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationManagerImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationManagerImpl.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationManagerImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,116 +22,103 @@
******************************************************************************/
package org.jboss.portal.cms.security;
-import javax.security.auth.Subject;
-
-import org.jboss.portal.jems.as.system.AbstractJBossService;
+import org.jboss.portal.cms.impl.jcr.command.ACLEnforcer;
import org.jboss.portal.jems.as.JNDI;
-
+import org.jboss.portal.jems.as.system.AbstractJBossService;
import org.jboss.portal.security.PortalPermission;
import org.jboss.portal.security.PortalSecurityException;
import org.jboss.portal.security.spi.auth.PortalAuthorizationManager;
-import org.jboss.portal.cms.impl.jcr.command.ACLEnforcer;
+import javax.security.auth.Subject;
/**
* Created on : Jan 23, 2007
- * @author Sohil Shah - sohil.shah(a)jboss.com
*
+ * @author Sohil Shah - sohil.shah(a)jboss.com
*/
public class AuthorizationManagerImpl extends AbstractJBossService implements AuthorizationManager
{
- /**
- *
- */
- private ACLEnforcer enforcer = null;
-
- /**
- *
- */
- private AuthorizationProvider provider = null;
-
- /**
- *
- */
- private String jndiName = null;
- private JNDI.Binding jndiBinding = null;
-
- /**
- *
- * @return
- */
- public AuthorizationProvider getProvider()
- {
- return provider;
- }
+ /**
+ *
+ */
+ private ACLEnforcer enforcer = null;
- /**
- *
- * @param provider
- */
- public void setProvider(AuthorizationProvider provider)
- {
- this.provider = provider;
- }
-
- /**
- *
- * @return
- */
- public String getJNDIName()
- {
- return this.jndiName;
- }
-
- /**
- *
- * @param jndiName
- */
- public void setJNDIName(String jndiName)
- {
- this.jndiName = jndiName;
- }
+ /**
+ *
+ */
+ private AuthorizationProvider provider = null;
- /**
- *
- */
- public void startService() throws Exception
- {
- super.startService();
-
- //perform jndi registration for this service
- if (this.jndiName != null)
- {
- jndiBinding = new JNDI.Binding(jndiName, this);
- jndiBinding.bind();
- }
-
- //initialize the authorization/policy enforcer
- enforcer = new ACLEnforcer(this);
- }
-
- //---PortalAuthorizationManagerFactory implementation-----------------------------------------------
- /**
- *
- */
- public PortalAuthorizationManager getManager() throws PortalSecurityException
- {
- return this;
- }
- //---PortalAuthorizationManager implementation-------------------------------------------------------
- /**
- *
- */
- public boolean checkPermission(PortalPermission permission) throws PortalSecurityException
- {
- return this.enforcer.hasAccess(((CMSPermission)permission).getSecurityContext());
- }
+ /**
+ *
+ */
+ private String jndiName = null;
+ private JNDI.Binding jndiBinding = null;
- /**
- *
- */
- public boolean checkPermission(Subject checkedSubject, PortalPermission permission) throws PortalSecurityException
- {
- return this.checkPermission(permission);
- }
+ /** @return */
+ public AuthorizationProvider getProvider()
+ {
+ return provider;
+ }
+
+ /** @param provider */
+ public void setProvider(AuthorizationProvider provider)
+ {
+ this.provider = provider;
+ }
+
+ /** @return */
+ public String getJNDIName()
+ {
+ return this.jndiName;
+ }
+
+ /** @param jndiName */
+ public void setJNDIName(String jndiName)
+ {
+ this.jndiName = jndiName;
+ }
+
+ /**
+ *
+ */
+ public void startService() throws Exception
+ {
+ super.startService();
+
+ //perform jndi registration for this service
+ if (this.jndiName != null)
+ {
+ jndiBinding = new JNDI.Binding(jndiName, this);
+ jndiBinding.bind();
+ }
+
+ //initialize the authorization/policy enforcer
+ enforcer = new ACLEnforcer(this);
+ }
+
+ //---PortalAuthorizationManagerFactory implementation-----------------------------------------------
+ /**
+ *
+ */
+ public PortalAuthorizationManager getManager() throws PortalSecurityException
+ {
+ return this;
+ }
+
+ //---PortalAuthorizationManager implementation-------------------------------------------------------
+ /**
+ *
+ */
+ public boolean checkPermission(PortalPermission permission) throws PortalSecurityException
+ {
+ return this.enforcer.hasAccess(((CMSPermission)permission).getSecurityContext());
+ }
+
+ /**
+ *
+ */
+ public boolean checkPermission(Subject checkedSubject, PortalPermission permission) throws PortalSecurityException
+ {
+ return this.checkPermission(permission);
+ }
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationManagerImpl.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationProvider.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationProvider.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationProvider.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,45 +22,38 @@
******************************************************************************/
package org.jboss.portal.cms.security;
+import org.jboss.portal.identity.MembershipModule;
import org.jboss.portal.security.spi.provider.AuthorizationDomain;
import org.jboss.portal.security.spi.provider.DomainConfigurator;
-import org.jboss.portal.identity.MembershipModule;
-
/**
* Created on : Jan 24, 2007
- * @author Sohil Shah - sohil.shah(a)jboss.com
*
+ * @author Sohil Shah - sohil.shah(a)jboss.com
*/
public interface AuthorizationProvider extends
-AuthorizationDomain,
-DomainConfigurator
+ AuthorizationDomain,
+ DomainConfigurator
{
- /**
- *
- * @param userId
- * @return
- */
- public String getUserURI(String userId);
-
- /**
- *
- * @param roleId
- * @return
- */
- public String getRoleURI(String roleId);
-
- /**
- *
- * @param name
- * @param value
- * @return
- */
- public String getCriteriaURI(String name,String value);
-
- /**
- *
- * @return
- */
- public MembershipModule getMembershipModule();
+ /**
+ * @param userId
+ * @return
+ */
+ public String getUserURI(String userId);
+
+ /**
+ * @param roleId
+ * @return
+ */
+ public String getRoleURI(String roleId);
+
+ /**
+ * @param name
+ * @param value
+ * @return
+ */
+ public String getCriteriaURI(String name, String value);
+
+ /** @return */
+ public MembershipModule getMembershipModule();
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationProvider.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationProviderImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationProviderImpl.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationProviderImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,38 +22,36 @@
******************************************************************************/
package org.jboss.portal.cms.security;
-import java.util.Collection;
-import java.util.Set;
-import java.util.Iterator;
-import java.util.HashSet;
-
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.jboss.portal.cms.hibernate.state.Tools;
+import org.jboss.portal.identity.AnonymousRole;
import org.jboss.portal.identity.IdentityContext;
import org.jboss.portal.identity.IdentityServiceController;
import org.jboss.portal.identity.MembershipModule;
-import org.jboss.portal.identity.UserModule;
import org.jboss.portal.identity.Role;
import org.jboss.portal.identity.User;
-import org.jboss.portal.identity.AnonymousRole;
+import org.jboss.portal.identity.UserModule;
import org.jboss.portal.identity.db.HibernateUserModuleImpl;
import org.jboss.portal.jems.as.system.AbstractJBossService;
-
import org.jboss.portal.security.spi.provider.DomainConfigurator;
import org.jboss.portal.security.spi.provider.PermissionFactory;
import org.jboss.portal.security.spi.provider.PermissionRepository;
import org.jboss.portal.security.spi.provider.SecurityConfigurationException;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.Set;
+
/**
* Created on : Jan 23, 2007
- *
+ *
* @author Sohil Shah - sohil.shah(a)jboss.com
- *
*/
public class AuthorizationProviderImpl extends AbstractJBossService implements
- AuthorizationProvider
+ AuthorizationProvider
{
private IdentityServiceController identityServiceController = null;
@@ -62,22 +60,22 @@
private UserModule userModule = null;
/**
- *
+ *
*/
public void startService() throws Exception
{
super.startService();
- this.membershipModule = (MembershipModule) identityServiceController
- .getIdentityContext().getObject(
- IdentityContext.TYPE_MEMBERSHIP_MODULE);
- this.userModule = (UserModule) identityServiceController
- .getIdentityContext().getObject(IdentityContext.TYPE_USER_MODULE);
+ this.membershipModule = (MembershipModule)identityServiceController
+ .getIdentityContext().getObject(
+ IdentityContext.TYPE_MEMBERSHIP_MODULE);
+ this.userModule = (UserModule)identityServiceController
+ .getIdentityContext().getObject(IdentityContext.TYPE_USER_MODULE);
}
// ------AuthorizationDomain
// impl-----------------------------------------------------------------
/**
- *
+ *
*/
public DomainConfigurator getConfigurator()
{
@@ -85,7 +83,7 @@
}
/**
- *
+ *
*/
public PermissionFactory getPermissionFactory()
{
@@ -93,7 +91,7 @@
}
/**
- *
+ *
*/
public PermissionRepository getPermissionRepository()
{
@@ -101,7 +99,7 @@
}
/**
- *
+ *
*/
public String getType()
{
@@ -111,21 +109,21 @@
// ------DomainConfigurator
// impl------------------------------------------------------------------
/**
- *
+ *
*/
public void setSecurityBindings(String uri, Set securityBindings)
- throws SecurityConfigurationException
+ throws SecurityConfigurationException
{
if (securityBindings != null)
{
for (Iterator itr = securityBindings.iterator(); itr.hasNext();)
{
- Permission securityBinding = (Permission) itr.next();
+ Permission securityBinding = (Permission)itr.next();
if (securityBinding.getRoles() != null
- || securityBinding.getUsers() != null)
+ || securityBinding.getUsers() != null)
{
this.store(securityBinding, securityBinding.getRoles(),
- securityBinding.getUsers());
+ securityBinding.getUsers());
}
else
{
@@ -136,17 +134,17 @@
}
/**
- *
+ *
*/
public void removeSecurityBindings(String uri)
- throws SecurityConfigurationException
+ throws SecurityConfigurationException
{
Set permissions = this.getSecurityBindings(uri);
this.remove(permissions);
}
/**
- *
+ *
*/
public Set getSecurityBindings(String uri)
{
@@ -190,7 +188,7 @@
// ---------URIFactory
// impl-----------------------------------------------------------------------------------------
/**
- *
+ *
*/
public String getUserURI(String userId)
{
@@ -198,7 +196,6 @@
}
/**
- *
* @param roleId
* @return
*/
@@ -208,7 +205,6 @@
}
/**
- *
* @param name
* @param value
* @return
@@ -219,7 +215,7 @@
}
/**
- *
+ *
*/
public MembershipModule getMembershipModule()
{
@@ -228,19 +224,16 @@
// --------------------------------------------------------------------------------------------------------------
/**
- *
+ *
*/
public IdentityServiceController getIdentityServiceController()
{
return identityServiceController;
}
- /**
- *
- * @param identityServiceController
- */
+ /** @param identityServiceController */
public void setIdentityServiceController(
- IdentityServiceController identityServiceController)
+ IdentityServiceController identityServiceController)
{
this.identityServiceController = identityServiceController;
}
@@ -248,13 +241,10 @@
// --------------------------------------------------------------------------------------------------------------
/**
* Stores a permission and its associations into peristent storage
- *
- * @param permission -
- * Permission to be persisted
- * @param roles -
- * Roles associated with this permission
- * @param users -
- * Individual users associated with this permission
+ *
+ * @param permission - Permission to be persisted
+ * @param roles - Roles associated with this permission
+ * @param users - Individual users associated with this permission
*/
private void store(Permission permission, Collection roles, Collection users)
{
@@ -264,7 +254,7 @@
Set roleAssoc = new HashSet();
for (Iterator itr = roles.iterator(); itr.hasNext();)
{
- Role role = (Role) itr.next();
+ Role role = (Role)itr.next();
PermRoleAssoc cour = new PermRoleAssoc();
if (!(role instanceof AnonymousRole))
{
@@ -289,7 +279,7 @@
Set userAssoc = new HashSet();
for (Iterator itr = users.iterator(); itr.hasNext();)
{
- User user = (User) itr.next();
+ User user = (User)itr.next();
PermUserAssoc cour = new PermUserAssoc();
cour.setUserId(user.getUserName());
userAssoc.add(cour);
@@ -307,9 +297,8 @@
/**
* Stores a permission and its associations into peristent storage
- *
- * @param permission -
- * Permission to be persisted
+ *
+ * @param permission - Permission to be persisted
*/
private void store(Permission permission)
{
@@ -320,7 +309,7 @@
/**
* Deletes the specified permissions from the database
- *
+ *
* @param permissions
*/
private void remove(Collection permissions)
@@ -330,7 +319,7 @@
{
for (Iterator itr = permissions.iterator(); itr.hasNext();)
{
- Permission permission = (Permission) itr.next();
+ Permission permission = (Permission)itr.next();
session.delete(permission);
}
}
@@ -338,7 +327,7 @@
/**
* Returns all permissions associated with the specified user
- *
+ *
* @param user
* @return
*/
@@ -364,14 +353,14 @@
// in case of a database version, use the cache optmized way to
// lookup the permissions
String lookupByRole = "SELECT p.* from jbp_cms_perm p,jbp_cms_perm_role r,jbp_role_membership m,jbp_roles roles,jbp_users users WHERE "
- + "p.id=r.cms_perm_id AND "
- + "r.role_id=roles.jbp_name AND "
- + "m.jbp_rid=roles.jbp_rid AND "
- + "m.jbp_uid=users.jbp_uid AND " + "users.jbp_uname=?";
+ + "p.id=r.cms_perm_id AND "
+ + "r.role_id=roles.jbp_name AND "
+ + "m.jbp_rid=roles.jbp_rid AND "
+ + "m.jbp_uid=users.jbp_uid AND " + "users.jbp_uname=?";
// perform lookup based on role membership
Query roleQuery = session.createSQLQuery(lookupByRole).addEntity(
- Permission.class);
+ Permission.class);
roleQuery.setString(0, userId);
roleQuery.setCacheable(true);
permissions.addAll(roleQuery.list());
@@ -381,14 +370,14 @@
// in the case of LDAP use the IdentityModule
// now find permissions for all the roles that this user belongs to
Set belongedRoles = this.membershipModule.getRoles(this.userModule
- .findUserByUserName(userId));
+ .findUserByUserName(userId));
if (belongedRoles != null)
{
for (Iterator itr = belongedRoles.iterator(); itr.hasNext();)
{
- Role role = (Role) itr.next();
+ Role role = (Role)itr.next();
Collection rolePermissions = this.findPermissionsByRole(role
- .getName());
+ .getName());
if (rolePermissions != null && !rolePermissions.isEmpty())
{
permissions.addAll(rolePermissions);
@@ -413,7 +402,7 @@
/**
* Returns all permissions associated with the specified role
- *
+ *
* @param role
* @return
*/
@@ -433,7 +422,7 @@
roleQuery.setCacheable(true);
permissions.addAll(roleQuery.list());
}
- catch(Exception e)
+ catch (Exception e)
{
tx.rollback();
throw new RuntimeException(e);
@@ -449,7 +438,7 @@
/**
* Return all permissions that match the specified criteria
- *
+ *
* @param criteria
* @return
*/
@@ -470,7 +459,7 @@
criteriaQuery.setCacheable(true);
permissions.addAll(criteriaQuery.list());
}
- catch(Exception e)
+ catch (Exception e)
{
tx.rollback();
throw new RuntimeException(e);
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationProviderImpl.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/CMSPermission.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/CMSPermission.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/CMSPermission.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -23,96 +23,91 @@
package org.jboss.portal.cms.security;
-import javax.security.auth.Subject;
-
import org.jboss.portal.security.PortalPermission;
import org.jboss.portal.security.PortalSecurityException;
import org.jboss.portal.security.spi.provider.PermissionRepository;
+import javax.security.auth.Subject;
+
/**
* Created on : Jan 23, 2007
- * @author Sohil Shah - sohil.shah(a)jboss.com
*
+ * @author Sohil Shah - sohil.shah(a)jboss.com
*/
public class CMSPermission extends PortalPermission
{
- private PortalCMSSecurityContext securityContext = null;
-
- /**
- *
- */
- public CMSPermission(String name, String uri)
- {
- super(name,uri);
- }
-
- /**
- *
- * @param wrappedPermission
- */
- public CMSPermission(PortalCMSSecurityContext securityContext)
- {
- super("","");
- this.securityContext = securityContext;
- }
+ private PortalCMSSecurityContext securityContext = null;
- //--------PortalPermission implementation------------------------------------------------------------
- /**
- *
- */
- public String getType()
- {
- return this.getClass().getName();
- }
+ /**
+ *
+ */
+ public CMSPermission(String name, String uri)
+ {
+ super(name, uri);
+ }
- /**
- *
- */
- public boolean implies(PermissionRepository repository, Subject caller,
- String roleName, PortalPermission permission)
- throws PortalSecurityException
- {
- return false;
- }
-
- /**
- *
- * @return
- */
- public PortalCMSSecurityContext getSecurityContext()
- {
- return this.securityContext;
- }
- //-------Permission implementation------------------------------------------------------------------
- /**
- *
- */
- public boolean equals(Object obj)
- {
- return false;
- }
+ /** @param wrappedPermission */
+ public CMSPermission(PortalCMSSecurityContext securityContext)
+ {
+ super("", "");
+ this.securityContext = securityContext;
+ }
- /**
- *
- */
- public String getActions()
- {
- return null;
- }
-
- /**
- *
- */
- public int hashCode()
- {
- return 0;
- }
-
- /**
- *
- */
- public boolean implies(java.security.Permission permission)
- {
- return false;
- }
+ //--------PortalPermission implementation------------------------------------------------------------
+ /**
+ *
+ */
+ public String getType()
+ {
+ return this.getClass().getName();
+ }
+
+ /**
+ *
+ */
+ public boolean implies(PermissionRepository repository, Subject caller,
+ String roleName, PortalPermission permission)
+ throws PortalSecurityException
+ {
+ return false;
+ }
+
+ /** @return */
+ public PortalCMSSecurityContext getSecurityContext()
+ {
+ return this.securityContext;
+ }
+
+ //-------Permission implementation------------------------------------------------------------------
+ /**
+ *
+ */
+ public boolean equals(Object obj)
+ {
+ return false;
+ }
+
+ /**
+ *
+ */
+ public String getActions()
+ {
+ return null;
+ }
+
+ /**
+ *
+ */
+ public int hashCode()
+ {
+ return 0;
+ }
+
+ /**
+ *
+ */
+ public boolean implies(java.security.Permission permission)
+ {
+ return false;
+ }
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/CMSPermission.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/Criteria.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/Criteria.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/Criteria.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -23,105 +23,87 @@
import java.io.Serializable;
-/**
- *
- * @author Sohil Shah - sohil.shah(a)jboss.com - Nov 29, 2006
- *
- */
+/** @author Sohil Shah - sohil.shah(a)jboss.com - Nov 29, 2006 */
public class Criteria implements Serializable
{
- /**
- *
- */
- private long id = 0;
- private String name = null;
- private String value = null;
-
- /**
- *
- *
- */
- public Criteria()
- {
-
- }
-
- /**
- *
- *
- */
- public Criteria(String name,String value)
- {
- this();
- this.name = name;
- this.value = value;
- }
-
- /**
- *
- * @return
- */
- public long getId()
- {
- return this.id;
- }
-
- /**
- *
- * @param key
- */
- public void setId(long id)
- {
- this.id = id;
- }
-
- /**
- * @return Returns the context.
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * @param context The context to set.
- */
- public void setName(String name)
- {
- this.name = name;
- }
-
-
- /**
- * @return Returns the value.
- */
- public String getValue()
- {
- return value;
- }
-
- /**
- * @param value The value to set.
- */
- public void setValue(String value)
- {
- this.value = value;
- }
-
- /**
- *
- */
- public boolean equals(Object obj)
- {
- boolean equals = false;
- if(obj instanceof Criteria)
- {
- Criteria input = (Criteria)obj;
- if(input.name.equals(this.name) && input.value.equals(this.value))
- {
- equals = true;
- }
- }
- return equals;
- }
+ /**
+ *
+ */
+ private long id = 0;
+ private String name = null;
+ private String value = null;
+
+ /**
+ *
+ *
+ */
+ public Criteria()
+ {
+
+ }
+
+ /**
+ *
+ *
+ */
+ public Criteria(String name, String value)
+ {
+ this();
+ this.name = name;
+ this.value = value;
+ }
+
+ /** @return */
+ public long getId()
+ {
+ return this.id;
+ }
+
+ /** @param key */
+ public void setId(long id)
+ {
+ this.id = id;
+ }
+
+ /** @return Returns the context. */
+ public String getName()
+ {
+ return name;
+ }
+
+ /** @param context The context to set. */
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+
+ /** @return Returns the value. */
+ public String getValue()
+ {
+ return value;
+ }
+
+ /** @param value The value to set. */
+ public void setValue(String value)
+ {
+ this.value = value;
+ }
+
+ /**
+ *
+ */
+ public boolean equals(Object obj)
+ {
+ boolean equals = false;
+ if (obj instanceof Criteria)
+ {
+ Criteria input = (Criteria)obj;
+ if (input.name.equals(this.name) && input.value.equals(this.value))
+ {
+ equals = true;
+ }
+ }
+ return equals;
+ }
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/Criteria.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/PermRoleAssoc.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/PermRoleAssoc.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/PermRoleAssoc.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -21,75 +21,59 @@
*/
package org.jboss.portal.cms.security;
-/**
- *
- * @author Sohil Shah - sohil.shah(a)jboss.com - Dec 7, 2006
- *
- */
-public class PermRoleAssoc
+/** @author Sohil Shah - sohil.shah(a)jboss.com - Dec 7, 2006 */
+public class PermRoleAssoc
{
- private long id = 0;
- private String roleId = null;
+ private long id = 0;
+ private String roleId = null;
- /**
- *
- *
- */
- public PermRoleAssoc()
- {
- super();
- }
+ /**
+ *
+ *
+ */
+ public PermRoleAssoc()
+ {
+ super();
+ }
- /**
- *
- * @return
- */
- public long getId()
- {
- return id;
- }
+ /** @return */
+ public long getId()
+ {
+ return id;
+ }
- /**
- *
- * @param id
- */
- public void setId(long id)
- {
- this.id = id;
- }
+ /** @param id */
+ public void setId(long id)
+ {
+ this.id = id;
+ }
-
- /**
- *
- * @return
- */
- public String getRoleId()
- {
- return roleId;
- }
- /**
- *
- * @param roleId
- */
- public void setRoleId(String roleId)
- {
- this.roleId = roleId;
- }
-
- public boolean equals(Object obj)
- {
- boolean equals = false;
-
- if(obj instanceof PermRoleAssoc)
- {
- PermRoleAssoc input = (PermRoleAssoc)obj;
- if(input.roleId.equals(this.roleId))
- {
- equals = true;
- }
- }
-
- return equals;
- }
+ /** @return */
+ public String getRoleId()
+ {
+ return roleId;
+ }
+
+ /** @param roleId */
+ public void setRoleId(String roleId)
+ {
+ this.roleId = roleId;
+ }
+
+ public boolean equals(Object obj)
+ {
+ boolean equals = false;
+
+ if (obj instanceof PermRoleAssoc)
+ {
+ PermRoleAssoc input = (PermRoleAssoc)obj;
+ if (input.roleId.equals(this.roleId))
+ {
+ equals = true;
+ }
+ }
+
+ return equals;
+ }
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/PermRoleAssoc.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/PermUserAssoc.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/PermUserAssoc.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/PermUserAssoc.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -21,75 +21,59 @@
*/
package org.jboss.portal.cms.security;
-/**
- *
- * @author Sohil Shah - sohil.shah(a)jboss.com - Dec 7, 2006
- *
- */
-public class PermUserAssoc
+/** @author Sohil Shah - sohil.shah(a)jboss.com - Dec 7, 2006 */
+public class PermUserAssoc
{
- private long id = 0;
- private String userId = null;
+ private long id = 0;
+ private String userId = null;
- /**
- *
- *
- */
- public PermUserAssoc()
- {
- super();
- }
+ /**
+ *
+ *
+ */
+ public PermUserAssoc()
+ {
+ super();
+ }
- /**
- *
- * @return
- */
- public long getId()
- {
- return id;
- }
+ /** @return */
+ public long getId()
+ {
+ return id;
+ }
- /**
- *
- * @param id
- */
- public void setId(long id)
- {
- this.id = id;
- }
+ /** @param id */
+ public void setId(long id)
+ {
+ this.id = id;
+ }
-
- /**
- *
- * @return
- */
- public String getUserId()
- {
- return userId;
- }
- /**
- *
- * @param roleId
- */
- public void setUserId(String userId)
- {
- this.userId = userId;
- }
-
- public boolean equals(Object obj)
- {
- boolean equals = false;
-
- if(obj instanceof PermUserAssoc)
- {
- PermUserAssoc input = (PermUserAssoc)obj;
- if(input.userId.equals(this.userId))
- {
- equals = true;
- }
- }
-
- return equals;
- }
+ /** @return */
+ public String getUserId()
+ {
+ return userId;
+ }
+
+ /** @param roleId */
+ public void setUserId(String userId)
+ {
+ this.userId = userId;
+ }
+
+ public boolean equals(Object obj)
+ {
+ boolean equals = false;
+
+ if (obj instanceof PermUserAssoc)
+ {
+ PermUserAssoc input = (PermUserAssoc)obj;
+ if (input.userId.equals(this.userId))
+ {
+ equals = true;
+ }
+ }
+
+ return equals;
+ }
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/PermUserAssoc.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/Permission.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/Permission.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/Permission.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -21,398 +21,321 @@
*/
package org.jboss.portal.cms.security;
-import java.util.Set;
+import java.security.BasicPermission;
import java.util.HashSet;
import java.util.Iterator;
-import java.security.BasicPermission;
+import java.util.Set;
-/**
- *
- * @author Sohil Shah - sohil.shah(a)jboss.com - Nov 28, 2006
- *
- */
-public class Permission extends BasicPermission
+/** @author Sohil Shah - sohil.shah(a)jboss.com - Nov 28, 2006 */
+public class Permission extends BasicPermission
{
- /**
- *
- */
- private long id = 0; //unique id for this permission object in the storage (typically database)
- private String service = null; //portal service that this permission applies to like cms etc
- private String action = null; //action on the service that needs to be protected
- private boolean isNegated = false;
-
- /**
- *
- */
- private Set criteria = null;
- private Set roleAssoc = null;
- private Set userAssoc = null;
-
- /**
- *
- */
- private Set roles = null; //these are information carrying fields, they are not persisted in the database
- private Set users = null; //these are information carrying fields, they are not persisted in the database
-
- /**
- *
- *
- */
- public Permission()
- {
- this("null");
- }
-
-
- /**
- *
- * @param name
- */
- public Permission(String service)
- {
- super(service);
- this.service = service;
- }
-
- /**
- *
- * @param name
- * @param actions
- */
- public Permission(String service,String actions)
- {
- super(service,actions);
- this.service = service;
- this.action = actions;
- }
-
-
- /**
- *
- * @return
- */
- public long getId()
- {
- return this.id;
- }
-
- /**
- *
- * @param id
- */
- public void setId(long id)
- {
- this.id = id;
- }
-
- /**
- *
- * @return
- */
- public Set getCriteria()
- {
- return this.criteria;
- }
-
- /**
- *
- * @param criteria
- */
- public void setCriteria(Set criteria)
- {
- this.criteria = criteria;
- }
-
- /**
- *
- * @param criteria
- */
- public void addCriteria(Criteria criteria)
- {
- if(this.criteria == null)
- {
- this.criteria = new HashSet();
- }
- this.criteria.add(criteria);
- }
-
- /**
- *
- * @return
- */
- public String getService()
- {
- return this.service;
- }
-
-
- /**
- *
- * @param name
- */
- public void setService(String service)
- {
- this.service = service;
- }
-
- /**
- *
- * @return
- */
- public String getAction()
- {
- return this.action;
- }
-
- /**
- *
- * @param action
- */
- public void setAction(String action)
- {
- this.action = action;
- }
-
-
- /**
- * Finds the specified criteria value for the criteriaId
- *
- * @param criteriaId
- * @return value of the criteria
- */
- public String findCriteriaValue(String criteriaId)
- {
- String value = null;
- if(this.criteria!=null)
- {
- for(Iterator itr=this.criteria.iterator();itr.hasNext();)
- {
- Criteria cour = (Criteria)itr.next();
- if(criteriaId.equals(cour.getName()))
- {
- value = cour.getValue();
- }
- }
- }
- return value;
- }
+ /**
+ *
+ */
+ private long id = 0; //unique id for this permission object in the storage (typically database)
+ private String service = null; //portal service that this permission applies to like cms etc
+ private String action = null; //action on the service that needs to be protected
+ private boolean isNegated = false;
- /**
- *
- * @return
- */
- public boolean isNegated()
- {
- return isNegated;
- }
+ /**
+ *
+ */
+ private Set criteria = null;
+ private Set roleAssoc = null;
+ private Set userAssoc = null;
- /**
- *
- * @param isNegated
- */
- public void setNegated(boolean isNegated)
- {
- this.isNegated = isNegated;
- }
+ /**
+ *
+ */
+ private Set roles = null; //these are information carrying fields, they are not persisted in the database
+ private Set users = null; //these are information carrying fields, they are not persisted in the database
- /**
- *
- * @return
- */
- public Set getRoleAssoc()
- {
- return roleAssoc;
- }
+ /**
+ *
+ *
+ */
+ public Permission()
+ {
+ this("null");
+ }
- /**
- *
- * @param roleAssoc
- */
- public void setRoleAssoc(Set roleAssoc)
- {
- this.roleAssoc = roleAssoc;
- }
-
- /**
- *
- * @param roleAssoc
- */
- public void addRoleAssoc(PermRoleAssoc roleAssoc)
- {
- if(this.roleAssoc == null)
- {
- this.roleAssoc = new HashSet();
- }
- this.roleAssoc.add(roleAssoc);
- }
-
- /**
- *
- * @return
- */
- public Set getRoleAssocIds()
- {
- Set ids = new HashSet();
- if(this.roleAssoc!=null)
- {
- for(Iterator itr=this.roleAssoc.iterator();itr.hasNext();)
- {
- PermRoleAssoc cour = (PermRoleAssoc)itr.next();
- ids.add(cour.getRoleId());
- }
- }
- return ids;
- }
- /**
- *
- * @return
- */
- public Set getUserAssoc()
- {
- return userAssoc;
- }
+ /** @param name */
+ public Permission(String service)
+ {
+ super(service);
+ this.service = service;
+ }
- /**
- *
- * @param userAssoc
- */
- public void setUserAssoc(Set userAssoc)
- {
- this.userAssoc = userAssoc;
- }
-
- /**
- *
- * @param userAssoc
- */
- public void addUserAssoc(PermUserAssoc userAssoc)
- {
- if(this.userAssoc == null)
- {
- this.userAssoc = new HashSet();
- }
- this.userAssoc.add(userAssoc);
- }
-
- /**
- *
- * @return
- */
- public Set getUserAssocIds()
- {
- Set ids = new HashSet();
- if(this.userAssoc!=null)
- {
- for(Iterator itr=this.userAssoc.iterator();itr.hasNext();)
- {
- PermUserAssoc cour = (PermUserAssoc)itr.next();
- ids.add(cour.getUserId());
- }
- }
- return ids;
- }
-
- /**
- *
- * @return
- */
- public Set getRoles()
- {
- return roles;
- }
+ /**
+ * @param name
+ * @param actions
+ */
+ public Permission(String service, String actions)
+ {
+ super(service, actions);
+ this.service = service;
+ this.action = actions;
+ }
- /**
- *
- * @param roles
- */
- public void setRoles(Set roles)
- {
- this.roles = roles;
- }
- /**
- *
- * @return
- */
- public Set getUsers()
- {
- return users;
- }
+ /** @return */
+ public long getId()
+ {
+ return this.id;
+ }
- /**
- *
- * @param users
- */
- public void setUsers(Set users)
- {
- this.users = users;
- }
+ /** @param id */
+ public void setId(long id)
+ {
+ this.id = id;
+ }
+ /** @return */
+ public Set getCriteria()
+ {
+ return this.criteria;
+ }
- /**
- *
- */
- public String toString()
- {
- StringBuffer buffer = new StringBuffer();
-
- buffer.append("-----------------------------\n");
- buffer.append("ID="+this.id+"\n");
- buffer.append("Service="+this.service+"\n");
- buffer.append("Action="+this.action+"\n");
- buffer.append("Negated="+this.isNegated+"\n");
-
- //print role association
- if(this.roleAssoc!=null)
- {
- for(Iterator itr=this.roleAssoc.iterator();itr.hasNext();)
- {
- PermRoleAssoc cour = (PermRoleAssoc)itr.next();
- buffer.append("Role ="+cour.getRoleId()+"\n");
- }
- }
-
- //print user association
- if(this.userAssoc!=null)
- {
- for(Iterator itr=this.userAssoc.iterator();itr.hasNext();)
- {
- PermUserAssoc cour = (PermUserAssoc)itr.next();
- buffer.append("User ="+cour.getUserId()+"\n");
- }
- }
-
- //print criteria
- if(this.criteria!=null)
- {
- for(Iterator itr=this.criteria.iterator();itr.hasNext();)
- {
- Criteria cour = (Criteria)itr.next();
- buffer.append("Criteria ="+cour.getName()+","+cour.getValue()+"\n");
- }
- }
-
- buffer.append("-----------------------------\n");
-
- return buffer.toString();
- }
+ /** @param criteria */
+ public void setCriteria(Set criteria)
+ {
+ this.criteria = criteria;
+ }
+ /** @param criteria */
+ public void addCriteria(Criteria criteria)
+ {
+ if (this.criteria == null)
+ {
+ this.criteria = new HashSet();
+ }
+ this.criteria.add(criteria);
+ }
- /**
- *
- */
- public boolean equals(Object obj)
- {
- boolean equals = false;
- if(obj instanceof Permission)
- {
- Permission input = (Permission)obj;
- if(input.id == this.id)
+ /** @return */
+ public String getService()
+ {
+ return this.service;
+ }
+
+
+ /** @param name */
+ public void setService(String service)
+ {
+ this.service = service;
+ }
+
+ /** @return */
+ public String getAction()
+ {
+ return this.action;
+ }
+
+ /** @param action */
+ public void setAction(String action)
+ {
+ this.action = action;
+ }
+
+
+ /**
+ * Finds the specified criteria value for the criteriaId
+ *
+ * @param criteriaId
+ * @return value of the criteria
+ */
+ public String findCriteriaValue(String criteriaId)
+ {
+ String value = null;
+ if (this.criteria != null)
+ {
+ for (Iterator itr = this.criteria.iterator(); itr.hasNext();)
+ {
+ Criteria cour = (Criteria)itr.next();
+ if (criteriaId.equals(cour.getName()))
{
- equals = true;
+ value = cour.getValue();
}
- }
- return equals;
- }
+ }
+ }
+ return value;
+ }
+
+ /** @return */
+ public boolean isNegated()
+ {
+ return isNegated;
+ }
+
+ /** @param isNegated */
+ public void setNegated(boolean isNegated)
+ {
+ this.isNegated = isNegated;
+ }
+
+ /** @return */
+ public Set getRoleAssoc()
+ {
+ return roleAssoc;
+ }
+
+ /** @param roleAssoc */
+ public void setRoleAssoc(Set roleAssoc)
+ {
+ this.roleAssoc = roleAssoc;
+ }
+
+ /** @param roleAssoc */
+ public void addRoleAssoc(PermRoleAssoc roleAssoc)
+ {
+ if (this.roleAssoc == null)
+ {
+ this.roleAssoc = new HashSet();
+ }
+ this.roleAssoc.add(roleAssoc);
+ }
+
+ /** @return */
+ public Set getRoleAssocIds()
+ {
+ Set ids = new HashSet();
+ if (this.roleAssoc != null)
+ {
+ for (Iterator itr = this.roleAssoc.iterator(); itr.hasNext();)
+ {
+ PermRoleAssoc cour = (PermRoleAssoc)itr.next();
+ ids.add(cour.getRoleId());
+ }
+ }
+ return ids;
+ }
+
+ /** @return */
+ public Set getUserAssoc()
+ {
+ return userAssoc;
+ }
+
+ /** @param userAssoc */
+ public void setUserAssoc(Set userAssoc)
+ {
+ this.userAssoc = userAssoc;
+ }
+
+ /** @param userAssoc */
+ public void addUserAssoc(PermUserAssoc userAssoc)
+ {
+ if (this.userAssoc == null)
+ {
+ this.userAssoc = new HashSet();
+ }
+ this.userAssoc.add(userAssoc);
+ }
+
+ /** @return */
+ public Set getUserAssocIds()
+ {
+ Set ids = new HashSet();
+ if (this.userAssoc != null)
+ {
+ for (Iterator itr = this.userAssoc.iterator(); itr.hasNext();)
+ {
+ PermUserAssoc cour = (PermUserAssoc)itr.next();
+ ids.add(cour.getUserId());
+ }
+ }
+ return ids;
+ }
+
+ /** @return */
+ public Set getRoles()
+ {
+ return roles;
+ }
+
+ /** @param roles */
+ public void setRoles(Set roles)
+ {
+ this.roles = roles;
+ }
+
+ /** @return */
+ public Set getUsers()
+ {
+ return users;
+ }
+
+ /** @param users */
+ public void setUsers(Set users)
+ {
+ this.users = users;
+ }
+
+
+ /**
+ *
+ */
+ public String toString()
+ {
+ StringBuffer buffer = new StringBuffer();
+
+ buffer.append("-----------------------------\n");
+ buffer.append("ID=" + this.id + "\n");
+ buffer.append("Service=" + this.service + "\n");
+ buffer.append("Action=" + this.action + "\n");
+ buffer.append("Negated=" + this.isNegated + "\n");
+
+ //print role association
+ if (this.roleAssoc != null)
+ {
+ for (Iterator itr = this.roleAssoc.iterator(); itr.hasNext();)
+ {
+ PermRoleAssoc cour = (PermRoleAssoc)itr.next();
+ buffer.append("Role =" + cour.getRoleId() + "\n");
+ }
+ }
+
+ //print user association
+ if (this.userAssoc != null)
+ {
+ for (Iterator itr = this.userAssoc.iterator(); itr.hasNext();)
+ {
+ PermUserAssoc cour = (PermUserAssoc)itr.next();
+ buffer.append("User =" + cour.getUserId() + "\n");
+ }
+ }
+
+ //print criteria
+ if (this.criteria != null)
+ {
+ for (Iterator itr = this.criteria.iterator(); itr.hasNext();)
+ {
+ Criteria cour = (Criteria)itr.next();
+ buffer.append("Criteria =" + cour.getName() + "," + cour.getValue() + "\n");
+ }
+ }
+
+ buffer.append("-----------------------------\n");
+
+ return buffer.toString();
+ }
+
+
+ /**
+ *
+ */
+ public boolean equals(Object obj)
+ {
+ boolean equals = false;
+ if (obj instanceof Permission)
+ {
+ Permission input = (Permission)obj;
+ if (input.id == this.id)
+ {
+ equals = true;
+ }
+ }
+ return equals;
+ }
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/Permission.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/PortalCMSSecurityContext.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/PortalCMSSecurityContext.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/PortalCMSSecurityContext.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -21,89 +21,86 @@
*/
package org.jboss.portal.cms.security;
+import org.jboss.portal.identity.User;
+
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
-import org.jboss.portal.identity.User;
-
/**
* An implementation of SecurityContext for the core Portal Engine
- *
- * @author Sohil Shah - sohil.shah(a)jboss.com - Nov 27, 2006
*
+ * @author Sohil Shah - sohil.shah(a)jboss.com - Nov 27, 2006
*/
-public class PortalCMSSecurityContext implements Serializable
+public class PortalCMSSecurityContext implements Serializable
{
- private Map contextMap = null;
-
- /**
- * signifies the user currently logged in to the system
- */
- private User portalUser = null;
-
+ private Map contextMap = null;
- /**
- *
- *
- */
- public PortalCMSSecurityContext(User portalUser)
- {
- super();
- this.portalUser = portalUser;
- this.contextMap = new HashMap();
- }
+ /** signifies the user currently logged in to the system */
+ private User portalUser = null;
- /**
- * This method returns the Identity of the user logged into the portal. The return value is of type
- * org.jboss.portal.identity.User
- *
- * @return Identity related information associated with the user logged into the portal
- */
- public Object getIdentity()
- {
- return this.portalUser;
- }
-
- /**
- * Returns value corresponding to the specified attribute name
- *
- * @param name
- * @return
- */
- public Object getAttribute(String name)
- {
- return this.contextMap.get(name);
- }
-
- /**
- * Sets a specified value corresponding to the specified name in the context
- *
- * @param name
- * @param value
- */
- public void setAttribute(String name,Object value)
- {
- this.contextMap.put(name,value);
- }
-
- /**
- * Removes the specified attribute
- *
- * @param name
- */
- public void removeAttribute(String name)
- {
- this.contextMap.remove(name);
- }
-
- /**
- * Returns an array of Strings consisting of all keys/names stored in the context
- *
- * @return
- */
- public String[] getAttributeNames()
- {
- return (String[])this.contextMap.keySet().toArray();
- }
+
+ /**
+ *
+ *
+ */
+ public PortalCMSSecurityContext(User portalUser)
+ {
+ super();
+ this.portalUser = portalUser;
+ this.contextMap = new HashMap();
+ }
+
+ /**
+ * This method returns the Identity of the user logged into the portal. The return value is of type
+ * org.jboss.portal.identity.User
+ *
+ * @return Identity related information associated with the user logged into the portal
+ */
+ public Object getIdentity()
+ {
+ return this.portalUser;
+ }
+
+ /**
+ * Returns value corresponding to the specified attribute name
+ *
+ * @param name
+ * @return
+ */
+ public Object getAttribute(String name)
+ {
+ return this.contextMap.get(name);
+ }
+
+ /**
+ * Sets a specified value corresponding to the specified name in the context
+ *
+ * @param name
+ * @param value
+ */
+ public void setAttribute(String name, Object value)
+ {
+ this.contextMap.put(name, value);
+ }
+
+ /**
+ * Removes the specified attribute
+ *
+ * @param name
+ */
+ public void removeAttribute(String name)
+ {
+ this.contextMap.remove(name);
+ }
+
+ /**
+ * Returns an array of Strings consisting of all keys/names stored in the context
+ *
+ * @return
+ */
+ public String[] getAttributeNames()
+ {
+ return (String[])this.contextMap.keySet().toArray();
+ }
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/PortalCMSSecurityContext.java
___________________________________________________________________
Name: svn:keywords
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/util/FileUtil.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/util/HibernateUtil.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/util/NodeUtil.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/util/RepositoryUtil.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/ApprovePublish.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/ApprovePublish.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/ApprovePublish.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,11 +22,10 @@
******************************************************************************/
package org.jboss.portal.cms.workflow;
-import java.util.Set;
-
import org.jboss.portal.workflow.WorkflowException;
import java.util.Collection;
+import java.util.Set;
/**
* Created on : Dec 19, 2006
@@ -36,8 +35,8 @@
public interface ApprovePublish
{
/**
- * Called when content is added to the CMS, and needs to be approved by the managers
- * before it can be published to go live
+ * Called when content is added to the CMS, and needs to be approved by the managers before it can be published to go
+ * live
*
* @param content
* @return returns the process id of the workflow process set in motion
@@ -45,8 +44,7 @@
public long requestApproval(Content content) throws WorkflowException;
/**
- * Called when a manager either approves or rejects the publishing of a specific content to
- * go live
+ * Called when a manager either approves or rejects the publishing of a specific content to go live
*
* @param processId
* @param manager userId of the manager
@@ -70,13 +68,12 @@
* @throws WorkflowException
*/
public Collection getAllPendingInQueue() throws WorkflowException;
-
+
/**
- * Returns role names of Roles that are designated to be Managers in this workflow.
- * Managers approve/deny all content publish requests before the content goes live in the
- * CMS
- *
- * @return a Set of role names
+ * Returns role names of Roles that are designated to be Managers in this workflow. Managers approve/deny all content
+ * publish requests before the content goes live in the CMS
+ *
+ * @return a Set of role names
*/
public Set getManagers();
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/ApprovePublish.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/ApprovePublishImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/ApprovePublishImpl.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/ApprovePublishImpl.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,18 +22,6 @@
******************************************************************************/
package org.jboss.portal.cms.workflow;
-import java.io.ByteArrayInputStream;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
-import java.util.StringTokenizer;
-
-import javax.xml.parsers.DocumentBuilderFactory;
-
import org.apache.log4j.Logger;
import org.jboss.portal.common.io.IOTools;
import org.jboss.portal.identity.IdentityContext;
@@ -54,6 +42,16 @@
import org.w3c.dom.Document;
import org.w3c.dom.Element;
+import javax.xml.parsers.DocumentBuilderFactory;
+import java.io.ByteArrayInputStream;
+import java.io.InputStream;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
+import java.util.StringTokenizer;
/**
@@ -83,7 +81,7 @@
private String subject = null;
private String body = null;
private JNDI.Binding jndiBinding;
-
+
private MembershipModule membershipModule = null;
private UserModule userModule = null;
@@ -164,12 +162,12 @@
this.managers[i] = st.nextToken();
this.managerSet.add(this.managers[i]);
}
-
+
this.membershipModule = (MembershipModule)identityServiceController.getIdentityContext().
- getObject(IdentityContext.TYPE_MEMBERSHIP_MODULE);
-
- this.userModule = (UserModule)identityServiceController.getIdentityContext().
- getObject(IdentityContext.TYPE_USER_MODULE);
+ getObject(IdentityContext.TYPE_MEMBERSHIP_MODULE);
+
+ this.userModule = (UserModule)identityServiceController.getIdentityContext().
+ getObject(IdentityContext.TYPE_USER_MODULE);
}
/**
@@ -247,24 +245,21 @@
{
this.jndiName = jndiName;
}
-
+
/**
- *
- */
- public IdentityServiceController getIdentityServiceController()
- {
- return identityServiceController;
- }
+ *
+ */
+ public IdentityServiceController getIdentityServiceController()
+ {
+ return identityServiceController;
+ }
- /**
- *
- * @param identityServiceController
- */
- public void setIdentityServiceController(
- IdentityServiceController identityServiceController)
- {
- this.identityServiceController = identityServiceController;
- }
+ /** @param identityServiceController */
+ public void setIdentityServiceController(
+ IdentityServiceController identityServiceController)
+ {
+ this.identityServiceController = identityServiceController;
+ }
/** @return the body */
@@ -305,8 +300,8 @@
//----------ApprovePublish Implementation------------------------------------------------------------------
/**
- * Called when content is added to the CMS, and needs to be approved by the managers
- * before it can be published to go live
+ * Called when content is added to the CMS, and needs to be approved by the managers before it can be published to go
+ * live
*
* @param content
* @return returns the process id of the workflow process set in motion
@@ -363,15 +358,14 @@
}
/**
- * Called when a manager either approves or rejects the publishing of a specific content to
- * go live
+ * Called when a manager either approves or rejects the publishing of a specific content to go live
*
* @param processId
* @param manager userId of the manager
* @param approved true if approved, false if rejected
*/
public void processManagerResponse(long processId, String manager, boolean approved) throws WorkflowException
- {
+ {
JbpmContext jbpmContext = null;
ProcessInstance processInstance = null;
boolean isManager = false;
@@ -396,9 +390,9 @@
for (Iterator itr = allTasks.iterator(); itr.hasNext();)
{
TaskInstance cour = (TaskInstance)itr.next();
- if (this.isManager(manager,cour.getActorId()))
+ if (this.isManager(manager, cour.getActorId()))
{
- isManager = true;
+ isManager = true;
log.debug("Manager=" + cour.getActorId() + "(" + processId + ")");
//check and make sure this task instance is not marked for deletion
@@ -433,11 +427,11 @@
{
jbpmContext.save(processInstance);
}
-
- if(!isManager)
+
+ if (!isManager)
{
- WorkflowException we = new WorkflowException("You are not authorized to Approve/Deny content publish requests");
- throw we;
+ WorkflowException we = new WorkflowException("You are not authorized to Approve/Deny content publish requests");
+ throw we;
}
IOTools.safeClose(jbpmContext);
}
@@ -480,7 +474,7 @@
if (criteriaPath.trim().equals(filePath.trim()))
{
- content.setProcessId(String.valueOf(cour.getId()));
+ content.setProcessId(String.valueOf(cour.getId()));
pendingQueue.add(content);
}
}
@@ -526,7 +520,7 @@
//apply proper criteria to extract pending content only for the specified file
if (content != null)
{
- content.setProcessId(String.valueOf(cour.getId()));
+ content.setProcessId(String.valueOf(cour.getId()));
pendingQueue.add(content);
}
}
@@ -539,44 +533,41 @@
}
return pendingQueue;
}
-
- /**
- *
- * @return
- */
+
+ /** @return */
public Set getManagers()
{
- return this.managerSet;
- }
+ return this.managerSet;
+ }
+
//----------------------------------------------------------------------------------------------------------------
/**
- * checks to see if the user trying to approve/deny a publish request belongs to the
- * approved list of managers
- *
+ * checks to see if the user trying to approve/deny a publish request belongs to the approved list of managers
+ *
* @param user
* @param managerRole
* @return
*/
- private boolean isManager(String user,String managerRole) throws Exception
+ private boolean isManager(String user, String managerRole) throws Exception
{
- boolean isManager = false;
-
- Set userRoles = this.membershipModule.getRoles(
- this.userModule.findUserByUserName(user));
- if(userRoles != null)
- {
- for(Iterator itr=userRoles.iterator();itr.hasNext();)
- {
- Role cour = (Role)itr.next();
- if(cour.getName().equalsIgnoreCase(managerRole))
- {
- //user is allowed to be a manager for this workflow
- isManager = true;
- break;
- }
- }
- }
-
- return isManager;
+ boolean isManager = false;
+
+ Set userRoles = this.membershipModule.getRoles(
+ this.userModule.findUserByUserName(user));
+ if (userRoles != null)
+ {
+ for (Iterator itr = userRoles.iterator(); itr.hasNext();)
+ {
+ Role cour = (Role)itr.next();
+ if (cour.getName().equalsIgnoreCase(managerRole))
+ {
+ //user is allowed to be a manager for this workflow
+ isManager = true;
+ break;
+ }
+ }
+ }
+
+ return isManager;
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/ApprovePublishImpl.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/ApprovePublishServlet.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/ApprovePublishServlet.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/ApprovePublishServlet.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,16 +22,14 @@
******************************************************************************/
package org.jboss.portal.cms.workflow;
-import java.io.IOException;
-
+import javax.naming.InitialContext;
import javax.servlet.ServletException;
+import javax.servlet.UnavailableException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import javax.servlet.UnavailableException;
+import java.io.IOException;
-import javax.naming.InitialContext;
-
/**
* Created on : Dec 20, 2006
*
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/ApprovePublishServlet.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/Content.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/Content.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/Content.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -23,9 +23,9 @@
package org.jboss.portal.cms.workflow;
import java.io.Serializable;
-import java.util.Date;
import java.text.Format;
import java.text.SimpleDateFormat;
+import java.util.Date;
/**
* Created on : Dec 20, 2006
@@ -40,7 +40,7 @@
private String mimeType = null;
private int size = 0;
private Date creationDate = null;
-
+
private String processId = null;
/**
@@ -52,65 +52,49 @@
}
- /**
- * @return the path
- */
+ /** @return the path */
public String getPath()
{
return path;
}
- /**
- * @param path the path to set
- */
+ /** @param path the path to set */
public void setPath(String path)
{
this.path = path;
}
- /**
- * @return the userName
- */
+ /** @return the userName */
public String getUserName()
{
return userName;
}
- /**
- * @param userName the userName to set
- */
+ /** @param userName the userName to set */
public void setUserName(String userName)
{
this.userName = userName;
}
- /**
- * @return the mimeType
- */
+ /** @return the mimeType */
public String getMimeType()
{
return mimeType;
}
- /**
- * @param mimeType the mimeType to set
- */
+ /** @param mimeType the mimeType to set */
public void setMimeType(String mimeType)
{
this.mimeType = mimeType;
}
- /**
- * @return the size
- */
+ /** @return the size */
public int getSize()
{
return size;
}
- /**
- * @param size the size to set
- */
+ /** @param size the size to set */
public void setSize(int size)
{
this.size = size;
@@ -121,17 +105,13 @@
return String.valueOf((this.size / 1024)) + "kb";
}
- /**
- * @return the creationDate
- */
+ /** @return the creationDate */
public Date getCreationDate()
{
return creationDate;
}
- /**
- * @param creationDate the creationDate to set
- */
+ /** @param creationDate the creationDate to set */
public void setCreationDate(Date creationDate)
{
this.creationDate = creationDate;
@@ -148,21 +128,15 @@
return date;
}
- /**
- *
- * @return
- */
- public String getProcessId()
- {
- return processId;
- }
-
- /**
- *
- * @param processId
- */
- public void setProcessId(String processId)
- {
- this.processId = processId;
- }
+ /** @return */
+ public String getProcessId()
+ {
+ return processId;
+ }
+
+ /** @param processId */
+ public void setProcessId(String processId)
+ {
+ this.processId = processId;
+ }
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/Content.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/FinalizePublish.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/FinalizePublish.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/FinalizePublish.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,129 +22,119 @@
******************************************************************************/
package org.jboss.portal.cms.workflow;
-import java.util.Locale;
-import java.util.List;
-
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-
import org.apache.log4j.Logger;
-
-import org.jbpm.graph.def.*;
-import org.jbpm.graph.exe.*;
-
-import org.jboss.portal.cms.workflow.Content;
import org.jboss.portal.cms.CMS;
import org.jboss.portal.cms.Command;
-import org.jboss.portal.cms.model.File;
-import org.jboss.portal.cms.impl.jcr.JCRCMS;
import org.jboss.portal.cms.impl.interceptors.ACLInterceptor;
+import org.jboss.portal.cms.impl.jcr.JCRCMS;
+import org.jboss.portal.cms.model.File;
+import org.jbpm.graph.def.ActionHandler;
+import org.jbpm.graph.exe.ExecutionContext;
+import javax.naming.InitialContext;
+import java.util.List;
+import java.util.Locale;
+
/**
- *
* Created on : Dec 20, 2006
- * @author Sohil Shah - sohil.shah(a)jboss.com
*
+ * @author Sohil Shah - sohil.shah(a)jboss.com
*/
-public class FinalizePublish implements ActionHandler
+public class FinalizePublish implements ActionHandler
{
- /**
- *
- */
- private static Logger log = Logger.getLogger(FinalizePublish.class);
-
- /**
- *
- */
- public void execute(ExecutionContext executionContext)
- {
- Content content = (Content)executionContext.getContextInstance().getVariable("content");
- boolean approved = ((Boolean)executionContext.getContextInstance().getVariable("approved")).booleanValue();
- long processId = executionContext.getProcessInstance().getId();
- CMS cms = this.getCMSService();
-
- if(approved)
- {
- ACLInterceptor.turnOff();
- JCRCMS.turnOffWorkflow();
-
- //create this content in the CMS and make it live
- int lastIndex = content.getPath().lastIndexOf('/');
- String path = content.getPath().substring(0,lastIndex);
- String language = content.getPath().substring(lastIndex+1);
-
- Command command = cms.getCommandFactory().createContentGetVersionsCommand(content.getPath());
- List versions = (List)cms.execute(command);
- org.jboss.portal.cms.model.Content processContent = this.findProcessContent(processId, versions);
-
- /**
- * if processContent is null, a pending version of the content was not found
- * this could be due to an outdated link. let the process finish, but nothing
- * new will be published
- */
- if(processContent != null)
- {
- //get the file to be updated and published live
- command = cms.getCommandFactory().createFileGetCommand(path,processContent.getVersionNumber(),
- new Locale(language));
- File file = (File)cms.execute(command);
-
- //now publish this
- file.getContent().setApprovalProcessId(null);
- file.getContent().setWaitingForPublishApproval(false);
- command = cms.getCommandFactory().createUpdateFileCommand(file, file.getContent(), true);
- cms.execute(command);
- }
-
-
- JCRCMS.turnOnWorkflow();
- ACLInterceptor.turnOn();
- }
- }
-
- /**
- *
- * @param processId
- * @param versions
- * @return
- */
- private org.jboss.portal.cms.model.Content findProcessContent(long processId,List versions)
- {
- org.jboss.portal.cms.model.Content content = null;
-
- if(versions != null)
- {
- for(int i=0;i<versions.size();i++)
- {
- org.jboss.portal.cms.model.Content cour = (org.jboss.portal.cms.model.Content)versions.get(i);
- if(cour.isWaitingForPublishApproval())
- {
- if( cour.getApprovalProcessId()!=null &&
- cour.getApprovalProcessId().trim().equals(String.valueOf(processId)))
- {
- //not if found...the content of this version should be published to go live
- return cour;
- }
- }
- }
- }
-
- return content;
- }
-
- /**
- *
- * @return
- */
- private CMS getCMSService()
- {
- try
- {
- return (CMS)new InitialContext().lookup("java:/portal/CMS");
- }
- catch(Exception e)
- {
- throw new RuntimeException(e);
- }
- }
+ /**
+ *
+ */
+ private static Logger log = Logger.getLogger(FinalizePublish.class);
+
+ /**
+ *
+ */
+ public void execute(ExecutionContext executionContext)
+ {
+ Content content = (Content)executionContext.getContextInstance().getVariable("content");
+ boolean approved = ((Boolean)executionContext.getContextInstance().getVariable("approved")).booleanValue();
+ long processId = executionContext.getProcessInstance().getId();
+ CMS cms = this.getCMSService();
+
+ if (approved)
+ {
+ ACLInterceptor.turnOff();
+ JCRCMS.turnOffWorkflow();
+
+ //create this content in the CMS and make it live
+ int lastIndex = content.getPath().lastIndexOf('/');
+ String path = content.getPath().substring(0, lastIndex);
+ String language = content.getPath().substring(lastIndex + 1);
+
+ Command command = cms.getCommandFactory().createContentGetVersionsCommand(content.getPath());
+ List versions = (List)cms.execute(command);
+ org.jboss.portal.cms.model.Content processContent = this.findProcessContent(processId, versions);
+
+ /**
+ * if processContent is null, a pending version of the content was not found
+ * this could be due to an outdated link. let the process finish, but nothing
+ * new will be published
+ */
+ if (processContent != null)
+ {
+ //get the file to be updated and published live
+ command = cms.getCommandFactory().createFileGetCommand(path, processContent.getVersionNumber(),
+ new Locale(language));
+ File file = (File)cms.execute(command);
+
+ //now publish this
+ file.getContent().setApprovalProcessId(null);
+ file.getContent().setWaitingForPublishApproval(false);
+ command = cms.getCommandFactory().createUpdateFileCommand(file, file.getContent(), true);
+ cms.execute(command);
+ }
+
+
+ JCRCMS.turnOnWorkflow();
+ ACLInterceptor.turnOn();
+ }
+ }
+
+ /**
+ * @param processId
+ * @param versions
+ * @return
+ */
+ private org.jboss.portal.cms.model.Content findProcessContent(long processId, List versions)
+ {
+ org.jboss.portal.cms.model.Content content = null;
+
+ if (versions != null)
+ {
+ for (int i = 0; i < versions.size(); i++)
+ {
+ org.jboss.portal.cms.model.Content cour = (org.jboss.portal.cms.model.Content)versions.get(i);
+ if (cour.isWaitingForPublishApproval())
+ {
+ if (cour.getApprovalProcessId() != null &&
+ cour.getApprovalProcessId().trim().equals(String.valueOf(processId)))
+ {
+ //not if found...the content of this version should be published to go live
+ return cour;
+ }
+ }
+ }
+ }
+
+ return content;
+ }
+
+ /** @return */
+ private CMS getCMSService()
+ {
+ try
+ {
+ return (CMS)new InitialContext().lookup("java:/portal/CMS");
+ }
+ catch (Exception e)
+ {
+ throw new RuntimeException(e);
+ }
+ }
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/FinalizePublish.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/PublishAssignmentHandler.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/PublishAssignmentHandler.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/PublishAssignmentHandler.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,53 +22,51 @@
******************************************************************************/
package org.jboss.portal.cms.workflow;
-import java.util.Collection;
-
-import org.apache.log4j.Logger;
import org.jbpm.graph.exe.ExecutionContext;
import org.jbpm.taskmgmt.def.AssignmentHandler;
import org.jbpm.taskmgmt.exe.Assignable;
import org.jbpm.taskmgmt.exe.TaskInstance;
+import java.util.Collection;
+
/**
- *
* Created on : Dec 20, 2006
- * @author Sohil Shah - sohil.shah(a)jboss.com
*
+ * @author Sohil Shah - sohil.shah(a)jboss.com
*/
public class PublishAssignmentHandler implements AssignmentHandler
{
- // private static Logger log = Logger.getLogger(PublishAssignmentHandler.class);
-
- /**
- *
- */
- public void assign(Assignable assignable,ExecutionContext executionContext)
- {
- int taskInstances = 0;
- Collection assignedTasks = executionContext.getTaskMgmtInstance().getTaskInstances();
- if(assignedTasks!=null)
- {
- taskInstances = assignedTasks.size();
- }
-
- if(taskInstances == 1)
- {
- String[] managers = (String[])executionContext.getContextInstance().getVariable("managers");
- if(managers!=null && managers.length>0)
- {
- //this.notifyManagers(executionContext,managers[0]);
- assignable.setActorId(managers[0]);
-
- for(int i=1;i<managers.length;i++)
- {
- //this.notifyManagers(executionContext,managers[i]);
- TaskInstance t = executionContext.getTaskMgmtInstance().
- createTaskInstance(((TaskInstance)assignable).getTask(),executionContext);
- t.setActorId(managers[i]);
- }
- }
- }
- }
+ // private static Logger log = Logger.getLogger(PublishAssignmentHandler.class);
+
+ /**
+ *
+ */
+ public void assign(Assignable assignable, ExecutionContext executionContext)
+ {
+ int taskInstances = 0;
+ Collection assignedTasks = executionContext.getTaskMgmtInstance().getTaskInstances();
+ if (assignedTasks != null)
+ {
+ taskInstances = assignedTasks.size();
+ }
+
+ if (taskInstances == 1)
+ {
+ String[] managers = (String[])executionContext.getContextInstance().getVariable("managers");
+ if (managers != null && managers.length > 0)
+ {
+ //this.notifyManagers(executionContext,managers[0]);
+ assignable.setActorId(managers[0]);
+
+ for (int i = 1; i < managers.length; i++)
+ {
+ //this.notifyManagers(executionContext,managers[i]);
+ TaskInstance t = executionContext.getTaskMgmtInstance().
+ createTaskInstance(((TaskInstance)assignable).getTask(), executionContext);
+ t.setActorId(managers[i]);
+ }
+ }
+ }
+ }
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/PublishAssignmentHandler.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/TaskExceptionHandler.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/TaskExceptionHandler.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/TaskExceptionHandler.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,9 +22,9 @@
******************************************************************************/
package org.jboss.portal.cms.workflow;
+import org.jbpm.graph.def.ActionHandler;
+import org.jbpm.graph.exe.ExecutionContext;
import org.jbpm.taskmgmt.exe.TaskInstance;
-import org.jbpm.graph.exe.ExecutionContext;
-import org.jbpm.graph.def.ActionHandler;
/**
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/workflow/TaskExceptionHandler.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/AbstractCMSTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/AbstractCMSTestCase.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/AbstractCMSTestCase.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -24,20 +24,20 @@
import junit.framework.TestCase;
import junit.framework.TestSuite;
+import org.jboss.portal.test.framework.embedded.DataSourceSupport;
+import org.jboss.portal.test.framework.embedded.HibernateSupport;
+import org.jboss.portal.test.framework.junit.JUnitAdapter;
import org.jboss.portal.test.framework.junit.POJOJUnitTest;
-import org.jboss.portal.test.framework.junit.JUnitAdapter;
import org.jboss.portal.test.framework.mc.TestRuntimeContext;
-import org.jboss.portal.test.framework.embedded.DataSourceSupport;
-import org.jboss.portal.test.framework.embedded.HibernateSupport;
import java.net.URL;
+import java.util.HashMap;
import java.util.Map;
-import java.util.HashMap;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
- * @version $Revision$
+ * @version $Revision: 7954 $
*/
public abstract class AbstractCMSTestCase extends TestCase
{
@@ -47,10 +47,10 @@
/** . */
protected TestRuntimeContext runtimeContext;
-
+
/**
- *
*
+ *
*/
protected String configuration = "org/jboss/portal/cms/jboss-beans.xml";
@@ -74,7 +74,7 @@
runtimeContext = new TestRuntimeContext(this.configuration);
runtimeContext.addBean("DataSourceConfig", dataSourceConfigParameter);
runtimeContext.addBean("HibernateConfig", HibernateSupport.getConfig(dataSourceConfigParameter.getName()));
-
+
//Start the context
runtimeContext.start();
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/AbstractCMSTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/JackrabbitTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/JackrabbitTestCase.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/JackrabbitTestCase.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -39,7 +39,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision$
+ * @version $Revision: 6653 $
*/
public class JackrabbitTestCase extends AbstractCMSTestCase
{
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/JackrabbitTestCase.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/TestRegEx.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/TestRepositoryBootStrap.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/TestRepositoryBootStrap.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/TestRepositoryBootStrap.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -24,11 +24,10 @@
import junit.framework.TestSuite;
import org.jboss.portal.cms.util.RepositoryUtil;
+import org.jboss.portal.test.cms.commands.AbstractCommandTestCase;
import javax.jcr.Session;
-import org.jboss.portal.test.cms.commands.AbstractCommandTestCase;
-
/**
* Tests JCRCMS Service
*
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/TestRepositoryBootStrap.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/TestRepositoryUtil.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/TestRepositoryUtil.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/TestRepositoryUtil.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -25,8 +25,6 @@
import junit.framework.TestSuite;
import org.jboss.portal.cms.util.NodeUtil;
-import java.util.Map;
-
/**
* Tests RepositoryUtil
*
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/TestRepositoryUtil.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/clustering/FileDeleteTest.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/clustering/FileDeleteTest.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/clustering/FileDeleteTest.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,26 +22,26 @@
******************************************************************************/
package org.jboss.portal.test.cms.clustering;
-import org.jboss.portal.test.framework.server.driver.AbstractTest;
+import org.jboss.portal.cms.CMS;
+import org.jboss.portal.cms.Command;
+import org.jboss.portal.cms.impl.ContentImpl;
+import org.jboss.portal.cms.impl.FileImpl;
+import org.jboss.portal.cms.model.Content;
+import org.jboss.portal.cms.model.File;
+import org.jboss.portal.common.junit.ExtendedAssert;
+import org.jboss.portal.server.AbstractServerURL;
+import org.jboss.portal.server.ServerInvocation;
+import org.jboss.portal.test.framework.driver.DriverResponse;
import org.jboss.portal.test.framework.driver.http.response.InvokeGetResponse;
import org.jboss.portal.test.framework.driver.remote.TestContext;
-import org.jboss.portal.test.framework.server.NodeId;
-import org.jboss.portal.test.framework.driver.DriverResponse;
-import org.jboss.portal.test.framework.driver.response.FailureResponse;
import org.jboss.portal.test.framework.driver.response.EndTestResponse;
import org.jboss.portal.test.framework.driver.response.ErrorResponse;
-import org.jboss.portal.common.junit.ExtendedAssert;
-import org.jboss.portal.server.ServerInvocation;
-import org.jboss.portal.server.AbstractServerURL;
-import org.jboss.portal.cms.CMS;
-import org.jboss.portal.cms.Command;
-import org.jboss.portal.cms.impl.FileImpl;
-import org.jboss.portal.cms.impl.ContentImpl;
-import org.jboss.portal.cms.model.File;
-import org.jboss.portal.cms.model.Content;
+import org.jboss.portal.test.framework.driver.response.FailureResponse;
+import org.jboss.portal.test.framework.server.NodeId;
+import org.jboss.portal.test.framework.server.driver.AbstractTest;
+import java.net.MalformedURLException;
import java.util.Locale;
-import java.net.MalformedURLException;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/clustering/FileDeleteTest.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/clustering/FileUpdateTest.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/clustering/FileUpdateTest.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/clustering/FileUpdateTest.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,26 +22,26 @@
******************************************************************************/
package org.jboss.portal.test.cms.clustering;
+import org.jboss.portal.cms.CMS;
import org.jboss.portal.cms.Command;
-import org.jboss.portal.cms.CMS;
import org.jboss.portal.cms.impl.ContentImpl;
import org.jboss.portal.cms.impl.FileImpl;
import org.jboss.portal.cms.model.Content;
import org.jboss.portal.cms.model.File;
-import org.jboss.portal.test.framework.driver.response.EndTestResponse;
-import org.jboss.portal.test.framework.driver.response.FailureResponse;
-import org.jboss.portal.test.framework.driver.response.ErrorResponse;
+import org.jboss.portal.common.junit.ExtendedAssert;
+import org.jboss.portal.server.AbstractServerURL;
+import org.jboss.portal.server.ServerInvocation;
import org.jboss.portal.test.framework.driver.DriverResponse;
-import org.jboss.portal.common.junit.ExtendedAssert;
-import org.jboss.portal.test.framework.server.driver.AbstractTest;
import org.jboss.portal.test.framework.driver.http.response.InvokeGetResponse;
import org.jboss.portal.test.framework.driver.remote.TestContext;
+import org.jboss.portal.test.framework.driver.response.EndTestResponse;
+import org.jboss.portal.test.framework.driver.response.ErrorResponse;
+import org.jboss.portal.test.framework.driver.response.FailureResponse;
import org.jboss.portal.test.framework.server.NodeId;
-import org.jboss.portal.server.ServerInvocation;
-import org.jboss.portal.server.AbstractServerURL;
+import org.jboss.portal.test.framework.server.driver.AbstractTest;
+import java.net.MalformedURLException;
import java.util.Locale;
-import java.net.MalformedURLException;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/clustering/FileUpdateTest.java
___________________________________________________________________
Name: svn:keywords
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/AbstractCommandTestCase.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/CMSInterceptorStackFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/CMSInterceptorStackFactory.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/CMSInterceptorStackFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -21,20 +21,20 @@
*/
package org.jboss.portal.test.cms.commands;
+import org.jboss.portal.common.invocation.InterceptorStack;
import org.jboss.portal.server.impl.invocation.JBossInterceptorStackFactory;
-import org.jboss.portal.common.invocation.InterceptorStack;
public class CMSInterceptorStackFactory extends JBossInterceptorStackFactory
{
- public CMSInterceptorStackFactory()
- {
- super();
- }
-
- public void setInterceptorStack(InterceptorStack stack)
- {
- this.stack = stack;
- }
+ public CMSInterceptorStackFactory()
+ {
+ super();
+ }
+ public void setInterceptorStack(InterceptorStack stack)
+ {
+ this.stack = stack;
+ }
+
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/CMSInterceptorStackFactory.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileArchiveUpload.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileArchiveUpload.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileArchiveUpload.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -54,7 +54,7 @@
String sJPG = "/hibernate_logo.gif";
String sText = "/training.txt";
-
+
String foreignArchive = "resources/test/jcr/prueba.zip";
@@ -108,12 +108,12 @@
Folder whopper3 = (Folder)service.execute(listCMD3);
List folders3 = whopper3.getFolders();
List files3 = whopper3.getFiles();
-
+
//Create and Test an archive containing foreign files
is = IOTools.safeBufferedWrapper(new FileInputStream(this.foreignArchive));
storearchiveCMD = service.getCommandFactory().createStoreArchiveCommand("", is, "en");
contentsToVersion = (List)service.execute(storearchiveCMD);
- assertTrue("Foreign Archive Creation Failed",(contentsToVersion != null && !contentsToVersion.isEmpty() && contentsToVersion.size() == 2));
+ assertTrue("Foreign Archive Creation Failed", (contentsToVersion != null && !contentsToVersion.isEmpty() && contentsToVersion.size() == 2));
is.close();
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileArchiveUpload.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileCopy.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileCopy.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileCopy.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -31,7 +31,6 @@
import org.jboss.portal.cms.model.File;
import java.util.Locale;
-import java.util.Map;
/**
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileCopy.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileCreate.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileCreate.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileCreate.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -34,7 +34,6 @@
import javax.jcr.Node;
import javax.jcr.Session;
import java.util.Locale;
-import java.util.Map;
/**
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileCreate.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileCreateFailed.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileCreateFailed.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileCreateFailed.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -37,7 +37,6 @@
import javax.jcr.Node;
import javax.jcr.Session;
import java.util.Locale;
-import java.util.Map;
/**
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileCreateFailed.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileDelete.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileDelete.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileDelete.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -33,7 +33,6 @@
import javax.jcr.Session;
import java.util.Locale;
-import java.util.Map;
/**
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileDelete.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileGet.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileGet.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileGet.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -31,7 +31,6 @@
import org.jboss.portal.cms.model.File;
import java.util.Locale;
-import java.util.Map;
/**
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileGet.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileGetList.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileGetList.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileGetList.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -32,7 +32,6 @@
import java.util.List;
import java.util.Locale;
-import java.util.Map;
/**
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileGetList.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileGetVersion.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileGetVersion.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileGetVersion.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -75,29 +75,29 @@
public void testFileGetVersion() throws CMSException
{
createFile();
-
+
// get specific file version
Command getCMDV = service.getCommandFactory().createFileGetCommand(sFilePath, "1.0", Locale.ENGLISH);
File Vnewfile = (File)service.execute(getCMDV);
assertTrue("Incorrect version number for file object", Vnewfile.getContent().getVersionNumber().equals("1.0"));
-
+
//Update this file and create a new version that goes "LIVE"
this.updateFile(Vnewfile);
-
+
//Make sure a new version 1.1 is created and thats the one that is "LIVE"
getCMDV = service.getCommandFactory().createFileGetCommand(sFilePath, Locale.ENGLISH);
Vnewfile = (File)service.execute(getCMDV);
assertTrue("Incorrect version number for file object", Vnewfile.getContent().getVersionNumber().equals("1.1"));
-
+
//Now switch to 1.0 as being the "LIVE" version
Command makeLiveCommand = service.getCommandFactory().createMakeLiveVersionCommand(sFilePath, Locale.ENGLISH.getLanguage(), "1.0");
String liveVersion = (String)service.execute(makeLiveCommand);
- assertEquals("Incorrect version number is 'LIVE'",liveVersion,"1.0");
-
+ assertEquals("Incorrect version number is 'LIVE'", liveVersion, "1.0");
+
//Verify that 1.0 is the "LIVE" version and not 1.1
getCMDV = service.getCommandFactory().createFileGetCommand(sFilePath, Locale.ENGLISH);
Vnewfile = (File)service.execute(getCMDV);
- assertEquals("Incorrect version number for file object ("+liveVersion+")", Vnewfile.getContent().getVersionNumber(), liveVersion);
+ assertEquals("Incorrect version number for file object (" + liveVersion + ")", Vnewfile.getContent().getVersionNumber(), liveVersion);
}
/**
@@ -135,11 +135,8 @@
Command newFileSPCMD = service.getCommandFactory().createNewFileCommand(file, contentSP);
service.execute(newFileSPCMD);
}
-
- /**
- *
- * @throws CMSException
- */
+
+ /** @throws CMSException */
private void updateFile(File updatedFile) throws CMSException
{
Command updateFileCMD = service.getCommandFactory().createUpdateFileCommand(updatedFile, updatedFile.getContent(), true);
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileGetVersion.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileUpdate.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileUpdate.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileUpdate.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -36,7 +36,6 @@
import javax.jcr.Property;
import javax.jcr.Session;
import java.util.Locale;
-import java.util.Map;
/**
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFileUpdate.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderCopy.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderCopy.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderCopy.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -33,7 +33,6 @@
import java.util.Date;
import java.util.Locale;
-import java.util.Map;
/**
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderCopy.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderCreate.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderCreate.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderCreate.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -32,7 +32,6 @@
import javax.jcr.Property;
import javax.jcr.Session;
import java.util.Date;
-import java.util.Map;
/**
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderCreate.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderDelete.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderDelete.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderDelete.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -27,7 +27,6 @@
import org.jboss.portal.cms.util.RepositoryUtil;
import javax.jcr.Session;
-import java.util.Map;
/**
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderDelete.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderGet.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderGet.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderGet.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -29,7 +29,6 @@
import org.jboss.portal.cms.model.Folder;
import java.util.Date;
-import java.util.Map;
/**
* @author <a href="mailto:roy@jboss.org">Roy Russo</a>
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderGet.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderUpdate.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderUpdate.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderUpdate.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -32,7 +32,6 @@
import javax.jcr.Property;
import javax.jcr.Session;
import java.util.Date;
-import java.util.Map;
/**
* @author <a href="mailto:roy@jboss.org">Roy Russo</a>
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestFolderUpdate.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestSearch.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestSearch.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestSearch.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,22 +22,18 @@
******************************************************************************/
package org.jboss.portal.test.cms.commands;
-import java.util.List;
-
import junit.framework.TestSuite;
-
import org.jboss.portal.cms.CMSException;
import org.jboss.portal.cms.Command;
import org.jboss.portal.cms.model.File;
import org.jboss.portal.search.FederatedQuery;
-import org.jboss.portal.search.Query;
import org.jboss.portal.search.impl.jcr.JCRQuery;
import org.jboss.portal.search.impl.jcr.JCRQueryConverter;
+import java.util.List;
-/**
- * @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
- */
+
+/** @author <a href="mailto:theute@jboss.org">Thomas Heute</a> */
public class TestSearch extends AbstractCommandTestCase
{
@@ -54,9 +50,9 @@
public void testFileGet() throws CMSException
{
FederatedQuery query = new FederatedQuery("risks");
-
+
JCRQueryConverter converter = new JCRQueryConverter();
-
+
Command searchCMD = service.getCommandFactory().createSearchCommand((JCRQuery)converter.convert(query));
List list = (List)service.execute(searchCMD);
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/commands/TestSearch.java
___________________________________________________________________
Name: svn:keywords
+
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/mock/RuntimeExceptionCommand.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/IdentityDataLoader.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/IdentityDataLoader.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/IdentityDataLoader.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,7 +22,6 @@
******************************************************************************/
package org.jboss.portal.test.cms.security;
-import javax.naming.InitialContext;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
@@ -32,94 +31,84 @@
import org.jboss.portal.identity.db.HibernateRoleImpl;
import org.jboss.portal.identity.db.HibernateUserImpl;
-/**
- * @author <a href="mailto:sshah@redhat.com">Sohil Shah</a>
- *
- */
+import javax.naming.InitialContext;
+
+/** @author <a href="mailto:sshah@redhat.com">Sohil Shah</a> */
public class IdentityDataLoader
{
/**
- *
+ *
*/
private IdentityServiceController identityServiceController = null;
-
+
/**
- *
+ *
*/
private String identitySessionFactory = null;
-
- /**
- *
- * @return
- */
+
+ /** @return */
public IdentityServiceController getIdentityServiceController()
{
return this.identityServiceController;
}
-
+
public void setIdentityServiceController(IdentityServiceController identityServiceController)
{
this.identityServiceController = identityServiceController;
}
-
- /**
- *
- * @return
- */
+
+ /** @return */
public String getIdentitySessionFactory()
{
return identitySessionFactory;
}
- /**
- *
- * @param identitySessionFactory
- */
+ /** @param identitySessionFactory */
public void setIdentitySessionFactory(String identitySessionFactory)
{
this.identitySessionFactory = identitySessionFactory;
}
/**
- *
*
+ *
*/
public IdentityDataLoader()
{
-
+
}
-
+
/**
- *
*
+ *
*/
public void start() throws Exception
{
SessionFactory sessionFactory = (SessionFactory)new InitialContext().lookup(this.identitySessionFactory);
- this.loadData(sessionFactory,this.identityServiceController);
+ this.loadData(sessionFactory, this.identityServiceController);
}
-
+
/**
- *
+ *
*/
public void stop() throws Exception
{
}
-
+
/**
- *
*
+ *
*/
- private void loadData(SessionFactory sessionFactory,IdentityServiceController service) throws Exception
+ private void loadData(SessionFactory sessionFactory, IdentityServiceController service) throws Exception
{
UserModule userModule = (UserModule)service.getIdentityContext().getObject(IdentityContext.TYPE_USER_MODULE);
-
+
Session session = sessionFactory.openSession();
Transaction tx = session.beginTransaction();
boolean success = false;
try
{
- if(userModule.getUserCount()==0)
+ if (userModule.getUserCount() == 0)
{
//
HibernateRoleImpl adminRole = new HibernateRoleImpl("Admin", "Administrators");
@@ -146,7 +135,7 @@
//
user.getRoles().add(userRole);
userRole.getUsers().add(user);
-
+
//Another admin user besides the core admin user
HibernateUserImpl sysAdmin = new HibernateUserImpl("sysadmin");
sysAdmin.setPassword(org.jboss.portal.common.util.Tools.md5AsHexString("sysadmin"));
@@ -165,15 +154,15 @@
session.save(admin);
session.save(user);
session.save(sysAdmin);
-
+
success = true;
}
}
finally
{
- if(tx != null)
+ if (tx != null)
{
- if(success)
+ if (success)
{
tx.commit();
}
@@ -182,10 +171,10 @@
tx.rollback();
}
}
- if(session != null)
+ if (session != null)
{
session.close();
}
- }
+ }
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/IdentityDataLoader.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/SecureCommandTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/SecureCommandTestCase.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/SecureCommandTestCase.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -21,8 +21,6 @@
*/
package org.jboss.portal.test.cms.security;
-import javax.naming.InitialContext;
-
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
@@ -32,19 +30,16 @@
import org.jboss.portal.common.invocation.Interceptor;
import org.jboss.portal.identity.IdentityServiceController;
import org.jboss.portal.server.impl.invocation.JBossInterceptorStack;
-
import org.jboss.portal.test.cms.commands.AbstractCommandTestCase;
import org.jboss.portal.test.cms.commands.CMSInterceptorStackFactory;
-/**
- *
- * @author Sohil Shah - sohil.shah(a)jboss.com - Nov 30, 2006
- *
- */
+import javax.naming.InitialContext;
+
+/** @author Sohil Shah - sohil.shah(a)jboss.com - Nov 30, 2006 */
public abstract class SecureCommandTestCase extends AbstractCommandTestCase
-{
+{
/**
- *
+ *
*/
public SecureCommandTestCase()
{
@@ -52,16 +47,16 @@
}
/**
- *
+ *
*/
public void setUp() throws Exception
{
//override the configration location to include workflow services
this.configuration = "org/jboss/portal/cms/jboss-beans-security.xml";
super.setUp();
-
+
ACLInterceptor aclInterceptor = this.getACLInterceptor();
-
+
//Setup the interceptor stack
CMSInterceptorStackFactory stackFactory = new CMSInterceptorStackFactory();
Interceptor[] interceptors = new Interceptor[1];
@@ -70,38 +65,32 @@
stackFactory.setInterceptorStack(stack);
this.service.setStackFactory(stackFactory);
-
+
//Register the IdentityService with the JCR service
IdentityServiceController identityService = ((AuthorizationProviderImpl)aclInterceptor.getAuthorizationManager().getProvider()).
- getIdentityServiceController();
- this.service.setIdentityServiceController(identityService);
+ getIdentityServiceController();
+ this.service.setIdentityServiceController(identityService);
}
-
+
/**
- *
+ *
*/
public void tearDown() throws Exception
- {
+ {
super.tearDown();
}
-
- /**
- *
- * @return
- */
+
+ /** @return */
protected ACLInterceptor getACLInterceptor() throws Exception
- {
+ {
ACLInterceptor aclInterceptor = (ACLInterceptor)new InitialContext().lookup("java:/portal/cms/ACLInterceptor");
return aclInterceptor;
- }
-
- /**
- *
- * @param username
- */
+ }
+
+ /** @param username */
protected void runAs(String username) throws Exception
- {
+ {
SessionFactory sessionFactory = (SessionFactory)new InitialContext().lookup("java:/SessionFactory");
Session session = sessionFactory.openSession();
Transaction tx = session.beginTransaction();
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/SecureCommandTestCase.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/TestManageAccess.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/TestManageAccess.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/TestManageAccess.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -25,46 +25,38 @@
import junit.framework.TestSuite;
import org.jboss.portal.cms.CMSException;
import org.jboss.portal.cms.Command;
-import org.jboss.portal.cms.model.Folder;
import org.jboss.portal.cms.impl.FolderImpl;
+import org.jboss.portal.cms.model.Folder;
-
import java.util.Date;
-/**
- *
- * @author Sohil Shah - sohil.shah(a)jboss.com - Nov 30, 2006
- *
- */
+/** @author Sohil Shah - sohil.shah(a)jboss.com - Nov 30, 2006 */
public class TestManageAccess extends SecureCommandTestCase
{
String rejectPath = "/default/private";
String allowedPath = "/default/images";
String supportPath = "/default/support.html";
String copyPath = "/support.html";
-
+
/**
- *
- *
+ *
+ *
*/
public TestManageAccess()
{
}
/**
- *
- *
+ *
+ *
*/
public static TestSuite suite() throws Exception
{
return createTestSuite(TestManageAccess.class);
}
-
- /**
- *
- * @return
- */
+
+ /** @return */
private Folder getNewPublicFolder()
{
//create folder object
@@ -75,14 +67,11 @@
folder.setLastModified(new Date());
folder.setName("images");
folder.setBasePath(this.allowedPath);
-
+
return folder;
}
-
- /**
- *
- * @return
- */
+
+ /** @return */
private Folder getNewProtectedFolder()
{
//create folder object
@@ -93,23 +82,23 @@
folder.setLastModified(new Date());
folder.setName("private");
folder.setBasePath(this.rejectPath);
-
+
return folder;
}
-
-
+
+
/**
- *
*
+ *
*/
private void runManageScenario(Folder folder) throws CMSException
- {
+ {
//Copy the specified folder
String copySrc = folder.getBasePath();
String copyDest = folder.getBasePath() + "/" + "copy";
- Command copyCommand = this.service.getCommandFactory().createCopyCommand(copySrc,copyDest);
+ Command copyCommand = this.service.getCommandFactory().createCopyCommand(copySrc, copyDest);
this.service.execute(copyCommand);
-
+
//Assert the copy execution
Command get = this.service.getCommandFactory().createFolderGetCommand(copySrc);
Folder copyFrom = (Folder)this.service.execute(get);
@@ -117,13 +106,13 @@
Folder copyTo = (Folder)this.service.execute(get);
assertNotNull(copyFrom);
assertNotNull(copyTo);
-
+
//Move a folder
String moveSrc = copyDest;
String moveDest = folder.getBasePath() + "/" + "move";
- Command moveCommand = this.service.getCommandFactory().createMoveCommand(moveSrc,moveDest);
+ Command moveCommand = this.service.getCommandFactory().createMoveCommand(moveSrc, moveDest);
this.service.execute(moveCommand);
-
+
//Assert the move execution
get = this.service.getCommandFactory().createFolderGetCommand(moveSrc);
Folder moveFrom = (Folder)this.service.execute(get);
@@ -131,30 +120,27 @@
Folder moveTo = (Folder)this.service.execute(get);
assertNull(moveFrom);
assertNotNull(moveTo);
-
+
//Delete the folder
- String delete = moveDest;
+ String delete = moveDest;
Command deleteCommand = this.service.getCommandFactory().createDeleteCommand(delete);
this.service.execute(deleteCommand);
-
+
//Assert delete execution
get = this.service.getCommandFactory().createFolderGetCommand(delete);
- Folder deletedFolder = (Folder)this.service.execute(get);
+ Folder deletedFolder = (Folder)this.service.execute(get);
assertNull(deletedFolder);
}
-
- /**
- *
- * @throws Exception
- */
+
+ /** @throws Exception */
public void testAnonymous() throws Exception
- {
+ {
// first run against non-access scenario
try
{
this.runManageScenario(this.getNewProtectedFolder());
assertTrue("Access should not have been granted to" + this.rejectPath,
- false);
+ false);
}
catch (CMSException cme)
{
@@ -168,8 +154,8 @@
try
{
this.runManageScenario(this.getNewPublicFolder());
- assertTrue("Access should not have been granted to" + this.rejectPath,
- false);
+ assertTrue("Access should not have been granted to" + this.rejectPath,
+ false);
}
catch (CMSException cme)
{
@@ -179,20 +165,17 @@
}
}
- /**
- *
- * @throws Exception
- */
+ /** @throws Exception */
public void testUser() throws Exception
{
this.runAs("user");
-
+
// first run against non-access scenario
try
{
this.runManageScenario(this.getNewProtectedFolder());
assertTrue("Access should not have been granted to" + this.rejectPath,
- false);
+ false);
}
catch (CMSException cme)
{
@@ -205,7 +188,7 @@
//for anonymous, this should still result in an access denied
try
{
- this.runManageScenario(this.getNewPublicFolder());
+ this.runManageScenario(this.getNewPublicFolder());
}
catch (CMSException cme)
{
@@ -214,15 +197,12 @@
assertTrue(cmeMessage.indexOf("Access to this resource is denied") != -1);
}
}
-
- /**
- *
- * @throws Exception
- */
+
+ /** @throws Exception */
public void testAdmin() throws Exception
{
this.runAs("admin");
-
+
// first run against non-access scenario
try
{
@@ -248,34 +228,31 @@
assertTrue(cmeMessage.indexOf("Access to this resource is denied") == -1);
}
}
-
- /**
- *
- * @throws Exception
- */
+
+ /** @throws Exception */
public void testCopyToDeniedDestination() throws Exception
{
this.runAs("user");
-
+
//Copy the file to the folder
try
{
- Command copyCommand = this.service.getCommandFactory().createCopyCommand(this.supportPath,this.copyPath);
+ Command copyCommand = this.service.getCommandFactory().createCopyCommand(this.supportPath, this.copyPath);
this.service.execute(copyCommand);
-
+
//Make sure copy operation did not happen
//I should not get here
assertTrue(false);
}
- catch(CMSException cme)
+ catch (CMSException cme)
{
String cmeMessage = cme.toString();
- if(cmeMessage.indexOf("Access to this resource is denied") != -1)
+ if (cmeMessage.indexOf("Access to this resource is denied") != -1)
{
//Make sure copy operation did not happen
Command exists = (Command)this.service.getCommandFactory().createItemExistsCommand(this.copyPath);
boolean existsValue = ((Boolean)this.service.execute(exists)).booleanValue();
- assertFalse(existsValue);
+ assertFalse(existsValue);
}
else
{
@@ -283,35 +260,32 @@
}
}
}
-
- /**
- *
- * @throws Exception
- */
+
+ /** @throws Exception */
public void testMoveToDeniedDestination() throws Exception
{
this.runAs("user");
-
+
//Move the file from the folder
try
{
- Command moveCommand = this.service.getCommandFactory().createMoveCommand(this.supportPath,this.copyPath);
+ Command moveCommand = this.service.getCommandFactory().createMoveCommand(this.supportPath, this.copyPath);
this.service.execute(moveCommand);
-
+
//Make sure copy operation did not happen
//I should not get here
assertTrue(false);
}
- catch(CMSException cme)
+ catch (CMSException cme)
{
String cmeMessage = cme.toString();
- if(cmeMessage.indexOf("Access to this resource is denied") != -1)
+ if (cmeMessage.indexOf("Access to this resource is denied") != -1)
{
//Make sure move operation didnot happen
Command exists = (Command)this.service.getCommandFactory().createItemExistsCommand(this.copyPath);
boolean existsValue = ((Boolean)this.service.execute(exists)).booleanValue();
assertFalse(existsValue);
-
+
exists = (Command)this.service.getCommandFactory().createItemExistsCommand(this.supportPath);
existsValue = ((Boolean)this.service.execute(exists)).booleanValue();
assertTrue(existsValue);
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/TestManageAccess.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/TestReadAccess.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/TestReadAccess.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/TestReadAccess.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,20 +22,16 @@
******************************************************************************/
package org.jboss.portal.test.cms.security;
-import java.util.List;
import junit.framework.TestSuite;
import org.jboss.portal.cms.CMSException;
import org.jboss.portal.cms.Command;
-import org.jboss.portal.cms.model.Folder;
import org.jboss.portal.cms.model.File;
+import org.jboss.portal.cms.model.Folder;
+import java.util.List;
import java.util.Locale;
-/**
- *
- * @author Sohil Shah - sohil.shah(a)jboss.com - Nov 30, 2006
- *
- */
+/** @author Sohil Shah - sohil.shah(a)jboss.com - Nov 30, 2006 */
public class TestReadAccess extends SecureCommandTestCase
{
String rejectFolderPath = "/default/private";
@@ -44,45 +40,44 @@
String allowedFilePath = "/default/images/check.gif";
/**
- *
- *
+ *
+ *
*/
public TestReadAccess()
{
}
/**
- *
- *
+ *
+ *
*/
public static TestSuite suite() throws Exception
{
return createTestSuite(TestReadAccess.class);
}
-
-
+
+
/**
- *
*
+ *
*/
private void runFileScenario(String filePath) throws CMSException
- {
+ {
//Get the specified file
- Command get = this.service.getCommandFactory().createFileGetCommand(filePath,new Locale(this.service.getDefaultLocale()));
+ Command get = this.service.getCommandFactory().createFileGetCommand(filePath, new Locale(this.service.getDefaultLocale()));
File file = (File)this.service.execute(get);
assertNotNull(file);
- assertEquals(file.getBasePath(),filePath);
-
+ assertEquals(file.getBasePath(), filePath);
+
//Get a list of file versions
get = this.service.getCommandFactory()
- .createFileGetListCommand(filePath);
+ .createFileGetListCommand(filePath);
List versions = (List)this.service.execute(get);
assertNotNull(versions);
- assertTrue(versions.size()>0);
+ assertTrue(versions.size() > 0);
}
-
+
/**
- *
* @param folderPath
* @throws CMSException
*/
@@ -92,27 +87,24 @@
Command get = this.service.getCommandFactory().createFolderGetCommand(folderPath);
Folder folder = (Folder)this.service.execute(get);
assertNotNull(folder);
- assertEquals(folder.getBasePath(),folderPath);
-
+ assertEquals(folder.getBasePath(), folderPath);
+
//Get the specified folder list
get = this.service.getCommandFactory().createFolderGetListCommand(folderPath);
Folder folderList = (Folder)this.service.execute(get);
assertNotNull(folderList);
- assertTrue(folderList.getFolders()!=null || folderList.getFiles()!=null);
+ assertTrue(folderList.getFolders() != null || folderList.getFiles() != null);
}
-
- /**
- *
- * @throws Exception
- */
+
+ /** @throws Exception */
public void testAnonymous() throws Exception
- {
+ {
try
{
- this.runFileScenario(this.rejectFilePath);
+ this.runFileScenario(this.rejectFilePath);
assertTrue("Access should not have been granted to" + this.rejectFilePath,
- false);
+ false);
}
catch (CMSException cme)
{
@@ -120,12 +112,12 @@
String cmeMessage = cme.toString();
assertTrue(cmeMessage.indexOf("Access to this resource is denied") != -1);
}
-
+
try
{
- this.runFolderScenario(this.rejectFolderPath);
+ this.runFolderScenario(this.rejectFolderPath);
assertTrue("Access should not have been granted to" + this.rejectFolderPath,
- false);
+ false);
}
catch (CMSException cme)
{
@@ -136,7 +128,7 @@
try
{
- this.runFileScenario(this.allowedFilePath);
+ this.runFileScenario(this.allowedFilePath);
}
catch (CMSException cme)
{
@@ -144,10 +136,10 @@
String cmeMessage = cme.toString();
assertTrue(cmeMessage.indexOf("Access to this resource is denied") == -1);
}
-
+
try
{
- this.runFolderScenario(this.allowedFolderPath);
+ this.runFolderScenario(this.allowedFolderPath);
}
catch (CMSException cme)
{
@@ -157,19 +149,16 @@
}
}
- /**
- *
- * @throws Exception
- */
+ /** @throws Exception */
public void testUser() throws Exception
- {
+ {
this.runAs("user");
-
+
try
{
- this.runFileScenario(this.rejectFilePath);
+ this.runFileScenario(this.rejectFilePath);
assertTrue("Access should not have been granted to" + this.rejectFilePath,
- false);
+ false);
}
catch (CMSException cme)
{
@@ -177,12 +166,12 @@
String cmeMessage = cme.toString();
assertTrue(cmeMessage.indexOf("Access to this resource is denied") != -1);
}
-
+
try
{
- this.runFolderScenario(this.rejectFolderPath);
+ this.runFolderScenario(this.rejectFolderPath);
assertTrue("Access should not have been granted to" + this.rejectFolderPath,
- false);
+ false);
}
catch (CMSException cme)
{
@@ -193,7 +182,7 @@
try
{
- this.runFileScenario(this.allowedFilePath);
+ this.runFileScenario(this.allowedFilePath);
}
catch (CMSException cme)
{
@@ -201,10 +190,10 @@
String cmeMessage = cme.toString();
assertTrue(cmeMessage.indexOf("Access to this resource is denied") == -1);
}
-
+
try
{
- this.runFolderScenario(this.allowedFolderPath);
+ this.runFolderScenario(this.allowedFolderPath);
}
catch (CMSException cme)
{
@@ -213,18 +202,15 @@
assertTrue(cmeMessage.indexOf("Access to this resource is denied") == -1);
}
}
-
- /**
- *
- * @throws Exception
- */
+
+ /** @throws Exception */
public void testAdmin() throws Exception
- {
+ {
this.runAs("admin");
-
+
try
{
- this.runFileScenario(this.rejectFilePath);
+ this.runFileScenario(this.rejectFilePath);
}
catch (CMSException cme)
{
@@ -232,10 +218,10 @@
String cmeMessage = cme.toString();
assertTrue(cmeMessage.indexOf("Access to this resource is denied") == -1);
}
-
+
try
{
- this.runFolderScenario(this.rejectFolderPath);
+ this.runFolderScenario(this.rejectFolderPath);
}
catch (CMSException cme)
{
@@ -246,7 +232,7 @@
try
{
- this.runFileScenario(this.allowedFilePath);
+ this.runFileScenario(this.allowedFilePath);
}
catch (CMSException cme)
{
@@ -254,10 +240,10 @@
String cmeMessage = cme.toString();
assertTrue(cmeMessage.indexOf("Access to this resource is denied") == -1);
}
-
+
try
{
- this.runFolderScenario(this.allowedFolderPath);
+ this.runFolderScenario(this.allowedFolderPath);
}
catch (CMSException cme)
{
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/TestReadAccess.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/TestWriteAccess.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/TestWriteAccess.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/TestWriteAccess.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,25 +22,21 @@
******************************************************************************/
package org.jboss.portal.test.cms.security;
-import java.util.List;
import junit.framework.TestSuite;
import org.jboss.portal.cms.CMSException;
import org.jboss.portal.cms.Command;
-import org.jboss.portal.cms.model.Folder;
-import org.jboss.portal.cms.impl.FolderImpl;
-import org.jboss.portal.cms.model.File;
-import org.jboss.portal.cms.impl.FileImpl;
import org.jboss.portal.cms.impl.ContentImpl;
+import org.jboss.portal.cms.impl.FileImpl;
+import org.jboss.portal.cms.impl.FolderImpl;
import org.jboss.portal.cms.model.Content;
+import org.jboss.portal.cms.model.File;
+import org.jboss.portal.cms.model.Folder;
import java.util.Date;
+import java.util.List;
import java.util.Locale;
-/**
- *
- * @author Sohil Shah - sohil.shah(a)jboss.com - Nov 30, 2006
- *
- */
+/** @author Sohil Shah - sohil.shah(a)jboss.com - Nov 30, 2006 */
public class TestWriteAccess extends SecureCommandTestCase
{
String rejectPath = "/default/private";
@@ -48,26 +44,23 @@
String rootFolderPath = "/";
/**
- *
- *
+ *
+ *
*/
public TestWriteAccess()
{
}
/**
- *
- *
+ *
+ *
*/
public static TestSuite suite() throws Exception
{
return createTestSuite(TestWriteAccess.class);
}
-
- /**
- *
- * @return
- */
+
+ /** @return */
private Folder getNewPublicFolder()
{
//create folder object
@@ -77,15 +70,12 @@
folder.setTitle("Folder Title");
folder.setLastModified(new Date());
folder.setName("Unit Test");
- folder.setBasePath(this.allowedPath+"/"+folder.getName());
-
+ folder.setBasePath(this.allowedPath + "/" + folder.getName());
+
return folder;
}
-
- /**
- *
- * @return
- */
+
+ /** @return */
private Folder getNewProtectedFolder()
{
//create folder object
@@ -95,15 +85,12 @@
folder.setTitle("Folder Title");
folder.setLastModified(new Date());
folder.setName("Unit Test");
- folder.setBasePath(this.rejectPath+"/"+folder.getName());
-
+ folder.setBasePath(this.rejectPath + "/" + folder.getName());
+
return folder;
}
-
- /**
- *
- * @return
- */
+
+ /** @return */
private Folder getNewRootFolder()
{
//create folder object
@@ -113,20 +100,19 @@
folder.setTitle("Folder Title");
folder.setLastModified(new Date());
folder.setName("Unit Test");
- folder.setBasePath(this.rootFolderPath+folder.getName());
-
+ folder.setBasePath(this.rootFolderPath + folder.getName());
+
return folder;
}
-
+
/**
- *
* @param folder
* @return
*/
- private File getFile(Folder folder,String fileName,String data)
+ private File getFile(Folder folder, String fileName, String data)
{
File file = new FileImpl();
- file.setBasePath(folder.getBasePath()+"/"+fileName);
+ file.setBasePath(folder.getBasePath() + "/" + fileName);
Content content = new ContentImpl();
content.setEncoding("UTF-8");
@@ -136,90 +122,87 @@
content.setBytes(data.getBytes());
content.setMimeType("text/html");
file.setContent(Locale.ENGLISH, content);
-
+
return file;
}
-
+
/**
- *
*
+ *
*/
private void runWriteScenario(Folder folder) throws CMSException
- {
+ {
//Create a new folder
Command newFolder = this.service.getCommandFactory().createFolderSaveCommand(folder);
this.service.execute(newFolder);
-
+
//Assert the successfull creation of the folder
Command get = service.getCommandFactory().createFolderGetCommand(folder.getBasePath());
- Folder assertFolder = (Folder) service.execute(get);
+ Folder assertFolder = (Folder)service.execute(get);
assertNotNull(assertFolder);
- assertEquals(folder.getDescription(),assertFolder.getDescription());
- assertEquals(folder.getName(),assertFolder.getName());
- assertEquals(folder.getBasePath(),assertFolder.getBasePath());
-
+ assertEquals(folder.getDescription(), assertFolder.getDescription());
+ assertEquals(folder.getName(), assertFolder.getName());
+ assertEquals(folder.getBasePath(), assertFolder.getBasePath());
+
//Create a new file into the newly created folder
- File file = this.getFile(assertFolder,"testFile.html","newdata");
- Command newFile = this.service.getCommandFactory().createNewFileCommand(file,file.getContent());
+ File file = this.getFile(assertFolder, "testFile.html", "newdata");
+ Command newFile = this.service.getCommandFactory().createNewFileCommand(file, file.getContent());
this.service.execute(newFile);
-
+
//Assert the creation of the new file
- get = this.service.getCommandFactory().createFileGetCommand(file.getBasePath(),file.getContent().getLocale());
+ get = this.service.getCommandFactory().createFileGetCommand(file.getBasePath(), file.getContent().getLocale());
File assertFile = (File)this.service.execute(get);
assertNotNull(assertFile);
- assertEquals(file.getBasePath(),assertFile.getBasePath());
- assertEquals(new String(file.getContent().getBytes()),new String(assertFile.getContent().getBytes()));
-
+ assertEquals(file.getBasePath(), assertFile.getBasePath());
+ assertEquals(new String(file.getContent().getBytes()), new String(assertFile.getContent().getBytes()));
+
//Update the newly created file
file = assertFile;
file.getContent().setBytes(new String("updateddata").getBytes());
- Command updateFile = this.service.getCommandFactory().createUpdateFileCommand(file,file.getContent(),true);
+ Command updateFile = this.service.getCommandFactory().createUpdateFileCommand(file, file.getContent(), true);
this.service.execute(updateFile);
-
+
//Assert the updated file
- get = this.service.getCommandFactory().createFileGetCommand(file.getBasePath(),file.getContent().getLocale());
+ get = this.service.getCommandFactory().createFileGetCommand(file.getBasePath(), file.getContent().getLocale());
assertFile = (File)this.service.execute(get);
assertNotNull(assertFile);
- assertEquals(file.getBasePath(),assertFile.getBasePath());
- assertEquals(new String(file.getContent().getBytes()),new String(assertFile.getContent().getBytes()));
-
+ assertEquals(file.getBasePath(), assertFile.getBasePath());
+ assertEquals(new String(file.getContent().getBytes()), new String(assertFile.getContent().getBytes()));
+
//Get the versions of the file
get = this.service.getCommandFactory().createContentGetVersionsCommand(file.getContent().getBasePath());
List before = (List)this.service.execute(get);
-
+
//Create a new version of this file
- file = this.getFile(folder,"testFile.html","newversion");
+ file = this.getFile(folder, "testFile.html", "newversion");
Command fileUpdate = this.service.getCommandFactory().createFileUpdateCommand(file);
- Command createNewVersion = this.service.getCommandFactory().createContentCreateNewVersionCommand(file.getContent(),true);
+ Command createNewVersion = this.service.getCommandFactory().createContentCreateNewVersionCommand(file.getContent(), true);
this.service.execute(fileUpdate);
this.service.execute(createNewVersion);
-
+
//Assert new version creation
- get = this.service.getCommandFactory().createFileGetCommand(file.getBasePath(),file.getContent().getLocale());
+ get = this.service.getCommandFactory().createFileGetCommand(file.getBasePath(), file.getContent().getLocale());
assertFile = (File)this.service.execute(get);
assertNotNull(assertFile);
- assertEquals(file.getBasePath(),assertFile.getBasePath());
- assertEquals(new String(file.getContent().getBytes()),new String(assertFile.getContent().getBytes()));
-
+ assertEquals(file.getBasePath(), assertFile.getBasePath());
+ assertEquals(new String(file.getContent().getBytes()), new String(assertFile.getContent().getBytes()));
+
//Assert number of versions after
get = this.service.getCommandFactory().createContentGetVersionsCommand(file.getContent().getBasePath());
List after = (List)this.service.execute(get);
- assertEquals(before.size()+1,after.size());
+ assertEquals(before.size() + 1, after.size());
}
-
- /**
- *
- * @throws Exception
- */
+
+ /** @throws Exception */
public void testAnonymous() throws Exception
- {
+ {
// first run against non-access scenario
try
{
this.runWriteScenario(this.getNewProtectedFolder());
assertTrue("Access should not have been granted to" + this.rejectPath,
- false);
+ false);
}
catch (CMSException cme)
{
@@ -233,8 +216,8 @@
try
{
this.runWriteScenario(this.getNewPublicFolder());
- assertTrue("Access should not have been granted to" + this.rejectPath,
- false);
+ assertTrue("Access should not have been granted to" + this.rejectPath,
+ false);
}
catch (CMSException cme)
{
@@ -244,20 +227,17 @@
}
}
- /**
- *
- * @throws Exception
- */
+ /** @throws Exception */
public void testUser() throws Exception
{
this.runAs("user");
-
+
// first run against non-access scenario
try
{
this.runWriteScenario(this.getNewProtectedFolder());
assertTrue("Access should not have been granted to" + this.rejectPath,
- false);
+ false);
}
catch (CMSException cme)
{
@@ -270,7 +250,7 @@
//for anonymous, this should still result in an access denied
try
{
- this.runWriteScenario(this.getNewPublicFolder());
+ this.runWriteScenario(this.getNewPublicFolder());
}
catch (CMSException cme)
{
@@ -279,15 +259,12 @@
assertTrue(cmeMessage.indexOf("Access to this resource is denied") == -1);
}
}
-
- /**
- *
- * @throws Exception
- */
+
+ /** @throws Exception */
public void testAdmin() throws Exception
{
this.runAs("admin");
-
+
// first run against non-access scenario
try
{
@@ -312,7 +289,7 @@
String cmeMessage = cme.toString();
assertTrue(cmeMessage.indexOf("Access to this resource is denied") == -1);
}
-
+
//now run against scenario where access should be granted for a registered user
//for anonymous, this should still result in an access denied
try
@@ -326,15 +303,12 @@
assertTrue(cmeMessage.indexOf("Access to this resource is denied") == -1);
}
}
-
- /**
- *
- * @throws Exception
- */
+
+ /** @throws Exception */
public void testSysAdmin() throws Exception
{
this.runAs("sysadmin");
-
+
// first run against non-access scenario
try
{
@@ -359,8 +333,7 @@
String cmeMessage = cme.toString();
assertTrue(cmeMessage.indexOf("Access to this resource is denied") == -1);
}
-
-
+
//now run against scenario where access should be granted for a registered user
//for anonymous, this should still result in an access denied
try
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/security/TestWriteAccess.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/AbstractWorkflowTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/AbstractWorkflowTestCase.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/AbstractWorkflowTestCase.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -21,12 +21,12 @@
*/
package org.jboss.portal.test.cms.workflow;
-import javax.naming.InitialContext;
-
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.jboss.portal.cms.impl.interceptors.ApprovalWorkflowInterceptor;
+import org.jboss.portal.cms.workflow.ApprovePublish;
+import org.jboss.portal.cms.workflow.ApprovePublishImpl;
import org.jboss.portal.common.invocation.Interceptor;
import org.jboss.portal.identity.IdentityContext;
import org.jboss.portal.identity.IdentityServiceController;
@@ -34,21 +34,16 @@
import org.jboss.portal.identity.db.HibernateRoleImpl;
import org.jboss.portal.identity.db.HibernateUserImpl;
import org.jboss.portal.server.impl.invocation.JBossInterceptorStack;
-import org.jboss.portal.cms.workflow.ApprovePublish;
-import org.jboss.portal.cms.workflow.ApprovePublishImpl;
-
import org.jboss.portal.test.cms.commands.AbstractCommandTestCase;
import org.jboss.portal.test.cms.commands.CMSInterceptorStackFactory;
-/**
- *
- * @author Sohil Shah - sohil.shah(a)jboss.com - Nov 30, 2006
- *
- */
+import javax.naming.InitialContext;
+
+/** @author Sohil Shah - sohil.shah(a)jboss.com - Nov 30, 2006 */
public abstract class AbstractWorkflowTestCase extends AbstractCommandTestCase
-{
+{
/**
- *
+ *
*/
public AbstractWorkflowTestCase()
{
@@ -56,21 +51,21 @@
}
/**
- *
+ *
*/
public void setUp() throws Exception
{
//override the configration location to include workflow services
- this.configuration = "org/jboss/portal/cms/jboss-beans-workflow.xml";
+ this.configuration = "org/jboss/portal/cms/jboss-beans-workflow.xml";
super.setUp();
-
+
ApprovalWorkflowInterceptor workflowInterceptor = this.getApprovalWorkflowInterceptor();
ApprovePublish approvePublish = this.getApprovePublish();
IdentityServiceController identityService = ((ApprovePublishImpl)approvePublish).getIdentityServiceController();
-
+
//Setup bootstrapped Identity data into the Identity store
SessionFactory sessionFactory = (SessionFactory)new InitialContext().lookup("java:/SessionFactory");
- this.loadData(sessionFactory,identityService);
+ this.loadData(sessionFactory, identityService);
//Setup the interceptor stack
CMSInterceptorStackFactory stackFactory = new CMSInterceptorStackFactory();
@@ -83,28 +78,24 @@
this.service.setApprovePublishWorkflow(approvePublish);
this.service.setIdentityServiceController(identityService);
}
-
+
/**
- *
+ *
*/
public void tearDown() throws Exception
{
super.tearDown();
}
-
- /**
- *
- * @return
- */
+
+ /** @return */
protected ApprovalWorkflowInterceptor getApprovalWorkflowInterceptor() throws Exception
- {
+ {
ApprovalWorkflowInterceptor approvalWorkflowInterceptor = (ApprovalWorkflowInterceptor)new InitialContext().lookup("java:/portal/cms/ApprovalWorkflowInterceptor");
return approvalWorkflowInterceptor;
- }
-
+ }
+
/**
- *
* @return
* @throws Exception
*/
@@ -112,21 +103,21 @@
{
return (ApprovePublish)new InitialContext().lookup("java:/portal/ApprovePublishWorkflow");
}
-
+
/**
- *
*
+ *
*/
- private void loadData(SessionFactory sessionFactory,IdentityServiceController service) throws Exception
+ private void loadData(SessionFactory sessionFactory, IdentityServiceController service) throws Exception
{
UserModule userModule = (UserModule)service.getIdentityContext().getObject(IdentityContext.TYPE_USER_MODULE);
-
+
Session session = sessionFactory.openSession();
Transaction tx = session.beginTransaction();
boolean success = false;
try
{
- if(userModule.getUserCount()==0)
+ if (userModule.getUserCount() == 0)
{
//
HibernateRoleImpl adminRole = new HibernateRoleImpl("Admin", "Administrators");
@@ -159,15 +150,15 @@
session.save(userRole);
session.save(admin);
session.save(user);
-
+
success = true;
}
}
finally
{
- if(tx != null)
+ if (tx != null)
{
- if(success)
+ if (success)
{
tx.commit();
}
@@ -176,10 +167,10 @@
tx.rollback();
}
}
- if(session != null)
+ if (session != null)
{
session.close();
}
- }
+ }
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/AbstractWorkflowTestCase.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/TestApprovedPublish.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/TestApprovedPublish.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/TestApprovedPublish.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,35 +22,30 @@
******************************************************************************/
package org.jboss.portal.test.cms.workflow;
-import java.util.Locale;
-import java.util.Collection;
-import java.util.Set;
-import javax.naming.InitialContext;
-
-import org.hibernate.SessionFactory;
+import junit.framework.TestSuite;
import org.hibernate.Session;
+import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
-import junit.framework.TestSuite;
-
import org.jboss.portal.cms.Command;
-import org.jboss.portal.cms.model.File;
-import org.jboss.portal.cms.model.Content;
-import org.jboss.portal.cms.impl.FileImpl;
import org.jboss.portal.cms.impl.ContentImpl;
-import org.jboss.portal.cms.workflow.ApprovePublish;
+import org.jboss.portal.cms.impl.FileImpl;
import org.jboss.portal.cms.impl.jcr.JCRCMS;
+import org.jboss.portal.cms.model.Content;
+import org.jboss.portal.cms.model.File;
+import org.jboss.portal.cms.workflow.ApprovePublish;
-/**
- *
- * @author Sohil Shah - sohil.shah(a)jboss.com - Nov 30, 2006
- *
- */
+import javax.naming.InitialContext;
+import java.util.Collection;
+import java.util.Locale;
+import java.util.Set;
+
+/** @author Sohil Shah - sohil.shah(a)jboss.com - Nov 30, 2006 */
public class TestApprovedPublish extends AbstractWorkflowTestCase
{
private String file = "/default/workflow.html";
private Transaction tx = null;
private Session session = null;
-
+
/**
*
*
@@ -67,41 +62,38 @@
{
return createTestSuite(TestApprovedPublish.class);
}
-
+
/**
- *
+ *
*/
public void setUp() throws Exception
{
super.setUp();
JCRCMS.turnOnWorkflow();
-
+
SessionFactory sessionFactory = (SessionFactory)new InitialContext().lookup("java:/SessionFactory");
this.session = sessionFactory.openSession();
this.tx = session.beginTransaction();
}
-
+
/**
- *
+ *
*/
public void tearDown() throws Exception
- {
+ {
this.tx.commit();
this.session.close();
-
- super.tearDown();
+
+ super.tearDown();
}
-
- /**
- *
- * @throws Exception
- */
+
+ /** @throws Exception */
public void test() throws Exception
{
//Execute file creation as a regular user/non-manager
this.runAs("user");
-
+
//Add a new file to the CMS
File file = new FileImpl();
file.setBasePath(this.file);
@@ -114,81 +106,77 @@
content.setBytes("newdata".getBytes());
content.setMimeType("text/html");
file.setContent(Locale.ENGLISH, content);
-
+
Command newFileCommand = this.service.getCommandFactory().createNewFileCommand(file, content);
this.service.execute(newFileCommand);
-
+
//Make sure this resource is not published into the CMS yet
Command fileGet = this.service.getCommandFactory().createFileGetCommand(this.file, Locale.ENGLISH);
File assertFile = (File)this.service.execute(fileGet);
assertNull(assertFile.getContent());
-
+
//Check the pending queue for this file
ApprovePublish approvePublish = this.service.getApprovePublishWorkflow();
- Collection queueItems = approvePublish.getPendingQueue(this.file);
+ Collection queueItems = approvePublish.getPendingQueue(this.file);
assertNotNull(queueItems);
- assertEquals(1,queueItems.size());
-
+ assertEquals(1, queueItems.size());
+
//Approve and publish this file into the CMS
Set managers = approvePublish.getManagers();
String manager = (String)managers.iterator().next();
org.jboss.portal.cms.workflow.Content pendingItem = (org.jboss.portal.cms.workflow.Content)queueItems.iterator().next();
approvePublish.processManagerResponse(Long.parseLong(pendingItem.getProcessId()), manager.toLowerCase(), true);
-
+
//Make sure this resource is successfully published into the CMS, and removed from the pending queue
assertFile = (File)this.service.execute(fileGet);
assertNotNull(assertFile.getContent());
assertTrue(assertFile.getContent().isLive());
assertFalse(assertFile.getContent().isWaitingForPublishApproval());
- assertEquals(new String(assertFile.getContent().getBytes()),"newdata");
+ assertEquals(new String(assertFile.getContent().getBytes()), "newdata");
queueItems = approvePublish.getPendingQueue(this.file);
- if(queueItems != null)
+ if (queueItems != null)
{
assertTrue(queueItems.isEmpty());
}
-
+
String currentLiveVersion = assertFile.getContent().getVersionNumber();
-
-
+
//Now testing the update side of it
//modify this file
file.getContent().setBytes("updateddata".getBytes());
- Command updateFileCommand = this.service.getCommandFactory().createUpdateFileCommand(file,content,true);
+ Command updateFileCommand = this.service.getCommandFactory().createUpdateFileCommand(file, content, true);
this.service.execute(updateFileCommand);
-
+
//Make sure a new LIVE version of this resource is not published into the CMS
assertFile = (File)this.service.execute(fileGet);
- assertEquals(new String(assertFile.getContent().getBytes()),"newdata");
- assertEquals(assertFile.getContent().getVersionNumber(),currentLiveVersion);
-
+ assertEquals(new String(assertFile.getContent().getBytes()), "newdata");
+ assertEquals(assertFile.getContent().getVersionNumber(), currentLiveVersion);
+
//Checking pending queue for a version of this file to be approved
queueItems = approvePublish.getPendingQueue(this.file);
assertNotNull(queueItems);
- assertEquals(1,queueItems.size());
-
+ assertEquals(1, queueItems.size());
+
//Approve and publish this new version into the CMS
pendingItem = (org.jboss.portal.cms.workflow.Content)queueItems.iterator().next();
- approvePublish.processManagerResponse(Long.parseLong(pendingItem.getProcessId()), manager.toLowerCase(),true);
-
+ approvePublish.processManagerResponse(Long.parseLong(pendingItem.getProcessId()), manager.toLowerCase(), true);
+
//Check for the success of this publish, and removal from the pending queue
assertFile = (File)this.service.execute(fileGet);
assertFalse(assertFile.getContent().isWaitingForPublishApproval());
- assertEquals(new String(assertFile.getContent().getBytes()),"updateddata");
+ assertEquals(new String(assertFile.getContent().getBytes()), "updateddata");
assertTrue(assertFile.getContent().getVersionNumber() != currentLiveVersion);
queueItems = approvePublish.getPendingQueue(this.file);
- if(queueItems != null)
+ if (queueItems != null)
{
assertTrue(queueItems.isEmpty());
}
}
-
- /**
- *
- * @param username
- */
+
+ /** @param username */
private void runAs(String username) throws Exception
- {
+ {
JCRCMS.getUserInfo().set(this.service.getUserModule().findUserByUserName(username));
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/TestApprovedPublish.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/TestDeniedPublish.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/TestDeniedPublish.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/TestDeniedPublish.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,38 +22,32 @@
******************************************************************************/
package org.jboss.portal.test.cms.workflow;
-import java.util.Locale;
-import java.util.Collection;
-import java.util.Set;
-import java.util.List;
-import javax.naming.InitialContext;
-
-import org.hibernate.SessionFactory;
+import junit.framework.TestSuite;
import org.hibernate.Session;
+import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
-
-import junit.framework.TestSuite;
-
import org.jboss.portal.cms.Command;
-import org.jboss.portal.cms.model.File;
-import org.jboss.portal.cms.model.Content;
-import org.jboss.portal.cms.impl.FileImpl;
import org.jboss.portal.cms.impl.ContentImpl;
-import org.jboss.portal.cms.workflow.ApprovePublish;
+import org.jboss.portal.cms.impl.FileImpl;
import org.jboss.portal.cms.impl.jcr.JCRCMS;
+import org.jboss.portal.cms.model.Content;
+import org.jboss.portal.cms.model.File;
+import org.jboss.portal.cms.workflow.ApprovePublish;
-/**
- *
- * @author Sohil Shah - sohil.shah(a)jboss.com - Nov 30, 2006
- *
- */
+import javax.naming.InitialContext;
+import java.util.Collection;
+import java.util.List;
+import java.util.Locale;
+import java.util.Set;
+
+/** @author Sohil Shah - sohil.shah(a)jboss.com - Nov 30, 2006 */
public class TestDeniedPublish extends AbstractWorkflowTestCase
{
private String newFile = "/default/workflow.html";
private String updateFile = "/default/index.html";
private Transaction tx = null;
private Session session = null;
-
+
/**
*
*
@@ -70,41 +64,38 @@
{
return createTestSuite(TestDeniedPublish.class);
}
-
+
/**
- *
+ *
*/
public void setUp() throws Exception
{
super.setUp();
JCRCMS.turnOnWorkflow();
-
+
SessionFactory sessionFactory = (SessionFactory)new InitialContext().lookup("java:/SessionFactory");
this.session = sessionFactory.openSession();
this.tx = session.beginTransaction();
}
-
+
/**
- *
+ *
*/
public void tearDown() throws Exception
- {
+ {
this.tx.commit();
this.session.close();
-
- super.tearDown();
+
+ super.tearDown();
}
-
- /**
- *
- * @throws Exception
- */
+
+ /** @throws Exception */
public void test() throws Exception
{
//Execute file creation as a regular user/non-manager
this.runAs("user");
-
+
//Add a new file to the CMS
File file = new FileImpl();
file.setBasePath(this.newFile);
@@ -117,98 +108,92 @@
content.setBytes("newdata".getBytes());
content.setMimeType("text/html");
file.setContent(Locale.ENGLISH, content);
-
+
Command newFileCommand = this.service.getCommandFactory().createNewFileCommand(file, content);
this.service.execute(newFileCommand);
-
+
//Make sure this resource is not published into the CMS yet
Command fileGet = this.service.getCommandFactory().createFileGetCommand(this.newFile, Locale.ENGLISH);
File assertFile = (File)this.service.execute(fileGet);
assertNull(assertFile.getContent());
-
+
//Check the pending queue for this file
ApprovePublish approvePublish = this.service.getApprovePublishWorkflow();
Collection queueItems = approvePublish.getPendingQueue(this.newFile);
assertNotNull(queueItems);
- assertEquals(1,queueItems.size());
-
+ assertEquals(1, queueItems.size());
+
//Deny the publish of this file into the CMS
Set managers = approvePublish.getManagers();
String manager = (String)managers.iterator().next();
org.jboss.portal.cms.workflow.Content pendingItem = (org.jboss.portal.cms.workflow.Content)queueItems.iterator().next();
approvePublish.processManagerResponse(Long.parseLong(pendingItem.getProcessId()), manager.toLowerCase(), false);
-
+
//Make sure this resource is not published into the CMS, and removed from the pending queue
assertFile = (File)this.service.execute(fileGet);
- assertNull(assertFile.getContent());
+ assertNull(assertFile.getContent());
queueItems = approvePublish.getPendingQueue(this.newFile);
- if(queueItems != null)
+ if (queueItems != null)
{
assertTrue(queueItems.isEmpty());
}
-
-
+
//Check for the existence of a file to be updated first
Command existsCommand = this.service.getCommandFactory().createItemExistsCommand(this.updateFile);
Boolean exists = (Boolean)this.service.execute(existsCommand);
assertTrue(exists.booleanValue());
-
-
+
//Get the file to be updated
- fileGet = this.service.getCommandFactory().createFileGetCommand(this.updateFile,new Locale(this.service.getDefaultLocale()));
+ fileGet = this.service.getCommandFactory().createFileGetCommand(this.updateFile, new Locale(this.service.getDefaultLocale()));
File updateFile = (File)this.service.execute(fileGet);
assertNotNull(updateFile);
assertNotNull(updateFile.getContent());
assertTrue(updateFile.getContent().isLive());
-
+
//Get some data related to this CMS in the file before sending in an update
Command getVersions = this.service.getCommandFactory().createContentGetVersionsCommand(updateFile.getContent().getBasePath());
- List versions = (List)this.service.execute(getVersions);
+ List versions = (List)this.service.execute(getVersions);
String oldLiveVersion = updateFile.getContent().getVersionNumber();
String oldContent = new String(updateFile.getContent().getBytes());
- assertEquals(1,versions.size());
-
+ assertEquals(1, versions.size());
+
//Peform the file update
updateFile.getContent().setBytes("updateddata".getBytes());
- Command updateFileCommand = this.service.getCommandFactory().createUpdateFileCommand(updateFile,updateFile.getContent(),true);
+ Command updateFileCommand = this.service.getCommandFactory().createUpdateFileCommand(updateFile, updateFile.getContent(), true);
this.service.execute(updateFileCommand);
-
-
+
//Make sure a new LIVE version of this resource is not published into the CMS
assertFile = (File)this.service.execute(fileGet);
versions = (List)this.service.execute(getVersions);
- assertEquals(new String(assertFile.getContent().getBytes()),oldContent);
- assertEquals(assertFile.getContent().getVersionNumber(),oldLiveVersion);
- assertEquals(2,versions.size());
-
+ assertEquals(new String(assertFile.getContent().getBytes()), oldContent);
+ assertEquals(assertFile.getContent().getVersionNumber(), oldLiveVersion);
+ assertEquals(2, versions.size());
+
//Checking pending queue for a version of this file to be approved
queueItems = approvePublish.getPendingQueue(this.updateFile);
assertNotNull(queueItems);
- assertEquals(1,queueItems.size());
-
+ assertEquals(1, queueItems.size());
+
//Deny publishing of this new version into the CMS
pendingItem = (org.jboss.portal.cms.workflow.Content)queueItems.iterator().next();
- approvePublish.processManagerResponse(Long.parseLong(pendingItem.getProcessId()), manager.toLowerCase(),false);
-
+ approvePublish.processManagerResponse(Long.parseLong(pendingItem.getProcessId()), manager.toLowerCase(), false);
+
//Check for the success of this denial, and removal from the pending queue
assertFile = (File)this.service.execute(fileGet);
versions = (List)this.service.execute(getVersions);
- assertEquals(new String(assertFile.getContent().getBytes()),oldContent);
- assertEquals(assertFile.getContent().getVersionNumber(),oldLiveVersion);
- assertEquals(2,versions.size());
+ assertEquals(new String(assertFile.getContent().getBytes()), oldContent);
+ assertEquals(assertFile.getContent().getVersionNumber(), oldLiveVersion);
+ assertEquals(2, versions.size());
queueItems = approvePublish.getPendingQueue(this.updateFile);
- if(queueItems != null)
+ if (queueItems != null)
{
assertTrue(queueItems.isEmpty());
- }
+ }
}
-
- /**
- *
- * @param username
- */
+
+ /** @param username */
private void runAs(String username) throws Exception
- {
+ {
JCRCMS.getUserInfo().set(this.service.getUserModule().findUserByUserName(username));
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/TestDeniedPublish.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/TestWorkflowEnvironment.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/TestWorkflowEnvironment.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/TestWorkflowEnvironment.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,26 +22,21 @@
******************************************************************************/
package org.jboss.portal.test.cms.workflow;
-import java.util.Set;
-
import junit.framework.Assert;
import junit.framework.TestSuite;
-
import org.jboss.portal.cms.CMSException;
import org.jboss.portal.cms.workflow.ApprovePublish;
+import java.util.Set;
-/**
- *
- * @author Sohil Shah - sohil.shah(a)jboss.com - Nov 30, 2006
- *
- */
+
+/** @author Sohil Shah - sohil.shah(a)jboss.com - Nov 30, 2006 */
public class TestWorkflowEnvironment extends AbstractWorkflowTestCase
{
String rejectPath = "/default/private/license.html";
String allowedPath = "/default/images/check.gif";
-
+
/**
*
*
@@ -59,21 +54,18 @@
return createTestSuite(TestWorkflowEnvironment.class);
}
- /**
- *
- * @throws CMSException
- */
+ /** @throws CMSException */
public void test() throws Exception
- {
+ {
//Get the ApprovePublish service
ApprovePublish service = this.getApprovePublish();
-
+
//Get the list of managers allowed to approve content
Set managers = service.getManagers();
-
+
//Assert and make sure there is atleast one portal role that is allowed
//to function of content manager
Assert.assertNotNull(managers);
- Assert.assertTrue(managers.size()>0);
+ Assert.assertTrue(managers.size() > 0);
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/test/cms/workflow/TestWorkflowEnvironment.java
___________________________________________________________________
Name: svn:keywords
+
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/resources/hibernate/domain.hbm.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/resources/hibernate/domain.hbm.xml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/resources/hibernate/domain.hbm.xml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -274,103 +274,103 @@
type="long"
not-null="true"/>
</class>
-
+
<!-- mapping to persist CMS Fine Grained Security related objects -->
<class name="org.jboss.portal.cms.security.PermRoleAssoc" table="jbp_cms_perm_role">
<cache usage="read-write"/>
<id
- name="id"
- column="ID"
- type="java.lang.Long">
+ name="id"
+ column="ID"
+ type="java.lang.Long">
<generator class="native"/>
</id>
<property
- name="roleId"
- column="ROLE_ID"
- type="string"
- not-null="true"
- />
+ name="roleId"
+ column="ROLE_ID"
+ type="string"
+ not-null="true"
+ />
</class>
<class name="org.jboss.portal.cms.security.PermUserAssoc" table="jbp_cms_perm_user">
<cache usage="read-write"/>
<id
- name="id"
- column="ID"
- type="java.lang.Long">
+ name="id"
+ column="ID"
+ type="java.lang.Long">
<generator class="native"/>
</id>
<property
- name="userId"
- column="USER_ID"
- type="string"
- not-null="true"
- />
+ name="userId"
+ column="USER_ID"
+ type="string"
+ not-null="true"
+ />
</class>
<class name="org.jboss.portal.cms.security.Criteria" table="jbp_cms_perm_criteria">
<cache usage="read-write"/>
<id
- name="id"
- column="ID"
- type="java.lang.Long">
+ name="id"
+ column="ID"
+ type="java.lang.Long">
<generator class="native"/>
</id>
<property
- name="name"
- column="NAME"
- type="string"
- not-null="true"
- />
+ name="name"
+ column="NAME"
+ type="string"
+ not-null="true"
+ />
<property
- name="value"
- column="VALUE"
- type="string"
- not-null="true"
- />
+ name="value"
+ column="VALUE"
+ type="string"
+ not-null="true"
+ />
</class>
<class name="org.jboss.portal.cms.security.Permission" table="jbp_cms_perm">
<cache usage="read-write"/>
<id
- name="id"
- column="ID"
- type="java.lang.Long">
+ name="id"
+ column="ID"
+ type="java.lang.Long">
<generator class="native"/>
</id>
- <!-- one-to-many association with the criteria object -->
- <set name="criteria" lazy="false" table="jbp_cms_perm_criteria" cascade="all-delete-orphan">
+ <!-- one-to-many association with the criteria object -->
+ <set name="criteria" lazy="false" table="jbp_cms_perm_criteria" cascade="all-delete-orphan">
<cache usage="read-write"/>
<key column="CMS_PERM_ID"/>
<one-to-many class="org.jboss.portal.cms.security.Criteria"/>
</set>
- <!-- many-to-many association with the role object -->
- <set name="roleAssoc" lazy="false" cascade="all-delete-orphan">
+ <!-- many-to-many association with the role object -->
+ <set name="roleAssoc" lazy="false" cascade="all-delete-orphan">
<cache usage="read-write"/>
<key column="CMS_PERM_ID"/>
<one-to-many class="org.jboss.portal.cms.security.PermRoleAssoc"/>
</set>
- <!-- many-to-many association with the user object -->
- <set name="userAssoc" lazy="false" cascade="all-delete-orphan">
+ <!-- many-to-many association with the user object -->
+ <set name="userAssoc" lazy="false" cascade="all-delete-orphan">
<cache usage="read-write"/>
<key column="CMS_PERM_ID"/>
<one-to-many class="org.jboss.portal.cms.security.PermUserAssoc"/>
</set>
<property
- name="service"
- column="NAME"
- type="string"
- not-null="true"
- />
+ name="service"
+ column="NAME"
+ type="string"
+ not-null="true"
+ />
<property
- name="action"
- column="ACTION"
- type="string"
- not-null="true"
- />
+ name="action"
+ column="ACTION"
+ type="string"
+ not-null="true"
+ />
<property
- name="negated"
- column="NEGATED"
- type="boolean"
- not-null="true"
- />
+ name="negated"
+ column="NEGATED"
+ type="boolean"
+ not-null="true"
+ />
</class>
</hibernate-mapping>
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/hibernate/domain.hbm.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-jar/org/jboss/portal/cms/jboss-beans-security.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-jar/org/jboss/portal/cms/jboss-beans-security.xml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-jar/org/jboss/portal/cms/jboss-beans-security.xml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -79,7 +79,7 @@
<property name="identityServiceController"><inject bean="IdentityServiceController"/></property>
<property name="identitySessionFactory">java:/SessionFactory</property>
</bean>
-
+
<!-- setup for cms security testing -->
<bean name="AuthorizationProvider" class="org.jboss.portal.cms.security.AuthorizationProviderImpl">
<property name="identityServiceController"><inject bean="IdentityServiceController"/></property>
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-jar/org/jboss/portal/cms/jboss-beans-security.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-jar/org/jboss/portal/cms/jboss-beans-workflow.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-jar/org/jboss/portal/cms/jboss-beans-workflow.xml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-jar/org/jboss/portal/cms/jboss-beans-workflow.xml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -163,8 +163,8 @@
<property name="defaultConfigFile">standardidentity-config.xml</property>
<property name="registerMBeans">false</property>
</bean>
-
-
+
+
<!-- setup for cms workflow testing -->
<bean name="WorkflowService" class="org.jboss.portal.workflow.service.WorkflowServiceImpl">
<property name="jbpmConfigurationXml">
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-jar/org/jboss/portal/cms/jboss-beans-workflow.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-jar/org/jboss/portal/cms/jboss-beans.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-jar/org/jboss/portal/cms/mime-mappings.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-sar/default-content/default/index.html
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-sar/default-content/default/private/license.html
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-sar/default-content/default/private/license.html 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-sar/default-content/default/private/license.html 2007-10-28 01:09:21 UTC (rev 8785)
@@ -1,38 +1,54 @@
<!-- begin: portlet content -->
<table width="100%" border="0" cellpadding="2">
-<tr>
-<td valign="top" align="left" class="portlet-section-body"><font class="portlet-font">JBoss Inc. delivers the Professional Support, Consulting, and Training that you need whether you are testing a proof of concept, deploying a mission-critical application, or rolling out JEMS across your enterprise. </font></td>
-<td valign="top" align="right"><img src="default/images/jboss_logo.gif"></td>
-</tr>
-<tr>
-<td colspan="2">
-<table width="100%" border="0" cellpadding="2">
-<tr>
-<td class="portlet-section-alternate" width="16" valign="top" align="left"><img src="default/images/check.gif"></td>
-<td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
-<a href="http://www.jboss.com/services/profsupport" target="_blank">Professional Support</a>
-<br/>
-The JBoss Subscription is a set of services and tools that assist you during every stage of the application lifecycle - from design and development, thru testing and deployment, to on-going management and monitoring of your enterprise application deployments. JBoss Subscriptions allow you to reduce business, legal, and technical risks while enabling you to more effectively utilize your team's resources. A JBoss Subscription will ensure that you achieve a much greater success rate for all of your JEMS-based projects.
-</font></td>
-</tr>
-<tr>
-<td class="portlet-section-alternate" width="16" valign="top" align="left"><img src="default/images/check.gif"></td>
-<td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
-<a href="http://www.jboss.com/services/consulting" target="_blank">Consulting Services</a>
-<br/>
-JBoss offers short-term on-site JEMS consulting engagements that provide you expert assistance at various stages of the application lifecycle. All engagements are delivered by certified JEMS consultants.
-</font></td>
-</tr>
-<tr>
-<td class="portlet-section-alternate" width="16" valign="top" align="left"><img src="default/images/check.gif"></td>
-<td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
-<a href="http://www.jboss.com/services/training" target="_blank">Training and Certification</a>
-<br/>
-A Certified JBoss Web Developer is capable of implementing presentation tier components for J2EE applications. They have the base knowledge on Servlet and JSP technology, Portlet specification, Tomcat Servlet container and JBoss Portal. A Certified JBoss Developer for web tier is able to implement and deploy presentation components (Web Archives) on Tomcat server and Portlet components on JBoss Portal implementation.
-</font></td>
-</tr>
+ <tr>
+ <td valign="top" align="left" class="portlet-section-body"><font class="portlet-font">JBoss Inc. delivers the
+ Professional Support, Consulting, and Training that you need whether you are testing a proof of concept,
+ deploying a mission-critical application, or rolling out JEMS across your enterprise. </font></td>
+ <td valign="top" align="right"><img src="default/images/jboss_logo.gif"></td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <table width="100%" border="0" cellpadding="2">
+ <tr>
+ <td class="portlet-section-alternate" width="16" valign="top" align="left"><img
+ src="default/images/check.gif"></td>
+ <td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
+ <a href="http://www.jboss.com/services/profsupport" target="_blank">Professional Support</a>
+ <br/>
+ The JBoss Subscription is a set of services and tools that assist you during every stage of the
+ application lifecycle - from design and development, thru testing and deployment, to on-going
+ management and monitoring of your enterprise application deployments. JBoss Subscriptions allow you to
+ reduce business, legal, and technical risks while enabling you to more effectively utilize your team's
+ resources. A JBoss Subscription will ensure that you achieve a much greater success rate for all of
+ your JEMS-based projects.
+ </font></td>
+ </tr>
+ <tr>
+ <td class="portlet-section-alternate" width="16" valign="top" align="left"><img
+ src="default/images/check.gif"></td>
+ <td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
+ <a href="http://www.jboss.com/services/consulting" target="_blank">Consulting Services</a>
+ <br/>
+ JBoss offers short-term on-site JEMS consulting engagements that provide you expert assistance at
+ various stages of the application lifecycle. All engagements are delivered by certified JEMS
+ consultants.
+ </font></td>
+ </tr>
+ <tr>
+ <td class="portlet-section-alternate" width="16" valign="top" align="left"><img
+ src="default/images/check.gif"></td>
+ <td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
+ <a href="http://www.jboss.com/services/training" target="_blank">Training and Certification</a>
+ <br/>
+ A Certified JBoss Web Developer is capable of implementing presentation tier components for J2EE
+ applications. They have the base knowledge on Servlet and JSP technology, Portlet specification,
+ Tomcat Servlet container and JBoss Portal. A Certified JBoss Developer for web tier is able to
+ implement and deploy presentation components (Web Archives) on Tomcat server and Portlet components on
+ JBoss Portal implementation.
+ </font></td>
+ </tr>
+ </table>
</table>
-</table>
<br/>
<a href="default/index.html"><img src="default/images/back.gif" border="0" alt="back"></a>
<!-- end: portlet content -->
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-sar/default-content/default/private/license.html
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-sar/default-content/default/project.html
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-sar/default-content/default/project.html 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-sar/default-content/default/project.html 2007-10-28 01:09:21 UTC (rev 8785)
@@ -8,61 +8,65 @@
</tr>
<tr>
<td colspan="2">
- <table width="100%" border="0" cellpadding="2">
- <tr>
- <td class="portlet-section-alternate" width="16" valign="top" align="left"><img
+ <table width="100%" border="0" cellpadding="2">
+ <tr>
+ <td class="portlet-section-alternate" width="16" valign="top" align="left"><img
src="default/images/check.gif"></td>
- <td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
- <a href="http://labs.jboss.com/portal/jbossportal/index.html" target="_blank">JBoss Portal Home</a>
- <br/>
- The Epicenter of everything JBoss Portal.</font></td>
- </tr>
- <tr>
- <td class="portlet-section-alternate" width="16" valign="top" align="left"><img
+ <td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
+ <a href="http://labs.jboss.com/portal/jbossportal/index.html" target="_blank">JBoss Portal Home</a>
+ <br/>
+ The Epicenter of everything JBoss Portal.</font></td>
+ </tr>
+ <tr>
+ <td class="portlet-section-alternate" width="16" valign="top" align="left"><img
src="default/images/check.gif"></td>
- <td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
- <a href="http://labs.jboss.com/portal/jbossportal/docs/index.html" target="_blank">Documentation</a>
- <br/>
- Here you will find user documentation, reference documentation, tutorials, and javadoc.</font></td>
- </tr>
- <tr>
- <td class="portlet-section-alternate" width="16" valign="top" align="left"><img
+ <td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
+ <a href="http://labs.jboss.com/portal/jbossportal/docs/index.html" target="_blank">Documentation</a>
+ <br/>
+ Here you will find user documentation, reference documentation, tutorials, and javadoc.</font></td>
+ </tr>
+ <tr>
+ <td class="portlet-section-alternate" width="16" valign="top" align="left"><img
src="default/images/check.gif"></td>
- <td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
- <a href="http://www.jboss.com/index.html?module=bb&op=viewforum&f=215" target="_blank">Forums</a>
- <br/>
- Our forums are the main channel of communication between all community
- members. If you have any questions or concerns, please use
- our <a href="http://www.jboss.org/index.html?module=bb&op=viewforum&f=215" target="_blank">User
- Forums</a>, <a href="/index.html?module=bb&op=viewforum&f=205" target="_blank">Developer
- Forums</a>, or <a href="http://jboss.org/index.html?module=bb&op=viewforum&f=232" target="_blank">WSRP Forums</a> to voice them. Project developers and community members are always there to help.
- </font></td>
- </tr>
- <tr>
- <td class="portlet-section-alternate" width="16" valign="top" align="left"><img
+ <td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
+ <a href="http://www.jboss.com/index.html?module=bb&op=viewforum&f=215" target="_blank">Forums</a>
+ <br/>
+ Our forums are the main channel of communication between all community
+ members. If you have any questions or concerns, please use
+ our <a href="http://www.jboss.org/index.html?module=bb&op=viewforum&f=215" target="_blank">User
+ Forums</a>, <a href="/index.html?module=bb&op=viewforum&f=205" target="_blank">Developer
+ Forums</a>, or <a href="http://jboss.org/index.html?module=bb&op=viewforum&f=232" target="_blank">WSRP
+ Forums</a> to voice them. Project developers and community members are always there to help.
+ </font></td>
+ </tr>
+ <tr>
+ <td class="portlet-section-alternate" width="16" valign="top" align="left"><img
src="default/images/check.gif"></td>
- <td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
- <a href="http://www.jboss.com/wiki/Wiki.jsp?page=JBossPortal" target="_blank">Wiki</a>
- <br/>
- Our wiki knowledge base is a user and developer contributed collection of important resources regarding
- JBoss Portal.</font></td>
- </tr>
- <tr>
- <td class="portlet-section-alternate" width="16" valign="top" align="left"><img
+ <td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
+ <a href="http://www.jboss.com/wiki/Wiki.jsp?page=JBossPortal" target="_blank">Wiki</a>
+ <br/>
+ Our wiki knowledge base is a user and developer contributed collection of important resources
+ regarding
+ JBoss Portal.</font></td>
+ </tr>
+ <tr>
+ <td class="portlet-section-alternate" width="16" valign="top" align="left"><img
src="default/images/check.gif"></td>
- <td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
- <a href="http://jira.jboss.com/jira/secure/BrowseProject.jspa?id=10050" target="_blank">Jira</a>
- <br/>
- JBoss Portal uses the JIRA tracking and project management system to organize and prioritize tasks.<br>
- <a href="http://jira.jboss.com/jira/secure/BrowseProject.jspa?id=10050" target="_blank">JBoss Portal</a>
- | <a
+ <td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
+ <a href="http://jira.jboss.com/jira/secure/BrowseProject.jspa?id=10050" target="_blank">Jira</a>
+ <br/>
+ JBoss Portal uses the JIRA tracking and project management system to organize and prioritize
+ tasks.<br>
+ <a href="http://jira.jboss.com/jira/secure/BrowseProject.jspa?id=10050" target="_blank">JBoss
+ Portal</a>
+ | <a
href="http://jira.jboss.com/jira/browse/JBPORTAL?report=com.atlassian.jira.plug..."
target="_blank">Open Issues</a>
- | <a
+ | <a
href="http://jira.jboss.com/jira/browse/JBPORTAL?report=com.atlassian.jira.plug..."
target="_blank">Roadmap</a></font></td>
- </tr>
- </table>
+ </tr>
+ </table>
</table>
<br/>
<a href="default/index.html"><img src="default/images/back.gif" border="0" alt="back"></a>
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-sar/default-content/default/project.html
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-sar/default-content/default/support.html
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-sar/default-content/default/support.html 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-sar/default-content/default/support.html 2007-10-28 01:09:21 UTC (rev 8785)
@@ -1,38 +1,54 @@
<!-- begin: portlet content -->
<table width="100%" border="0" cellpadding="2">
-<tr>
-<td valign="top" align="left" class="portlet-section-body"><font class="portlet-font">JBoss Inc. delivers the Professional Support, Consulting, and Training that you need whether you are testing a proof of concept, deploying a mission-critical application, or rolling out JEMS across your enterprise. </font></td>
-<td valign="top" align="right"><img src="default/images/jboss_logo.gif"></td>
-</tr>
-<tr>
-<td colspan="2">
-<table width="100%" border="0" cellpadding="2">
-<tr>
-<td class="portlet-section-alternate" width="16" valign="top" align="left"><img src="default/images/check.gif"></td>
-<td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
-<a href="http://www.jboss.com/services/profsupport" target="_blank">Professional Support</a>
-<br/>
-The JBoss Subscription is a set of services and tools that assist you during every stage of the application lifecycle - from design and development, thru testing and deployment, to on-going management and monitoring of your enterprise application deployments. JBoss Subscriptions allow you to reduce business, legal, and technical risks while enabling you to more effectively utilize your team's resources. A JBoss Subscription will ensure that you achieve a much greater success rate for all of your JEMS-based projects.
-</font></td>
-</tr>
-<tr>
-<td class="portlet-section-alternate" width="16" valign="top" align="left"><img src="default/images/check.gif"></td>
-<td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
-<a href="http://www.jboss.com/services/consulting" target="_blank">Consulting Services</a>
-<br/>
-JBoss offers short-term on-site JEMS consulting engagements that provide you expert assistance at various stages of the application lifecycle. All engagements are delivered by certified JEMS consultants.
-</font></td>
-</tr>
-<tr>
-<td class="portlet-section-alternate" width="16" valign="top" align="left"><img src="default/images/check.gif"></td>
-<td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
-<a href="http://www.jboss.com/services/training" target="_blank">Training and Certification</a>
-<br/>
-A Certified JBoss Web Developer is capable of implementing presentation tier components for J2EE applications. They have the base knowledge on Servlet and JSP technology, Portlet specification, Tomcat Servlet container and JBoss Portal. A Certified JBoss Developer for web tier is able to implement and deploy presentation components (Web Archives) on Tomcat server and Portlet components on JBoss Portal implementation.
-</font></td>
-</tr>
+ <tr>
+ <td valign="top" align="left" class="portlet-section-body"><font class="portlet-font">JBoss Inc. delivers the
+ Professional Support, Consulting, and Training that you need whether you are testing a proof of concept,
+ deploying a mission-critical application, or rolling out JEMS across your enterprise. </font></td>
+ <td valign="top" align="right"><img src="default/images/jboss_logo.gif"></td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <table width="100%" border="0" cellpadding="2">
+ <tr>
+ <td class="portlet-section-alternate" width="16" valign="top" align="left"><img
+ src="default/images/check.gif"></td>
+ <td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
+ <a href="http://www.jboss.com/services/profsupport" target="_blank">Professional Support</a>
+ <br/>
+ The JBoss Subscription is a set of services and tools that assist you during every stage of the
+ application lifecycle - from design and development, thru testing and deployment, to on-going
+ management and monitoring of your enterprise application deployments. JBoss Subscriptions allow you to
+ reduce business, legal, and technical risks while enabling you to more effectively utilize your team's
+ resources. A JBoss Subscription will ensure that you achieve a much greater success rate for all of
+ your JEMS-based projects.
+ </font></td>
+ </tr>
+ <tr>
+ <td class="portlet-section-alternate" width="16" valign="top" align="left"><img
+ src="default/images/check.gif"></td>
+ <td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
+ <a href="http://www.jboss.com/services/consulting" target="_blank">Consulting Services</a>
+ <br/>
+ JBoss offers short-term on-site JEMS consulting engagements that provide you expert assistance at
+ various stages of the application lifecycle. All engagements are delivered by certified JEMS
+ consultants.
+ </font></td>
+ </tr>
+ <tr>
+ <td class="portlet-section-alternate" width="16" valign="top" align="left"><img
+ src="default/images/check.gif"></td>
+ <td align="left" valign="top" class="portlet-section-alternate"><font class="portlet-font">
+ <a href="http://www.jboss.com/services/training" target="_blank">Training and Certification</a>
+ <br/>
+ A Certified JBoss Web Developer is capable of implementing presentation tier components for J2EE
+ applications. They have the base knowledge on Servlet and JSP technology, Portlet specification,
+ Tomcat Servlet container and JBoss Portal. A Certified JBoss Developer for web tier is able to
+ implement and deploy presentation components (Web Archives) on Tomcat server and Portlet components on
+ JBoss Portal implementation.
+ </font></td>
+ </tr>
+ </table>
</table>
-</table>
<br/>
<a href="default/index.html"><img src="default/images/back.gif" border="0" alt="back"></a>
<!-- end: portlet content -->
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/portal-cms-sar/default-content/default/support.html
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/datasource/ports01-ds.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/datasource/ports02-ds.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/sar/META-INF/jboss-service.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/sar/META-INF/jboss-service.xml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/sar/META-INF/jboss-service.xml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -58,12 +58,12 @@
<depends>portal:service=JAASLoginModule</depends>
<depends>portal:service=Hibernate,type=CMS</depends>
<depends optional-attribute-name="IdentityServiceController" proxy-type="attribute">portal:service=Module,type=IdentityServiceController</depends>
-
+
<!-- Add this to activate publish/approval workflow integration -->
<!--
<depends optional-attribute-name="ApprovePublishWorkflow" proxy-type="attribute">portal:service=ApprovePublish,type=Workflow</depends>
-->
-
+
<depends optional-attribute-name="StackFactory" proxy-type="attribute">portal:service=InterceptorStackFactory,type=Cms</depends>
<attribute name="DoChecking">true</attribute>
<attribute name="DefaultContentLocation">portal/cms/conf/default-content/default/</attribute>
@@ -127,7 +127,7 @@
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
<param name="path" value="${wsp.home}/index"/>
- <param name="textFilterClasses" value="org.apache.jackrabbit.core.query.HTMLTextFilter" />
+ <param name="textFilterClasses" value="org.apache.jackrabbit.core.query.HTMLTextFilter"/>
<param name="useCompoundFile" value="true"/>
<param name="minMergeDocs" value="100"/>
<param name="volatileIdleTime" value="3"/>
@@ -432,7 +432,7 @@
<attribute name="CacheLoaderFetchPersistentState">false</attribute>
<attribute name="CacheLoaderAsynchronous">false</attribute-->
</mbean>
-
+
<!-- interceptor factory where all cms interceptors are registered -->
<mbean
code="org.jboss.portal.server.impl.invocation.JBossInterceptorStackFactory"
@@ -444,8 +444,8 @@
<depends-list-element>portal:service=Interceptor,type=Cms,name=ACL</depends-list-element>
<depends-list-element>portal:service=Interceptor,type=Cms,name=ApprovalWorkflow</depends-list-element>
</depends-list>
- </mbean>
-
+ </mbean>
+
<!-- CMS Authorization Security Service -->
<mbean
code="org.jboss.portal.cms.security.AuthorizationManagerImpl"
@@ -466,7 +466,7 @@
<xmbean/>
<depends optional-attribute-name="IdentityServiceController" proxy-type="attribute">portal:service=Module,type=IdentityServiceController</depends>
</mbean>
-
+
<!-- ACL Security Interceptor -->
<mbean
code="org.jboss.portal.cms.impl.interceptors.ACLInterceptor"
@@ -519,7 +519,7 @@
<depends>portal:service=Hibernate,type=CMS</depends>
<depends>portal:service=Module,type=IdentityServiceController</depends>
</mbean>
-
+
<!-- Approval Workflow Interceptor -->
<mbean
code="org.jboss.portal.cms.impl.interceptors.ApprovalWorkflowInterceptor"
@@ -530,7 +530,7 @@
<attribute name="JNDIName">java:/portal/cms/ApprovalWorkflowInterceptor</attribute>
<depends>portal:service=Hibernate,type=CMS</depends>
</mbean>
-
+
<!-- logging interceptor -->
<!--mbean
code="org.jboss.portal.cms.impl.interceptors.LogInterceptor"
@@ -539,7 +539,7 @@
xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
<xmbean/>
</mbean-->
-
+
<!--
<mbean
code="org.jboss.portal.cms.impl.interceptors.CacheInterceptor"
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/sar/META-INF/jboss-service.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/sar/conf/hibernate/cms/domain.hbm.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/sar/conf/hibernate/cms/domain.hbm.xml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/sar/conf/hibernate/cms/domain.hbm.xml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -274,103 +274,103 @@
type="long"
not-null="true"/>
</class>
-
+
<!-- mapping to persist CMS Fine Grained Security related objects -->
<class name="org.jboss.portal.cms.security.PermRoleAssoc" table="jbp_cms_perm_role">
<cache usage="read-write"/>
<id
- name="id"
- column="ID"
- type="java.lang.Long">
+ name="id"
+ column="ID"
+ type="java.lang.Long">
<generator class="native"/>
</id>
<property
- name="roleId"
- column="ROLE_ID"
- type="string"
- not-null="true"
- />
+ name="roleId"
+ column="ROLE_ID"
+ type="string"
+ not-null="true"
+ />
</class>
<class name="org.jboss.portal.cms.security.PermUserAssoc" table="jbp_cms_perm_user">
<cache usage="read-write"/>
<id
- name="id"
- column="ID"
- type="java.lang.Long">
+ name="id"
+ column="ID"
+ type="java.lang.Long">
<generator class="native"/>
</id>
<property
- name="userId"
- column="USER_ID"
- type="string"
- not-null="true"
- />
+ name="userId"
+ column="USER_ID"
+ type="string"
+ not-null="true"
+ />
</class>
<class name="org.jboss.portal.cms.security.Criteria" table="jbp_cms_perm_criteria">
<cache usage="read-write"/>
<id
- name="id"
- column="ID"
- type="java.lang.Long">
+ name="id"
+ column="ID"
+ type="java.lang.Long">
<generator class="native"/>
</id>
<property
- name="name"
- column="NAME"
- type="string"
- not-null="true"
- />
+ name="name"
+ column="NAME"
+ type="string"
+ not-null="true"
+ />
<property
- name="value"
- column="VALUE"
- type="string"
- not-null="true"
- />
+ name="value"
+ column="VALUE"
+ type="string"
+ not-null="true"
+ />
</class>
<class name="org.jboss.portal.cms.security.Permission" table="jbp_cms_perm">
<cache usage="read-write"/>
<id
- name="id"
- column="ID"
- type="java.lang.Long">
+ name="id"
+ column="ID"
+ type="java.lang.Long">
<generator class="native"/>
</id>
- <!-- one-to-many association with the criteria object -->
- <set name="criteria" lazy="false" table="jbp_cms_perm_criteria" cascade="all-delete-orphan">
+ <!-- one-to-many association with the criteria object -->
+ <set name="criteria" lazy="false" table="jbp_cms_perm_criteria" cascade="all-delete-orphan">
<cache usage="read-write"/>
<key column="CMS_PERM_ID"/>
<one-to-many class="org.jboss.portal.cms.security.Criteria"/>
</set>
- <!-- many-to-many association with the role object -->
- <set name="roleAssoc" lazy="false" cascade="all-delete-orphan">
+ <!-- many-to-many association with the role object -->
+ <set name="roleAssoc" lazy="false" cascade="all-delete-orphan">
<cache usage="read-write"/>
<key column="CMS_PERM_ID"/>
<one-to-many class="org.jboss.portal.cms.security.PermRoleAssoc"/>
</set>
- <!-- many-to-many association with the user object -->
- <set name="userAssoc" lazy="false" cascade="all-delete-orphan">
+ <!-- many-to-many association with the user object -->
+ <set name="userAssoc" lazy="false" cascade="all-delete-orphan">
<cache usage="read-write"/>
<key column="CMS_PERM_ID"/>
<one-to-many class="org.jboss.portal.cms.security.PermUserAssoc"/>
</set>
<property
- name="service"
- column="NAME"
- type="string"
- not-null="true"
- />
+ name="service"
+ column="NAME"
+ type="string"
+ not-null="true"
+ />
<property
- name="action"
- column="ACTION"
- type="string"
- not-null="true"
- />
+ name="action"
+ column="ACTION"
+ type="string"
+ not-null="true"
+ />
<property
- name="negated"
- column="NEGATED"
- type="boolean"
- not-null="true"
- />
+ name="negated"
+ column="NEGATED"
+ type="boolean"
+ not-null="true"
+ />
</class>
</hibernate-mapping>
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/sar/conf/hibernate/cms/domain.hbm.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/sar/conf/hibernate/cms/hibernate.cfg.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/test-cms-clustering-war/WEB-INF/jboss-portlet.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/test-cms-clustering-war/WEB-INF/portlet.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/cms/clustering/test-cms-clustering-war/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/db-config.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/db-config.xml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/db-config.xml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,9 +22,9 @@
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org. ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
- <!--<!DOCTYPE identity-configuration PUBLIC
- "-//JBoss Portal//DTD JBoss Identity Configuration 1.0//EN"
- "http://www.jboss.org/portal/dtd/identity-config_1_0.dtd">-->
+<!--<!DOCTYPE identity-configuration PUBLIC
+"-//JBoss Portal//DTD JBoss Identity Configuration 1.0//EN"
+"http://www.jboss.org/portal/dtd/identity-config_1_0.dtd">-->
<identity-configuration>
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/db-config.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/domain-identity.hbm.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/domain-identity.hbm.xml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/domain-identity.hbm.xml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -30,10 +30,10 @@
name="org.jboss.portal.identity.db.HibernateUserImpl"
table="jbp_users">
<!--<cache usage="@portal.hibernate.cache.usage@"/>-->
- <id
- name="key"
- column="jbp_uid"
- type="java.lang.Long">
+ <id
+ name="key"
+ column="jbp_uid"
+ type="java.lang.Long">
<generator class="native">
<param name="sequence">user_seq</param>
</generator>
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/domain-identity.hbm.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/jbpm-ehcache.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/jbpm-hibernate.cfg.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/jbpm-hibernate.cfg.xml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/jbpm-hibernate.cfg.xml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -1,59 +1,60 @@
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
- "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
- "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+ "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- jdbc connection properties -->
- <property name="connection.datasource">java:/DefaultDS</property>
+ <property name="connection.datasource">java:/DefaultDS</property>
- <!-- other hibernate properties -->
- <property name="show_sql">false</property>
+ <!-- other hibernate properties -->
+ <property name="show_sql">false</property>
<property name="hibernate.format_sql">true</property>
<property name="hibernate.use_sql_comments">true</property>
- <!-- caching properties -->
- <property name="cache.use_second_level_cache">true</property>
+ <!-- caching properties -->
+ <property name="cache.use_second_level_cache">true</property>
<property name="cache.use_query_cache">true</property>
<property name="cache.provider_configuration_file_resource_path">jbpm-ehcache.xml</property>
<property name="cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
- <!-- managed environment transaction configuration -->
- <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+ <!-- managed environment transaction configuration -->
+ <property
+ name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
-
- <!-- ############################################ -->
- <!-- # mapping files with external dependencies # -->
- <!-- ############################################ -->
- <!-- following mapping file has a dependendy on -->
- <!-- 'bsh-{version}.jar'. -->
- <!-- uncomment this if you don't have bsh on your -->
- <!-- classpath. you won't be able to use the -->
- <!-- script element in process definition files -->
- <mapping resource="org/jbpm/graph/action/Script.hbm.xml"/>
+ <!-- ############################################ -->
+ <!-- # mapping files with external dependencies # -->
+ <!-- ############################################ -->
- <!-- following mapping files have a dependendy on -->
- <!-- 'jbpm-identity-{version}.jar', mapping files -->
- <!-- of the pluggable jbpm identity component. -->
- <!-- comment out the following 3 lines if you don't-->
- <!-- want to use the default jBPM identity mgmgt -->
- <!-- component -->
- <mapping resource="org/jbpm/identity/User.hbm.xml"/>
+ <!-- following mapping file has a dependendy on -->
+ <!-- 'bsh-{version}.jar'. -->
+ <!-- uncomment this if you don't have bsh on your -->
+ <!-- classpath. you won't be able to use the -->
+ <!-- script element in process definition files -->
+ <mapping resource="org/jbpm/graph/action/Script.hbm.xml"/>
+
+ <!-- following mapping files have a dependendy on -->
+ <!-- 'jbpm-identity-{version}.jar', mapping files -->
+ <!-- of the pluggable jbpm identity component. -->
+ <!-- comment out the following 3 lines if you don't-->
+ <!-- want to use the default jBPM identity mgmgt -->
+ <!-- component -->
+ <mapping resource="org/jbpm/identity/User.hbm.xml"/>
<mapping resource="org/jbpm/identity/Group.hbm.xml"/>
<mapping resource="org/jbpm/identity/Membership.hbm.xml"/>
- <!-- ###################### -->
- <!-- # jbpm mapping files # -->
- <!-- ###################### -->
+ <!-- ###################### -->
+ <!-- # jbpm mapping files # -->
+ <!-- ###################### -->
- <!-- hql queries and type defs -->
- <mapping resource="org/jbpm/db/hibernate.queries.hbm.xml"/>
+ <!-- hql queries and type defs -->
+ <mapping resource="org/jbpm/db/hibernate.queries.hbm.xml"/>
- <!-- graph.def mapping files -->
- <mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/>
+ <!-- graph.def mapping files -->
+ <mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/>
<mapping resource="org/jbpm/graph/def/Node.hbm.xml"/>
<mapping resource="org/jbpm/graph/def/Transition.hbm.xml"/>
<mapping resource="org/jbpm/graph/def/Event.hbm.xml"/>
@@ -62,8 +63,8 @@
<mapping resource="org/jbpm/graph/def/ExceptionHandler.hbm.xml"/>
<mapping resource="org/jbpm/instantiation/Delegation.hbm.xml"/>
- <!-- graph.node mapping files -->
- <mapping resource="org/jbpm/graph/node/StartState.hbm.xml"/>
+ <!-- graph.node mapping files -->
+ <mapping resource="org/jbpm/graph/node/StartState.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/EndState.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/ProcessState.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/Decision.hbm.xml"/>
@@ -72,40 +73,40 @@
<mapping resource="org/jbpm/graph/node/State.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/TaskNode.hbm.xml"/>
- <!-- context.def mapping files -->
- <mapping resource="org/jbpm/context/def/ContextDefinition.hbm.xml"/>
+ <!-- context.def mapping files -->
+ <mapping resource="org/jbpm/context/def/ContextDefinition.hbm.xml"/>
<mapping resource="org/jbpm/context/def/VariableAccess.hbm.xml"/>
- <!-- taskmgmt.def mapping files -->
- <mapping resource="org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml"/>
+ <!-- taskmgmt.def mapping files -->
+ <mapping resource="org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/def/Swimlane.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/def/Task.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/def/TaskController.hbm.xml"/>
- <!-- module.def mapping files -->
- <mapping resource="org/jbpm/module/def/ModuleDefinition.hbm.xml"/>
+ <!-- module.def mapping files -->
+ <mapping resource="org/jbpm/module/def/ModuleDefinition.hbm.xml"/>
- <!-- bytes mapping files -->
- <mapping resource="org/jbpm/bytes/ByteArray.hbm.xml"/>
+ <!-- bytes mapping files -->
+ <mapping resource="org/jbpm/bytes/ByteArray.hbm.xml"/>
- <!-- file.def mapping files -->
- <mapping resource="org/jbpm/file/def/FileDefinition.hbm.xml"/>
+ <!-- file.def mapping files -->
+ <mapping resource="org/jbpm/file/def/FileDefinition.hbm.xml"/>
- <!-- scheduler.def mapping files -->
- <mapping resource="org/jbpm/scheduler/def/CreateTimerAction.hbm.xml"/>
+ <!-- scheduler.def mapping files -->
+ <mapping resource="org/jbpm/scheduler/def/CreateTimerAction.hbm.xml"/>
<mapping resource="org/jbpm/scheduler/def/CancelTimerAction.hbm.xml"/>
- <!-- graph.exe mapping files -->
- <mapping resource="org/jbpm/graph/exe/Comment.hbm.xml"/>
+ <!-- graph.exe mapping files -->
+ <mapping resource="org/jbpm/graph/exe/Comment.hbm.xml"/>
<mapping resource="org/jbpm/graph/exe/ProcessInstance.hbm.xml"/>
<mapping resource="org/jbpm/graph/exe/Token.hbm.xml"/>
<mapping resource="org/jbpm/graph/exe/RuntimeAction.hbm.xml"/>
- <!-- module.exe mapping files -->
- <mapping resource="org/jbpm/module/exe/ModuleInstance.hbm.xml"/>
+ <!-- module.exe mapping files -->
+ <mapping resource="org/jbpm/module/exe/ModuleInstance.hbm.xml"/>
- <!-- context.exe mapping files -->
- <mapping resource="org/jbpm/context/exe/ContextInstance.hbm.xml"/>
+ <!-- context.exe mapping files -->
+ <mapping resource="org/jbpm/context/exe/ContextInstance.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/TokenVariableMap.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/VariableInstance.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/variableinstance/ByteArrayInstance.hbm.xml"/>
@@ -117,25 +118,25 @@
<mapping resource="org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml"/>
- <!-- msg.db mapping files -->
- <mapping resource="org/jbpm/msg/Message.hbm.xml"/>
+ <!-- msg.db mapping files -->
+ <mapping resource="org/jbpm/msg/Message.hbm.xml"/>
<mapping resource="org/jbpm/msg/db/TextMessage.hbm.xml"/>
<mapping resource="org/jbpm/command/ExecuteActionCommand.hbm.xml"/>
<mapping resource="org/jbpm/command/ExecuteNodeCommand.hbm.xml"/>
<mapping resource="org/jbpm/command/SignalCommand.hbm.xml"/>
<mapping resource="org/jbpm/command/TaskInstanceEndCommand.hbm.xml"/>
- <!-- taskmgmt.exe mapping files -->
- <mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/>
+ <!-- taskmgmt.exe mapping files -->
+ <mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/exe/PooledActor.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml"/>
- <!-- scheduler.exe mapping files -->
- <mapping resource="org/jbpm/scheduler/exe/Timer.hbm.xml"/>
+ <!-- scheduler.exe mapping files -->
+ <mapping resource="org/jbpm/scheduler/exe/Timer.hbm.xml"/>
- <!-- logging mapping files -->
- <mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/>
+ <!-- logging mapping files -->
+ <mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/>
<mapping resource="org/jbpm/logging/log/MessageLog.hbm.xml"/>
<mapping resource="org/jbpm/logging/log/CompositeLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/ActionLog.hbm.xml"/>
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/jbpm-hibernate.cfg.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/jcr/fs-repository.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/jcr/fs-repository.xml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/jcr/fs-repository.xml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -41,7 +41,7 @@
</FileSystem>
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
<param name="path" value="${wsp.home}/index"/>
- <param name="textFilterClasses" value="org.apache.jackrabbit.core.query.HTMLTextFilter" />
+ <param name="textFilterClasses" value="org.apache.jackrabbit.core.query.HTMLTextFilter"/>
<param name="useCompoundFile" value="true"/>
<param name="minMergeDocs" value="100"/>
<param name="volatileIdleTime" value="3"/>
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/jcr/fs-repository.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/jcr/repository.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/jcr/repository.xml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/jcr/repository.xml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -75,9 +75,9 @@
<!-- XMLPersistenceManager: uses FileSystem for storage -->
<!--<PersistenceManager class="org.apache.jackrabbit.core.state.xml.XMLPersistenceManager"/>-->
- <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
+ <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
<param name="path" value="${wsp.home}/index"/>
- <param name="textFilterClasses" value="org.apache.jackrabbit.core.query.HTMLTextFilter" />
+ <param name="textFilterClasses" value="org.apache.jackrabbit.core.query.HTMLTextFilter"/>
<param name="useCompoundFile" value="true"/>
<param name="minMergeDocs" value="100"/>
<param name="volatileIdleTime" value="3"/>
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/jcr/repository.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/log4j.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/log4j.xml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/log4j.xml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -30,7 +30,7 @@
<!-- -->
<!-- ===================================================================== -->
-<!-- $Id: log4j.xml,v 1.26.2.10 2006/04/21 17:29:20 csuconic Exp $ -->
+<!-- $Id$ -->
<!--
| For more configuration infromation and examples see the Jakarta Log4j
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/log4j.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/pm-cache.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/cms/src/resources/test/standardidentity-config.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/build.bat
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/build.bat 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/build.bat 2007-10-28 01:09:21 UTC (rev 8785)
@@ -8,7 +8,7 @@
rem @author Jason Dillon <jason(a)planet57.com>
rem
-rem $Id: build.bat 1015 2005-11-04 20:15:13Z mholzner $
+rem $Id$
setlocal
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/build.bat
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/build.sh
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/build.sh 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/build.sh 2007-10-28 01:09:21 UTC (rev 8785)
@@ -8,7 +8,7 @@
## @author Jason Dillon <jason(a)planet57.com>
##
-# $Id: build.sh 1015 2005-11-04 20:15:13Z mholzner $
+# $Id$
PROGNAME=`basename $0`
DIRNAME=`dirname $0`
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/build.sh
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/build.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/bin/portal-admin-war/style.css
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/bin/portal-admin-war/style.css 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/bin/portal-admin-war/style.css 2007-10-28 01:09:21 UTC (rev 8785)
@@ -10,10 +10,10 @@
text-decoration: underline;
}
-div.admin-ui div.tab-container{
- border-bottom:1px solid #B3C0C7;
- border-right:1px solid #B3C0C7;
- border-left:1px solid #B3C0C7;
+div.admin-ui div.tab-container {
+ border-bottom: 1px solid #B3C0C7;
+ border-right: 1px solid #B3C0C7;
+ border-left: 1px solid #B3C0C7;
padding: 15px 0 10px 0;
}
@@ -411,11 +411,10 @@
border-top-style: solid;
}
-
div.admin-ui div.wizard-tab-container {
- border-bottom:1px solid #B3C0C7;
- border-right:1px solid #B3C0C7;
- border-left:1px solid #B3C0C7;
+ border-bottom: 1px solid #B3C0C7;
+ border-right: 1px solid #B3C0C7;
+ border-left: 1px solid #B3C0C7;
padding: 0 0 10px 0;
margin: 10px 0 0 0;
}
@@ -503,6 +502,6 @@
vertical-align: middle;
}
-.admin-ui .objectList img.windowStateIcon{
+.admin-ui .objectList img.windowStateIcon {
margin: 0 5px 0 0;
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/bin/portal-admin-war/style.css
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/AdminPropertyResolver.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/AdminPropertyResolver.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/AdminPropertyResolver.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -70,7 +70,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class AdminPropertyResolver extends DelegatingPropertyResolver
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/AdminPropertyResolver.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/AuthorizationBean.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/AuthorizationBean.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/AuthorizationBean.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -23,17 +23,18 @@
package org.jboss.portal.core.admin.ui;
import org.jboss.portal.common.util.Tools;
+import org.jboss.portal.faces.el.PropertyValue;
import org.jboss.portal.faces.el.dynamic.AbstractDynamicBean;
-import org.jboss.portal.faces.el.PropertyValue;
+import org.jboss.portal.identity.IdentityException;
+import org.jboss.portal.identity.Role;
+import org.jboss.portal.identity.RoleModule;
import org.jboss.portal.security.RoleSecurityBinding;
import org.jboss.portal.security.SecurityConstants;
import org.jboss.portal.security.spi.provider.DomainConfigurator;
import org.jboss.portal.security.spi.provider.SecurityConfigurationException;
-import org.jboss.portal.identity.RoleModule;
-import org.jboss.portal.identity.Role;
-import org.jboss.portal.identity.IdentityException;
import javax.faces.model.SelectItem;
+import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
@@ -41,11 +42,10 @@
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
-import java.util.Collections;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 6252 $
+ * @version $Revision$
*/
public abstract class AuthorizationBean
{
@@ -178,7 +178,7 @@
try
{
Map map = new HashMap();
- for (Iterator i = getRoleModule().findRoles().iterator();i.hasNext();)
+ for (Iterator i = getRoleModule().findRoles().iterator(); i.hasNext();)
{
Role role = (Role)i.next();
String displayName = role.getDisplayName();
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/AuthorizationBean.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/ControlPropertiesBean.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/ControlPropertiesBean.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/ControlPropertiesBean.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -31,7 +31,7 @@
/**
* @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot com">Boleslaw Dawidowicz</a>
- * @version $Revision: 0.1 $
+ * @version $Revision$
*/
public class ControlPropertiesBean extends PropertyBeanContainer
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/ControlPropertiesBean.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/ControlPropertyBean.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/ControlPropertyBean.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/ControlPropertyBean.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -30,7 +30,7 @@
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
* @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot com">Boleslaw Dawidowicz</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ControlPropertyBean extends PropertyBean
{
@@ -56,7 +56,6 @@
//
-
//
if (event.getNewValue().toString().equalsIgnoreCase("true"))
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/ControlPropertyBean.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/InstanceManagerBean.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/InstanceManagerBean.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/InstanceManagerBean.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -57,7 +57,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @author <a href="mailto:boleslaw dot dawidowicz at jboss.org">Boleslaw Dawidowicz</a>
- * @version $Revision: 6252 $
+ * @version $Revision$
*/
public class InstanceManagerBean
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/InstanceManagerBean.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PortalObjectManagerBean.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PortalObjectManagerBean.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PortalObjectManagerBean.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -381,11 +381,13 @@
return theme;
}
- public Boolean getMaximizedStateExists() {
+ public Boolean getMaximizedStateExists()
+ {
return maximizedStateExists;
}
- public void setMaximizedStateExists(Boolean maximizedStateExists) {
+ public void setMaximizedStateExists(Boolean maximizedStateExists)
+ {
this.maximizedStateExists = maximizedStateExists;
}
@@ -527,7 +529,8 @@
selectedPlugin = (String)pmap.get("plugin");
}
- public Map getRequestParameterMap(){
+ public Map getRequestParameterMap()
+ {
return FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PortalObjectManagerBean.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PortletManagerBean.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PortletManagerBean.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PortletManagerBean.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -55,7 +55,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @author <a href="mailto:boleslaw dot dawidowicz at jboss.org">Boleslaw Dawidowicz</a>
- * @version $Revision: 6252 $
+ * @version $Revision$
*/
public class PortletManagerBean
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PortletManagerBean.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PreferenceBean.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PreferenceBean.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PreferenceBean.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,20 +22,20 @@
******************************************************************************/
package org.jboss.portal.core.admin.ui;
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.common.value.StringValue;
import org.jboss.portal.common.value.Value;
-import org.jboss.portal.common.value.StringValue;
-import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.faces.el.PropertyValue;
import org.jboss.portal.faces.el.dynamic.DynamicBean;
-import org.jboss.portal.faces.el.PropertyValue;
import org.jboss.portal.portlet.info.PreferenceInfo;
import javax.faces.event.ActionEvent;
+import java.util.ArrayList;
import java.util.List;
-import java.util.ArrayList;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PreferenceBean implements Comparable, DynamicBean
{
@@ -126,7 +126,7 @@
public List getIndices()
{
List list = new ArrayList(value.size());
- for (int i = 0;i < value.size();i++)
+ for (int i = 0; i < value.size(); i++)
{
list.add("index_" + i);
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PreferenceBean.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PreferencesBean.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PreferencesBean.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PreferencesBean.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,16 +22,16 @@
******************************************************************************/
package org.jboss.portal.core.admin.ui;
+import org.jboss.portal.common.value.Value;
import org.jboss.portal.portlet.info.PreferenceInfo;
-import org.jboss.portal.common.value.Value;
-import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
+import java.util.List;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PreferencesBean
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PreferencesBean.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertiesBean.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertiesBean.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertiesBean.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,17 +22,15 @@
******************************************************************************/
package org.jboss.portal.core.admin.ui;
-import org.jboss.portal.core.model.portal.PortalObject;
import org.jboss.portal.core.admin.ui.actions.PropertyAction;
+import org.jboss.portal.core.model.portal.PortalObject;
import javax.faces.model.DataModel;
import javax.faces.model.ListDataModel;
import javax.faces.model.SelectItem;
-import javax.faces.context.FacesContext;
-import javax.faces.el.VariableResolver;
import java.util.ArrayList;
-import java.util.List;
import java.util.Iterator;
+import java.util.List;
import java.util.SortedMap;
import java.util.TreeMap;
@@ -40,7 +38,7 @@
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
* @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot com">Boleslaw Dawidowicz</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PropertiesBean extends PropertyBeanContainer
{
@@ -78,7 +76,7 @@
boolean inheritable = selectedObject.getType() != PortalObject.TYPE_CONTEXT;
//
- for (Iterator i = selectedObject.getProperties().keySet().iterator();i.hasNext();)
+ for (Iterator i = selectedObject.getProperties().keySet().iterator(); i.hasNext();)
{
String propertyName = (String)i.next();
String propertyValue = selectedObject.getProperty(propertyName);
@@ -135,7 +133,7 @@
if (items == null)
{
items = new ArrayList();
- for (Iterator i = info.getNames().iterator();i.hasNext();)
+ for (Iterator i = info.getNames().iterator(); i.hasNext();)
{
String propertyName = (String)i.next();
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertiesBean.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertiesInfo.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertiesInfo.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertiesInfo.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -37,7 +37,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @author <a href="mailto:boleslaw dot dawidowicz at redhat dot com>Boleslaw Dawidowicz</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PropertiesInfo
{
@@ -105,9 +105,7 @@
/** . */
private static final PropertyInfoSet ALL_PROPERTIES = new PropertyInfoSet();
- /**
- * Just avoid to write put(propertyInfo.getName(), propertyInfo).
- */
+ /** Just avoid to write put(propertyInfo.getName(), propertyInfo). */
private static class PropertyInfoSet extends HashMap
{
public void add(PropertyInfo propertyInfo)
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertiesInfo.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertyBean.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertyBean.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertyBean.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -28,7 +28,7 @@
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
* @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot com">Boleslaw Dawidowicz</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PropertyBean implements Comparable
{
@@ -38,7 +38,7 @@
/** . */
private final PropertyBeanContainer container;
-
+
/** . */
protected final PropertyInfo info;
@@ -112,7 +112,7 @@
String parentValue = portalObject.getProperty(getName());
if (value.equals(parentValue))
{
- return;
+ return;
}
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertyBean.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertyBeanContainer.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertyBeanContainer.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertyBeanContainer.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -26,7 +26,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public abstract class PropertyBeanContainer
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertyBeanContainer.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertyInfo.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertyInfo.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertyInfo.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -26,7 +26,7 @@
/**
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PropertyInfo
{
@@ -51,7 +51,7 @@
/** . */
private final int accessMode;
-
+
/** . */
private final String type;
@@ -73,7 +73,7 @@
this.type = type;
this.scope = scope;
}
-
+
public LocalizedString getDisplayName()
{
return displayName;
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertyInfo.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/Refresher.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/Refresher.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/Refresher.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -33,7 +33,7 @@
* Refresh the beans before JSF performs the render.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 5448 $
+ * @version $Revision$
*/
public class Refresher implements PhaseListener
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/Refresher.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/ThemeBean.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/ThemeBean.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/ThemeBean.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,17 +22,17 @@
******************************************************************************/
package org.jboss.portal.core.admin.ui;
+import org.jboss.portal.core.model.portal.PortalObject;
+import org.jboss.portal.theme.ThemeConstants;
+
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
+import javax.faces.event.AbortProcessingException;
import javax.faces.event.ActionEvent;
-import javax.faces.event.AbortProcessingException;
-import org.jboss.portal.core.model.portal.PortalObject;
-import org.jboss.portal.theme.ThemeConstants;
-
/**
* @author <a href="mailto:mholzner@novell.com">Martin Holzner</a>
- * @version $Revision: 5448 $
+ * @version $Revision$
*/
public class ThemeBean
{
@@ -140,7 +140,7 @@
boolean successful = true;
//
- switch(portalObject.getType())
+ switch (portalObject.getType())
{
case PortalObject.TYPE_CONTEXT:
case PortalObject.TYPE_PORTAL:
@@ -162,7 +162,7 @@
if (successful)
{
String stringMessage = null;
- switch(this.portalObject.getType())
+ switch (this.portalObject.getType())
{
case PortalObject.TYPE_PORTAL:
stringMessage = "Theme has been correctly updated on the portal named: " + portalObject.getName();
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/ThemeBean.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/AddPageAction.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/AddPageAction.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/AddPageAction.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -31,7 +31,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 5763 $
+ * @version $Revision$
*/
public class AddPageAction
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/AddPageAction.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/AssignContentToWindowAction.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/AssignContentToWindowAction.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/AssignContentToWindowAction.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -27,7 +27,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class AssignContentToWindowAction
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/AssignContentToWindowAction.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/CreateInstanceAction.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/CreateInstanceAction.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/CreateInstanceAction.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -38,7 +38,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 5915 $
+ * @version $Revision$
*/
public class CreateInstanceAction
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/CreateInstanceAction.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/PortalAction.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/PortalAction.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/PortalAction.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -24,13 +24,13 @@
import org.jboss.portal.Mode;
import org.jboss.portal.WindowState;
-import org.jboss.portal.core.model.portal.PortalContainer;
+import org.jboss.portal.core.admin.ui.PortalObjectManagerBean;
import org.jboss.portal.core.model.portal.Page;
import org.jboss.portal.core.model.portal.Portal;
+import org.jboss.portal.core.model.portal.PortalContainer;
import org.jboss.portal.core.model.portal.PortalObject;
+import org.jboss.portal.core.model.portal.PortalObjectPath;
import org.jboss.portal.core.model.portal.PortalObjectPermission;
-import org.jboss.portal.core.model.portal.PortalObjectPath;
-import org.jboss.portal.core.admin.ui.PortalObjectManagerBean;
import org.jboss.portal.security.RoleSecurityBinding;
import org.jboss.portal.security.SecurityConstants;
import org.jboss.portal.security.spi.provider.DomainConfigurator;
@@ -47,7 +47,7 @@
/**
* @author <a href="mailto:boleslaw dot dawidowicz at jboss.org">Boleslaw Dawidowicz</a>
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 5763 $
+ * @version $Revision$
*/
public class PortalAction
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/PortalAction.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/PropertyAction.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/PropertyAction.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/PropertyAction.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,21 +22,18 @@
******************************************************************************/
package org.jboss.portal.core.admin.ui.actions;
-import java.util.Map;
-
import org.jboss.portal.core.admin.ui.PortalObjectManagerBean;
import org.jboss.portal.core.impl.model.portal.PortalObjectImpl;
-import org.jboss.portal.core.model.portal.PortalObject;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.validator.ValidatorException;
-import javax.faces.event.ValueChangeEvent;
+import java.util.Map;
/**
* @author <a href="mailto:boleslaw dot dawidowicz at jboss.org">Boleslaw Dawidowicz</a>
- * @version $Revision: 5448 $
+ * @version $Revision$
*/
public class PropertyAction
{
@@ -49,7 +46,7 @@
/** . */
private String propertyValue;
-
+
/** . */
private String otherPropertyName;
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/PropertyAction.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/RenameAction.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/RenameAction.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/RenameAction.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,35 +22,32 @@
******************************************************************************/
package org.jboss.portal.core.admin.ui.actions;
-import java.util.Set;
-
-import javax.faces.application.FacesMessage;
-import javax.faces.context.FacesContext;
-
import org.jboss.portal.core.admin.ui.PortalObjectManagerBean;
import org.jboss.portal.core.admin.ui.dashboard.DashboardBean;
import org.jboss.portal.core.model.portal.DuplicatePortalObjectException;
import org.jboss.portal.core.model.portal.NoSuchPortalObjectException;
-import org.jboss.portal.core.model.portal.Page;
import org.jboss.portal.core.model.portal.PageContainer;
import org.jboss.portal.core.model.portal.PortalObject;
-import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.PortalObjectPath;
import org.jboss.portal.security.spi.provider.DomainConfigurator;
+import javax.faces.application.FacesMessage;
+import javax.faces.context.FacesContext;
+import java.util.Set;
+
/**
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
- * @version $Revision: 5763 $
+ * @version $Revision$
*/
public class RenameAction
{
private String newName;
-
+
/** The page container that will create the child. */
public PageContainer pageContainer;
private DomainConfigurator domainConfigurator;
-
+
public Object bean;
public void setNewName(String newName)
@@ -95,20 +92,20 @@
try
{
// TODO: Should be in a tx
-
+
// Clone portal object
newObject = pageContainer.copy(parent, newName, true);
// Copy security settings
Set set = domainConfigurator.getSecurityBindings(pageContainer.getId().toString(PortalObjectPath.CANONICAL_FORMAT));
domainConfigurator.setSecurityBindings(newObject.getId().toString(PortalObjectPath.CANONICAL_FORMAT), set);
-
+
String defaultObject = (String)parent.getDeclaredProperties().get(PortalObject.PORTAL_PROP_DEFAULT_OBJECT_NAME);
if (pageContainer.getName().equals(defaultObject))
{
parent.setDeclaredProperty(PortalObject.PORTAL_PROP_DEFAULT_OBJECT_NAME, newName);
}
-
+
// Destroy previous object
parent.destroyChild(pageContainer.getName());
}
@@ -137,9 +134,9 @@
{
((DashboardBean)bean).selectedPageName = newObject.getName();
}
-
+
return null;
}
-
+
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/RenameAction.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/WindowComparator.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/WindowComparator.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/WindowComparator.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -29,7 +29,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class WindowComparator implements Comparator
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/WindowComparator.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/common/PageManagerBean.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/common/PageManagerBean.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/common/PageManagerBean.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,44 +22,44 @@
******************************************************************************/
package org.jboss.portal.core.admin.ui.common;
+import org.jboss.portal.core.admin.ui.actions.WindowComparator;
+import org.jboss.portal.core.impl.model.content.ContentProviderRegistryService;
+import org.jboss.portal.core.model.content.Content;
+import org.jboss.portal.core.model.content.ContentType;
+import org.jboss.portal.core.model.content.spi.portlet.ContentPortlet;
+import org.jboss.portal.core.model.portal.DuplicatePortalObjectException;
+import org.jboss.portal.core.model.portal.NoSuchPortalObjectException;
import org.jboss.portal.core.model.portal.Page;
import org.jboss.portal.core.model.portal.PortalObject;
import org.jboss.portal.core.model.portal.Window;
-import org.jboss.portal.core.model.portal.DuplicatePortalObjectException;
-import org.jboss.portal.core.model.portal.NoSuchPortalObjectException;
-import org.jboss.portal.core.model.content.ContentType;
-import org.jboss.portal.core.model.content.Content;
-import org.jboss.portal.core.model.content.spi.portlet.ContentPortlet;
-import org.jboss.portal.core.admin.ui.actions.WindowComparator;
-import org.jboss.portal.core.impl.model.content.ContentProviderRegistryService;
-import org.jboss.portal.theme.ThemeConstants;
-import org.jboss.portal.theme.PortalLayout;
-import org.jboss.portal.theme.LayoutService;
import org.jboss.portal.faces.component.portlet.PortletActionEvent;
import org.jboss.portal.faces.component.portlet.PortletRenderEvent;
-import org.jboss.portal.faces.el.dynamic.DynamicBean;
import org.jboss.portal.faces.el.PropertyValue;
+import org.jboss.portal.faces.el.dynamic.DynamicBean;
import org.jboss.portal.portlet.PortletInvoker;
+import org.jboss.portal.theme.LayoutService;
+import org.jboss.portal.theme.PortalLayout;
+import org.jboss.portal.theme.ThemeConstants;
-import javax.faces.model.SelectItem;
-import javax.faces.event.ActionEvent;
-import javax.faces.event.AbortProcessingException;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
-import java.util.Map;
-import java.util.LinkedHashMap;
-import java.util.Iterator;
-import java.util.TreeSet;
-import java.util.SortedSet;
-import java.util.List;
+import javax.faces.event.AbortProcessingException;
+import javax.faces.event.ActionEvent;
+import javax.faces.model.SelectItem;
import java.util.ArrayList;
import java.util.Collections;
-import java.util.LinkedList;
import java.util.HashMap;
+import java.util.Iterator;
+import java.util.LinkedHashMap;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+import java.util.SortedSet;
+import java.util.TreeSet;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PageManagerBean
{
@@ -123,7 +123,7 @@
public List getContentTypeItems()
{
LinkedList types = new LinkedList();
- for (Iterator i = ContentProviderRegistryService.getInstance().getContentTypes().iterator();i.hasNext();)
+ for (Iterator i = ContentProviderRegistryService.getInstance().getContentTypes().iterator(); i.hasNext();)
{
ContentType contentType = (ContentType)i.next();
SelectItem item = new SelectItem();
@@ -182,7 +182,7 @@
// Get the windows belonging to the selected region sorted by order
List windows = new ArrayList();
- for (Iterator i = page.getChildren(PortalObject.WINDOW_MASK).iterator();i.hasNext();)
+ for (Iterator i = page.getChildren(PortalObject.WINDOW_MASK).iterator(); i.hasNext();)
{
Window window = (Window)i.next();
if (regionName.equals(window.getProperty(ThemeConstants.PORTAL_PROP_REGION)))
@@ -249,7 +249,7 @@
{
Window window = page.createWindow(windowName, selectedContentType, selectedContentURI);
Content content = window.getContent();
- for (Iterator i = selectedContentParams.entrySet().iterator();i.hasNext();)
+ for (Iterator i = selectedContentParams.entrySet().iterator(); i.hasNext();)
{
Map.Entry entry = (Map.Entry)i.next();
String paramName = (String)entry.getKey();
@@ -268,12 +268,12 @@
windows.add(window);
// Update the order states
- for (int i = 0;i < windows.size();i++)
+ for (int i = 0; i < windows.size(); i++)
{
Window tmp = (Window)windows.get(i);
tmp.setDeclaredProperty(ThemeConstants.PORTAL_PROP_ORDER, "" + i);
}
-
+
this.windowName = "";
}
catch (DuplicatePortalObjectException unexpected)
@@ -291,7 +291,7 @@
}
else if (direction == MOVE_LEFT)
{
- for (Iterator i = windows.iterator();i.hasNext();)
+ for (Iterator i = windows.iterator(); i.hasNext();)
{
Window window = (Window)i.next();
if (selectedWindows.contains(window.getName()))
@@ -310,7 +310,7 @@
}
// Update the order states
- for (int i = 0;i < windows.size();i++)
+ for (int i = 0; i < windows.size(); i++)
{
Window window = (Window)windows.get(i);
window.setDeclaredProperty(ThemeConstants.PORTAL_PROP_ORDER, "" + i);
@@ -332,16 +332,14 @@
this.windowName = windowName;
}
- /**
- * Portlet event
- */
+ /** Portlet event */
public void assignWindow(ActionEvent event)
{
if (event instanceof PortletRenderEvent)
{
PortletRenderEvent renderEvent = (PortletRenderEvent)event;
Map renderParams = renderEvent.getParameterMap();
-
+
// Keep window name and region defined
setWindowName(((String[])renderParams.get("windowName"))[0]);
}
@@ -366,8 +364,8 @@
String uri = uris[0];
//
- Map parameters = new HashMap();
- for (Iterator i = actionParams.entrySet().iterator();i.hasNext();)
+ Map parameters = new HashMap();
+ for (Iterator i = actionParams.entrySet().iterator(); i.hasNext();)
{
Map.Entry entry = (Map.Entry)i.next();
String name = (String)entry.getKey();
@@ -423,7 +421,7 @@
//
ArrayList regions = new ArrayList(windows.keySet());
Collections.sort(regions);
- for (int i = 0; i < regions.size();i++)
+ for (int i = 0; i < regions.size(); i++)
{
String regionName = (String)regions.get(i);
SelectItem regionItem = new SelectItem(regionName, regionName);
@@ -445,12 +443,12 @@
public Map getWindowItemsMap() throws Exception
{
Map windowMap = getWindows(page);
- for (Iterator i = windowMap.entrySet().iterator();i.hasNext();)
+ for (Iterator i = windowMap.entrySet().iterator(); i.hasNext();)
{
Map.Entry entry = (Map.Entry)i.next();
SortedSet windows = (SortedSet)entry.getValue();
ArrayList windowItems = new ArrayList(windows.size());
- for (Iterator j = windows.iterator();j.hasNext();)
+ for (Iterator j = windows.iterator(); j.hasNext();)
{
Window window = (Window)j.next();
SelectItem windowItem = new SelectItem();
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/common/PageManagerBean.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/conversion/ContentTypeConverter.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/conversion/ContentTypeConverter.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/conversion/ContentTypeConverter.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -24,14 +24,14 @@
import org.jboss.portal.core.model.content.ContentType;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.ConverterException;
-import javax.faces.context.FacesContext;
-import javax.faces.component.UIComponent;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class ContentTypeConverter implements Converter
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/conversion/ContentTypeConverter.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/conversion/PortalObjectIdConverter.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/conversion/PortalObjectIdConverter.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/conversion/PortalObjectIdConverter.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -25,14 +25,14 @@
import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.PortalObjectPath;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.ConverterException;
-import javax.faces.component.UIComponent;
-import javax.faces.context.FacesContext;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortalObjectIdConverter implements Converter
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/conversion/PortalObjectIdConverter.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/dashboard/DashboardBean.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/dashboard/DashboardBean.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/dashboard/DashboardBean.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -44,7 +44,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class DashboardBean implements AddPageAction.Listener
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/dashboard/DashboardBean.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/portlet/PortletDefinitionInvoker.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/portlet/PortletDefinitionInvoker.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/portlet/PortletDefinitionInvoker.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,33 +22,32 @@
******************************************************************************/
package org.jboss.portal.core.admin.ui.portlet;
-import org.jboss.portal.portlet.PortletInvoker;
-import org.jboss.portal.portlet.PortletInvokerException;
+import org.jboss.portal.common.invocation.InvocationException;
+import org.jboss.portal.core.model.instance.Instance;
+import org.jboss.portal.core.model.instance.InstanceContainer;
+import org.jboss.portal.portlet.NoSuchPortletException;
import org.jboss.portal.portlet.Portlet;
import org.jboss.portal.portlet.PortletContext;
-import org.jboss.portal.portlet.NoSuchPortletException;
+import org.jboss.portal.portlet.PortletInvoker;
+import org.jboss.portal.portlet.PortletInvokerException;
import org.jboss.portal.portlet.info.PortletInfo;
-import org.jboss.portal.portlet.state.PropertyMap;
-import org.jboss.portal.portlet.state.PropertyChange;
-import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
import org.jboss.portal.portlet.invocation.PortletInvocation;
-import org.jboss.portal.core.model.instance.InstanceContainer;
-import org.jboss.portal.core.model.instance.Instance;
-import org.jboss.portal.common.invocation.InvocationException;
+import org.jboss.portal.portlet.invocation.response.PortletInvocationResponse;
+import org.jboss.portal.portlet.state.PropertyChange;
+import org.jboss.portal.portlet.state.PropertyMap;
-import java.util.Set;
-import java.util.List;
-import java.util.Iterator;
import java.util.Collection;
import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
/**
- * Adapt the instance container as a portlet invoker. Will be removed later when
- * migrating the instance container to the portlet package will be done in a
- * suitable form.
+ * Adapt the instance container as a portlet invoker. Will be removed later when migrating the instance container to the
+ * portlet package will be done in a suitable form.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class PortletDefinitionInvoker implements PortletInvoker
{
@@ -69,7 +68,7 @@
{
Collection defs = instanceContainer.getDefinitions();
Set portlets = new HashSet(defs.size());
- for (Iterator i = defs.iterator();i.hasNext();)
+ for (Iterator i = defs.iterator(); i.hasNext();)
{
Instance instance = (Instance)i.next();
portlets.add(new PortletDefinition(instance));
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/portlet/PortletDefinitionInvoker.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/wizard/NewWindowWizard.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/wizard/NewWindowWizard.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/wizard/NewWindowWizard.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,14 +22,6 @@
******************************************************************************/
package org.jboss.portal.core.admin.ui.wizard;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.List;
-import java.util.Set;
-
-import javax.faces.context.FacesContext;
-
import org.jboss.portal.core.model.content.ContentType;
import org.jboss.portal.core.model.instance.Instance;
import org.jboss.portal.core.model.instance.InstanceContainer;
@@ -38,8 +30,8 @@
import org.jboss.portal.core.model.portal.PortalObject;
import org.jboss.portal.core.model.portal.PortalObjectContainer;
import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.core.model.portal.Window;
import org.jboss.portal.core.model.portal.PortalObjectPath;
+import org.jboss.portal.core.model.portal.Window;
import org.jboss.portal.portlet.Portlet;
import org.jboss.portal.portlet.PortletContext;
import org.jboss.portal.portlet.PortletInvoker;
@@ -53,6 +45,13 @@
import org.jboss.portal.theme.PortalLayout;
import org.jboss.portal.theme.ThemeConstants;
+import javax.faces.context.FacesContext;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Set;
+
/**
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
* @version $Revision$
@@ -73,7 +72,7 @@
private InstanceContainer instanceContainer;
private LayoutService layoutService;
private AuthorizationDomainRegistry authorizationDomainRegistry;
-
+
public NewWindowWizard()
{
steps = new ArrayList();
@@ -84,7 +83,7 @@
steps.add("newWindowWizardConfirm");
currentStep = 0;
}
-
+
public String next()
{
currentStep++;
@@ -103,7 +102,7 @@
currentStep--;
return (String)steps.get(currentStep);
}
-
+
public String selectPortlet()
{
FacesContext ctx = FacesContext.getCurrentInstance();
@@ -112,7 +111,7 @@
currentStep = 1;
return (String)steps.get(currentStep);
}
-
+
public String selectPortal()
{
FacesContext ctx = FacesContext.getCurrentInstance();
@@ -179,7 +178,7 @@
}
return null;
}
-
+
public Page getSelectedPage()
{
return (Page)getObjectFromId(selectedPageId);
@@ -200,7 +199,7 @@
PortalObjectId objectId = PortalObjectId.parse(id, PortalObjectPath.LEGACY_BASE64_FORMAT);
return getObjectFromId(objectId);
}
-
+
public PortalObject getObjectFromId(PortalObjectId id)
{
return portalObjectContainer.getObject(id);
@@ -211,8 +210,8 @@
PortalObject root = portalObjectContainer.getContext();
return new ArrayList(root.getChildren(PortalObject.PORTAL_MASK));
}
-
-
+
+
public List getPages()
{
if (selectedParentPageId != null)
@@ -232,20 +231,20 @@
return new ArrayList(getSelectedPortal().getChildren(PortalObject.PAGE_MASK));
}
}
-
+
public String createWindow()
{
Portlet portlet = getSelectedPortlet();
InstanceContainer container = instanceContainer;
int id = container.getDefinitions().size();
String instanceId = "wizardInstance_" + id;
- String windowId = "wizardWindow_" + id;
+ String windowId = "wizardWindow_" + id;
try
{
if ((container.getDefinition(instanceId) == null) && (getSelectedPage().getWindow(windowId) == null))
{
Instance instance = container.createDefinition(instanceId, portlet.getContext().getId());
-
+
//
DomainConfigurator configurator = authorizationDomainRegistry.getDomain("instance").getConfigurator();
Set constraints = Collections.singleton(new RoleSecurityBinding("view", SecurityConstants.UNCHECKED_ROLE_NAME));
@@ -254,7 +253,7 @@
Window window = getSelectedPage().createWindow(windowId, ContentType.PORTLET, instanceId);
window.setDeclaredProperty(ThemeConstants.PORTAL_PROP_REGION, getSelectedRegionId());
window.setDeclaredProperty(ThemeConstants.PORTAL_PROP_ORDER, "" + Integer.MAX_VALUE);
-
+
return reset();
}
}
@@ -269,7 +268,7 @@
{
return reset();
}
-
+
public String reset()
{
selectedPortletId = null;
@@ -289,17 +288,17 @@
PortalLayout layout = layoutService.getLayout(layoutId, false);
return layout.getLayoutInfo().getRegionNames();
}
-
+
public String getSelectedPortletId()
{
return selectedPortletId;
}
-
+
public int getCurrentStep()
{
return currentStep;
}
-
+
public String getSelectedPortalId()
{
return selectedPortalId;
@@ -369,7 +368,7 @@
{
this.authorizationDomainRegistry = authorizationDomainRegistry;
}
-
+
public boolean[] getEnabled()
{
boolean[] result = new boolean[steps.size()];
@@ -392,5 +391,5 @@
}
return result;
}
-
+
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/wizard/NewWindowWizard.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-sar/META-INF/jboss-service.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/faces-config.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jboss-portlet.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jboss_portal.tld
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jboss_portal.tld 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jboss_portal.tld 2007-10-28 01:09:21 UTC (rev 8785)
@@ -1,6 +1,6 @@
<!DOCTYPE taglib
- PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
- "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
+ PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
+ "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>0.01</tlib-version>
<jsp-version>1.2</jsp-version>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jboss_portal.tld
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/confirm.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editPageErrorHandling.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editPageLayout.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editPageLayout.xhtml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editPageLayout.xhtml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -5,7 +5,7 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:jbp="http://www.jboss.org/portal"
xmlns:c="http://java.sun.com/jstl/core">
-<br />
+<br/>
<table width="100%">
<tr>
<td valign="top" width="50%">
@@ -21,11 +21,12 @@
<tr>
<td colspan="2">
<h:form id="windowForm">
- <label for="windowName">
- <span class="portlet-form-field-label admin-label">Window Name:</span>
- <h:inputText id="windowName" value="#{pageManager.windowName}" styleClass="portlet-form-input-field"/>
- </label>
- <h:message for="windowName" errorClass="portlet-msg-error"/>
+ <label for="windowName">
+ <span class="portlet-form-field-label admin-label">Window Name:</span>
+ <h:inputText id="windowName" value="#{pageManager.windowName}"
+ styleClass="portlet-form-input-field"/>
+ </label>
+ <h:message for="windowName" errorClass="portlet-msg-error"/>
</h:form>
</td>
</tr>
@@ -49,8 +50,8 @@
document.getElementById('abc').submit(); ">
<f:selectItems value="#{pageManager.contentTypeItems}"/>
</h:selectOneMenu>
- </label>
- <h:message for="instanceId" errorClass="portlet-msg-error"/>
+ </label>
+ <h:message for="instanceId" errorClass="portlet-msg-error"/>
</h:form>
</td>
</tr>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editPageLayout.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editPortalErrorHandling.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editPreferences.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editProperties.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editProperties.xhtml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editProperties.xhtml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -14,7 +14,7 @@
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
-
+
<!-- defines property creation section -->
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
@@ -22,7 +22,7 @@
</tr>
<tr>
<td valign="top" class="portlet-section-body">
-
+
<h:form>
<!-- defines layout of property form -->
<table>
@@ -106,18 +106,18 @@
rendered="#{prop.type eq 'java.lang.String' and prop.name ne 'portal.windowInitialState'}"/>
<h:selectOneMenu styleClass="portlet-form-input-field"
- value="#{prop.value}"
+ value="#{prop.value}"
rendered="#{prop.type eq 'java.lang.String' and prop.name eq 'portal.windowInitialState' and (!portalobjectmgr.maximizedStateExists or prop.value eq 'MAXIMIZED')}">
- <f:selectItem itemLabel="Choose One..." itemValue=""/>
- <f:selectItem itemLabel="Maximized" itemValue="MAXIMIZED"/>
- <f:selectItem itemLabel="Minimized" itemValue="MINIMIZED"/>
- <f:selectItem itemLabel="Normal" itemValue="NORMAL"/>
+ <f:selectItem itemLabel="Choose One..." itemValue=""/>
+ <f:selectItem itemLabel="Maximized" itemValue="MAXIMIZED"/>
+ <f:selectItem itemLabel="Minimized" itemValue="MINIMIZED"/>
+ <f:selectItem itemLabel="Normal" itemValue="NORMAL"/>
</h:selectOneMenu>
<h:selectOneMenu styleClass="portlet-form-input-field"
value="#{prop.value}" disabled="true"
rendered="#{prop.type eq 'java.lang.String' and prop.name eq 'portal.windowInitialState' and (portalobjectmgr.maximizedStateExists and prop.value ne 'MAXIMIZED')}">
- <f:selectItem itemLabel="Minimized" itemValue="MINIMIZED"/>
+ <f:selectItem itemLabel="Minimized" itemValue="MINIMIZED"/>
</h:selectOneMenu>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editProperties.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editSecurity.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editSecurity.xhtml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editSecurity.xhtml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -18,7 +18,8 @@
<tr class="#{status.index % 2 == 0 ? 'portlet-section-body' : 'portlet-section-alternate'}">
<td>
<h:outputLabel for="cars_#{status.index}">
- Role #{role == '__unchecked__' ? 'Unchecked' : (auth.roleDisplayNameMap[role] != null ? auth.roleDisplayNameMap[role] : role)}:
+ Role
+ #{role == '__unchecked__' ? 'Unchecked' : (auth.roleDisplayNameMap[role] != null ? auth.roleDisplayNameMap[role] : role)}:
</h:outputLabel>
</td>
<td>
@@ -34,8 +35,8 @@
</tbody>
</table>
<div>
- <h:commandButton value="Update" action="#{auth.submit}" styleClass="portlet-form-button"/>
- <h:commandButton value="Cancel" action="#{auth.cancel}" styleClass="portlet-form-button" immediate="true"/>
+ <h:commandButton value="Update" action="#{auth.submit}" styleClass="portlet-form-button"/>
+ <h:commandButton value="Cancel" action="#{auth.cancel}" styleClass="portlet-form-button" immediate="true"/>
</div>
</h:form>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editSecurity.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editTheme.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editWindowTheme.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/showPortletDetails.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/showPortletDetails.xhtml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/showPortletDetails.xhtml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -1,19 +1,19 @@
<div
- xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:c="http://java.sun.com/jstl/core">
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:c="http://java.sun.com/jstl/core">
<table>
<tr>
<td class="portlet-form-field-label">Portlet name:</td>
<td><h:form><h:commandLink
- action="#{portletmgr.selectPortlet}">
- <f:param name="id" value="#{portlet.context.id}"/>
- <f:param name="plugin" value="manager"/>
- #{portlet.name.value}
- </h:commandLink></h:form></td>
+ action="#{portletmgr.selectPortlet}">
+ <f:param name="id" value="#{portlet.context.id}"/>
+ <f:param name="plugin" value="manager"/>
+ #{portlet.name.value}
+ </h:commandLink></h:form></td>
</tr>
<tr>
<td class="portlet-form-field-label">Portlet description:</td>
@@ -31,7 +31,7 @@
<tr>
<td class="portlet-form-field-label">Portlet locales:</td>
<td>
- <c:forEach items="#{portlet.locales}" var="locale"> #{locale} </c:forEach>
+ <c:forEach items="#{portlet.locales}" var="locale"> #{locale} </c:forEach>
</td>
</tr>
</c:if>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/showPortletDetails.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/tabContainer.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/confirmDeleteInstance.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/dashboard/dashboard.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/dashboard/dashboard.xhtml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/dashboard/dashboard.xhtml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -32,18 +32,18 @@
</td>
</tr>
<c:if test="#{dashboard.selectedPage.name != 'default'}">
- <tr>
- <td align="left" valign="top"><b>Rename this Page:</b><br/>New page name: 
- <h:form id="renameForm" style="padding:0;margin:0">
- <h:message for="newName"/>
- <h:inputText id="newName" value="#{renameDashboardPageAction.newName}"
- styleClass="portlet-form-input-field"/>
- <h:commandButton value="Rename"
- action="#{renameDashboardPageAction.execute}"
- styleClass="portlet-form-button"/>
- </h:form>
- </td>
- </tr>
+ <tr>
+ <td align="left" valign="top"><b>Rename this Page:</b><br/>New page name: 
+ <h:form id="renameForm" style="padding:0;margin:0">
+ <h:message for="newName"/>
+ <h:inputText id="newName" value="#{renameDashboardPageAction.newName}"
+ styleClass="portlet-form-input-field"/>
+ <h:commandButton value="Rename"
+ action="#{renameDashboardPageAction.execute}"
+ styleClass="portlet-form-button"/>
+ </h:form>
+ </td>
+ </tr>
</c:if>
</table>
</td>
@@ -52,7 +52,7 @@
You can control the page titles, column layouts, page themes,
and add,
order, or remove portlets.
- </td>
+ </td>
</tr>
</table>
</td>
@@ -69,77 +69,79 @@
styleClass="portlet-form-field"
onchange="document.getElementById('page_selector_form').submit()">
<f:selectItems value="#{dashboard.pageItems}"/>
- </h:selectOneMenu>
+ </h:selectOneMenu>
</h:form>
<br/>
</td>
</tr>
-
+
<tr>
<td>
- <table width="100%">
- <tr>
- <td valign="top" width="250">
- <table class="bottombuttonbar">
- <tr>
- <td valign="top">
- <b>Theme and Layout</b>
- <br/>
- Apply a theme to your dashboard, or select the number of columns for the layout.
- <hr/>
- </td>
- </tr>
- <tr>
- <td>
- <h:form>
- Choose a layout:<br/>
- <h:selectOneMenu
- id="layoutSelector"
- value="#{dashboard.selectedPageLayout}"
- styleClass="portlet-form-field">
- <f:selectItems value="#{applicationScope.LayoutService.layoutItems}"/>
- </h:selectOneMenu>
- <h:commandButton value="Select" styleClass="portlet-form-button" action="#{dashboard.updateLayout}"/>
- </h:form>
- </td>
- </tr>
- <tr>
- <td height="20"></td>
- </tr>
- <tr>
- <td>
- <h:form>
- Choose a theme:<br/>
- <h:selectOneMenu
- id="themeSelector"
- value="#{dashboard.selectedPageTheme}"
- styleClass="portlet-form-field">
- <f:selectItems value="#{applicationScope.ThemeService.themeItems}"/>
- </h:selectOneMenu>
- <h:commandButton value="Select" styleClass="portlet-form-button" action="#{dashboard.updateTheme}"/>
- </h:form>
- </td>
- </tr>
- <tr>
- <td height="20"></td>
- </tr>
- </table>
- </td>
- <td>
- <table>
- <tr>
- <td>
- <div class="admin-ui">
- <ui:include src="/WEB-INF/jsf/common/editPageLayout.xhtml">
- <ui:param name="pageManager" value="#{dashboard.pageManager}"/>
- </ui:include>
- </div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
+ <table width="100%">
+ <tr>
+ <td valign="top" width="250">
+ <table class="bottombuttonbar">
+ <tr>
+ <td valign="top">
+ <b>Theme and Layout</b>
+ <br/>
+ Apply a theme to your dashboard, or select the number of columns for the layout.
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <h:form>
+ Choose a layout:<br/>
+ <h:selectOneMenu
+ id="layoutSelector"
+ value="#{dashboard.selectedPageLayout}"
+ styleClass="portlet-form-field">
+ <f:selectItems value="#{applicationScope.LayoutService.layoutItems}"/>
+ </h:selectOneMenu>
+ <h:commandButton value="Select" styleClass="portlet-form-button"
+ action="#{dashboard.updateLayout}"/>
+ </h:form>
+ </td>
+ </tr>
+ <tr>
+ <td height="20"></td>
+ </tr>
+ <tr>
+ <td>
+ <h:form>
+ Choose a theme:<br/>
+ <h:selectOneMenu
+ id="themeSelector"
+ value="#{dashboard.selectedPageTheme}"
+ styleClass="portlet-form-field">
+ <f:selectItems value="#{applicationScope.ThemeService.themeItems}"/>
+ </h:selectOneMenu>
+ <h:commandButton value="Select" styleClass="portlet-form-button"
+ action="#{dashboard.updateTheme}"/>
+ </h:form>
+ </td>
+ </tr>
+ <tr>
+ <td height="20"></td>
+ </tr>
+ </table>
+ </td>
+ <td>
+ <table>
+ <tr>
+ <td>
+ <div class="admin-ui">
+ <ui:include src="/WEB-INF/jsf/common/editPageLayout.xhtml">
+ <ui:param name="pageManager" value="#{dashboard.pageManager}"/>
+ </ui:include>
+ </div>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
</td>
</tr>
</table>
@@ -149,7 +151,8 @@
<tr>
<td align="left">
<h:form style="padding:0;margin:0">
- <h:commandButton value="Delete this Page" styleClass="portlet-form-button" action="#{dashboard.destroyPage}"/>
+ <h:commandButton value="Delete this Page" styleClass="portlet-form-button"
+ action="#{dashboard.destroyPage}"/>
<br/>
<font color="red">You cannot undo this action!</font>
</h:form>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/dashboard/dashboard.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/dashboards.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/dashboardsTemplate.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/dashboardsTemplate.xhtml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/dashboardsTemplate.xhtml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -10,7 +10,8 @@
<h:form>
<ul class="topnav">
<li>
- <h:commandLink value="Portal Objects" action="objects" actionListener="#{portalobjectmgr.selectRootObject}"/>
+ <h:commandLink value="Portal Objects" action="objects"
+ actionListener="#{portalobjectmgr.selectRootObject}"/>
</li>
<li>
<h:commandLink value="Portlet Instances" action="instances"/>
@@ -22,12 +23,13 @@
</ul>
</h:form>
<ui:decorate template="common/tabContainer.xhtml">
- <ui:define name="tab-container-content">
- <!-- Status message -->
- <h:message id="status" for="status" infoClass="portlet-msg-success" errorClass="portlet-msg-error" fatalClass="portlet-msg-error" warnClass="portlet-msg-alert"/>
+ <ui:define name="tab-container-content">
+ <!-- Status message -->
+ <h:message id="status" for="status" infoClass="portlet-msg-success" errorClass="portlet-msg-error"
+ fatalClass="portlet-msg-error" warnClass="portlet-msg-alert"/>
- <!-- Content -->
- <ui:insert name="content">Content</ui:insert>
- </ui:define>
+ <!-- Content -->
+ <ui:insert name="content">Content</ui:insert>
+ </ui:define>
</ui:decorate>
</div>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/dashboardsTemplate.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editContext.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editPage.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editPageLayout.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editPageLayout.xhtml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editPageLayout.xhtml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -7,11 +7,11 @@
xmlns:jbp="http://www.jboss.org/portal"
xmlns:c="http://java.sun.com/jstl/core">
<ui:composition template="objectTemplate.xhtml">
- <ui:param name="portalObjectScreen" value="Layout"/>
- <ui:define name="content">
- <ui:include src="common/editPageLayout.xhtml">
- <ui:param name="pageManager" value="#{portalobjectmgr.pageManager}"/>
- </ui:include>
- </ui:define>
+ <ui:param name="portalObjectScreen" value="Layout"/>
+ <ui:define name="content">
+ <ui:include src="common/editPageLayout.xhtml">
+ <ui:param name="pageManager" value="#{portalobjectmgr.pageManager}"/>
+ </ui:include>
+ </ui:define>
</ui:composition>
</div>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editPageLayout.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editPageSecurity.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editPageTheme.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editPortalSecurity.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editPortalTheme.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editProperties.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editProperties.xhtml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editProperties.xhtml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -26,9 +26,9 @@
</div>
<div style="padding:5px">
- <ui:include src="common/editProperties.xhtml">
- <ui:param name="properties" value="#{portalobjectmgr.selectedProperties}"/>
- </ui:include>
+ <ui:include src="common/editProperties.xhtml">
+ <ui:param name="properties" value="#{portalobjectmgr.selectedProperties}"/>
+ </ui:include>
</div>
<br/>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editProperties.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editWindow.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editWindow.xhtml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editWindow.xhtml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -1,9 +1,9 @@
<div
- xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:ct="http://www.julien.com"
- xmlns:jbp="http://www.jboss.org/portal"
- xmlns:h="http://java.sun.com/jsf/html">
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:ct="http://www.julien.com"
+ xmlns:jbp="http://www.jboss.org/portal"
+ xmlns:h="http://java.sun.com/jsf/html">
<ui:composition template="objectTemplate.xhtml">
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editWindow.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editWindowSecurity.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editWindowTheme.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/instances.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/instancesTemplate.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/instancesTemplate.xhtml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/instancesTemplate.xhtml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -21,13 +21,13 @@
</ul>
</h:form>
<ui:decorate template="common/tabContainer.xhtml">
- <ui:define name="tab-container-content">
- <!-- Status message -->
- <h:message id="status" for="status" infoClass="portlet-msg-success" errorClass="portlet-msg-error"
- fatalClass="portlet-msg-error" warnClass="portlet-msg-alert"/>
+ <ui:define name="tab-container-content">
+ <!-- Status message -->
+ <h:message id="status" for="status" infoClass="portlet-msg-success" errorClass="portlet-msg-error"
+ fatalClass="portlet-msg-error" warnClass="portlet-msg-alert"/>
- <!-- Content -->
- <ui:insert name="content">Content</ui:insert>
- </ui:define>
+ <!-- Content -->
+ <ui:insert name="content">Content</ui:insert>
+ </ui:define>
</ui:decorate>
</div>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/instancesTemplate.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objectNavigation.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objectNavigation.xhtml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objectNavigation.xhtml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -130,24 +130,26 @@
<h:outputText value="Window"/>
</f:facet>
- <h:graphicImage title="#{object.declaredProperties['portal.windowInitialState'] eq 'MINIMIZED' ? 'This window is set to a minimized state.' : 'This window defaults to a normal state.'}"
- rendered="#{!maximizedStateExists}"
- value="#{object.declaredProperties['portal.windowInitialState'] eq 'MINIMIZED' ? '/img/min-icon.gif' : '/img/norm-icon.gif' }"
- styleClass="windowStateIcon"
- alt="" />
+ <h:graphicImage
+ title="#{object.declaredProperties['portal.windowInitialState'] eq 'MINIMIZED' ? 'This window is set to a minimized state.' : 'This window defaults to a normal state.'}"
+ rendered="#{!maximizedStateExists}"
+ value="#{object.declaredProperties['portal.windowInitialState'] eq 'MINIMIZED' ? '/img/min-icon.gif' : '/img/norm-icon.gif' }"
+ styleClass="windowStateIcon"
+ alt=""/>
- <h:graphicImage title="#{object.declaredProperties['portal.windowInitialState'] eq 'MAXIMIZED' ? 'This window is set to a maximized state.' : 'This window defaults to a minimized state because one window within this page is set to maximized.'}"
- rendered="#{maximizedStateExists}"
- value="#{object.declaredProperties['portal.windowInitialState'] eq 'MAXIMIZED' ? '/img/max-icon.gif' : '/img/min-icon.gif'}"
- styleClass="windowStateIcon"
- alt="" />
-
+ <h:graphicImage
+ title="#{object.declaredProperties['portal.windowInitialState'] eq 'MAXIMIZED' ? 'This window is set to a maximized state.' : 'This window defaults to a minimized state because one window within this page is set to maximized.'}"
+ rendered="#{maximizedStateExists}"
+ value="#{object.declaredProperties['portal.windowInitialState'] eq 'MAXIMIZED' ? '/img/max-icon.gif' : '/img/min-icon.gif'}"
+ styleClass="windowStateIcon"
+ alt=""/>
+
<h:commandLink action="#{portalobjectmgr.selectObject}">#{object.name}
- <f:param name="id" value="#{object.id}"/>
+ <f:param name="id" value="#{object.id}"/>
</h:commandLink>
- </h:column>
- <h:column>
+ </h:column>
+ <h:column>
<f:facet name="header">
<h:outputText value="Actions"/>
</f:facet>
@@ -160,11 +162,11 @@
<f:param name="id" value="#{object.id}"/>
<f:param name="maximizedStateExists" value="#{portalobjectmgr.selectedObject.maximizedStateExists}"/>
Properties
- </h:commandLink> | <h:commandLink action="renameObject" styleClass="actionRename"
+ </h:commandLink> | <h:commandLink action="renameObject" styleClass="actionRename"
actionListener="#{portalobjectmgr.selectObject}">
<f:param name="id" value="#{object.id}"/>
Rename
- </h:commandLink> | <h:commandLink action="confirm" actionListener="#{portalobjectmgr.selectObject}"
+ </h:commandLink> | <h:commandLink action="confirm" actionListener="#{portalobjectmgr.selectObject}"
styleClass="actionDelete">
<f:param name="id" value="#{object.id}"/>
Delete
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objectNavigation.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objectTemplate.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objectTemplate.xhtml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objectTemplate.xhtml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,35 +22,35 @@
</ul>
</h:form>
<ui:decorate template="common/tabContainer.xhtml">
- <ui:define name="tab-container-content">
- <!-- Path nav -->
- <h:form>
- <ul class="objectpath">
- <c:forEach items="#{portalobjectmgr.selectedObjectPath}" var="node">
- <c:if test="#{node.type != PortalObject.TYPE_CONTEXT}">
- <li class="pathSeparator"><h:graphicImage url="/img/pathSeparator.png" alt=">"/></li>
- </c:if>
- <li class="#{node.id == portalobjectmgr.selectedObject.id ? 'selected' : 'pathItem'}">
- <h:commandLink action="#{portalobjectmgr.selectObject}">
- <f:param name="id" value="#{node.id}"/>
- <c:choose>
- <c:when test="#{node.type == PortalObject.TYPE_CONTEXT}">Portals</c:when>
- <c:otherwise><span class="objectName">#{node.name}</span> #{node.typeName}</c:otherwise>
- </c:choose>
- </h:commandLink>
- <h:outputText value=" #{portalObjectScreen}"
- rendered="#{portalObjectScreen != null and node.id == portalobjectmgr.selectedObject.id}"/>
- </li>
- </c:forEach>
- </ul>
- </h:form>
+ <ui:define name="tab-container-content">
+ <!-- Path nav -->
+ <h:form>
+ <ul class="objectpath">
+ <c:forEach items="#{portalobjectmgr.selectedObjectPath}" var="node">
+ <c:if test="#{node.type != PortalObject.TYPE_CONTEXT}">
+ <li class="pathSeparator"><h:graphicImage url="/img/pathSeparator.png" alt=">"/></li>
+ </c:if>
+ <li class="#{node.id == portalobjectmgr.selectedObject.id ? 'selected' : 'pathItem'}">
+ <h:commandLink action="#{portalobjectmgr.selectObject}">
+ <f:param name="id" value="#{node.id}"/>
+ <c:choose>
+ <c:when test="#{node.type == PortalObject.TYPE_CONTEXT}">Portals</c:when>
+ <c:otherwise><span class="objectName">#{node.name}</span> #{node.typeName}</c:otherwise>
+ </c:choose>
+ </h:commandLink>
+ <h:outputText value=" #{portalObjectScreen}"
+ rendered="#{portalObjectScreen != null and node.id == portalobjectmgr.selectedObject.id}"/>
+ </li>
+ </c:forEach>
+ </ul>
+ </h:form>
- <!-- Status message -->
- <h:message id="status" for="status" infoClass="portlet-msg-success" errorClass="portlet-msg-error"
- fatalClass="portlet-msg-error" warnClass="portlet-msg-alert"/>
+ <!-- Status message -->
+ <h:message id="status" for="status" infoClass="portlet-msg-success" errorClass="portlet-msg-error"
+ fatalClass="portlet-msg-error" warnClass="portlet-msg-alert"/>
- <!-- Content -->
- <ui:insert name="content">Content</ui:insert>
- </ui:define>
+ <!-- Content -->
+ <ui:insert name="content">Content</ui:insert>
+ </ui:define>
</ui:decorate>
</div>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objectTemplate.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objects.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objects.xhtml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objects.xhtml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -21,7 +21,8 @@
</c:choose>
<h:form>
- <p style="text-align: right"><h:commandLink action="#{newWindowWizard.reset}">Switch to wizard mode</h:commandLink></p>
+ <p style="text-align: right"><h:commandLink action="#{newWindowWizard.reset}">Switch to wizard
+ mode</h:commandLink></p>
</h:form>
</div>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objects.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/portlets.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/portletsTemplate.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/portletsTemplate.xhtml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/portletsTemplate.xhtml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -21,13 +21,13 @@
</ul>
</h:form>
<ui:decorate template="common/tabContainer.xhtml">
- <ui:define name="tab-container-content">
- <!-- Status message -->
- <h:message id="status" for="status" infoClass="portlet-msg-success" errorClass="portlet-msg-error"
- fatalClass="portlet-msg-error" warnClass="portlet-msg-alert"/>
+ <ui:define name="tab-container-content">
+ <!-- Status message -->
+ <h:message id="status" for="status" infoClass="portlet-msg-success" errorClass="portlet-msg-error"
+ fatalClass="portlet-msg-error" warnClass="portlet-msg-alert"/>
- <!-- Content -->
- <ui:insert name="content">Content</ui:insert>
- </ui:define>
+ <!-- Content -->
+ <ui:insert name="content">Content</ui:insert>
+ </ui:define>
</ui:decorate>
</div>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/portletsTemplate.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/renameObject.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/newWindowTpl.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/newWindowTpl.xhtml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/newWindowTpl.xhtml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -10,169 +10,190 @@
<div class="wizard-tab-container">
<h3 class="sectionTitle">
-Adding a new Portlet
+ Adding a new Portlet
</h3>
- <c:choose>
- <c:when test="#{newWindowWizard.currentStep == 0}">
- <div class="wizardStepBox" id="selected">
- <p class="stepNumber">Step 1</p>
- <p class="stepText">Select Portlet</p>
- </div>
- </c:when>
- <c:otherwise>
- <c:choose>
- <c:when test="#{newWindowWizard.enabled[0]}">
- <h:form><h:commandLink action="#{newWindowWizard.goTo}">
- <f:param name="step" value="0"/>
- <div class="wizardStepBox">
- <p class="stepNumber">Step 1</p>
- <p class="stepText">Select Portlet</p>
- </div>
- </h:commandLink></h:form>
- </c:when>
- <c:otherwise>
- <div class="wizardStepBox">
- <p class="stepNumber">Step 1</p>
- <p class="stepText">Select Portlet</p>
- </div>
- </c:otherwise>
- </c:choose>
- </c:otherwise>
- </c:choose>
+<c:choose>
+ <c:when test="#{newWindowWizard.currentStep == 0}">
+ <div class="wizardStepBox" id="selected">
+ <p class="stepNumber">Step 1</p>
- <c:choose>
- <c:when test="#{newWindowWizard.currentStep == 1}">
- <div class="wizardStepBox" id="selected">
- <p class="stepNumber">Step 2</p>
- <p class="stepText">Select Portal</p>
- </div>
- </c:when>
- <c:otherwise>
- <c:choose>
- <c:when test="#{newWindowWizard.enabled[1]}">
- <h:form><h:commandLink action="#{newWindowWizard.goTo}">
- <f:param name="step" value="1"/>
- <div class="wizardStepBox">
- <p class="stepNumber">Step 2</p>
- <p class="stepText">Select Portal</p>
- </div>
- </h:commandLink></h:form>
- </c:when>
- <c:otherwise>
- <div class="wizardStepBox">
- <p class="stepNumber">Step 2</p>
- <p class="stepText">Select Portal</p>
- </div>
- </c:otherwise>
- </c:choose>
- </c:otherwise>
- </c:choose>
+ <p class="stepText">Select Portlet</p>
+ </div>
+ </c:when>
+ <c:otherwise>
+ <c:choose>
+ <c:when test="#{newWindowWizard.enabled[0]}">
+ <h:form><h:commandLink action="#{newWindowWizard.goTo}">
+ <f:param name="step" value="0"/>
- <c:choose>
- <c:when test="#{newWindowWizard.currentStep == 2}">
- <div class="wizardStepBox" id="selected">
- <p class="stepNumber">Step 3</p>
- <p class="stepText">Select Page</p>
- </div>
- </c:when>
- <c:otherwise>
- <c:choose>
- <c:when test="#{newWindowWizard.enabled[2]}">
- <h:form><h:commandLink action="#{newWindowWizard.goTo}">
- <f:param name="step" value="2"/>
- <div class="wizardStepBox">
- <p class="stepNumber">Step 3</p>
- <p class="stepText">Select Page</p>
- </div>
- </h:commandLink></h:form>
- </c:when>
- <c:otherwise>
- <div class="wizardStepBox">
- <p class="stepNumber">Step 3</p>
- <p class="stepText">Select Page</p>
- </div>
- </c:otherwise>
- </c:choose>
- </c:otherwise>
- </c:choose>
+ <div class="wizardStepBox">
+ <p class="stepNumber">Step 1</p>
- <c:choose>
- <c:when test="#{newWindowWizard.currentStep == 3}">
- <div class="wizardStepBox" id="selected">
- <p class="stepNumber">Step 4</p>
- <p class="stepText">Select Region</p>
- </div>
- </c:when>
- <c:otherwise>
- <c:choose>
- <c:when test="#{newWindowWizard.enabled[3]}">
- <h:form><h:commandLink action="#{newWindowWizard.goTo}">
- <f:param name="step" value="3"/>
- <div class="wizardStepBox">
- <p class="stepNumber">Step 4</p>
- <p class="stepText">Select Region</p>
- </div>
- </h:commandLink></h:form>
- </c:when>
- <c:otherwise>
- <div class="wizardStepBox">
- <p class="stepNumber">Step 4</p>
- <p class="stepText">Select Region</p>
- </div>
- </c:otherwise>
- </c:choose>
- </c:otherwise>
- </c:choose>
+ <p class="stepText">Select Portlet</p>
+ </div>
+ </h:commandLink></h:form>
+ </c:when>
+ <c:otherwise>
+ <div class="wizardStepBox">
+ <p class="stepNumber">Step 1</p>
- <c:choose>
- <c:when test="#{newWindowWizard.currentStep == 4}">
- <div class="wizardStepBox" id="selected">
- <p class="stepNumber">Step 5</p>
- <p class="stepText">Confirm</p>
- </div>
- </c:when>
- <c:otherwise>
- <c:choose>
- <c:when test="#{newWindowWizard.enabled[4]}">
- <h:form><h:commandLink action="#{newWindowWizard.goTo}">
- <f:param name="step" value="4"/>
- <div class="wizardStepBox">
- <p class="stepNumber">Step 5</p>
- <p class="stepText">Confirm</p>
- </div>
- </h:commandLink></h:form>
- </c:when>
- <c:otherwise>
- <div class="wizardStepBox">
- <p class="stepNumber">Step 5</p>
- <p class="stepText">Confirm</p>
- </div>
- </c:otherwise>
- </c:choose>
- </c:otherwise>
- </c:choose>
+ <p class="stepText">Select Portlet</p>
+ </div>
+ </c:otherwise>
+ </c:choose>
+ </c:otherwise>
+</c:choose>
- <!-- Status message -->
- <h:message id="status" for="status"/>
+<c:choose>
+ <c:when test="#{newWindowWizard.currentStep == 1}">
+ <div class="wizardStepBox" id="selected">
+ <p class="stepNumber">Step 2</p>
+ <p class="stepText">Select Portal</p>
+ </div>
+ </c:when>
+ <c:otherwise>
+ <c:choose>
+ <c:when test="#{newWindowWizard.enabled[1]}">
+ <h:form><h:commandLink action="#{newWindowWizard.goTo}">
+ <f:param name="step" value="1"/>
- <!-- Content -->
- <div class="wizardContent">
- <ui:insert name="content">Content</ui:insert>
- </div>
+ <div class="wizardStepBox">
+ <p class="stepNumber">Step 2</p>
- <div class="wizardButtonBox">
- <h:form>
- <h:commandButton rendered="#{newWindowWizard.currentStep gt 0}" value="Previous"
- action="#{newWindowWizard.previous}" styleClass="portlet-form-button"/>
- <h:commandButton rendered="#{newWindowWizard.currentStep lt 4 and newWindowWizard.enabled[newWindowWizard.currentStep + 1]}"
- value="Next" action="#{newWindowWizard.next}" styleClass="portlet-form-button"/>
- </h:form>
- </div>
+ <p class="stepText">Select Portal</p>
+ </div>
+ </h:commandLink></h:form>
+ </c:when>
+ <c:otherwise>
+ <div class="wizardStepBox">
+ <p class="stepNumber">Step 2</p>
+ <p class="stepText">Select Portal</p>
+ </div>
+ </c:otherwise>
+ </c:choose>
+ </c:otherwise>
+</c:choose>
+
+<c:choose>
+ <c:when test="#{newWindowWizard.currentStep == 2}">
+ <div class="wizardStepBox" id="selected">
+ <p class="stepNumber">Step 3</p>
+
+ <p class="stepText">Select Page</p>
+ </div>
+ </c:when>
+ <c:otherwise>
+ <c:choose>
+ <c:when test="#{newWindowWizard.enabled[2]}">
+ <h:form><h:commandLink action="#{newWindowWizard.goTo}">
+ <f:param name="step" value="2"/>
+
+ <div class="wizardStepBox">
+ <p class="stepNumber">Step 3</p>
+
+ <p class="stepText">Select Page</p>
+ </div>
+ </h:commandLink></h:form>
+ </c:when>
+ <c:otherwise>
+ <div class="wizardStepBox">
+ <p class="stepNumber">Step 3</p>
+
+ <p class="stepText">Select Page</p>
+ </div>
+ </c:otherwise>
+ </c:choose>
+ </c:otherwise>
+</c:choose>
+
+<c:choose>
+ <c:when test="#{newWindowWizard.currentStep == 3}">
+ <div class="wizardStepBox" id="selected">
+ <p class="stepNumber">Step 4</p>
+
+ <p class="stepText">Select Region</p>
+ </div>
+ </c:when>
+ <c:otherwise>
+ <c:choose>
+ <c:when test="#{newWindowWizard.enabled[3]}">
+ <h:form><h:commandLink action="#{newWindowWizard.goTo}">
+ <f:param name="step" value="3"/>
+
+ <div class="wizardStepBox">
+ <p class="stepNumber">Step 4</p>
+
+ <p class="stepText">Select Region</p>
+ </div>
+ </h:commandLink></h:form>
+ </c:when>
+ <c:otherwise>
+ <div class="wizardStepBox">
+ <p class="stepNumber">Step 4</p>
+
+ <p class="stepText">Select Region</p>
+ </div>
+ </c:otherwise>
+ </c:choose>
+ </c:otherwise>
+</c:choose>
+
+<c:choose>
+ <c:when test="#{newWindowWizard.currentStep == 4}">
+ <div class="wizardStepBox" id="selected">
+ <p class="stepNumber">Step 5</p>
+
+ <p class="stepText">Confirm</p>
+ </div>
+ </c:when>
+ <c:otherwise>
+ <c:choose>
+ <c:when test="#{newWindowWizard.enabled[4]}">
+ <h:form><h:commandLink action="#{newWindowWizard.goTo}">
+ <f:param name="step" value="4"/>
+
+ <div class="wizardStepBox">
+ <p class="stepNumber">Step 5</p>
+
+ <p class="stepText">Confirm</p>
+ </div>
+ </h:commandLink></h:form>
+ </c:when>
+ <c:otherwise>
+ <div class="wizardStepBox">
+ <p class="stepNumber">Step 5</p>
+
+ <p class="stepText">Confirm</p>
+ </div>
+ </c:otherwise>
+ </c:choose>
+ </c:otherwise>
+</c:choose>
+
+<!-- Status message -->
+<h:message id="status" for="status"/>
+
+
+<!-- Content -->
+<div class="wizardContent">
+ <ui:insert name="content">Content</ui:insert>
+</div>
+
+<div class="wizardButtonBox">
<h:form>
- <p style="text-align: right;"><h:commandLink action="advancedMode">Switch to advanced mode</h:commandLink></p>
+ <h:commandButton rendered="#{newWindowWizard.currentStep gt 0}" value="Previous"
+ action="#{newWindowWizard.previous}" styleClass="portlet-form-button"/>
+ <h:commandButton
+ rendered="#{newWindowWizard.currentStep lt 4 and newWindowWizard.enabled[newWindowWizard.currentStep + 1]}"
+ value="Next" action="#{newWindowWizard.next}" styleClass="portlet-form-button"/>
</h:form>
</div>
+
+<h:form>
+ <p style="text-align: right;"><h:commandLink action="advancedMode">Switch to advanced mode</h:commandLink></p>
+</h:form>
</div>
+</div>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/newWindowTpl.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/newWindowWizardConfirm.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/newWindowWizardConfirm.xhtml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/newWindowWizardConfirm.xhtml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -4,23 +4,35 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jstl/core">
-
+
<ui:composition template="newWindowTpl.xhtml">
<ui:define name="content">
-
- <table>
- <tr><td><b>Portlet:</b></td><td>#{newWindowWizard.selectedPortlet.name.defaultString}</td></tr>
- <tr><td><b>Portal:</b></td><td>#{newWindowWizard.selectedPortal.name}</td></tr>
- <tr><td><b>Page:</b></td><td>#{newWindowWizard.selectedPage.name}</td></tr>
- <tr><td><b>Region:</b></td><td>#{newWindowWizard.selectedRegionId}</td></tr>
- </table>
-
- <h:form>
- <h:commandButton value="Confirm" action="#{newWindowWizard.createWindow}" styleClass="portlet-form-button"/>
- <h:commandButton value="Cancel" action="#{newWindowWizard.cancel}" styleClass="portlet-form-button"/>
- </h:form>
-
- </ui:define>
- </ui:composition>
-
+
+ <table>
+ <tr>
+ <td><b>Portlet:</b></td>
+ <td>#{newWindowWizard.selectedPortlet.name.defaultString}</td>
+ </tr>
+ <tr>
+ <td><b>Portal:</b></td>
+ <td>#{newWindowWizard.selectedPortal.name}</td>
+ </tr>
+ <tr>
+ <td><b>Page:</b></td>
+ <td>#{newWindowWizard.selectedPage.name}</td>
+ </tr>
+ <tr>
+ <td><b>Region:</b></td>
+ <td>#{newWindowWizard.selectedRegionId}</td>
+ </tr>
+ </table>
+
+ <h:form>
+ <h:commandButton value="Confirm" action="#{newWindowWizard.createWindow}" styleClass="portlet-form-button"/>
+ <h:commandButton value="Cancel" action="#{newWindowWizard.cancel}" styleClass="portlet-form-button"/>
+ </h:form>
+
+ </ui:define>
+ </ui:composition>
+
</div>
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/newWindowWizardConfirm.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/selectPage.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/selectPage.xhtml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/selectPage.xhtml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -17,7 +17,8 @@
</tbody>
<tbody>
<h:form>
- <h:commandLink action="#{newWindowWizard.up}" rendered="#{newWindowWizard.selectedParentPage.type != PortalObject.TYPE_PORTAL}">
+ <h:commandLink action="#{newWindowWizard.up}"
+ rendered="#{newWindowWizard.selectedParentPage.type != PortalObject.TYPE_PORTAL}">
<h:outputText value="Up"/>
<f:param name="id" value="#{newWindowWizard.selectedParentPageId}"/>
</h:commandLink>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/selectPage.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/selectPortal.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/selectPortlet.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/wizard/selectRegion.xhtml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/portal.taglib.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/portlet-instances.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/portlet.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSConstants.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSConstants.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSConstants.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -24,7 +24,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class CMSConstants
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSConstants.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSObjectCommandFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSObjectCommandFactory.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSObjectCommandFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,8 +22,8 @@
******************************************************************************/
package org.jboss.portal.core.cms;
+import org.jboss.portal.core.controller.command.mapper.CommandFactory;
import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.core.controller.command.mapper.CommandFactory;
/**
* This command mapper is used to map urls to cms content objects
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSObjectCommandFactory.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSObjectCommandFactoryService.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSObjectCommandFactoryService.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSObjectCommandFactoryService.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,23 +22,23 @@
******************************************************************************/
package org.jboss.portal.core.cms;
-import org.jboss.portal.core.controller.command.mapper.AbstractCommandFactory;
+import org.jboss.portal.Mode;
+import org.jboss.portal.cms.CMS;
+import org.jboss.portal.cms.CMSException;
+import org.jboss.portal.cms.Command;
+import org.jboss.portal.cms.model.Content;
+import org.jboss.portal.cms.model.File;
+import org.jboss.portal.core.cms.command.StreamContentCommand;
+import org.jboss.portal.core.cms.ui.CMSPortlet;
import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerContext;
+import org.jboss.portal.core.controller.command.mapper.AbstractCommandFactory;
import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.PortalObjectPath;
import org.jboss.portal.core.model.portal.command.action.InvokePortletWindowRenderCommand;
-import org.jboss.portal.core.cms.command.StreamContentCommand;
-import org.jboss.portal.core.cms.ui.CMSPortlet;
-import org.jboss.portal.cms.CMS;
-import org.jboss.portal.cms.Command;
-import org.jboss.portal.cms.CMSException;
-import org.jboss.portal.cms.model.File;
-import org.jboss.portal.cms.model.Content;
+import org.jboss.portal.portlet.PortletParametersStateString;
+import org.jboss.portal.server.ServerInvocation;
import org.jboss.portal.server.config.ServerConfig;
-import org.jboss.portal.server.ServerInvocation;
-import org.jboss.portal.portlet.PortletParametersStateString;
-import org.jboss.portal.Mode;
import java.util.Locale;
@@ -165,21 +165,21 @@
}
catch (CMSException e)
{
- if(e.toString().indexOf("Access to this resource is denied")!=-1)
- {
- PortletParametersStateString parameters = new PortletParametersStateString();
- parameters.setValue("path", requestPath);
- return new InvokePortletWindowRenderCommand(targetWindowId, Mode.VIEW, null, parameters);
- }
- else
- {
- log.error("CMS error", e);
- }
+ if (e.toString().indexOf("Access to this resource is denied") != -1)
+ {
+ PortletParametersStateString parameters = new PortletParametersStateString();
+ parameters.setValue("path", requestPath);
+ return new InvokePortletWindowRenderCommand(targetWindowId, Mode.VIEW, null, parameters);
+ }
+ else
+ {
+ log.error("CMS error", e);
+ }
}
return null; // TODO: 404?
}
-
+
private boolean isStreamable(String mimeType)
{
return (!"text/html".equalsIgnoreCase(mimeType) && !"text/plain".equalsIgnoreCase(mimeType));
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSObjectCommandFactoryService.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSObjectURLFactory.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSObjectURLFactory.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSObjectURLFactory.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,17 +22,17 @@
******************************************************************************/
package org.jboss.portal.core.cms;
+import org.jboss.portal.core.cms.command.StreamContentCommand;
import org.jboss.portal.core.controller.ControllerCommand;
import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.core.controller.command.mapper.URLFactoryDelegate;
-import org.jboss.portal.core.cms.command.StreamContentCommand;
import org.jboss.portal.server.AbstractServerURL;
import org.jboss.portal.server.ServerInvocation;
import org.jboss.portal.server.ServerURL;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 6007 $
+ * @version $Revision$
*/
public class CMSObjectURLFactory extends URLFactoryDelegate
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/CMSObjectURLFactory.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/aspect/IdentityBindingInterceptor.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/aspect/IdentityBindingInterceptor.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/aspect/IdentityBindingInterceptor.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,16 +22,16 @@
******************************************************************************/
package org.jboss.portal.core.cms.aspect;
+import org.jboss.portal.cms.impl.jcr.JCRCMS;
+import org.jboss.portal.common.invocation.InvocationException;
+import org.jboss.portal.core.aspects.server.UserInterceptor;
import org.jboss.portal.identity.User;
-import org.jboss.portal.cms.impl.jcr.JCRCMS;
import org.jboss.portal.server.ServerInterceptor;
import org.jboss.portal.server.ServerInvocation;
-import org.jboss.portal.common.invocation.InvocationException;
-import org.jboss.portal.core.aspects.server.UserInterceptor;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class IdentityBindingInterceptor extends ServerInterceptor
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/aspect/IdentityBindingInterceptor.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/command/StreamContentCommand.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/content/InternalCMSContentProvider.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/content/InternalCMSContentProvider.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/content/InternalCMSContentProvider.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,17 +22,17 @@
******************************************************************************/
package org.jboss.portal.core.cms.content;
+import org.jboss.portal.Mode;
+import org.jboss.portal.core.cms.CMSObjectCommandFactory;
import org.jboss.portal.core.impl.model.content.generic.InternalGenericContentProvider;
+import org.jboss.portal.core.model.content.spi.portlet.ContentPortlet;
+import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.command.render.RenderWindowCommand;
-import org.jboss.portal.core.model.portal.PortalObjectId;
import org.jboss.portal.core.model.portal.content.WindowRendition;
-import org.jboss.portal.core.model.content.spi.portlet.ContentPortlet;
-import org.jboss.portal.core.cms.CMSObjectCommandFactory;
-import org.jboss.portal.Mode;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision$
*/
public class InternalCMSContentProvider extends InternalGenericContentProvider
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/content/InternalCMSContentProvider.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/servlet/CMSExportServlet.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/servlet/CMSPreviewServlet.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/CMSPortlet.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/CMSPortlet.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/CMSPortlet.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,26 +22,6 @@
******************************************************************************/
package org.jboss.portal.core.cms.ui;
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.lang.reflect.UndeclaredThrowableException;
-import java.util.Locale;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import javax.portlet.GenericPortlet;
-import javax.portlet.PortletException;
-import javax.portlet.PortletPreferences;
-import javax.portlet.PortletRequestDispatcher;
-import javax.portlet.PortletSecurityException;
-import javax.portlet.PortletURL;
-import javax.portlet.RenderRequest;
-import javax.portlet.RenderResponse;
-import javax.portlet.PortletConfig;
-import javax.portlet.ActionRequest;
-import javax.portlet.ActionResponse;
-import javax.portlet.PortletMode;
-
import org.apache.log4j.Logger;
import org.jboss.portal.cms.CMS;
import org.jboss.portal.cms.CMSException;
@@ -50,21 +30,40 @@
import org.jboss.portal.cms.search.CMSFederatedSearch;
import org.jboss.portal.cms.util.FileUtil;
import org.jboss.portal.core.cms.CMSConstants;
+import org.jboss.portal.core.cms.command.StreamContentCommand;
import org.jboss.portal.core.cms.content.InternalCMSContentProvider;
import org.jboss.portal.core.cms.ui.admin.CMSContentEditorPortlet;
-import org.jboss.portal.core.cms.command.StreamContentCommand;
import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.search.federation.SearchFederation;
import org.jboss.portal.server.request.URLContext;
import org.jboss.portal.server.request.URLFormat;
import org.jboss.portlet.JBossRenderRequest;
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.GenericPortlet;
+import javax.portlet.PortletConfig;
+import javax.portlet.PortletException;
+import javax.portlet.PortletMode;
+import javax.portlet.PortletPreferences;
+import javax.portlet.PortletRequestDispatcher;
+import javax.portlet.PortletSecurityException;
+import javax.portlet.PortletURL;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.lang.reflect.UndeclaredThrowableException;
+import java.util.Locale;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
/**
* Displays content from the CMS.
*
* @author <a href="mailto:roy@jboss.org">Roy Russo</a>
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 6007 $
+ * @version $Revision$
* <p/>
* TODO: use portlet preferences for default homepage, and allow for preference modification in doEdit()
*/
@@ -347,17 +346,13 @@
return content;
}
- /**
- * Creates CMS urls which is used for image src calls from the html.
- */
+ /** Creates CMS urls which is used for image src calls from the html. */
protected abstract static class URLFactory
{
public abstract String createURL(String path);
}
- /**
- * Implementation that uses a PortletURL object.
- */
+ /** Implementation that uses a PortletURL object. */
protected static class LocalURLFactory extends URLFactory
{
@@ -376,9 +371,7 @@
}
}
- /**
- * Implementation that routes thru the CMSObjectCommandMapper.
- */
+ /** Implementation that routes thru the CMSObjectCommandMapper. */
protected static class GlobalURLFactory extends URLFactory
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/CMSPortlet.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminConstants.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminConstants.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminConstants.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -105,6 +105,6 @@
public static final String OP_VIEWPENDING = "view_pending_items";
public static final String OP_VIEWSEARCHRESULTS = "view_search_results";
-
+
public static final String OP_CREATEFILE_VALIDATION_ERROR = "create_file_validation_error";
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminConstants.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminPortlet.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminPortlet.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminPortlet.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,26 +22,6 @@
******************************************************************************/
package org.jboss.portal.core.cms.ui.admin;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.PrintWriter;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Date;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Locale;
-import java.util.Set;
-import java.util.Vector;
-
-import javax.naming.InitialContext;
-import javax.portlet.PortletException;
-import javax.portlet.PortletRequest;
-import javax.portlet.PortletRequestDispatcher;
-import javax.portlet.PortletSession;
-import javax.portlet.UnavailableException;
-
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.portlet.PortletFileUpload;
@@ -85,6 +65,25 @@
import org.jboss.portlet.JBossRenderRequest;
import org.jboss.portlet.JBossRenderResponse;
+import javax.naming.InitialContext;
+import javax.portlet.PortletException;
+import javax.portlet.PortletRequest;
+import javax.portlet.PortletRequestDispatcher;
+import javax.portlet.PortletSession;
+import javax.portlet.UnavailableException;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.PrintWriter;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Date;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Locale;
+import java.util.Set;
+import java.util.Vector;
+
/**
* @author <a href="mailto:roy@jboss.org">Roy Russo</a>
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
@@ -98,8 +97,8 @@
private MembershipModule membershipModule;
private ApprovePublish approvePublish;
private AuthorizationManager authorizationManager;
-
+
public void init() throws PortletException
{
CMSService = (CMS)getPortletContext().getAttribute("CMS");
@@ -124,12 +123,12 @@
{
throw new PortletException("No membership module");
}
- if(this.authorizationManager == null)
+ if (this.authorizationManager == null)
{
- throw new PortletException("Authorization Service not found");
+ throw new PortletException("Authorization Service not found");
}
- this.initializeApprovePublishWorkflow();
+ this.initializeApprovePublishWorkflow();
}
protected void doView(final JBossRenderRequest rReq, final JBossRenderResponse rRes)
@@ -209,19 +208,19 @@
rReq.setAttribute("folders", folders);
rReq.setAttribute("files", files);
rReq.setAttribute("currpath", sPath);
-
+
//manage workflow accessibility check
boolean isWorkflowManagementAccessible = this.isWorkflowManagementAccessible(rReq);
boolean isWorkflowActivated = this.CMSService.isWorkflowActivated();
- if(isWorkflowManagementAccessible && isWorkflowActivated)
+ if (isWorkflowManagementAccessible && isWorkflowActivated)
{
- rReq.setAttribute("manageWorkflowAccessible", new Boolean(true));
+ rReq.setAttribute("manageWorkflowAccessible", new Boolean(true));
}
else
{
- rReq.setAttribute("manageWorkflowAccessible", new Boolean(false));
+ rReq.setAttribute("manageWorkflowAccessible", new Boolean(false));
}
-
+
javax.portlet.PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher(CMSAdminConstants.CMS_JSP_PATH + "/main.jsp");
prd.include(rReq, rRes);
}
@@ -289,31 +288,31 @@
rRes.setContentType("text/html");
rReq.setAttribute("currpath", sPath);
rReq.setAttribute("contents", contents);
-
+
//manage workflow accessibility check
boolean isWorkflowManagementAccessible = this.isWorkflowManagementAccessible(rReq);
boolean isWorkflowActivated = this.CMSService.isWorkflowActivated();
- if(isWorkflowManagementAccessible && isWorkflowActivated)
+ if (isWorkflowManagementAccessible && isWorkflowActivated)
{
- rReq.setAttribute("manageWorkflowAccessible", new Boolean(true));
+ rReq.setAttribute("manageWorkflowAccessible", new Boolean(true));
}
else
{
- rReq.setAttribute("manageWorkflowAccessible", new Boolean(false));
+ rReq.setAttribute("manageWorkflowAccessible", new Boolean(false));
}
-
+
javax.portlet.PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher(CMSAdminConstants.CMS_JSP_PATH + "/viewfile.jsp");
prd.include(rReq, rRes);
}
else if (CMSAdminConstants.OP_VIEWSEARCHRESULTS.equals(op))
{
rRes.setContentType("text/html");
-
+
String textQuery = rReq.getParameter("search");
FederatedQuery query = new FederatedQuery(textQuery);
-
- JCRQueryConverter converter = new JCRQueryConverter();
-
+
+ JCRQueryConverter converter = new JCRQueryConverter();
+
List files;
try
{
@@ -394,7 +393,8 @@
javax.portlet.PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher(CMSAdminConstants.CMS_JSP_PATH + "/editbinary.jsp");
prd.include(rReq, rRes);
}
- else if (CMSAdminConstants.OP_CREATENEWTEXT.equals(op) || CMSAdminConstants.OP_CREATEFILE_VALIDATION_ERROR.equals(op))
+ else
+ if (CMSAdminConstants.OP_CREATENEWTEXT.equals(op) || CMSAdminConstants.OP_CREATEFILE_VALIDATION_ERROR.equals(op))
{
String sPath = rReq.getParameter("path");
@@ -425,28 +425,28 @@
rRes.setContentType("text/html");
rReq.setAttribute("currpath", sPath);
rReq.setAttribute("document_base_url", sbUrl.toString() + this.buildURL(rReq, "/"));
-
+
//If a validation error occurred, re-populate data already submitted
- if(rReq.getParameter("error:content") != null)
+ if (rReq.getParameter("error:content") != null)
{
rReq.setAttribute("error:content", rReq.getParameter("error:content"));
}
- if(rReq.getParameter("error:description") != null)
+ if (rReq.getParameter("error:description") != null)
{
rReq.setAttribute("error:description", rReq.getParameter("error:description"));
}
- if(rReq.getParameter("error:title") != null)
+ if (rReq.getParameter("error:title") != null)
{
rReq.setAttribute("error:title", rReq.getParameter("error:title"));
}
- if(rReq.getParameter("error:language") != null)
+ if (rReq.getParameter("error:language") != null)
{
rReq.setAttribute("error:language", rReq.getParameter("error:language"));
}
-
+
javax.portlet.PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher(CMSAdminConstants.CMS_JSP_PATH + "/create.jsp");
prd.include(rReq, rRes);
- }
+ }
else if (CMSAdminConstants.OP_EDIT.equals(op))
{
String sPath = rReq.getParameter("path");
@@ -559,7 +559,7 @@
String uri = this.authorizationManager.getProvider().getCriteriaURI("path", sPath);
Collection permissions = this.authorizationManager.getProvider().
- getSecurityBindings(uri);
+ getSecurityBindings(uri);
readRoleSet = this.processRolePermissions(permissions, "read");
readUserSet = this.processUserPermissions(permissions, "read");
@@ -620,7 +620,7 @@
javax.portlet.PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher(CMSAdminConstants.CMS_JSP_PATH + "/pending_items.jsp");
prd.include(rReq, rRes);
- }
+ }
}
public void processAction(final JBossActionRequest aReq, final JBossActionResponse aRes) throws PortletException
@@ -786,7 +786,7 @@
}
else if (CMSAdminConstants.OP_DOSEARCH.equals(op))
{
- String search = (String) aReq.getParameter("search");
+ String search = (String)aReq.getParameter("search");
aRes.setRenderParameter("search", search);
aRes.setRenderParameter("op", CMSAdminConstants.OP_VIEWSEARCHRESULTS);
@@ -1006,27 +1006,27 @@
String sTitle = aReq.getParameter("title");
String sDescription = aReq.getParameter("description");
String sLanguage = aReq.getParameter("language");
-
+
//Perform server side data validation
- if(sFileName == null || sFileName.trim().length() == 0)
+ if (sFileName == null || sFileName.trim().length() == 0)
{
//Validation Error occurred
//FileName should not be empty
aRes.setRenderParameter("op", CMSAdminConstants.OP_CREATEFILE_VALIDATION_ERROR);
-
+
//set render parameters here
aRes.setRenderParameter("path", sDirectory);
-
+
//used to remember the data already submitted by the user
aRes.setRenderParameter("error:content", aReq.getParameter("elm1"));
aRes.setRenderParameter("error:description", aReq.getParameter("description"));
aRes.setRenderParameter("error:title", aReq.getParameter("title"));
aRes.setRenderParameter("error:language", aReq.getParameter("language"));
-
+
return;
}
-
-
+
+
if (!"".equals(sFileName) && !"".equals(sDirectory))
{
String sContent = aReq.getParameter("elm1");
@@ -1069,7 +1069,7 @@
CMSService.execute(newFileCMD);
}
aRes.setRenderParameter("path", sNewFilePath);
- }
+ }
aRes.setRenderParameter("op", CMSAdminConstants.OP_VIEWFILE);
}
@@ -1196,15 +1196,15 @@
//show an error message on the pending item screen
aRes.setRenderParameter("path", aReq.getParameter("path"));
aRes.setRenderParameter("exception", e.getMessage());
-
+
String from = aReq.getParameter("from");
- if(from == null || from.trim().length()==0)
+ if (from == null || from.trim().length() == 0)
{
- aRes.setRenderParameter("op", CMSAdminConstants.OP_VIEWPENDING);
+ aRes.setRenderParameter("op", CMSAdminConstants.OP_VIEWPENDING);
}
else
{
- aRes.setRenderParameter("op", from);
+ aRes.setRenderParameter("op", from);
}
return;
}
@@ -1213,42 +1213,42 @@
}
else if (CMSAdminConstants.OP_DENY.equals(op))
{
- String sManager = aReq.getUser().getUserName();
- String sPID = aReq.getParameter("pid");
- try
- {
- this.getApprovePublish().processManagerResponse(Long.parseLong(sPID), sManager, false);
- }
- catch (Exception e)
- {
- //show an error message on the pending item screen
- aRes.setRenderParameter("path", aReq.getParameter("path"));
- aRes.setRenderParameter("exception", e.getMessage());
-
- String from = aReq.getParameter("from");
- if(from == null || from.trim().length()==0)
- {
- aRes.setRenderParameter("op", CMSAdminConstants.OP_VIEWPENDING);
- }
- else
- {
- aRes.setRenderParameter("op", from);
- }
- return;
- }
- aRes.setRenderParameter("path", aReq.getParameter("path"));
- aRes.setRenderParameter("op", CMSAdminConstants.OP_VIEWFILE);
+ String sManager = aReq.getUser().getUserName();
+ String sPID = aReq.getParameter("pid");
+ try
+ {
+ this.getApprovePublish().processManagerResponse(Long.parseLong(sPID), sManager, false);
+ }
+ catch (Exception e)
+ {
+ //show an error message on the pending item screen
+ aRes.setRenderParameter("path", aReq.getParameter("path"));
+ aRes.setRenderParameter("exception", e.getMessage());
+
+ String from = aReq.getParameter("from");
+ if (from == null || from.trim().length() == 0)
+ {
+ aRes.setRenderParameter("op", CMSAdminConstants.OP_VIEWPENDING);
+ }
+ else
+ {
+ aRes.setRenderParameter("op", from);
+ }
+ return;
+ }
+ aRes.setRenderParameter("path", aReq.getParameter("path"));
+ aRes.setRenderParameter("op", CMSAdminConstants.OP_VIEWFILE);
}
- else if(CMSAdminConstants.OP_MAKELIVE.equals(op))
+ else if (CMSAdminConstants.OP_MAKELIVE.equals(op))
{
String path = aReq.getParameter("path");
String language = aReq.getParameter("language");
String version = aReq.getParameter("version");
-
+
//Perform the change in live version here
Command makeLiveCommand = CMSService.getCommandFactory().createMakeLiveVersionCommand(path, language, version);
CMSService.execute(makeLiveCommand);
-
+
aRes.setRenderParameter("path", path);
aRes.setRenderParameter("op", CMSAdminConstants.OP_VIEWFILE);
}
@@ -1280,8 +1280,7 @@
/**
* Rewrites urls. Typically, this is used for image src calls from the html, so they route thru the
- * CMSObjectCommandMapper and invoke the StreamObjectCommand.
- * TODO : need to make this not a hack
+ * CMSObjectCommandMapper and invoke the StreamObjectCommand. TODO : need to make this not a hack
*/
public String buildURL(JBossRenderRequest req, String path)
{
@@ -1376,7 +1375,7 @@
permission.setUsers(usersSet);
Set securityBinding = new HashSet();
securityBinding.add(permission);
- this.authorizationManager.getProvider().setSecurityBindings(null,securityBinding);
+ this.authorizationManager.getProvider().setSecurityBindings(null, securityBinding);
}
/**
@@ -1492,33 +1491,30 @@
return false;
}
}
-
- /**
- *
- * @return
- */
+
+ /** @return */
private boolean isWorkflowManagementAccessible(JBossRenderRequest renderRequest)
{
- boolean isAccessible = false;
+ boolean isAccessible = false;
- User user = renderRequest.getUser();
- try
- {
- user = userModule.findUserById(user.getId());
- }
- catch (Exception e)
- {
- return false;
- }
+ User user = renderRequest.getUser();
+ try
+ {
+ user = userModule.findUserById(user.getId());
+ }
+ catch (Exception e)
+ {
+ return false;
+ }
- PortalCMSSecurityContext securityContext = new PortalCMSSecurityContext(user);
- securityContext.setAttribute("manageWorkflow", "true");
- securityContext.setAttribute("approvePublish", getApprovePublish());
-
- PortalPermission cmsPermission = new CMSPermission(securityContext);
- isAccessible = this.authorizationManager.checkPermission(cmsPermission);
-
- return isAccessible;
+ PortalCMSSecurityContext securityContext = new PortalCMSSecurityContext(user);
+ securityContext.setAttribute("manageWorkflow", "true");
+ securityContext.setAttribute("approvePublish", getApprovePublish());
+
+ PortalPermission cmsPermission = new CMSPermission(securityContext);
+ isAccessible = this.authorizationManager.checkPermission(cmsPermission);
+
+ return isAccessible;
}
/** @return */
@@ -1548,10 +1544,10 @@
{
this.approvePublish = approvePublish;
}
-
+
/**
- *
*
+ *
*/
private void initializeAuthorizationManager()
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminPortlet.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSContentEditorPortlet.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSContentEditorPortlet.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSContentEditorPortlet.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,11 +22,10 @@
******************************************************************************/
package org.jboss.portal.core.cms.ui.admin;
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Locale;
-import java.util.Map;
+import org.jboss.portal.cms.CMS;
+import org.jboss.portal.cms.Command;
+import org.jboss.portal.cms.model.Content;
+import org.jboss.portal.cms.model.Folder;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
@@ -36,12 +35,12 @@
import javax.portlet.PortletSecurityException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Locale;
+import java.util.Map;
-import org.jboss.portal.cms.CMS;
-import org.jboss.portal.cms.Command;
-import org.jboss.portal.cms.model.Content;
-import org.jboss.portal.cms.model.Folder;
-
/**
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
* @version $Revision$
@@ -54,7 +53,7 @@
/** . */
private static final PortletMode EDIT_CONTENT = new PortletMode("edit_content");
-
+
public void init() throws PortletException
{
cmsService = (CMS)getPortletContext().getAttribute("CMS");
@@ -124,15 +123,15 @@
{
Command getContentCMD = cmsService.getCommandFactory().createContentGetCommand(contentUri, null, req.getLocale());
Content content = (Content)cmsService.execute(getContentCMD);
-
+
if (content == null)
{
getContentCMD = cmsService.getCommandFactory().createContentGetCommand(contentUri, null, new Locale(cmsService.getDefaultLocale()));
content = (Content)cmsService.execute(getContentCMD);
}
- req.setAttribute("content" , content);
+ req.setAttribute("content", content);
}
-
+
javax.portlet.PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher(CMSEditorConstants.CMS_EDITOR_JSP_PATH + "/main.jsp");
prd.include(req, resp);
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSContentEditorPortlet.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSEditorConstants.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-sar/META-INF/jboss-service.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-sar/META-INF/jboss-service.xml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-sar/META-INF/jboss-service.xml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -37,8 +37,8 @@
<xmbean/>
</mbean>
-->
-
- <mbean
+
+ <mbean
code="org.jboss.portal.jems.hibernate.SessionFactoryBinder"
name="portal:service=Hibernate,type=CMS"
xmbean-dd=""
@@ -62,12 +62,12 @@
<depends>portal:service=Hibernate,type=CMS</depends>
<depends>cms.pm.cache:service=TreeCache</depends>
<depends optional-attribute-name="IdentityServiceController" proxy-type="attribute">portal:service=Module,type=IdentityServiceController</depends>
-
+
<!-- Add this to activate publish/approval workflow integration -->
<!--
<depends optional-attribute-name="ApprovePublishWorkflow" proxy-type="attribute">portal:service=ApprovePublish,type=Workflow</depends>
-->
-
+
<depends optional-attribute-name="StackFactory" proxy-type="attribute">portal:service=InterceptorStackFactory,type=Cms</depends>
<attribute name="DoChecking">true</attribute>
<attribute name="DefaultContentLocation">portal/cms/conf/default-content/default/</attribute>
@@ -132,7 +132,7 @@
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
<param name="path" value="${wsp.home}/index"/>
- <param name="textFilterClasses" value="org.apache.jackrabbit.core.query.HTMLTextFilter" />
+ <param name="textFilterClasses" value="org.apache.jackrabbit.core.query.HTMLTextFilter"/>
<param name="useCompoundFile" value="true"/>
<param name="minMergeDocs" value="100"/>
<param name="volatileIdleTime" value="3"/>
@@ -270,7 +270,7 @@
name="cms.pm.cache:service=TreeCache">
<depends>jboss:service=Naming</depends>
<depends>jboss:service=TransactionManager</depends>
- <depends>portal:service=Hibernate,type=CMS</depends>
+ <depends>portal:service=Hibernate,type=CMS</depends>
<!--
Configure the TransactionManager
-->
@@ -434,7 +434,7 @@
<attribute name="CacheLoaderFetchPersistentState">false</attribute>
<attribute name="CacheLoaderAsynchronous">false</attribute-->
</mbean>
-
+
<!-- interceptor factory where all cms interceptors are registered -->
<mbean
code="org.jboss.portal.server.impl.invocation.JBossInterceptorStackFactory"
@@ -446,8 +446,8 @@
<depends-list-element>portal:service=Interceptor,type=Cms,name=ACL</depends-list-element>
<depends-list-element>portal:service=Interceptor,type=Cms,name=ApprovalWorkflow</depends-list-element>
</depends-list>
- </mbean>
-
+ </mbean>
+
<!-- CMS Authorization Security Service -->
<mbean
code="org.jboss.portal.cms.security.AuthorizationManagerImpl"
@@ -468,7 +468,7 @@
<xmbean/>
<depends optional-attribute-name="IdentityServiceController" proxy-type="attribute">portal:service=Module,type=IdentityServiceController</depends>
</mbean>
-
+
<!-- ACL Security Interceptor -->
<mbean
code="org.jboss.portal.cms.impl.interceptors.ACLInterceptor"
@@ -521,7 +521,7 @@
<depends>portal:service=Hibernate,type=CMS</depends>
<depends>portal:service=Module,type=IdentityServiceController</depends>
</mbean>
-
+
<!-- Approval Workflow Interceptor -->
<mbean
code="org.jboss.portal.cms.impl.interceptors.ApprovalWorkflowInterceptor"
@@ -573,8 +573,8 @@
optional-attribute-name="PortalAuthorizationManagerFactory"
proxy-type="attribute">portal:service=PortalAuthorizationManagerFactory</depends>
</mbean>
-
- <!-- ApprovePublish workflow service -->
+
+ <!-- ApprovePublish workflow service -->
<mbean
code="org.jboss.portal.cms.workflow.ApprovePublishImpl"
name="portal:service=ApprovePublish,type=Workflow"
@@ -586,7 +586,7 @@
</depends>
<depends optional-attribute-name="IdentityServiceController" proxy-type="attribute">
portal:service=Module,type=IdentityServiceController
- </depends>
+ </depends>
<!-- JBPM process definition -->
<attribute name="Process">
<![CDATA[
@@ -632,34 +632,34 @@
approve/reject content publish requests
-->
<attribute name="ManagerRoles">Admin</attribute>
- <attribute name="JNDIName">java:portal/ApprovePublishWorkflow</attribute>
-
- <!-- Now that a manager GUI is integrated..no need for email based manager screen -->
-<!--
- <attribute name="From">do-not-reply(a)jboss.com</attribute>
- <attribute name="Subject">Content Approval Requested</attribute>
- <attribute name="Body">
- <![CDATA[
- Approval is needed to publish the following Content:
-
- Content Location : {0}
-
- Content Type : {1}
-
- Content Size : {2}
-
- Creation Date : {3}
-
- User : {4}
-
-
- <a href="http://localhost/workflow/approve?pId={5}&manager={6}">Approve</a>
-
-
- <a href="http://localhost/workflow/reject?pId={7}&manager={8}">Reject</a>
- ]]>
- </attribute>
--->
+ <attribute name="JNDIName">java:portal/ApprovePublishWorkflow</attribute>
+
+ <!-- Now that a manager GUI is integrated..no need for email based manager screen -->
+ <!--
+ <attribute name="From">do-not-reply(a)jboss.com</attribute>
+ <attribute name="Subject">Content Approval Requested</attribute>
+ <attribute name="Body">
+ <![CDATA[
+ Approval is needed to publish the following Content:
+
+ Content Location : {0}
+
+ Content Type : {1}
+
+ Content Size : {2}
+
+ Creation Date : {3}
+
+ User : {4}
+
+
+ <a href="http://localhost/workflow/approve?pId={5}&manager={6}">Approve</a>
+
+
+ <a href="http://localhost/workflow/reject?pId={7}&manager={8}">Reject</a>
+ ]]>
+ </attribute>
+ -->
</mbean>
</server>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-sar/META-INF/jboss-service.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-sar/conf/hibernate/cms/domain.hbm.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-sar/conf/hibernate/cms/domain.hbm.xml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-sar/conf/hibernate/cms/domain.hbm.xml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -274,103 +274,103 @@
type="long"
not-null="true"/>
</class>
-
+
<!-- mapping to persist CMS Fine Grained Security related objects -->
<class name="org.jboss.portal.cms.security.PermRoleAssoc" table="jbp_cms_perm_role">
<cache usage="read-write"/>
<id
- name="id"
- column="ID"
- type="java.lang.Long">
+ name="id"
+ column="ID"
+ type="java.lang.Long">
<generator class="native"/>
</id>
<property
- name="roleId"
- column="ROLE_ID"
- type="string"
- not-null="true"
- />
+ name="roleId"
+ column="ROLE_ID"
+ type="string"
+ not-null="true"
+ />
</class>
<class name="org.jboss.portal.cms.security.PermUserAssoc" table="jbp_cms_perm_user">
<cache usage="read-write"/>
<id
- name="id"
- column="ID"
- type="java.lang.Long">
+ name="id"
+ column="ID"
+ type="java.lang.Long">
<generator class="native"/>
</id>
<property
- name="userId"
- column="USER_ID"
- type="string"
- not-null="true"
- />
+ name="userId"
+ column="USER_ID"
+ type="string"
+ not-null="true"
+ />
</class>
<class name="org.jboss.portal.cms.security.Criteria" table="jbp_cms_perm_criteria">
<cache usage="read-write"/>
<id
- name="id"
- column="ID"
- type="java.lang.Long">
+ name="id"
+ column="ID"
+ type="java.lang.Long">
<generator class="native"/>
</id>
<property
- name="name"
- column="NAME"
- type="string"
- not-null="true"
- />
+ name="name"
+ column="NAME"
+ type="string"
+ not-null="true"
+ />
<property
- name="value"
- column="VALUE"
- type="string"
- not-null="true"
- />
+ name="value"
+ column="VALUE"
+ type="string"
+ not-null="true"
+ />
</class>
<class name="org.jboss.portal.cms.security.Permission" table="jbp_cms_perm">
<cache usage="read-write"/>
<id
- name="id"
- column="ID"
- type="java.lang.Long">
+ name="id"
+ column="ID"
+ type="java.lang.Long">
<generator class="native"/>
</id>
- <!-- one-to-many association with the criteria object -->
- <set name="criteria" lazy="false" table="jbp_cms_perm_criteria" cascade="all-delete-orphan">
+ <!-- one-to-many association with the criteria object -->
+ <set name="criteria" lazy="false" table="jbp_cms_perm_criteria" cascade="all-delete-orphan">
<cache usage="read-write"/>
<key column="CMS_PERM_ID"/>
<one-to-many class="org.jboss.portal.cms.security.Criteria"/>
</set>
- <!-- many-to-many association with the role object -->
- <set name="roleAssoc" lazy="false" cascade="all-delete-orphan">
+ <!-- many-to-many association with the role object -->
+ <set name="roleAssoc" lazy="false" cascade="all-delete-orphan">
<cache usage="read-write"/>
<key column="CMS_PERM_ID"/>
<one-to-many class="org.jboss.portal.cms.security.PermRoleAssoc"/>
</set>
- <!-- many-to-many association with the user object -->
- <set name="userAssoc" lazy="false" cascade="all-delete-orphan">
+ <!-- many-to-many association with the user object -->
+ <set name="userAssoc" lazy="false" cascade="all-delete-orphan">
<cache usage="read-write"/>
<key column="CMS_PERM_ID"/>
<one-to-many class="org.jboss.portal.cms.security.PermUserAssoc"/>
</set>
<property
- name="service"
- column="NAME"
- type="string"
- not-null="true"
- />
+ name="service"
+ column="NAME"
+ type="string"
+ not-null="true"
+ />
<property
- name="action"
- column="ACTION"
- type="string"
- not-null="true"
- />
+ name="action"
+ column="ACTION"
+ type="string"
+ not-null="true"
+ />
<property
- name="negated"
- column="NEGATED"
- type="boolean"
- not-null="true"
- />
+ name="negated"
+ column="NEGATED"
+ type="boolean"
+ not-null="true"
+ />
</class>
</hibernate-mapping>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-sar/conf/hibernate/cms/domain.hbm.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-sar/conf/hibernate/cms/ehcache.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-sar/conf/hibernate/cms/hibernate.cfg.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-sar/conf/hibernate/cms/hibernate.cfg.xml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-sar/conf/hibernate/cms/hibernate.cfg.xml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -28,8 +28,8 @@
<hibernate-configuration>
<session-factory>
<property name="connection.datasource">java:@portal.datasource.name@</property>
- <property name="show_sql">@portal.sql.show@</property>
-
+ <property name="show_sql">@portal.sql.show@</property>
+
<!-- caching properties -->
<property name="cache.use_second_level_cache">true</property>
<property name="cache.use_query_cache">true</property>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-sar/conf/hibernate/cms/hibernate.cfg.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/classes/Resource.properties
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/classes/Resource_es.properties
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/classes/Resource_fr.properties
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/classes/Resource_it.properties
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/classes/Resource_pt_BR.properties
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/default-object.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jboss-portlet.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jboss-web.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmcopy.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmcopy.jsp 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmcopy.jsp 2007-10-28 01:09:21 UTC (rev 8785)
@@ -4,47 +4,54 @@
<%@ page isELIgnored="false" %>
<%
- String sCurrPath = (String) request.getAttribute("currpath");
+ String sCurrPath = (String)request.getAttribute("currpath");
String OP = CMSAdminConstants.OP_CONFIRMCOPY;
- String sType = (String) request.getAttribute("type");
+ String sType = (String)request.getAttribute("type");
String sBackPath = NodeUtil.getParentPath(sCurrPath);
%>
<portlet:defineObjects/>
<link rel="stylesheet" type="text/css" href="/portal-admin/style.css" media="screen"/>
<div class="admin-ui">
-<div class=" cms-tab-container">
-<table width="100%">
- <th colspan="2"><h3 class="sectionTitle">${n:i18n("TITLE_COPYCONFIRM")}</h3></th>
- <tr>
- <td class="portlet-section-body" align="left">
- <form name="pickform" action="<portlet:actionURL>
+ <div class=" cms-tab-container">
+ <table width="100%">
+ <th colspan="2"><h3 class="sectionTitle">${n:i18n("TITLE_COPYCONFIRM")}</h3></th>
+ <tr>
+ <td class="portlet-section-body" align="left">
+ <form name="pickform" action="<portlet:actionURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_COPY %>"/>
<portlet:param name="source" value="<%= sCurrPath %>"/>
<portlet:param name="type" value="<%= sType %>"/>
</portlet:actionURL>" method="post">
- <input type="hidden" name="destination" value="/">
- <table>
- <tr>
- <td>${n:i18n("CMS_SOURCE")}:</td>
- <td><%= sCurrPath %></td>
- </tr>
- <tr>
- <td height="25" valign="bottom">${n:i18n("CMS_DESTINATION")}:</td><td><input DISABLED type="text" size="40"
- name="showdestination" value="/"
- class="portlet-form-input-field"/></td>
- </tr>
- <tr><td></td><td valign="top"><input class="portlet-form-input-field" type="submit" value="${n:i18n("CMS_COPY")}"
- name="submit">
- <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}" name="cancel" onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sBackPath %>"/></portlet:renderURL>'">
- </td>
- </tr>
- </table>
- </form>
- </td>
- <td valign="top" class="portlet-section-alternate">
- <%@ include file="folderlist.jsp" %>
- </td>
- </tr>
-</table>
+ <input type="hidden" name="destination" value="/">
+ <table>
+ <tr>
+ <td>${n:i18n("CMS_SOURCE")}:</td>
+ <td><%= sCurrPath %>
+ </td>
+ </tr>
+ <tr>
+ <td height="25" valign="bottom">${n:i18n("CMS_DESTINATION")}:</td>
+ <td><input DISABLED type="text" size="40"
+ name="showdestination" value="/"
+ class="portlet-form-input-field"/></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td valign="top"><input class="portlet-form-input-field" type="submit"
+ value="${n:i18n("CMS_COPY")}"
+ name="submit">
+ <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}"
+ name="cancel"
+ onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sBackPath %>"/></portlet:renderURL>'">
+ </td>
+ </tr>
+ </table>
+ </form>
+ </td>
+ <td valign="top" class="portlet-section-alternate">
+ <%@ include file="folderlist.jsp" %>
+ </td>
+ </tr>
+ </table>
+ </div>
</div>
-</div>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmcopy.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmcreatecollection.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmcreatecollection.jsp 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmcreatecollection.jsp 2007-10-28 01:09:21 UTC (rev 8785)
@@ -10,56 +10,59 @@
<portlet:defineObjects/>
<link rel="stylesheet" type="text/css" href="/portal-admin/style.css" media="screen"/>
<div class="admin-ui">
-<div class=" cms-tab-container">
-<table width="100%">
- <th colspan="2"><h3 class="sectionTitle">${n:i18n("TITLE_CREATECOLLCONFIRM")}</h3></th>
- <tr>
- <td valign="top" width="250" class="portlet-section-alternate">
- <%@ include file="folderlist.jsp" %>
- </td>
- <td class="portlet-section-body" align="left">
- <form name="pickform" action="<portlet:actionURL>
+ <div class=" cms-tab-container">
+ <table width="100%">
+ <th colspan="2"><h3 class="sectionTitle">${n:i18n("TITLE_CREATECOLLCONFIRM")}</h3></th>
+ <tr>
+ <td valign="top" width="250" class="portlet-section-alternate">
+ <%@ include file="folderlist.jsp" %>
+ </td>
+ <td class="portlet-section-body" align="left">
+ <form name="pickform" action="<portlet:actionURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_CREATE_COLLECTION %>"/>
<portlet:param name="createpath" value="<%= sCurrPath %>"/>
</portlet:actionURL>" method="post">
- <input type="hidden" name="destination" value="<%= sCurrPath %>">
- <table>
- <tr>
- <td valign="bottom">
- Destination:
- </td>
- <td>
- <input DISABLED type="text" size="40" name="showdestination" value="<%= sCurrPath %>"
- class="portlet-form-input-field"/></td>
- </tr>
- <tr>
- <td valign="bottom">${n:i18n("CMS_NAME")}:</td>
- <td align="left"><input class="portlet-form-input-field" type="text"
- name="newcollectionname" size="40" maxlength="50">
- </td>
- </tr>
- <tr>
- <td valign="bottom">${n:i18n("CMS_DESCRIPTION")}:</td>
- <td align="left"><input class="portlet-form-input-field" type="text"
- name="newcollectiondescription"
- size="40" maxlength="80">
- </td>
- </tr>
- <tr>
- <td></td>
- <td>
- <input class="portlet-form-button" type="submit" value="${n:i18n("CMS_CREATE")}" name="submit">
- <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}" name="cancel" onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sCurrPath %>"/></portlet:renderURL>'">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
-</table>
-<br/><br/>
+ <input type="hidden" name="destination" value="<%= sCurrPath %>">
+ <table>
+ <tr>
+ <td valign="bottom">
+ Destination:
+ </td>
+ <td>
+ <input DISABLED type="text" size="40" name="showdestination" value="<%= sCurrPath %>"
+ class="portlet-form-input-field"/></td>
+ </tr>
+ <tr>
+ <td valign="bottom">${n:i18n("CMS_NAME")}:</td>
+ <td align="left"><input class="portlet-form-input-field" type="text"
+ name="newcollectionname" size="40" maxlength="50">
+ </td>
+ </tr>
+ <tr>
+ <td valign="bottom">${n:i18n("CMS_DESCRIPTION")}:</td>
+ <td align="left"><input class="portlet-form-input-field" type="text"
+ name="newcollectiondescription"
+ size="40" maxlength="80">
+ </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>
+ <input class="portlet-form-button" type="submit" value="${n:i18n("CMS_CREATE")}"
+ name="submit">
+ <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}"
+ name="cancel"
+ onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sCurrPath %>"/></portlet:renderURL>'">
+ </td>
+ </tr>
+ </table>
+ </form>
+ </td>
+ </tr>
+ </table>
+ <br/><br/>
+ </div>
</div>
-</div>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmcreatecollection.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmdelete.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmdelete.jsp 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmdelete.jsp 2007-10-28 01:09:21 UTC (rev 8785)
@@ -9,34 +9,35 @@
<link rel="stylesheet" type="text/css" href="/portal-admin/style.css" media="screen"/>
<div class="admin-ui">
<div class=" cms-tab-container">
-<%
- String sCurrPath = (String)request.getAttribute("currpath");
- String sBackPath = NodeUtil.getParentPath(sCurrPath);
-%>
+ <%
+ String sCurrPath = (String)request.getAttribute("currpath");
+ String sBackPath = NodeUtil.getParentPath(sCurrPath);
+ %>
-<form action="<portlet:actionURL>
+ <form action="<portlet:actionURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_DELETE %>"/>
<portlet:param name="path" value="<%= sCurrPath %>"/>
</portlet:actionURL>" method="post">
- <table width="100%">
- <th><h3 class="sectionTitle">${n:i18n("TITLE_DELETECONFIRM")}</h3></th>
- <tr>
- <td align="center">
- <font class="portlet-font">${n:i18n("CMS_DELETEPATH")} <%= sCurrPath %>
- </font>
- <br><br>
- <font class="portlet-font" style="color:red"><b>${n:i18n("CMS_DELETEWARN1")}</b></font>
- <br><br>
- <font class="portlet-font">${n:i18n("CMS_DELETEWARN2")}</font><br>
- </td>
- </tr>
- <tr>
- <td align="center"><input type="submit" value="${n:i18n("CMS_DELETE")}" name="submit"
- class="portlet-form-button">
- <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}" name="cancel" onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sBackPath %>"/></portlet:renderURL>'">
- </td>
- </tr>
- </table>
-</form>
-</div>
- </div>
\ No newline at end of file
+ <table width="100%">
+ <th><h3 class="sectionTitle">${n:i18n("TITLE_DELETECONFIRM")}</h3></th>
+ <tr>
+ <td align="center">
+ <font class="portlet-font">${n:i18n("CMS_DELETEPATH")} <%= sCurrPath %>
+ </font>
+ <br><br>
+ <font class="portlet-font" style="color:red"><b>${n:i18n("CMS_DELETEWARN1")}</b></font>
+ <br><br>
+ <font class="portlet-font">${n:i18n("CMS_DELETEWARN2")}</font><br>
+ </td>
+ </tr>
+ <tr>
+ <td align="center"><input type="submit" value="${n:i18n("CMS_DELETE")}" name="submit"
+ class="portlet-form-button">
+ <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}" name="cancel"
+ onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sBackPath %>"/></portlet:renderURL>'">
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+</div>
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmdelete.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmmove.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmmove.jsp 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmmove.jsp 2007-10-28 01:09:21 UTC (rev 8785)
@@ -13,48 +13,50 @@
<link rel="stylesheet" type="text/css" href="/portal-admin/style.css" media="screen"/>
<div class="admin-ui">
<div class=" cms-tab-container">
-<table width="100%">
- <th colspan="2"><h3 class="sectionTitle">${n:i18n("TITLE_MOVECONFIRM")}</h3></th>
- <tr>
- <td valign="top" width="250" class="portlet-section-alternate">
- <%@ include file="folderlist.jsp" %>
- </td>
- <td class="portlet-section-body" align="left">
- <form name="pickform" action="<portlet:actionURL>
+ <table width="100%">
+ <th colspan="2"><h3 class="sectionTitle">${n:i18n("TITLE_MOVECONFIRM")}</h3></th>
+ <tr>
+ <td valign="top" width="250" class="portlet-section-alternate">
+ <%@ include file="folderlist.jsp" %>
+ </td>
+ <td class="portlet-section-body" align="left">
+ <form name="pickform" action="<portlet:actionURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_MOVE %>"/>
<portlet:param name="source" value="<%= sCurrPath %>"/>
<portlet:param name="type" value="<%= sType %>"/>
</portlet:actionURL>" method="post">
- <input type="hidden" name="destination" value="/">
- <table>
- <tr>
- <td>${n:i18n("CMS_SOURCE")}:</td>
- <td><%= sCurrPath %>
- </td>
- </tr>
- <tr>
- <td valign="bottom">
- ${n:i18n("CMS_DESTINATION")}:
- </td>
- <td>
- <input DISABLED type="text" size="40" name="showdestination" value="/"
- class="portlet-form-input-field"/>
- </td>
- </tr>
- <tr>
- <td></td>
- <td>
- <input class="portlet-form-button" type="submit" value="${n:i18n("CMS_MOVE")}" name="submit">
- <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}" name="cancel" onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sBackPath %>"/></portlet:renderURL>'">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
-</table>
-<br/><br/>
+ <input type="hidden" name="destination" value="/">
+ <table>
+ <tr>
+ <td>${n:i18n("CMS_SOURCE")}:</td>
+ <td><%= sCurrPath %>
+ </td>
+ </tr>
+ <tr>
+ <td valign="bottom">
+ ${n:i18n("CMS_DESTINATION")}:
+ </td>
+ <td>
+ <input DISABLED type="text" size="40" name="showdestination" value="/"
+ class="portlet-form-input-field"/>
+ </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>
+ <input class="portlet-form-button" type="submit" value="${n:i18n("CMS_MOVE")}" name="submit">
+ <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}"
+ name="cancel"
+ onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sBackPath %>"/></portlet:renderURL>'">
+ </td>
+ </tr>
+ </table>
+ </form>
+ </td>
+ </tr>
+ </table>
+ <br/><br/>
-</div>
- </div>
\ No newline at end of file
+ </div>
+</div>
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/confirmmove.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/create.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/create.jsp 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/create.jsp 2007-10-28 01:09:21 UTC (rev 8785)
@@ -13,27 +13,27 @@
String[] langs = Locale.getISOLanguages();
String sDocBase = (String)request.getAttribute("document_base_url");
String sCSSURL = (String)request.getAttribute("css_url");
-
+
//validation handling related data
String sContent = (String)request.getAttribute("error:content");
String description = (String)request.getAttribute("error:description");
String title = (String)request.getAttribute("error:title");
String language = (String)request.getAttribute("error:language");
- if(sContent == null)
+ if (sContent == null)
{
- sContent = "";
+ sContent = "";
}
- if(description == null)
+ if (description == null)
{
- description = "";
+ description = "";
}
- if(title == null)
+ if (title == null)
{
- title = "";
+ title = "";
}
- if(language == null)
+ if (language == null)
{
- language = "";
+ language = "";
}
%>
@@ -42,52 +42,53 @@
src="<%= renderRequest.getContextPath() + CMSAdminConstants.DEFAULT_IMAGES_PATH %>/tiny_mce/tiny_mce_src.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
- mode : "textareas",
- theme : "advanced",
- theme_advanced_disable : "styleselect",
- plugins : "advhr,advimage,advlink,emotions,insertdatetime,preview,zoom,flash",
- theme_advanced_buttons1_add : "fontselect,fontsizeselect,forecolor",
- theme_advanced_buttons2_add_before: "cut,copy,paste,separator",
- theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom",
- theme_advanced_buttons3_add : "flash,advhr",
- content_css : "<%= sCSSURL %>",
- plugin_insertdate_dateFormat : "%Y-%m-%d",
- plugin_insertdate_timeFormat : "%H:%M:%S",
- relative_urls : "false",
- document_base_url : "<%= sDocBase %>",
- extended_valid_elements : "style[type],a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],font[face|size|color],hr[class|width|size|noshade]"
+ mode : "textareas",
+ theme : "advanced",
+ theme_advanced_disable : "styleselect",
+ plugins : "advhr,advimage,advlink,emotions,insertdatetime,preview,zoom,flash",
+ theme_advanced_buttons1_add : "fontselect,fontsizeselect,forecolor",
+ theme_advanced_buttons2_add_before: "cut,copy,paste,separator",
+ theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom",
+ theme_advanced_buttons3_add : "flash,advhr",
+ content_css : "<%= sCSSURL %>",
+ plugin_insertdate_dateFormat : "%Y-%m-%d",
+ plugin_insertdate_timeFormat : "%H:%M:%S",
+ relative_urls : "false",
+ document_base_url : "<%= sDocBase %>",
+ extended_valid_elements :
+ "style[type],a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],font[face|size|color],hr[class|width|size|noshade]"
});
-
+
var status = true;
function toggleEditor()
{
- if(status)
- {
- tinyMCE.execCommand("mceRemoveControl", false, "elm1");
- status = false;
- }
- else
- {
- tinyMCE.execCommand("mceAddControl", false, "elm1");
- status = true;
- }
+ if(status)
+ {
+ tinyMCE.execCommand("mceRemoveControl", false, "elm1");
+ status = false;
}
+ else
+ {
+ tinyMCE.execCommand("mceAddControl", false, "elm1");
+ status = true;
+ }
+ }
</script>
<!-- /tinyMCE -->
<!-- data validation -->
<script language="javascript" type="text/javascript">
- function validateAndSubmit()
- {
- if(document.pickform.filename.value.length == 0)
- {
- alert("${n:i18n("CMS_FILENAME")} is required.");
- }
- else
- {
- document.pickform.submit();
- }
- }
+ function validateAndSubmit()
+ {
+ if(document.pickform.filename.value.length == 0)
+ {
+ alert("${n:i18n("CMS_FILENAME")} is required.");
+ }
+ else
+ {
+ document.pickform.submit();
+ }
+ }
</script>
<div class="admin-ui">
<div class=" cms-tab-container">
@@ -95,85 +96,97 @@
<portlet:param name="op" value="<%= CMSAdminConstants.OP_SAVENEWTEXT %>"/>
<portlet:param name="path" value=""/>
</portlet:actionURL>">
- <input type="hidden" name="savetopath" value="<%= sCurrPath %>">
+<input type="hidden" name="savetopath" value="<%= sCurrPath %>">
- <table width="100%">
- <th ><h3 class="sectionTitle">${n:i18n("TITLE_CREATE")}</h3></th>
- <tr>
- <td height="10"></td>
- </tr>
- <tr>
- <td>
- <table>
- <tr>
- <td>${n:i18n("CMS_CREATEFILEINDIR")}:
- </td>
- <td><%= sCurrPath %>
- </td>
- </tr>
- <tr>
- <td>${n:i18n("CMS_FILENAME")}:</td>
- <td>
- <input
- type="text" name="filename"
- class="portlet-form-input-field"/>
- : Required
- </td>
- </tr>
- <tr>
- <td>${n:i18n("CMS_DESCRIPTION")}:</td>
- <td><input type="text" size="40" maxlength="80"
- name="description" value="<%=description%>"
- class="portlet-form-input-field"/></td>
- </tr>
- <tr>
- <td>
- ${n:i18n("CMS_TITLE")}:
- </td>
- <td><input type="text" size="40" maxlength="80"
- name="title" value="<%=title%>"
- class="portlet-form-input-field"/>
- </td>
- </tr>
- <tr>
- <td>
- ${n:i18n("CMS_LANGUAGE")}:
- </td>
- <td><select name="language"
- class="portlet-form-input-field">
-
- <%if(language.equals("")){%>
- <%
- for (int i = 0; i < langs.length; i++)
- {
- %>
- <option value="<%= langs[i] %>" <%if(langs[i].equals(Locale.getDefault().getLanguage())){%>selected<%}%>><%= new Locale(langs[i]).getDisplayLanguage() %></option>
- <%
+<table width="100%">
+<th><h3 class="sectionTitle">${n:i18n("TITLE_CREATE")}</h3></th>
+<tr>
+ <td height="10"></td>
+</tr>
+<tr>
+ <td>
+ <table>
+ <tr>
+ <td>${n:i18n("CMS_CREATEFILEINDIR")}:
+ </td>
+ <td><%= sCurrPath %>
+ </td>
+ </tr>
+ <tr>
+ <td>${n:i18n("CMS_FILENAME")}:</td>
+ <td>
+ <input
+ type="text" name="filename"
+ class="portlet-form-input-field"/>
+ : Required
+ </td>
+ </tr>
+ <tr>
+ <td>${n:i18n("CMS_DESCRIPTION")}:</td>
+ <td><input type="text" size="40" maxlength="80"
+ name="description" value="<%=description%>"
+ class="portlet-form-input-field"/></td>
+ </tr>
+ <tr>
+ <td>
+ ${n:i18n("CMS_TITLE")}:
+ </td>
+ <td><input type="text" size="40" maxlength="80"
+ name="title" value="<%=title%>"
+ class="portlet-form-input-field"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ ${n:i18n("CMS_LANGUAGE")}:
+ </td>
+ <td><select name="language"
+ class="portlet-form-input-field">
+
+ <%
+ if (language.equals(""))
+ {
+ %>
+ <%
+ for (int i = 0; i < langs.length; i++)
+ {
+ %>
+ <option value="<%= langs[i] %>"
+ <%if(langs[i].equals(Locale.getDefault().getLanguage())){%>selected<%}%>><%= new Locale(langs[i]).getDisplayLanguage() %>
+ </option>
+ <%
+ }
+ %>
+ <%
}
- %>
- <%}else{%>
- <%
- for (int i = 0; i < langs.length; i++)
+ else
{
- %>
- <option value="<%= langs[i] %>" <%if(langs[i].equals(language)){%>selected<%}%>><%= new Locale(langs[i]).getDisplayLanguage() %></option>
- <%
- }
- %>
- <%}%>
- </select>
- </td>
- </tr>
- <tr>
- <td class="portlet-section-header" valign="bottom">
- ${n:i18n("CMS_WYSIWYG")}:
- </td>
- <td>
- <input type="checkbox" name="wysiwyg" class="portlet-form-input-field" checked onclick="javascript:toggleEditor();"/>
- </td>
- </tr>
- </table>
-</td>
+ %>
+ <%
+ for (int i = 0; i < langs.length; i++)
+ {
+ %>
+ <option value="<%= langs[i] %>"
+ <%if(langs[i].equals(language)){%>selected<%}%>><%= new Locale(langs[i]).getDisplayLanguage() %>
+ </option>
+ <%
+ }
+ %>
+ <%}%>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="portlet-section-header" valign="bottom">
+ ${n:i18n("CMS_WYSIWYG")}:
+ </td>
+ <td>
+ <input type="checkbox" name="wysiwyg" class="portlet-form-input-field" checked
+ onclick="javascript:toggleEditor();"/>
+ </td>
+ </tr>
+ </table>
+ </td>
</tr>
<tr>
<td height="10"></td>
@@ -193,11 +206,14 @@
</tr>
<tr>
<td align="center">
- <textarea id="elm1" name="elm1" rows="20" cols="80" style="width: 100%"><%= sContent %></textarea>
+ <textarea id="elm1" name="elm1" rows="20" cols="80" style="width: 100%"><%= sContent %>
+ </textarea>
<br>
- <input type="button" name="save" value="${n:i18n("CMS_CREATE")}" class="portlet-form-button" onclick="javascript:validateAndSubmit();"/>
+ <input type="button" name="save" value="${n:i18n("CMS_CREATE")}" class="portlet-form-button"
+ onclick="javascript:validateAndSubmit();"/>
<input type="reset" name="reset" value="Reset" class="portlet-form-button"/>
- <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}" name="cancel" onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sCurrPath %>"/></portlet:renderURL>'">
+ <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}" name="cancel"
+ onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sCurrPath %>"/></portlet:renderURL>'">
</td>
</tr>
</table>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/create.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/edit.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/edit.jsp 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/edit.jsp 2007-10-28 01:09:21 UTC (rev 8785)
@@ -23,38 +23,39 @@
<!-- tinyMCE -->
<script language="javascript" type="text/javascript"
src="<%= renderRequest.getContextPath() + CMSAdminConstants.DEFAULT_IMAGES_PATH %>/tiny_mce/tiny_mce_src.js"></script>
-<script language="javascript" type="text/javascript">
+<script language="javascript" type="text/javascript">
tinyMCE.init({
- mode : "textareas",
- theme : "advanced",
- theme_advanced_disable : "styleselect",
- plugins : "advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash",
- theme_advanced_buttons1_add : "fontselect,fontsizeselect,forecolor",
- theme_advanced_buttons2_add_before: "cut,copy,paste,separator",
- theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom",
- theme_advanced_buttons3_add : "iespell,flash,advhr",
- content_css : "<%= sCSSURL %>",
- plugin_insertdate_dateFormat : "%Y-%m-%d",
- plugin_insertdate_timeFormat : "%H:%M:%S",
- relative_urls : "false",
- document_base_url : "<%= sDocBase %>",
- extended_valid_elements : "style[type],a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],font[face|size|color],hr[class|width|size|noshade]"
+ mode : "textareas",
+ theme : "advanced",
+ theme_advanced_disable : "styleselect",
+ plugins : "advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash",
+ theme_advanced_buttons1_add : "fontselect,fontsizeselect,forecolor",
+ theme_advanced_buttons2_add_before: "cut,copy,paste,separator",
+ theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom",
+ theme_advanced_buttons3_add : "iespell,flash,advhr",
+ content_css : "<%= sCSSURL %>",
+ plugin_insertdate_dateFormat : "%Y-%m-%d",
+ plugin_insertdate_timeFormat : "%H:%M:%S",
+ relative_urls : "false",
+ document_base_url : "<%= sDocBase %>",
+ extended_valid_elements :
+ "style[type],a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],font[face|size|color],hr[class|width|size|noshade]"
});
-
+
var status = true;
function toggleEditor()
- {
- if(status)
- {
- tinyMCE.execCommand("mceRemoveControl", false, "elm1");
- status = false;
- }
- else
- {
- tinyMCE.execCommand("mceAddControl", false, "elm1");
- status = true;
- }
- }
+ {
+ if(status)
+ {
+ tinyMCE.execCommand("mceRemoveControl", false, "elm1");
+ status = false;
+ }
+ else
+ {
+ tinyMCE.execCommand("mceAddControl", false, "elm1");
+ status = true;
+ }
+ }
</script>
<!-- /tinyMCE -->
@@ -65,108 +66,110 @@
</portlet:actionURL>">
<table width="100%">
- <th><h3 class="sectionTitle">${n:i18n("TITLE_EDIT")}</h3></th>
- <tr>
- <td height="10"></td>
- </tr>
- <tr>
- <td>
+<th><h3 class="sectionTitle">${n:i18n("TITLE_EDIT")}</h3></th>
+<tr>
+ <td height="10"></td>
+</tr>
+<tr>
+ <td>
+<tr>
+ <td>
+ <table>
<tr>
+ <td>${n:i18n("CMS_EDITING")}:
+ </td>
+ <td><%= sCurrPath %>
+ </td>
+ </tr>
+ <tr>
<td>
- <table>
- <tr>
- <td>${n:i18n("CMS_EDITING")}:
- </td>
- <td><%= sCurrPath %>
- </td>
- </tr>
- <tr>
- <td>
- ${n:i18n("CMS_DESCRIPTION")}:
- </td>
- <td><input type="text"
- size="40"
- maxlength="80"
- name="description"
- value="<%= sDescription %>"
- class="portlet-form-input-field"/>
- </td>
- </tr>
- <tr>
- <td>
- ${n:i18n("CMS_TITLE")}:
- </td>
- <td><input type="text" size="40"
- maxlength="80"
- name="title"
- value="<%= sTitle %>"
- class="portlet-form-input-field"/>
- </td>
- </tr>
- <tr>
- <td>
- ${n:i18n("CMS_LANGUAGE")}:
- </td>
- <td><%= new Locale(sLanguage).getDisplayLanguage() %>
- </td>
- </tr>
- <tr>
- <td>
- ${n:i18n("CMS_LIVE")}:
- </td>
- <td><input type="checkbox" name="makelive" checked
- class="portlet-form-input-field"/>
- </td>
- </tr>
- <tr>
- <td>
- ${n:i18n("CMS_VERSION")}:
- </td>
- <td><%= sVersion %>
- </td>
- </tr>
- <tr>
- <td class="portlet-section-header" valign="bottom">
- ${n:i18n("CMS_WYSIWYG")}:
- </td>
- <td>
- <input type="checkbox" name="wysiwyg" class="portlet-form-input-field" checked onclick="javascript:toggleEditor();"/>
- </td>
- </tr>
- </table>
+ ${n:i18n("CMS_DESCRIPTION")}:
</td>
+ <td><input type="text"
+ size="40"
+ maxlength="80"
+ name="description"
+ value="<%= sDescription %>"
+ class="portlet-form-input-field"/>
+ </td>
</tr>
<tr>
- <td height="10"></td>
+ <td>
+ ${n:i18n("CMS_TITLE")}:
+ </td>
+ <td><input type="text" size="40"
+ maxlength="80"
+ name="title"
+ value="<%= sTitle %>"
+ class="portlet-form-input-field"/>
+ </td>
</tr>
<tr>
- <td class="portlet-section-alternate">
- <img src="<%= renderRequest.getContextPath() + CMSAdminConstants.DEFAULT_IMAGES_PATH%>/info.gif"
- border="0"
- alt="Info"> Links to resources within this portal should be absolute. For example: A link to an
- image
- located in default/images/back.gif
- should be typed in exactly as shown here.
- Do not prefix a slash (/) to the path of the resource. You can verify the link is correct by clicking
- on
- the
- preview button in the editor.
+ <td>
+ ${n:i18n("CMS_LANGUAGE")}:
</td>
+ <td><%= new Locale(sLanguage).getDisplayLanguage() %>
+ </td>
</tr>
<tr>
- <td height="10"></td>
+ <td>
+ ${n:i18n("CMS_LIVE")}:
+ </td>
+ <td><input type="checkbox" name="makelive" checked
+ class="portlet-form-input-field"/>
+ </td>
</tr>
<tr>
- <td align="center">
- <textarea id="elm1" name="elm1" rows="20" cols="80" style="width: 100%" class="textarea">
- <%= sContent %>
- </textarea>
- <br>
- <input type="submit" name="save" value="${n:i18n("CMS_CREATE")}" class="portlet-form-button"/>
- <input type="reset" name="reset" value="Reset" class="portlet-form-button"/>
- <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}" name="cancel" onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_VIEWFILE %>"/><portlet:param name="path" value="<%= sCurrPath %>"/></portlet:renderURL>'">
+ <td>
+ ${n:i18n("CMS_VERSION")}:
</td>
+ <td><%= sVersion %>
+ </td>
</tr>
+ <tr>
+ <td class="portlet-section-header" valign="bottom">
+ ${n:i18n("CMS_WYSIWYG")}:
+ </td>
+ <td>
+ <input type="checkbox" name="wysiwyg" class="portlet-form-input-field" checked
+ onclick="javascript:toggleEditor();"/>
+ </td>
+ </tr>
+ </table>
+ </td>
+</tr>
+<tr>
+ <td height="10"></td>
+</tr>
+<tr>
+ <td class="portlet-section-alternate">
+ <img src="<%= renderRequest.getContextPath() + CMSAdminConstants.DEFAULT_IMAGES_PATH%>/info.gif"
+ border="0"
+ alt="Info"> Links to resources within this portal should be absolute. For example: A link to an
+ image
+ located in default/images/back.gif
+ should be typed in exactly as shown here.
+ Do not prefix a slash (/) to the path of the resource. You can verify the link is correct by clicking
+ on
+ the
+ preview button in the editor.
+ </td>
+</tr>
+<tr>
+ <td height="10"></td>
+</tr>
+<tr>
+ <td align="center">
+ <textarea id="elm1" name="elm1" rows="20" cols="80" style="width: 100%" class="textarea">
+ <%= sContent %>
+ </textarea>
+ <br>
+ <input type="submit" name="save" value="${n:i18n("CMS_CREATE")}" class="portlet-form-button"/>
+ <input type="reset" name="reset" value="Reset" class="portlet-form-button"/>
+ <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}" name="cancel"
+ onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_VIEWFILE %>"/><portlet:param name="path" value="<%= sCurrPath %>"/></portlet:renderURL>'">
+ </td>
+</tr>
</table>
</form>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/edit.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/editbinary.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/editbinary.jsp 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/editbinary.jsp 2007-10-28 01:09:21 UTC (rev 8785)
@@ -8,60 +8,63 @@
<link rel="stylesheet" type="text/css" href="/portal-admin/style.css" media="screen"/>
<div class="admin-ui">
<div class=" cms-tab-container">
-<%
- String sCurrPath = (String)request.getAttribute("currpath");
- String sLanguage = (String)request.getAttribute("language");
-%>
+ <%
+ String sCurrPath = (String)request.getAttribute("currpath");
+ String sLanguage = (String)request.getAttribute("language");
+ %>
-<form name="pickform" method="post" enctype="multipart/form-data" action="<portlet:actionURL>
+ <form name="pickform" method="post" enctype="multipart/form-data" action="<portlet:actionURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_EDIT_BINARY %>"/>
</portlet:actionURL>">
- <input type="hidden" name="destination" value="<%= sCurrPath %>">
- <input type="hidden" name="language" value="<%= sLanguage %>">
- <table width="100%">
- <th colspan="2"><h3 class="sectionTitle">${n:i18n("TITLE_UPLOAD")}</h3></th>
- <tr>
- <td align="left">
- <table>
- <tr>
- <td valign="top" width="150">
- ${n:i18n("CMS_EDITING")}:
- </td>
- <td valign="top"><%= sCurrPath %>
- </td>
- </tr>
- <tr>
- <td valign="top">
- ${n:i18n("CMS_DESCRIPTION")}:
- </td>
- <td valign="top"><input type="text" size="40" maxlength="80" name="description" value=""
- class="portlet-form-input-field"/></td>
- </tr>
- <tr>
- <td valign="top">
- ${n:i18n("CMS_TITLE")}:
- </td>
- <td valign="top"><input type="text" size="40" maxlength="80" name="title" value=""
- class="portlet-form-input-field"/></td>
- </tr>
- <tr>
- <td valign="top">${n:i18n("CMS_LIVE")}:</td>
- <td valign="top"><input type="checkbox" name="makelive" checked
- class="portlet-form-input-field"/></td>
- </tr>
- <tr>
- <td colspan="2">
- <input type="file" size="32" name="response" value="" class="portlet-form-input-field"/>
- <br>
- <input type="submit" name="submit" value="${n:i18n("CMS_UPLOAD")}" class="portlet-form-button"/>
- <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}" name="cancel" onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sCurrPath %>"/></portlet:renderURL>'">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
-</form>
+ <input type="hidden" name="destination" value="<%= sCurrPath %>">
+ <input type="hidden" name="language" value="<%= sLanguage %>">
+ <table width="100%">
+ <th colspan="2"><h3 class="sectionTitle">${n:i18n("TITLE_UPLOAD")}</h3></th>
+ <tr>
+ <td align="left">
+ <table>
+ <tr>
+ <td valign="top" width="150">
+ ${n:i18n("CMS_EDITING")}:
+ </td>
+ <td valign="top"><%= sCurrPath %>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ ${n:i18n("CMS_DESCRIPTION")}:
+ </td>
+ <td valign="top"><input type="text" size="40" maxlength="80" name="description" value=""
+ class="portlet-form-input-field"/></td>
+ </tr>
+ <tr>
+ <td valign="top">
+ ${n:i18n("CMS_TITLE")}:
+ </td>
+ <td valign="top"><input type="text" size="40" maxlength="80" name="title" value=""
+ class="portlet-form-input-field"/></td>
+ </tr>
+ <tr>
+ <td valign="top">${n:i18n("CMS_LIVE")}:</td>
+ <td valign="top"><input type="checkbox" name="makelive" checked
+ class="portlet-form-input-field"/></td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <input type="file" size="32" name="response" value="" class="portlet-form-input-field"/>
+ <br>
+ <input type="submit" name="submit" value="${n:i18n("CMS_UPLOAD")}"
+ class="portlet-form-button"/>
+ <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}"
+ name="cancel"
+ onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sCurrPath %>"/></portlet:renderURL>'">
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </form>
-</div>
+ </div>
</div>
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/editbinary.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/exportarchive.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/exportarchive.jsp 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/exportarchive.jsp 2007-10-28 01:09:21 UTC (rev 8785)
@@ -1,4 +1,3 @@
-<%@ page import="java.util.Locale" %>
<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
@@ -13,58 +12,60 @@
%>
<div class="admin-ui">
<div class=" cms-tab-container">
-<form name="pickform" method="post" action="<portlet:actionURL>
+ <form name="pickform" method="post" action="<portlet:actionURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_EXPORTARCHIVE %>"/>
</portlet:actionURL>">
- <input type="hidden" name="destination" value="<%= sCurrPath %>">
- <table width="100%">
- <th colspan="2"><h3 class="sectionTitle">${n:i18n("CMS_EXPORTARCHIVE")}</h3></th>
- <tr>
- <td valign="top" width="250" class="portlet-section-alternate">
- <%@ include file="folderlist.jsp" %>
- </td>
- <td align="left">
- <table>
- <tr>
- <td valign="bottom">
- ${n:i18n("CMS_EXPORTARCHIVE")}:
- </td>
- <td>
- <input DISABLED type="text" size="40" name="showdestination" value="<%= sCurrPath %>"
- class="portlet-form-input-field"/></td>
- </tr>
- <tr>
- <td valign="bottom">
- ${n:i18n("CMS_LANGUAGE")}:
- </td>
- <td><select name="language" class="portlet-form-input-field">
- <option selected
- value="<%= Locale.getDefault().getLanguage() %>"><%= Locale.getDefault().getDisplayLanguage() %>
- </option>
- <%
- for (int i = 0; i < langs.length; i++)
- {
- %>
- <option value="<%= langs[i] %>"><%= new Locale(langs[i]).getDisplayLanguage() %>
- </option>
- <%
- }
- %>
- </select>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <br><br>
- <input type="submit" name="submit" value="${n:i18n("CMS_EXPORTARCHIVE")}"
- class="portlet-form-button"/>
- <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}" name="cancel" onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sCurrPath %>"/></portlet:renderURL>'">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
-</form>
-</div>
+ <input type="hidden" name="destination" value="<%= sCurrPath %>">
+ <table width="100%">
+ <th colspan="2"><h3 class="sectionTitle">${n:i18n("CMS_EXPORTARCHIVE")}</h3></th>
+ <tr>
+ <td valign="top" width="250" class="portlet-section-alternate">
+ <%@ include file="folderlist.jsp" %>
+ </td>
+ <td align="left">
+ <table>
+ <tr>
+ <td valign="bottom">
+ ${n:i18n("CMS_EXPORTARCHIVE")}:
+ </td>
+ <td>
+ <input DISABLED type="text" size="40" name="showdestination" value="<%= sCurrPath %>"
+ class="portlet-form-input-field"/></td>
+ </tr>
+ <tr>
+ <td valign="bottom">
+ ${n:i18n("CMS_LANGUAGE")}:
+ </td>
+ <td><select name="language" class="portlet-form-input-field">
+ <option selected
+ value="<%= Locale.getDefault().getLanguage() %>"><%= Locale.getDefault().getDisplayLanguage() %>
+ </option>
+ <%
+ for (int i = 0; i < langs.length; i++)
+ {
+ %>
+ <option value="<%= langs[i] %>"><%= new Locale(langs[i]).getDisplayLanguage() %>
+ </option>
+ <%
+ }
+ %>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <br><br>
+ <input type="submit" name="submit" value="${n:i18n("CMS_EXPORTARCHIVE")}"
+ class="portlet-form-button"/>
+ <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}"
+ name="cancel"
+ onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sCurrPath %>"/></portlet:renderURL>'">
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
</div>
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/exportarchive.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/exportarchive_pickup.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/exportarchive_pickup.jsp 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/exportarchive_pickup.jsp 2007-10-28 01:09:21 UTC (rev 8785)
@@ -8,34 +8,39 @@
<link rel="stylesheet" type="text/css" href="/portal-admin/style.css" media="screen"/>
<div class="admin-ui">
<div class=" cms-tab-container">
-<%
- String sCurrPath = (String) request.getAttribute("currpath");
-%>
+ <%
+ String sCurrPath = (String)request.getAttribute("currpath");
+ %>
-<table width="100%">
- <th ><h3 class="sectionTitle">${n:i18n("CMS_EXPORTARCHIVE")}</h3></th>
- <tr>
- <td align="left">
- <table width="100%">
- <tr>
- <td align="center">
- Your export of <b><%= sCurrPath %></b> is ready for download.
- </td>
- </tr>
- <tr><td height="10"> </td></tr>
- <tr>
- <td align="center">
- <a href="<%= request.getContextPath() %>/cmsexport?og" target="_blank"><img
- src="<%= renderRequest.getContextPath() + CMSAdminConstants.DEFAULT_IMAGES_PATH%>/export_pickup.gif"
- alt="${n:i18n("CMS_DELETE")}" border="0"></a><br/>
- <a href="<%= request.getContextPath() %>/cmsexport?og" target="_blank">Click to Download</a>
- <br/>
- <input class="portlet-form-button" type="button" value="${n:i18n("CMS_BACKTOBROWSER")}" name="cancel" onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sCurrPath %>"/></portlet:renderURL>'">
- </td>
- </tr>
- </table>
- </td>
- </tr>
-</table>
+ <table width="100%">
+ <th><h3 class="sectionTitle">${n:i18n("CMS_EXPORTARCHIVE")}</h3></th>
+ <tr>
+ <td align="left">
+ <table width="100%">
+ <tr>
+ <td align="center">
+ Your export of <b><%= sCurrPath %>
+ </b> is ready for download.
+ </td>
+ </tr>
+ <tr>
+ <td height="10"> </td>
+ </tr>
+ <tr>
+ <td align="center">
+ <a href="<%= request.getContextPath() %>/cmsexport?og" target="_blank"><img
+ src="<%= renderRequest.getContextPath() + CMSAdminConstants.DEFAULT_IMAGES_PATH%>/export_pickup.gif"
+ alt="${n:i18n("CMS_DELETE")}" border="0"></a><br/>
+ <a href="<%= request.getContextPath() %>/cmsexport?og" target="_blank">Click to Download</a>
+ <br/>
+ <input class="portlet-form-button" type="button" value="${n:i18n("CMS_BACKTOBROWSER")}"
+ name="cancel"
+ onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sCurrPath %>"/></portlet:renderURL>'">
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </div>
</div>
-</div>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/exportarchive_pickup.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/exportarchive_pickup_error.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/exportarchive_pickup_error.jsp 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/exportarchive_pickup_error.jsp 2007-10-28 01:09:21 UTC (rev 8785)
@@ -8,24 +8,27 @@
<link rel="stylesheet" type="text/css" href="/portal-admin/style.css" media="screen"/>
<div class="admin-ui">
<div class=" cms-tab-container">
-<%
- String sCurrPath = (String)request.getAttribute("currpath");
-%>
+ <%
+ String sCurrPath = (String)request.getAttribute("currpath");
+ %>
-<table width="100%">
- <th ><h3 class="sectionTitle">${n:i18n("CMS_EXPORTARCHIVE")}</h3></th>
- <tr>
- <td align="left">
- <table width="100%">
- <tr>
- <td align="center"><font color="red">ERROR processing export request!</font></td>
- </tr>
- <tr>
- <td align="center"><input class="portlet-form-button" type="button" value="${n:i18n("CMS_BACKTOBROWSER")}" name="cancel" onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sCurrPath %>"/></portlet:renderURL>'"></td>
- </tr>
- </table>
- </td>
- </tr>
-</table>
-</div>
+ <table width="100%">
+ <th><h3 class="sectionTitle">${n:i18n("CMS_EXPORTARCHIVE")}</h3></th>
+ <tr>
+ <td align="left">
+ <table width="100%">
+ <tr>
+ <td align="center"><font color="red">ERROR processing export request!</font></td>
+ </tr>
+ <tr>
+ <td align="center"><input class="portlet-form-button" type="button"
+ value="${n:i18n("CMS_BACKTOBROWSER")}" name="cancel"
+ onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sCurrPath %>"/></portlet:renderURL>'">
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </div>
</div>
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/exportarchive_pickup_error.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/folderlist.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/folderlist.jsp 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/folderlist.jsp 2007-10-28 01:09:21 UTC (rev 8785)
@@ -2,6 +2,7 @@
<%@ page import="org.jboss.portal.cms.util.NodeUtil" %>
<%@ page import="org.jboss.portal.core.cms.ui.admin.CMSAdminConstants" %>
<%@ page import="java.util.List" %>
+<%@ page import="java.util.Locale" %>
<%@ page import="java.util.StringTokenizer" %>
<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
@@ -15,8 +16,8 @@
<script language="JavaScript" type="text/javascript">
function fillform(val)
{
- this.document.pickform.destination.value = val;
- this.document.pickform.showdestination.value = val;
+ this.document.pickform.destination.value = val;
+ this.document.pickform.showdestination.value = val;
}
</script>
@@ -100,7 +101,7 @@
</portlet:renderURL>
"><img src="<%= request.getContextPath() + CMSAdminConstants.DEFAULT_IMAGES_PATH %>/plus.gif" border="0"
alt="Expand"/></a> <a href="javascript:fillform('<%= folder.getBasePath() %>')"><%=
- folder.getBasePath().substring(folder.getBasePath().lastIndexOf("/") + 1, folder.getBasePath().length()) %></a>
+folder.getBasePath().substring(folder.getBasePath().lastIndexOf("/") + 1, folder.getBasePath().length()) %></a>
<br>
<%
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/folderlist.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/help.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/main.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/main.jsp 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/main.jsp 2007-10-28 01:09:21 UTC (rev 8785)
@@ -25,7 +25,7 @@
<div class="admin-ui">
<div class=" cms-tab-container">
<h3 class="sectionTitle">
-${n:i18n("CMS_MANAGE")}
+ ${n:i18n("CMS_MANAGE")}
</h3>
<!-- Currently browsing -->
@@ -36,94 +36,98 @@
</portlet:renderURL>">Home</a></li>
-<%
- StringTokenizer parser = new StringTokenizer(sCurrPath, "/");
- String sPathBuilder = "";
- while (parser.hasMoreTokens())
- {
- String sPathChunk = parser.nextToken();
- sPathBuilder += "/" + sPathChunk;
- if (parser.hasMoreTokens())
+ <%
+ StringTokenizer parser = new StringTokenizer(sCurrPath, "/");
+ String sPathBuilder = "";
+ while (parser.hasMoreTokens())
{
-%>
+ String sPathChunk = parser.nextToken();
+ sPathBuilder += "/" + sPathChunk;
+ if (parser.hasMoreTokens())
+ {
+ %>
<li class="pathSeperator"><img src="/portal-admin/img/pathSeparator.png" alt=">"></li>
- <li class="pathItem"><a href="
+ <li class="pathItem"><a href="
<portlet:renderURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/>
<portlet:param name="path" value="<%= sPathBuilder %>"/>
</portlet:renderURL>
"><%= sPathChunk %>
-</a>
- </li>
-<%
-}
-else
-{
-%>
-<li class="pathSeperator"><img src="/portal-admin/img/pathSeparator.png" alt=">"></li>
- <li class="selected"><%= sPathChunk %></li>
-<%
+ </a>
+ </li>
+ <%
+ }
+ else
+ {
+ %>
+ <li class="pathSeperator"><img src="/portal-admin/img/pathSeparator.png" alt=">"></li>
+ <li class="selected"><%= sPathChunk %>
+ </li>
+ <%
+ }
}
- }
-%>
+ %>
</ul>
<br/>
<!-- folder-level action dropdown -->
<div class="menu-container">
<div class="menu">
-<select onchange="window.open(this.options[this.selectedIndex].value,'_top')">
- <option value="">Select Action...</option>
- <option value="<portlet:renderURL>
+ <select onchange="window.open(this.options[this.selectedIndex].value,'_top')">
+ <option value="">Select Action...</option>
+ <option value="<portlet:renderURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_CONFIRM_CREATE_COLLECTION %>"/>
<portlet:param name="path" value="<%= sCurrPath %>"/>
</portlet:renderURL>">${n:i18n("CMS_CREATEFOLDER")}</option>
- <option value="<portlet:renderURL>
+ <option value="<portlet:renderURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_CREATENEWTEXT %>"/>
<portlet:param name="path" value="<%= sCurrPath %>"/>
</portlet:renderURL>">${n:i18n("CMS_CREATEFILE")}</option>
- <option value="<portlet:renderURL>
+ <option value="<portlet:renderURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_UPLOADCONFIRM %>"/>
<portlet:param name="path" value="<%= sCurrPath %>"/>
</portlet:renderURL>">${n:i18n("TITLE_UPLOAD")}</option>
- <option value="<portlet:renderURL>
+ <option value="<portlet:renderURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_UPLOADARCHIVECONFIRM %>"/>
<portlet:param name="path" value="<%= sCurrPath %>"/>
</portlet:renderURL>">${n:i18n("CMS_UPLOADARCHIVE")}</option>
- <option value="<portlet:renderURL>
+ <option value="<portlet:renderURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_EXPORTARCHIVE %>"/>
<portlet:param name="path" value="<%= sCurrPath %>"/>
</portlet:renderURL>">${n:i18n("CMS_EXPORTARCHIVE")}</option>
- <option value="<portlet:renderURL>
+ <option value="<portlet:renderURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_CONFIRMSECURE %>"/>
<portlet:param name="path" value="<%= sCurrPath %>"/>
<portlet:param name="returnOp" value="<%= CMSAdminConstants.OP_MAIN %>"/>
</portlet:renderURL>">${n:i18n("CMS_SECURE")}</option>
- <%if(manageWorkflowAccessible.booleanValue()){%>
- <option value="<portlet:renderURL>
+ <%
+ if (manageWorkflowAccessible.booleanValue())
+ {
+ %>
+ <option value="<portlet:renderURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_VIEWPENDING %>"/>
<portlet:param name="path" value="<%= sCurrPath %>"/>
</portlet:renderURL>">${n:i18n("CMS_APPROVAL")}</option>
- <%}%>
- <%
- if (!"/".equals(sCurrPath))
- {
- %>
- <option value="<portlet:renderURL>
+ <%}%>
+ <%
+ if (!"/".equals(sCurrPath))
+ {
+ %>
+ <option value="<portlet:renderURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_CONFIRMCOPY %>"/>
<portlet:param name="path" value="<%= sCurrPath %>"/>
<portlet:param name="type" value="fo"/>
</portlet:renderURL>">${n:i18n("CMS_COPY")}</option>
- <option value="<portlet:renderURL>
+ <option value="<portlet:renderURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_CONFIRMMOVE %>"/>
<portlet:param name="path" value="<%= sCurrPath %>"/>
<portlet:param name="type" value="fo"/>
</portlet:renderURL>">${n:i18n("CMS_MOVE")}</option>
- <option value="<portlet:renderURL>
+ <option value="<portlet:renderURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_CONFIRMDELETE %>"/>
<portlet:param name="path" value="<%= sCurrPath %>"/>
</portlet:renderURL>">${n:i18n("CMS_DELETE")}</option>
- <% } %>
-</select>
+ <% } %>
+ </select>
</div>
@@ -134,16 +138,17 @@
<portlet:param name="op" value="<%= CMSAdminConstants.OP_DOSEARCH %>"/>
</portlet:actionURL>">
- <input type="text"
- size="15"
- maxlength="80"
- name="search"
- class="portlet-form-input-field"/>
- <input type="submit" name="search" value="${n:i18n("CMS_SEARCH")}" class="portlet-form-button"/>
+ <input type="text"
+ size="15"
+ maxlength="80"
+ name="search"
+ class="portlet-form-input-field"/>
+ <input type="submit" name="search" value="${n:i18n("CMS_SEARCH")}" class="portlet-form-button"/>
</form>
</div>
<br style="clear:both"/>
+
<div class="file-table-container">
<%
@@ -278,14 +283,16 @@
</td>
</tr>
<%
- }
- }else{%>
+ }
+}
+else
+{%>
- <tr>
- <td>
- <p>This folder is empty.</p>
- </td>
- </tr>
+<tr>
+ <td>
+ <p>This folder is empty.</p>
+ </td>
+</tr>
<%
}
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/main.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/pending_items.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/pending_items.jsp 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/pending_items.jsp 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,7 +22,7 @@
<h3 class="sectionTitle">
-${n:i18n("CMS_MAIN_USE")}
+ ${n:i18n("CMS_MAIN_USE")}
</h3>
@@ -34,52 +34,57 @@
</portlet:renderURL>">Home</a></li>
-<%
- StringTokenizer parser = new StringTokenizer(sCurrPath, "/");
- String sPathBuilder = "";
- while (parser.hasMoreTokens())
- {
- String sPathChunk = parser.nextToken();
- sPathBuilder += "/" + sPathChunk;
- if (parser.hasMoreTokens())
+ <%
+ StringTokenizer parser = new StringTokenizer(sCurrPath, "/");
+ String sPathBuilder = "";
+ while (parser.hasMoreTokens())
{
-%>
+ String sPathChunk = parser.nextToken();
+ sPathBuilder += "/" + sPathChunk;
+ if (parser.hasMoreTokens())
+ {
+ %>
<li class="pathSeperator"><img src="/portal-admin/img/pathSeparator.png" alt=">"></li>
- <li class="pathItem"><a href="
+ <li class="pathItem"><a href="
<portlet:renderURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/>
<portlet:param name="path" value="<%= sPathBuilder %>"/>
</portlet:renderURL>
"><%= sPathChunk %>
-</a>
- </li>
-<%
-}
-else
-{
-%>
-<li class="pathSeperator"><img src="/portal-admin/img/pathSeparator.png" alt=">"></li>
- <li class="selected"><%= sPathChunk %></li>
-<%
+ </a>
+ </li>
+ <%
+ }
+ else
+ {
+ %>
+ <li class="pathSeperator"><img src="/portal-admin/img/pathSeparator.png" alt=">"></li>
+ <li class="selected"><%= sPathChunk %>
+ </li>
+ <%
+ }
}
- }
-%>
+ %>
</ul>
<br/>
<!-- show any errors here -->
-<%if(exception!=null && exception.trim().length()>0){%>
+<%
+ if (exception != null && exception.trim().length() > 0)
+ {
+%>
<table width="100%">
-<th colspan="2"><h3 class="sectionTitle">Error:</h3></th>
-<tr colspan="2" align="center">
- <td colspan="2">
- <font color="red">
- <%=exception%>
- </font>
- </td>
-</tr>
+ <th colspan="2"><h3 class="sectionTitle">Error:</h3></th>
+ <tr colspan="2" align="center">
+ <td colspan="2">
+ <font color="red">
+ <%=exception%>
+ </font>
+ </td>
+ </tr>
</table>
<br/><br/>
-<input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}" name="cancel" onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="/"/></portlet:renderURL>'">
+<input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}" name="cancel"
+ onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="/"/></portlet:renderURL>'">
<%}%>
<!-- the table listing the pending queue items -->
@@ -98,7 +103,7 @@
for (Iterator itr = pendingQueue.iterator(); itr.hasNext();)
{
%>
- <%
+ <%
org.jboss.portal.cms.workflow.Content cour = (org.jboss.portal.cms.workflow.Content)itr.next();
String linkPath = cour.getPath().substring(0, cour.getPath().lastIndexOf("/"));
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/pending_items.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/searchResults.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/searchResults.jsp 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/searchResults.jsp 2007-10-28 01:09:21 UTC (rev 8785)
@@ -15,7 +15,7 @@
<div class="admin-ui">
<div class=" cms-tab-container">
<h3 class="sectionTitle">
-${n:i18n("CMS_MANAGE")}
+ ${n:i18n("CMS_MANAGE")}
</h3>
<!-- Currently browsing -->
<ul class="objectpath">
@@ -27,22 +27,21 @@
<br/>
<div class="search-container">
-<form method="post" action="<portlet:actionURL>
+ <form method="post" action="<portlet:actionURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_DOSEARCH %>"/>
</portlet:actionURL>">
- <input type="text"
- size="15"
- maxlength="80"
- name="search"
- class="portlet-form-input-field"
- value="<%= request.getAttribute("textQuery") %>"
- />
- <input type="submit" name="search" value="${n:i18n("CMS_SEARCH")}" class="portlet-form-button"/>
-</form>
+ <input type="text"
+ size="15"
+ maxlength="80"
+ name="search"
+ class="portlet-form-input-field"
+ value="<%= request.getAttribute("textQuery") %>"
+ />
+ <input type="submit" name="search" value="${n:i18n("CMS_SEARCH")}" class="portlet-form-button"/>
+ </form>
</div>
-
<%
List files = (List)request.getAttribute("files");
String createDate = "";
@@ -52,74 +51,75 @@
{
%>
<table>
-<%
+ <%
for (int i = 0; i < files.size(); i++)
{
File file = (File)files.get(i);
-%>
-<tr onmouseover="this.className='portlet-section-alternate';" onmouseout="this.className='portlet-section-body';">
- <td><img src="<%= renderRequest.getContextPath() + CMSAdminConstants.DEFAULT_IMAGES_PATH%>/file.gif"
- alt="${n:i18n("CMS_FILE")}"
- border="0"> <a href="<portlet:renderURL>
+ %>
+ <tr onmouseover="this.className='portlet-section-alternate';" onmouseout="this.className='portlet-section-body';">
+ <td><img src="<%= renderRequest.getContextPath() + CMSAdminConstants.DEFAULT_IMAGES_PATH%>/file.gif"
+ alt="${n:i18n("CMS_FILE")}"
+ border="0"> <a href="<portlet:renderURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_VIEWFILE %>"/>
<portlet:param name="path"
value="<%= file.getBasePath() %>"/>
</portlet:renderURL>"><%=
- file.getBasePath().substring(file.getBasePath().lastIndexOf("/") + 1, file.getBasePath().length()) %>
- </a>
- </td>
- <td>
- <form method="POST" style="padding:0;margin:0;" action="<portlet:actionURL>
+ file.getBasePath().substring(file.getBasePath().lastIndexOf("/") + 1, file.getBasePath().length()) %>
+ </a>
+ </td>
+ <td>
+ <form method="POST" style="padding:0;margin:0;" action="<portlet:actionURL>
<portlet:param name="path" value="<%= file.getBasePath() %>"/>
<portlet:param name="type" value="fi"/>
<portlet:param name="dispatch" value="1"/>
</portlet:actionURL>">
- <select name="op">
- <option value="<%= CMSAdminConstants.OP_VIEWFILE %>">${n:i18n("CMS_VIEW")}</option>
- <option value="<%= CMSAdminConstants.OP_CONFIRMCOPY %>">${n:i18n("CMS_COPY")}</option>
- <option value="<%= CMSAdminConstants.OP_CONFIRMMOVE %>">${n:i18n("CMS_MOVE")}</option>
- <option value="<%= CMSAdminConstants.OP_CONFIRMDELETE %>">${n:i18n("CMS_DELETE")}</option>
- </select>
- <input type="submit" value="Go" name="Go" class="portlet-form-button"/>
- </form>
- </td>
- <td>
- <%
- if (file.getCreationDate() != null)
- {
- Format formatter;
- formatter = new SimpleDateFormat("MM/dd/yy HH:mm");
- createDate = formatter.format(file.getCreationDate());
- }
- %>
- <%= createDate %>
- </td>
- <td>
- <%
- if (file.getLastModified() != null)
- {
- Format formatter;
- formatter = new SimpleDateFormat("MM/dd/yy HH:mm");
- modifiedDate = formatter.format(file.getLastModified());
- }
- %>
- <%= modifiedDate %>
- </td>
-</tr>
-<%
+ <select name="op">
+ <option value="<%= CMSAdminConstants.OP_VIEWFILE %>">${n:i18n("CMS_VIEW")}</option>
+ <option value="<%= CMSAdminConstants.OP_CONFIRMCOPY %>">${n:i18n("CMS_COPY")}</option>
+ <option value="<%= CMSAdminConstants.OP_CONFIRMMOVE %>">${n:i18n("CMS_MOVE")}</option>
+ <option value="<%= CMSAdminConstants.OP_CONFIRMDELETE %>">${n:i18n("CMS_DELETE")}</option>
+ </select>
+ <input type="submit" value="Go" name="Go" class="portlet-form-button"/>
+ </form>
+ </td>
+ <td>
+ <%
+ if (file.getCreationDate() != null)
+ {
+ Format formatter;
+ formatter = new SimpleDateFormat("MM/dd/yy HH:mm");
+ createDate = formatter.format(file.getCreationDate());
+ }
+ %>
+ <%= createDate %>
+ </td>
+ <td>
+ <%
+ if (file.getLastModified() != null)
+ {
+ Format formatter;
+ formatter = new SimpleDateFormat("MM/dd/yy HH:mm");
+ modifiedDate = formatter.format(file.getLastModified());
+ }
+ %>
+ <%= modifiedDate %>
+ </td>
+ </tr>
+ <%
}
-%>
+ %>
</table>
<%
+}
+else
+{
+%>
+<h2>${n:i18n("CMS_SEARCHNORESULT")}</h2>
+<%
}
- else
- {
-%>
- <h2>${n:i18n("CMS_SEARCHNORESULT")}</h2>
-<%
- }
%>
-<input class="portlet-form-button" type="button" value="Cancel" name="cancel" onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="/"/></portlet:renderURL>'">
+<input class="portlet-form-button" type="button" value="Cancel" name="cancel"
+ onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="/"/></portlet:renderURL>'">
</div>
</div>
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/searchResults.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/securenode.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/securenode.jsp 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/securenode.jsp 2007-10-28 01:09:21 UTC (rev 8785)
@@ -1,7 +1,5 @@
+<%@ page import="org.jboss.portal.cms.security.AuthorizationManager" %>
<%@ page import="org.jboss.portal.core.cms.ui.admin.CMSAdminConstants" %>
-<%@ page import="org.jboss.portal.identity.Role" %>
-<%@ page import="org.jboss.portal.identity.User" %>
-<%@ page import="org.jboss.portal.cms.security.AuthorizationManager" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="java.util.Set" %>
<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
@@ -10,14 +8,14 @@
<%@ page isELIgnored="false" %>
<portlet:defineObjects/>
- <link rel="stylesheet" type="text/css" href="/portal-admin/style.css" media="screen"/>
+<link rel="stylesheet" type="text/css" href="/portal-admin/style.css" media="screen"/>
<%
String sCurrPath = (String)request.getAttribute("currpath");
Set roleSet = (Set)request.getAttribute("roles");
Set userSet = (Set)request.getAttribute("users");
String sConfirm = (String)request.getAttribute("confirm");
String returnOp = (String)request.getAttribute("returnOp");
-
+
Set readRoleSet = (Set)request.getAttribute("readRoleSet");
Set readUserSet = (Set)request.getAttribute("readUserSet");
Set writeRoleSet = (Set)request.getAttribute("writeRoleSet");
@@ -65,8 +63,9 @@
<tr>
<td>
<select name="secureroles:read" multiple="multiple">
- <option value="<%=AuthorizationManager.Anonymous%>" <%if(readRoleSet.contains(AuthorizationManager.Anonymous)){%>selected<%}%>>
- Anonymous
+ <option value="<%=AuthorizationManager.Anonymous%>"
+ <%if(readRoleSet.contains(AuthorizationManager.Anonymous)){%>selected<%}%>>
+ Anonymous
</option>
<%
Iterator iterator = roleSet.iterator();
@@ -75,7 +74,7 @@
Role role = (Role)iterator.next();
%>
<option value="<%= role.getName() %>" <%if(readRoleSet.contains(role.getName())){%>selected<%}%>>
- <%= role.getDisplayName() %>
+ <%= role.getDisplayName() %>
</option>
<%
}
@@ -98,8 +97,9 @@
{
User user = (User)iteratorUser.next();
%>
- <option value="<%= user.getUserName() %>" <%if(readUserSet.contains(user.getUserName())){%>selected<%}%>>
- <%= user.getUserName() %>
+ <option value="<%= user.getUserName() %>"
+ <%if(readUserSet.contains(user.getUserName())){%>selected<%}%>>
+ <%= user.getUserName() %>
</option>
<%
}
@@ -125,8 +125,9 @@
<tr>
<td>
<select name="secureroles:write" multiple="multiple">
- <option value="<%=AuthorizationManager.Anonymous%>" <%if(writeRoleSet.contains(AuthorizationManager.Anonymous)){%>selected<%}%>>
- Anonymous
+ <option value="<%=AuthorizationManager.Anonymous%>"
+ <%if(writeRoleSet.contains(AuthorizationManager.Anonymous)){%>selected<%}%>>
+ Anonymous
</option>
<%
iterator = roleSet.iterator();
@@ -135,7 +136,7 @@
Role role = (Role)iterator.next();
%>
<option value="<%= role.getName() %>" <%if(writeRoleSet.contains(role.getName())){%>selected<%}%>>
- <%= role.getDisplayName() %>
+ <%= role.getDisplayName() %>
</option>
<%
}
@@ -158,8 +159,9 @@
{
User user = (User)iteratorUser.next();
%>
- <option value="<%= user.getUserName() %>" <%if(writeUserSet.contains(user.getUserName())){%>selected<%}%>>
- <%= user.getUserName() %>
+ <option value="<%= user.getUserName() %>"
+ <%if(writeUserSet.contains(user.getUserName())){%>selected<%}%>>
+ <%= user.getUserName() %>
</option>
<%
}
@@ -185,8 +187,9 @@
<tr>
<td>
<select name="secureroles:manage" multiple="multiple">
- <option value="<%=AuthorizationManager.Anonymous%>" <%if(manageRoleSet.contains(AuthorizationManager.Anonymous)){%>selected<%}%>>
- Anonymous
+ <option value="<%=AuthorizationManager.Anonymous%>"
+ <%if(manageRoleSet.contains(AuthorizationManager.Anonymous)){%>selected<%}%>>
+ Anonymous
</option>
<%
iterator = roleSet.iterator();
@@ -195,7 +198,7 @@
Role role = (Role)iterator.next();
%>
<option value="<%= role.getName() %>" <%if(manageRoleSet.contains(role.getName())){%>selected<%}%>>
- <%= role.getDisplayName() %>
+ <%= role.getDisplayName() %>
</option>
<%
}
@@ -218,8 +221,9 @@
{
User user = (User)iteratorUser.next();
%>
- <option value="<%= user.getUserName() %>" <%if(manageUserSet.contains(user.getUserName())){%>selected<%}%>>
- <%= user.getUserName() %>
+ <option value="<%= user.getUserName() %>"
+ <%if(manageUserSet.contains(user.getUserName())){%>selected<%}%>>
+ <%= user.getUserName() %>
</option>
<%
}
@@ -239,8 +243,9 @@
<tr>
<td align="center" colspan="2"><input type="submit" value="${n:i18n("CMS_SECURE")}" name="submit"
class="portlet-form-button">
- <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}" name="cancel" onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= returnOp %>"/><portlet:param name="path" value="<%= sCurrPath %>"/></portlet:renderURL>'">
- </td>
+ <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}" name="cancel"
+ onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= returnOp %>"/><portlet:param name="path" value="<%= sCurrPath %>"/></portlet:renderURL>'">
+ </td>
</tr>
</table>
</form>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/securenode.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/upload.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/upload.jsp 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/upload.jsp 2007-10-28 01:09:21 UTC (rev 8785)
@@ -1,4 +1,3 @@
-<%@ page import="java.util.Locale" %>
<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
@@ -13,72 +12,75 @@
%>
<div class="admin-ui">
<div class=" cms-tab-container">
-<form name="pickform" method="post" enctype="multipart/form-data" action="<portlet:actionURL>
+ <form name="pickform" method="post" enctype="multipart/form-data" action="<portlet:actionURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_UPLOADCONTENT %>"/>
</portlet:actionURL>">
- <input type="hidden" name="destination" value="<%= sCurrPath %>">
- <table width="100%">
- <th colspan="2"><h3 class="sectionTitle">${n:i18n("TITLE_UPLOAD")}</h3></th>
- <tr>
- <td valign="top" width="250" class="portlet-section-alternate">
- <%@ include file="folderlist.jsp" %>
- </td>
- <td align="left">
- <table>
- <tr>
- <td valign="bottom">
- ${n:i18n("CMS_DESTINATION")}:
- </td>
- <td>
- <input DISABLED type="text" size="40" name="showdestination" value="<%= sCurrPath %>"
- class="portlet-form-input-field"/></td>
- </tr>
- <tr>
- <td valign="bottom">
- ${n:i18n("CMS_DESCRIPTION")}:
- </td>
- <td><input type="text" size="40" maxlength="80" name="description" value=""
- class="portlet-form-input-field"/></td>
- </tr>
- <tr>
- <td valign="bottom">
- ${n:i18n("CMS_TITLE")}:
- </td>
- <td><input type="text" size="40" maxlength="80" name="title" value=""
- class="portlet-form-input-field"/></td>
- </tr>
- <tr>
- <td valign="bottom">
- ${n:i18n("CMS_LANGUAGE")}:
- </td>
- <td><select name="language" class="portlet-form-input-field">
- <option selected
- value="<%= Locale.getDefault().getLanguage() %>"><%= Locale.getDefault().getDisplayLanguage() %>
- </option>
- <%
- for (int i = 0; i < langs.length; i++)
- {
- %>
- <option value="<%= langs[i] %>"><%= new Locale(langs[i]).getDisplayLanguage() %>
- </option>
- <%
- }
- %>
- </select>
- </td>
- </tr>
- <tr>
- <td colspan="2" align="left">
- <input type="file" size="32" name="response" value="" class="portlet-form-input-field"/>
- <br><br>
- <input type="submit" name="submit" value="${n:i18n("CMS_UPLOAD")}" class="portlet-form-button"/>
- <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}" name="cancel" onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sCurrPath %>"/></portlet:renderURL>'">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
-</form>
-</div>
+ <input type="hidden" name="destination" value="<%= sCurrPath %>">
+ <table width="100%">
+ <th colspan="2"><h3 class="sectionTitle">${n:i18n("TITLE_UPLOAD")}</h3></th>
+ <tr>
+ <td valign="top" width="250" class="portlet-section-alternate">
+ <%@ include file="folderlist.jsp" %>
+ </td>
+ <td align="left">
+ <table>
+ <tr>
+ <td valign="bottom">
+ ${n:i18n("CMS_DESTINATION")}:
+ </td>
+ <td>
+ <input DISABLED type="text" size="40" name="showdestination" value="<%= sCurrPath %>"
+ class="portlet-form-input-field"/></td>
+ </tr>
+ <tr>
+ <td valign="bottom">
+ ${n:i18n("CMS_DESCRIPTION")}:
+ </td>
+ <td><input type="text" size="40" maxlength="80" name="description" value=""
+ class="portlet-form-input-field"/></td>
+ </tr>
+ <tr>
+ <td valign="bottom">
+ ${n:i18n("CMS_TITLE")}:
+ </td>
+ <td><input type="text" size="40" maxlength="80" name="title" value=""
+ class="portlet-form-input-field"/></td>
+ </tr>
+ <tr>
+ <td valign="bottom">
+ ${n:i18n("CMS_LANGUAGE")}:
+ </td>
+ <td><select name="language" class="portlet-form-input-field">
+ <option selected
+ value="<%= Locale.getDefault().getLanguage() %>"><%= Locale.getDefault().getDisplayLanguage() %>
+ </option>
+ <%
+ for (int i = 0; i < langs.length; i++)
+ {
+ %>
+ <option value="<%= langs[i] %>"><%= new Locale(langs[i]).getDisplayLanguage() %>
+ </option>
+ <%
+ }
+ %>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" align="left">
+ <input type="file" size="32" name="response" value="" class="portlet-form-input-field"/>
+ <br><br>
+ <input type="submit" name="submit" value="${n:i18n("CMS_UPLOAD")}"
+ class="portlet-form-button"/>
+ <input class="portlet-form-button" type="button" value="${n:i18n("CMS_CANCEL")}"
+ name="cancel"
+ onclick="window.location='<portlet:renderURL><portlet:param name="op" value="<%= CMSAdminConstants.OP_MAIN %>"/><portlet:param name="path" value="<%= sCurrPath %>"/></portlet:renderURL>'">
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
</div>
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/upload.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/uploadarchive.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/uploadarchive.jsp 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/uploadarchive.jsp 2007-10-28 01:09:21 UTC (rev 8785)
@@ -1,4 +1,3 @@
-<%@ page import="java.util.Locale" %>
<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
@@ -9,7 +8,7 @@
<div class="admin-ui">
<div class=" cms-tab-container">
<%
- String sCurrPath = (String) request.getAttribute("currpath");
+ String sCurrPath = (String)request.getAttribute("currpath");
String OP = CMSAdminConstants.OP_UPLOADARCHIVECONFIRM;
String[] langs = Locale.getISOLanguages();
%>
@@ -43,7 +42,8 @@
value="<%= Locale.getDefault().getLanguage() %>"><%= Locale.getDefault().getDisplayLanguage() %>
</option>
<%
- for (int i = 0; i < langs.length; i++) {
+ for (int i = 0; i < langs.length; i++)
+ {
%>
<option value="<%= langs[i] %>"><%= new Locale(langs[i]).getDisplayLanguage() %>
</option>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/uploadarchive.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/viewfile.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/viewfile.jsp 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/viewfile.jsp 2007-10-28 01:09:21 UTC (rev 8785)
@@ -20,19 +20,21 @@
<div class="admin-ui">
<div class=" cms-tab-container">
<%
- String sCurrPath = (String) request.getAttribute("currpath");
- Vector vContents = (Vector) request.getAttribute("contents");
- Collection pendingQueue = (Collection) request.getAttribute("pendingQueue");
+ String sCurrPath = (String)request.getAttribute("currpath");
+ Vector vContents = (Vector)request.getAttribute("contents");
+ Collection pendingQueue = (Collection)request.getAttribute("pendingQueue");
String sType = "";
- if (vContents.size() > 0) {
- List contentList = (List) vContents.elementAt(0);
- if (contentList.size() > 0) {
- Content content = (Content) contentList.get(0);
+ if (vContents.size() > 0)
+ {
+ List contentList = (List)vContents.elementAt(0);
+ if (contentList.size() > 0)
+ {
+ Content content = (Content)contentList.get(0);
sType = content.getMimeType();
}
}
- String sPreviewPath = (String) request.getAttribute("previewpath");
+ String sPreviewPath = (String)request.getAttribute("previewpath");
String createDate = "";
String modifiedDate = "";
@@ -40,7 +42,7 @@
String rowClass = "portlet-section-body";
String exception = request.getParameter("exception");
- Boolean manageWorkflowAccessible = (Boolean) request.getAttribute("manageWorkflowAccessible");
+ Boolean manageWorkflowAccessible = (Boolean)request.getAttribute("manageWorkflowAccessible");
%>
<h3 class="sectionTitle">
@@ -58,10 +60,12 @@
<%
StringTokenizer parser = new StringTokenizer(sCurrPath, "/");
String sPathBuilder = "";
- while (parser.hasMoreTokens()) {
+ while (parser.hasMoreTokens())
+ {
String sPathChunk = parser.nextToken();
sPathBuilder += "/" + sPathChunk;
- if (parser.hasMoreTokens()) {
+ if (parser.hasMoreTokens())
+ {
%>
<li class="pathSeperator"><img src="/portal-admin/img/pathSeparator.png" alt=">"></li>
<li class="pathItem"><a href="
@@ -73,7 +77,9 @@
</a>
</li>
<%
- } else {
+ }
+ else
+ {
%>
<li class="pathSeperator"><img src="/portal-admin/img/pathSeparator.png" alt=">"></li>
<li class="selected"><%= sPathChunk %>
@@ -91,14 +97,17 @@
<select onchange="window.open(this.options[this.selectedIndex].value,'_top')">
<option value="">Select Action...</option>
<%
- if (sType.equals("text/html") || sType.equals("text/plain")) {
+ if (sType.equals("text/html") || sType.equals("text/plain"))
+ {
%>
<option value="<portlet:renderURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_CREATENEWTEXT %>"/>
<portlet:param name="path" value="<%= NodeUtil.getParentPath(sCurrPath) %>"/>
</portlet:renderURL>">${n:i18n("CMS_CREATE")}</option>
<%
- } else {
+ }
+ else
+ {
%>
<option value="<portlet:renderURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_UPLOADCONFIRM %>"/>
@@ -126,7 +135,10 @@
<portlet:param name="path" value="<%= sCurrPath %>"/>
<portlet:param name="returnOp" value="<%= CMSAdminConstants.OP_VIEWFILE %>"/>
</portlet:renderURL>">${n:i18n("CMS_SECURE")}</option>
- <%if (manageWorkflowAccessible.booleanValue()) {%>
+ <%
+ if (manageWorkflowAccessible.booleanValue())
+ {
+ %>
<option value="<portlet:renderURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_VIEWPENDING %>"/>
<portlet:param name="path" value="<%= sCurrPath %>"/>
@@ -140,12 +152,14 @@
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<%
- if (vContents.size() > 0) {
+ if (vContents.size() > 0)
+ {
for (int j = 0; j < vContents.size(); j++) // cycle thru list of content nodes
{
- List contentList = (List) vContents.elementAt(j);
- if (contentList.size() > 0) {
- Content content = (Content) contentList.get(0);
+ List contentList = (List)vContents.elementAt(j);
+ if (contentList.size() > 0)
+ {
+ Content content = (Content)contentList.get(0);
%>
<tr>
<td height="15"></td>
@@ -153,7 +167,8 @@
<tr>
<td colspan="6">
<%
- if (sType.equals("text/html") || sType.equals("text/plain")) {
+ if (sType.equals("text/html") || sType.equals("text/plain"))
+ {
%>
<img src="<%= renderRequest.getContextPath() + CMSAdminConstants.DEFAULT_IMAGES_PATH%>/edit.gif"
alt="${n:i18n("CMS_EDIT")}" border="0"> <a href="<portlet:renderURL>
@@ -163,7 +178,9 @@
</portlet:renderURL>"><%= content.getLocale().getDisplayLanguage() %>
</a>
<%
- } else {
+ }
+ else
+ {
%>
<img src="<%= renderRequest.getContextPath() + CMSAdminConstants.DEFAULT_IMAGES_PATH%>/edit.gif"
alt="${n:i18n("CMS_EDIT")}" border="0"> <a href="<portlet:renderURL>
@@ -188,22 +205,27 @@
<%
for (int i = 0; i < contentList.size(); i++) // cycle thru list of version nodes
{
- Content version = (Content) contentList.get(i);
+ Content version = (Content)contentList.get(i);
- if (version.isWaitingForPublishApproval()) {
+ if (version.isWaitingForPublishApproval())
+ {
continue;
}
- if (i % 2 == 0) {
+ if (i % 2 == 0)
+ {
rowClass = "portlet-section-body";
- } else {
+ }
+ else
+ {
rowClass = "portlet-section-alternate";
}
%>
<tr onmouseover="this.className='portlet-section-selected';" onmouseout="this.className='<%= rowClass %>';"
class="<%= rowClass %>">
<td><%
- if (sType.equals("text/html") || sType.equals("text/plain")) {
+ if (sType.equals("text/html") || sType.equals("text/plain"))
+ {
%>
<img src="<%= renderRequest.getContextPath() + CMSAdminConstants.DEFAULT_IMAGES_PATH%>/edit.gif"
@@ -215,7 +237,9 @@
</portlet:renderURL>"><%= version.getMimeType() %>
</a>
<%
- } else {
+ }
+ else
+ {
%>
<%= version.getMimeType() %>
<%
@@ -225,10 +249,13 @@
<td><%= version.getSize() / 1024 %>kb</td>
<td>
<%
- if (sType.equals("text/html") || sType.equals("text/plain")) {
+ if (sType.equals("text/html") || sType.equals("text/plain"))
+ {
%>
<%= version.getVersionNumber() %>
- <% } else {
+ <% }
+ else
+ {
//save the principal for the preview servlet
String remoteUser = request.getRemoteUser();
request.getSession().setAttribute("remoteUser", remoteUser);
@@ -239,12 +266,15 @@
</a>
<%
}
- if (version.isLive()) {
+ if (version.isLive())
+ {
%>
<img src="<%= renderRequest.getContextPath() + CMSAdminConstants.DEFAULT_IMAGES_PATH%>/actionIcon_IsDefault.gif"
alt="${n:i18n("CMS_LIVEVERSION")}" border="0"/>
<%
- } else {
+ }
+ else
+ {
%>
<a href="<portlet:actionURL>
<portlet:param name="op" value="<%= CMSAdminConstants.OP_MAKELIVE %>"/>
@@ -252,15 +282,17 @@
<portlet:param name="language" value="<%= content.getLocale().getLanguage() %>"/>
<portlet:param name="version" value="<%= version.getVersionNumber() %>"/>
</portlet:actionURL>"
- >
- <img src="<%= renderRequest.getContextPath() + CMSAdminConstants.DEFAULT_IMAGES_PATH%>/actionIcon_MakeDefault.gif"
- alt="${n:i18n("CMS_LIVEVERSION")}" border="0"/>
+ >
+ <img
+ src="<%= renderRequest.getContextPath() + CMSAdminConstants.DEFAULT_IMAGES_PATH%>/actionIcon_MakeDefault.gif"
+ alt="${n:i18n("CMS_LIVEVERSION")}" border="0"/>
</a>
<%}%>
</td>
<td>
<%
- if (version.getCreationDate() != null) {
+ if (version.getCreationDate() != null)
+ {
Format formatter;
formatter = new SimpleDateFormat("MM/dd/yy HH:mm");
createDate = formatter.format(version.getCreationDate());
@@ -270,7 +302,8 @@
</td>
<td>
<%
- if (version.getLastModified() != null) {
+ if (version.getLastModified() != null)
+ {
Format formatter;
formatter = new SimpleDateFormat("MM/dd/yy HH:mm");
modifiedDate = formatter.format(version.getLastModified());
@@ -291,12 +324,16 @@
<!-- the approval queue, content waiting for managers to signoff on -->
<%
- if (pendingQueue != null && !pendingQueue.isEmpty()) {
+ if (pendingQueue != null && !pendingQueue.isEmpty())
+ {
%>
<br/><br/>
<!-- show any errors here -->
-<%if (exception != null && exception.trim().length() > 0) {%>
+<%
+ if (exception != null && exception.trim().length() > 0)
+ {
+%>
<table width="100%">
<th colspan="2"><h3 class="sectionTitle">Error:</h3></th>
<tr colspan="2" align="center">
@@ -320,19 +357,26 @@
<td class="portlet-table-text"><b>${n:i18n("CMS_SIZE")}</b></td>
<td class="portlet-table-text"><b>${n:i18n("CMS_CREATED")}</b></td>
<td class="portlet-table-text"><b>${n:i18n("CMS_CREATED_BY")}</b></td>
- <%if (manageWorkflowAccessible.booleanValue()) {%>
+ <%
+ if (manageWorkflowAccessible.booleanValue())
+ {
+ %>
<td class="portlet-table-text"><b>${n:i18n("CMS_ACTION")}</b></td>
<%}%>
</tr>
<%int i = 0;%>
<%
- for (Iterator itr = pendingQueue.iterator(); itr.hasNext();) {
+ for (Iterator itr = pendingQueue.iterator(); itr.hasNext();)
+ {
%>
<%
- org.jboss.portal.cms.workflow.Content cour = (org.jboss.portal.cms.workflow.Content) itr.next();
- if (i % 2 == 0) {
+ org.jboss.portal.cms.workflow.Content cour = (org.jboss.portal.cms.workflow.Content)itr.next();
+ if (i % 2 == 0)
+ {
rowClass = "portlet-section-body";
- } else {
+ }
+ else
+ {
rowClass = "portlet-section-alternate";
}
i++;
@@ -351,7 +395,10 @@
<!-- User who requested approval -->
<td><%= cour.getUserName() %>
</td>
- <%if (manageWorkflowAccessible.booleanValue()) {%>
+ <%
+ if (manageWorkflowAccessible.booleanValue())
+ {
+ %>
<td>
<a href="<portlet:actionURL>
<portlet:param name="op" value="<%=CMSAdminConstants.OP_APPROVE%>"/>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/viewfile.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/edit.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/editor/main.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/editor/main.jsp 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/editor/main.jsp 2007-10-28 01:09:21 UTC (rev 8785)
@@ -1,12 +1,9 @@
+<%@ page import="org.jboss.portal.cms.model.Content" %>
<%@ page import="org.jboss.portal.cms.model.File" %>
<%@ page import="org.jboss.portal.cms.model.Folder" %>
-<%@ page import="org.jboss.portal.cms.model.Content" %>
<%@ page import="org.jboss.portal.core.cms.ui.admin.CMSAdminConstants" %>
-<%@ page import="java.text.Format" %>
-<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.StringTokenizer" %>
-<%@ page import="javax.portlet.PortletURL" %>
<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
@@ -40,9 +37,9 @@
> <a href="<%= url %>"><%= sPathChunk %>
</a>
<%
- }
- else
- {
+}
+else
+{
%>
> <%= sPathChunk %>
<%
@@ -60,82 +57,82 @@
%>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
-<tr>
- <td class="portlet-section-header">${n:i18n("CMS_NAME")}</td>
-</tr>
+ <tr>
+ <td class="portlet-section-header">${n:i18n("CMS_NAME")}</td>
+ </tr>
-<%
- if (folders.size() > 0)
- {
- for (int i = 0; i < folders.size(); i++)
+ <%
+ if (folders.size() > 0)
{
- Folder folder = (Folder)folders.get(i);
- url.setParameter("path", folder.getBasePath());
-%>
-<tr onmouseover="this.className='portlet-section-alternate';" onmouseout="this.className='portlet-section-body';">
- <td><img
- src="<%= renderRequest.getContextPath() + CMSAdminConstants.DEFAULT_IMAGES_PATH%>/folder.gif"
- alt="${n:i18n("CMS_FOLDER")}"
- border="0"> <a href="<%= url %>"><%=
- folder.getBasePath().substring(folder.getBasePath().lastIndexOf("/") + 1, folder.getBasePath().length()) %>
- </a>
- </td>
-</tr>
-<%
+ for (int i = 0; i < folders.size(); i++)
+ {
+ Folder folder = (Folder)folders.get(i);
+ url.setParameter("path", folder.getBasePath());
+ %>
+ <tr onmouseover="this.className='portlet-section-alternate';" onmouseout="this.className='portlet-section-body';">
+ <td><img
+ src="<%= renderRequest.getContextPath() + CMSAdminConstants.DEFAULT_IMAGES_PATH%>/folder.gif"
+ alt="${n:i18n("CMS_FOLDER")}"
+ border="0"> <a href="<%= url %>"><%=
+ folder.getBasePath().substring(folder.getBasePath().lastIndexOf("/") + 1, folder.getBasePath().length()) %>
+ </a>
+ </td>
+ </tr>
+ <%
+ }
}
- }
- if (files.size() > 0)
- {
- for (int j = 0; j < files.size(); j++)
+ if (files.size() > 0)
{
- File file = (File)files.get(j);
+ for (int j = 0; j < files.size(); j++)
+ {
+ File file = (File)files.get(j);
- PortletURL metaURL = renderResponse.createActionURL();
- metaURL.setParameter("content.action.select", "select");
- metaURL.setParameter("content.uri", file.getBasePath());
- metaURL.setParameter("path", sCurrPath);
+ PortletURL metaURL = renderResponse.createActionURL();
+ metaURL.setParameter("content.action.select", "select");
+ metaURL.setParameter("content.uri", file.getBasePath());
+ metaURL.setParameter("path", sCurrPath);
- if ((uri!=null) && (uri.equals(file.getBasePath())))
- {
- out.println("<tr class=\"portlet-section-selected\">");
+ if ((uri != null) && (uri.equals(file.getBasePath())))
+ {
+ out.println("<tr class=\"portlet-section-selected\">");
+ }
+ else
+ {
+ out.println("<tr onmouseover=\"this.className='portlet-section-alternate';\" onmouseout=\"this.className='portlet-section-body';\">");
+ }
+ %>
+ <tr>
+ <td><img src="<%= renderRequest.getContextPath() + CMSAdminConstants.DEFAULT_IMAGES_PATH%>/file.gif"
+ alt="${n:i18n("CMS_FILE")}"
+ border="0"> <a href="<%= metaURL %>"><%=
+ file.getBasePath().substring(file.getBasePath().lastIndexOf("/") + 1, file.getBasePath().length()) %>
+ </a>
+ </td>
+ </tr>
+ <%
}
- else
- {
- out.println("<tr onmouseover=\"this.className='portlet-section-alternate';\" onmouseout=\"this.className='portlet-section-body';\">");
- }
-%>
-<tr>
- <td><img src="<%= renderRequest.getContextPath() + CMSAdminConstants.DEFAULT_IMAGES_PATH%>/file.gif"
- alt="${n:i18n("CMS_FILE")}"
- border="0"> <a href="<%= metaURL %>"><%=
- file.getBasePath().substring(file.getBasePath().lastIndexOf("/") + 1, file.getBasePath().length()) %>
- </a>
- </td>
-</tr>
-<%
}
- }
-%>
+ %>
</table>
<%
-if (uri != null)
-{
- Content content = (Content)renderRequest.getAttribute("content");
+ if (uri != null)
+ {
+ Content content = (Content)renderRequest.getAttribute("content");
%>
- <p class="portlet-font">
- Selected file: <%= uri %><br />
+<p class="portlet-font">
+ Selected file: <%= uri %><br/>
+ <%
+ if (content.getTitle() != null)
+ {
+ out.println("File title: " + content.getTitle() + "<br />");
+ }
+ if (content.getDescription() != null)
+ {
+ out.println("File description: " + content.getDescription() + "<br />");
+ }
+ %>
+</p>
<%
- if (content.getTitle() != null)
- {
- out.println("File title: " + content.getTitle() + "<br />");
- }
- if (content.getDescription() != null)
- {
- out.println("File description: " + content.getDescription() + "<br />");
- }
-%>
- </p>
-<%
-}
-}
+ }
+ }
%>
\ No newline at end of file
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/editor/main.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/help.jsp
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/portal-lib.tld
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/portlet-instances.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/portlet.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/portlet.xml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/portlet.xml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -69,7 +69,7 @@
<title>CMS Administration</title>
</portlet-info>
</portlet>
-
+
<!-- portlet>
<description>CMS Content Editor</description>
<portlet-name>CMSContentEditorPortlet</portlet-name>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/portlet.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/web.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/web.xml 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/web.xml 2007-10-28 01:09:21 UTC (rev 8785)
@@ -22,7 +22,8 @@
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org. ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
-<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<!-- TODO: secure with portal permissions -->
<servlet>
Property changes on: branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
Modified: branches/JBoss_Portal_Branch_2_6/core-samples/src/main/org/jboss/portal/core/samples/basic/event/PortletB.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-samples/src/main/org/jboss/portal/core/samples/basic/event/PortletB.java 2007-10-27 23:01:46 UTC (rev 8784)
+++ branches/JBoss_Portal_Branch_2_6/core-samples/src/main/org/jboss/portal/core/samples/basic/event/PortletB.java 2007-10-28 01:09:21 UTC (rev 8785)
@@ -41,7 +41,7 @@
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 5448 $
+ * @version $Revision$
*/
public class PortletB extends GenericPortlet
{
Property changes on: branches/JBoss_Portal_Branch_2_6/core-samples/src/main/org/jboss/portal/core/samples/basic/event/PortletB.java
___________________________________________________________________
Name: svn:keywords
+ LastChangedDate LastChangedBy LastChangedRevision Id
16 years, 6 months
JBoss Portal SVN: r8783 - in branches/JBoss_Portal_Branch_2_6/core-admin/src: bin/portal-admin-war/img and 3 other directories.
by portal-commits@lists.jboss.org
Author: wesleyhales
Date: 2007-10-27 12:15:32 -0400 (Sat, 27 Oct 2007)
New Revision: 8783
Added:
branches/JBoss_Portal_Branch_2_6/core-admin/src/bin/portal-admin-war/img/max-icon.gif
branches/JBoss_Portal_Branch_2_6/core-admin/src/bin/portal-admin-war/img/min-icon.gif
branches/JBoss_Portal_Branch_2_6/core-admin/src/bin/portal-admin-war/img/norm-icon.gif
Modified:
branches/JBoss_Portal_Branch_2_6/core-admin/src/bin/portal-admin-war/style.css
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/AdminPropertyResolver.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PortalObjectManagerBean.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertiesInfo.java
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editProperties.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editProperties.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objectNavigation.xhtml
branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objectTemplate.xhtml
Log:
JBPORTAL-1765 - Adapt the admin portlet to let the user set a default window state
Added: branches/JBoss_Portal_Branch_2_6/core-admin/src/bin/portal-admin-war/img/max-icon.gif
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/bin/portal-admin-war/img/max-icon.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_Branch_2_6/core-admin/src/bin/portal-admin-war/img/min-icon.gif
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/bin/portal-admin-war/img/min-icon.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/JBoss_Portal_Branch_2_6/core-admin/src/bin/portal-admin-war/img/norm-icon.gif
===================================================================
(Binary files differ)
Property changes on: branches/JBoss_Portal_Branch_2_6/core-admin/src/bin/portal-admin-war/img/norm-icon.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/bin/portal-admin-war/style.css
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/bin/portal-admin-war/style.css 2007-10-26 23:10:01 UTC (rev 8782)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/bin/portal-admin-war/style.css 2007-10-27 16:15:32 UTC (rev 8783)
@@ -502,3 +502,7 @@
display: inline-block;
vertical-align: middle;
}
+
+.admin-ui .objectList img.windowStateIcon{
+ margin: 0 5px 0 0;
+}
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/AdminPropertyResolver.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/AdminPropertyResolver.java 2007-10-26 23:10:01 UTC (rev 8782)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/AdminPropertyResolver.java 2007-10-27 16:15:32 UTC (rev 8783)
@@ -258,6 +258,23 @@
return getChildren(object, PortalObject.WINDOW_MASK);
}
});
+ setProperty("maximizedStateExists", new AbstractPropertyDecorator(Boolean.class)
+ {
+ public Object getValue(Object bean)
+ {
+ PortalObject object = (PortalObject)bean;
+ ArrayList children = new ArrayList(getChildren(object, PortalObject.WINDOW_MASK));
+ for (IteratorStatus i = new IteratorStatus(children.iterator()); i.hasNext();)
+ {
+ PortalObject portalObject = (PortalObject)i.next();
+ if (portalObject.getDeclaredProperties().containsValue("MAXIMIZED"))
+ {
+ return Boolean.TRUE;
+ }
+ }
+ return Boolean.FALSE;
+ }
+ });
}
};
portalObjectDecorator.setProperty("id", new AbstractPropertyDecorator(String.class)
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PortalObjectManagerBean.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PortalObjectManagerBean.java 2007-10-26 23:10:01 UTC (rev 8782)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PortalObjectManagerBean.java 2007-10-27 16:15:32 UTC (rev 8783)
@@ -161,6 +161,9 @@
/** . */
public PageManagerBean pageManager;
+ /** . */
+ private Boolean maximizedStateExists;
+
// Wired services
public String getNamespace()
@@ -378,6 +381,14 @@
return theme;
}
+ public Boolean getMaximizedStateExists() {
+ return maximizedStateExists;
+ }
+
+ public void setMaximizedStateExists(Boolean maximizedStateExists) {
+ this.maximizedStateExists = maximizedStateExists;
+ }
+
// UI operations
public void selectObject(PortalObject po)
@@ -458,6 +469,9 @@
{
PortalObjectId poid = getSelectedPortalObjectId();
+ Map pmap = getRequestParameterMap();
+ maximizedStateExists = Boolean.valueOf((String)pmap.get("maximizedStateExists"));
+
PortalObject object = portalObjectContainer.getObject(poid);
// Update state if possible
@@ -499,7 +513,7 @@
private PortalObjectId getSelectedPortalObjectId()
{
// Get id
- Map pmap = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
+ Map pmap = getRequestParameterMap();
String id = (String)pmap.get("id");
// Set the state from the id
@@ -509,10 +523,14 @@
public void selectPlugin()
{
// Get plugin
- Map pmap = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
+ Map pmap = getRequestParameterMap();
selectedPlugin = (String)pmap.get("plugin");
}
+ public Map getRequestParameterMap(){
+ return FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
+ }
+
public void selectParentObject(ActionEvent actionEvent)
{
PortalObject parent = getSelectedObjectParent();
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertiesInfo.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertiesInfo.java 2007-10-26 23:10:01 UTC (rev 8782)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertiesInfo.java 2007-10-27 16:15:32 UTC (rev 8783)
@@ -60,6 +60,7 @@
public static final PropertyInfo WINDOW_CONTENT_TYPE = new PropertyInfo(WindowImpl.PORTAL_PROP_WINDOW_CONTENT_TYPE, new LocalizedString("Content type"), new LocalizedString("The type of content of a window"), "java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PRIVATE_SCOPE);
public static final PropertyInfo DEFAULT_CHILD_NAME = new PropertyInfo(WindowImpl.PORTAL_PROP_DEFAULT_OBJECT_NAME, new LocalizedString("Default child name"), new LocalizedString("The child name used when no specific child name is explicited"), "java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PUBLIC_SCOPE);
public static final PropertyInfo PAGE_ORDER = new PropertyInfo("order", new LocalizedString("Tab order"), new LocalizedString("The order value to display pages in tabs"), "java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PUBLIC_SCOPE);
+ public static final PropertyInfo INITIAL_WINDOW_STATE = new PropertyInfo(WindowImpl.PORTAL_INITIAL_WINDOW_STATE, new LocalizedString("Initial Mode"), new LocalizedString("The inital mode of the window"), "java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PUBLIC_SCOPE);
//
@@ -169,6 +170,7 @@
WINDOW_PROPERTIES.add(THEME_RENDER_REGION_ID);
WINDOW_PROPERTIES.add(THEME_RENDER_REGION_ORDER);
WINDOW_PROPERTIES.add(WINDOW_CONTENT_TYPE);
+ WINDOW_PROPERTIES.add(INITIAL_WINDOW_STATE);
//
CONTROL_PAGE_PROPERTIES.add(CONTROL_POLICY_PAGE_ACCESS_DENIED);
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editProperties.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editProperties.xhtml 2007-10-26 23:10:01 UTC (rev 8782)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editProperties.xhtml 2007-10-27 16:15:32 UTC (rev 8783)
@@ -14,7 +14,7 @@
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
-
+
<!-- defines property creation section -->
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
@@ -22,9 +22,8 @@
</tr>
<tr>
<td valign="top" class="portlet-section-body">
-
+
<h:form>
-
<!-- defines layout of property form -->
<table>
<tbody>
@@ -101,9 +100,27 @@
<h:selectBooleanCheckbox value="#{prop.value}"
readonly="#{prop.readOnly}"
rendered="#{prop.type == 'java.lang.Boolean'}"/>
+
<h:inputText styleClass="portlet-form-input-field" value="#{prop.value}"
readonly="#{prop.readOnly}"
- rendered="#{prop.type == 'java.lang.String'}"/>
+ rendered="#{prop.type eq 'java.lang.String' and prop.name ne 'portal.windowInitialState'}"/>
+
+ <h:selectOneMenu styleClass="portlet-form-input-field"
+ value="#{prop.value}"
+ rendered="#{prop.type eq 'java.lang.String' and prop.name eq 'portal.windowInitialState' and (!portalobjectmgr.maximizedStateExists or prop.value eq 'MAXIMIZED')}">
+ <f:selectItem itemLabel="Choose One..." itemValue=""/>
+ <f:selectItem itemLabel="Maximized" itemValue="MAXIMIZED"/>
+ <f:selectItem itemLabel="Minimized" itemValue="MINIMIZED"/>
+ <f:selectItem itemLabel="Normal" itemValue="NORMAL"/>
+ </h:selectOneMenu>
+
+ <h:selectOneMenu styleClass="portlet-form-input-field"
+ value="#{prop.value}" disabled="true"
+ rendered="#{prop.type eq 'java.lang.String' and prop.name eq 'portal.windowInitialState' and (portalobjectmgr.maximizedStateExists and prop.value ne 'MAXIMIZED')}">
+ <f:selectItem itemLabel="Minimized" itemValue="MINIMIZED"/>
+ </h:selectOneMenu>
+
+
</h:column>
<h:column>
<f:facet name="header">Delete</f:facet>
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editProperties.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editProperties.xhtml 2007-10-26 23:10:01 UTC (rev 8782)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/editProperties.xhtml 2007-10-27 16:15:32 UTC (rev 8783)
@@ -25,9 +25,11 @@
</h:form>
</div>
+ <div style="padding:5px">
<ui:include src="common/editProperties.xhtml">
<ui:param name="properties" value="#{portalobjectmgr.selectedProperties}"/>
</ui:include>
+ </div>
<br/>
<c:if
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objectNavigation.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objectNavigation.xhtml 2007-10-26 23:10:01 UTC (rev 8782)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objectNavigation.xhtml 2007-10-27 16:15:32 UTC (rev 8783)
@@ -118,6 +118,9 @@
<c:if test="#{not empty portalobjectmgr.selectedObject.windows}">
<h3 class="sectionTitle">Manage windows within <span class="objectName">#{portalobjectmgr.selectedObject.name}</span>
#{portalobjectmgr.selectedObject.typeName}</h3>
+
+ <ui:param name="maximizedStateExists" value="#{portalobjectmgr.selectedObject.maximizedStateExists}"/>
+
<h:dataTable var="object" value="#{portalobjectmgr.selectedObject.windows}" styleClass="objectList"
rowClasses="portlet-section-body,portlet-section-alternate"
columnClasses="objectNameColumn, objectActionColumn"
@@ -126,11 +129,25 @@
<f:facet name="header">
<h:outputText value="Window"/>
</f:facet>
+
+ <h:graphicImage title="#{object.declaredProperties['portal.windowInitialState'] eq 'MINIMIZED' ? 'This window is set to a minimized state.' : 'This window defaults to a normal state.'}"
+ rendered="#{!maximizedStateExists}"
+ value="#{object.declaredProperties['portal.windowInitialState'] eq 'MINIMIZED' ? '/img/min-icon.gif' : '/img/norm-icon.gif' }"
+ styleClass="windowStateIcon"
+ alt="" />
+
+ <h:graphicImage title="#{object.declaredProperties['portal.windowInitialState'] eq 'MAXIMIZED' ? 'This window is set to a maximized state.' : 'This window defaults to a minimized state because one window within this page is set to maximized.'}"
+ rendered="#{maximizedStateExists}"
+ value="#{object.declaredProperties['portal.windowInitialState'] eq 'MAXIMIZED' ? '/img/max-icon.gif' : '/img/min-icon.gif'}"
+ styleClass="windowStateIcon"
+ alt="" />
+
<h:commandLink action="#{portalobjectmgr.selectObject}">#{object.name}
- <f:param name="id" value="#{object.id}"/>
+ <f:param name="id" value="#{object.id}"/>
</h:commandLink>
- </h:column>
- <h:column>
+
+ </h:column>
+ <h:column>
<f:facet name="header">
<h:outputText value="Actions"/>
</f:facet>
@@ -141,12 +158,13 @@
</h:commandLink> | <h:commandLink action="editProperties" styleClass="actionProperties"
actionListener="#{portalobjectmgr.selectObject}">
<f:param name="id" value="#{object.id}"/>
+ <f:param name="maximizedStateExists" value="#{portalobjectmgr.selectedObject.maximizedStateExists}"/>
Properties
- </h:commandLink> | <h:commandLink action="renameObject" styleClass="actionRename"
+ </h:commandLink> | <h:commandLink action="renameObject" styleClass="actionRename"
actionListener="#{portalobjectmgr.selectObject}">
<f:param name="id" value="#{object.id}"/>
Rename
- </h:commandLink> | <h:commandLink action="confirm" actionListener="#{portalobjectmgr.selectObject}"
+ </h:commandLink> | <h:commandLink action="confirm" actionListener="#{portalobjectmgr.selectObject}"
styleClass="actionDelete">
<f:param name="id" value="#{object.id}"/>
Delete
Modified: branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objectTemplate.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objectTemplate.xhtml 2007-10-26 23:10:01 UTC (rev 8782)
+++ branches/JBoss_Portal_Branch_2_6/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/objectTemplate.xhtml 2007-10-27 16:15:32 UTC (rev 8783)
@@ -50,7 +50,7 @@
fatalClass="portlet-msg-error" warnClass="portlet-msg-alert"/>
<!-- Content -->
- <ui:insert name="content">Content</ui:insert>
+ <ui:insert name="content">Content</ui:insert>
</ui:define>
</ui:decorate>
</div>
16 years, 6 months
JBoss Portal SVN: r8782 - branches/JBoss_Portal_Branch_2_6/wsrp/src/main/org/jboss/portal/wsrp.
by portal-commits@lists.jboss.org
Author: chris.laprun(a)jboss.com
Date: 2007-10-26 19:10:01 -0400 (Fri, 26 Oct 2007)
New Revision: 8782
Modified:
branches/JBoss_Portal_Branch_2_6/wsrp/src/main/org/jboss/portal/wsrp/WSRPConsumer.java
Log:
Trying svn keywords...
Property changes on: branches/JBoss_Portal_Branch_2_6/wsrp/src/main/org/jboss/portal/wsrp/WSRPConsumer.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
16 years, 6 months
JBoss Portal SVN: r8781 - branches/JBoss_Portal_Branch_2_6/wsrp.
by portal-commits@lists.jboss.org
Author: chris.laprun(a)jboss.com
Date: 2007-10-26 19:07:40 -0400 (Fri, 26 Oct 2007)
New Revision: 8781
Modified:
branches/JBoss_Portal_Branch_2_6/wsrp/build.xml
Log:
Property changes on: branches/JBoss_Portal_Branch_2_6/wsrp/build.xml
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ LastChangedDate LastChangedBy LastChangedRevision Id
16 years, 6 months
JBoss Portal SVN: r8780 - branches/JBoss_Portal_Branch_2_6/cms.
by portal-commits@lists.jboss.org
Author: thomas.heute(a)jboss.com
Date: 2007-10-26 11:46:58 -0400 (Fri, 26 Oct 2007)
New Revision: 8780
Modified:
branches/JBoss_Portal_Branch_2_6/cms/build.xml
Log:
prefer IPv4 when running test with jdk1.5 on linux. This supposedly is a java bug as per jgroups page. (Backport Prabhat's fix)
Modified: branches/JBoss_Portal_Branch_2_6/cms/build.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/cms/build.xml 2007-10-26 15:17:29 UTC (rev 8779)
+++ branches/JBoss_Portal_Branch_2_6/cms/build.xml 2007-10-26 15:46:58 UTC (rev 8780)
@@ -409,6 +409,11 @@
<jvmarg value="-Xdebug"/>
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"/>
-->
+ <!--
+ prefer IPv4 when running test with jdk1.5 on linux.
+ This supposedly is a java bug as per jgroups page.
+ -->
+ <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
</x-sysproperty>
<x-test>
<!-- general cms setup related tests -->
16 years, 6 months
JBoss Portal SVN: r8779 - branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/persistent.
by portal-commits@lists.jboss.org
Author: thomas.heute(a)jboss.com
Date: 2007-10-26 11:17:29 -0400 (Fri, 26 Oct 2007)
New Revision: 8779
Modified:
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/persistent/PersistentInstanceDefinition.java
Log:
Oups
Modified: branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/persistent/PersistentInstanceDefinition.java
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/persistent/PersistentInstanceDefinition.java 2007-10-26 12:51:04 UTC (rev 8778)
+++ branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/core/impl/model/instance/persistent/PersistentInstanceDefinition.java 2007-10-26 15:17:29 UTC (rev 8779)
@@ -87,7 +87,7 @@
this.mutable = false;
this.portletRef = instanceMD.getPortletRef();
this.instanceId = instanceMD.getId();
- setDisplayNames(setDisplayNames(instanceMD.getDisplayName()));
+ this.displayNames = setDisplayNames(instanceMD.getDisplayName());
this.relatedSecurityBindings = new HashMap();
this.relatedCustomizations = new HashMap();
this.state = null;
@@ -96,6 +96,10 @@
private Map setDisplayNames(LocalizedStringMetaData displayName)
{
Map map = new HashMap();
+ if (displayName == null)
+ {
+ return map;
+ }
for (int i = 0; i < displayName.getValues().size(); i++)
{
LocalizedValueMetaData descriptionMD = (LocalizedValueMetaData)displayName.getValues().get(i);
16 years, 6 months