From 239b1e4516a52c5524dbc4dc8325c50d5a0f337e Mon Sep 17 00:00:00 2001
From: pb
Date: Fri, 15 Apr 2011 05:20:32 +0000
Subject: [PATCH] ccm/admin mit Standardtheme sollte wieder funktionieren.
git-svn-id: https://svn.libreccm.org/ccm/trunk@852 8810af33-2d31-482b-a856-94f89814c4df
---
.../src/com/arsdigita/portal/PortletType.java | 5 ++-
.../portal/apportlet/AppPortletSetup.java | 33 +++++++++++++++++++
ccm-core/web/__ccm__/apps/admin/xsl/index.xsl | 9 -----
.../themes/heirloom/apps/admin/xsl/index.xsl | 2 +-
4 files changed, 38 insertions(+), 11 deletions(-)
delete mode 100755 ccm-core/web/__ccm__/apps/admin/xsl/index.xsl
diff --git a/ccm-core/src/com/arsdigita/portal/PortletType.java b/ccm-core/src/com/arsdigita/portal/PortletType.java
index 830174ad6..ee5cc6029 100755
--- a/ccm-core/src/com/arsdigita/portal/PortletType.java
+++ b/ccm-core/src/com/arsdigita/portal/PortletType.java
@@ -58,7 +58,7 @@ public class PortletType extends ResourceType {
* PortletType uses the data object type of ApplicationType.
*/
public static final String BASE_DATA_OBJECT_TYPE =
- "com.arsdigita.portal.PortletType";
+ "com.arsdigita.portal.PortletType";
public static final String WIDE_PROFILE = "wide";
public static final String NARROW_PROFILE = "narrow";
@@ -94,6 +94,7 @@ public class PortletType extends ResourceType {
PackageType packageType = null;
+ // is com.arsdigita.portal.Portal initialized
try {
packageType = PackageType.findByKey("portal");
} catch (DataObjectNotFoundException nfe) {
@@ -113,6 +114,7 @@ public class PortletType extends ResourceType {
setEmbeddedView(true);
}
+ @Override
protected String getBaseDataObjectType() {
return BASE_DATA_OBJECT_TYPE;
}
@@ -358,6 +360,7 @@ public class PortletType extends ResourceType {
return m_path;
}
+ @Override
public boolean equals(Object o) {
if (!(o instanceof XSLEntry)) {
return false;
diff --git a/ccm-core/src/com/arsdigita/portal/apportlet/AppPortletSetup.java b/ccm-core/src/com/arsdigita/portal/apportlet/AppPortletSetup.java
index cf3bbb5fb..c9e84b3c4 100755
--- a/ccm-core/src/com/arsdigita/portal/apportlet/AppPortletSetup.java
+++ b/ccm-core/src/com/arsdigita/portal/apportlet/AppPortletSetup.java
@@ -27,6 +27,20 @@ import java.util.List;
import java.util.Iterator;
/**
+ * This class is a convenience class for easily initializing an
+ * Application Portlet type (ie full screen portlet) wrapping
+ * {@link PortletType} class.
+ *
+ * The usage pattern for this class is:
+ *
+ * - Create a PortletSetup class.
+ * - Use setters to initialize values.
+ * - Call the run method ( setup.run() ).
+ *
+ *
+ *
+ * Necessary values that are uninitialized when run() is called throw an
+ * exception.
*
* @author Jim Parsons
*/
@@ -36,19 +50,38 @@ public class AppPortletSetup extends PortletSetup {
protected boolean m_isSingleton = false;
+ /**
+ * Main Constructor, param category is an appender class and used to be able
+ * to appand messages into the log file.
+ * @param category
+ */
public AppPortletSetup(Category category) {
super(category);
}
+ /**
+ * Determine whether it is a PortalApplication.
+ * Parameter is deprecated and not used for new, legacy free application
+ * types! Should be ommitted in this case.
+ * @param isPortalApplication
+ */
public void setPortalApplication(boolean isPortalApplication) {
m_isPortalApplication = isPortalApplication;
}
+ /**
+ * Determine whether it is a singelton application, ie only one instantiation
+ * is apllowed.
+ * Parameter is deprecated and not used for new, legacy free application
+ * types! Should be ommitted in this case.
+ * @param isPortalApplication
+ */
public void setSingleton(boolean isSingleton) {
m_isSingleton = isSingleton;
}
+ @Override
public PortletType run() {
notice("Validating setup...");
diff --git a/ccm-core/web/__ccm__/apps/admin/xsl/index.xsl b/ccm-core/web/__ccm__/apps/admin/xsl/index.xsl
deleted file mode 100755
index f22d44b69..000000000
--- a/ccm-core/web/__ccm__/apps/admin/xsl/index.xsl
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
diff --git a/ccm-core/web/themes/heirloom/apps/admin/xsl/index.xsl b/ccm-core/web/themes/heirloom/apps/admin/xsl/index.xsl
index f22d44b69..6bedacb12 100644
--- a/ccm-core/web/themes/heirloom/apps/admin/xsl/index.xsl
+++ b/ccm-core/web/themes/heirloom/apps/admin/xsl/index.xsl
@@ -4,6 +4,6 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
-
+