ccm/admin mit Standardtheme sollte wieder funktionieren.

git-svn-id: https://svn.libreccm.org/ccm/trunk@852 8810af33-2d31-482b-a856-94f89814c4df
master
pb 2011-04-15 05:20:32 +00:00
parent 117e753fbc
commit 239b1e4516
4 changed files with 38 additions and 11 deletions

View File

@ -58,7 +58,7 @@ public class PortletType extends ResourceType {
* PortletType uses the data object type of ApplicationType. * PortletType uses the data object type of ApplicationType.
*/ */
public static final String BASE_DATA_OBJECT_TYPE = 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 WIDE_PROFILE = "wide";
public static final String NARROW_PROFILE = "narrow"; public static final String NARROW_PROFILE = "narrow";
@ -94,6 +94,7 @@ public class PortletType extends ResourceType {
PackageType packageType = null; PackageType packageType = null;
// is com.arsdigita.portal.Portal initialized
try { try {
packageType = PackageType.findByKey("portal"); packageType = PackageType.findByKey("portal");
} catch (DataObjectNotFoundException nfe) { } catch (DataObjectNotFoundException nfe) {
@ -113,6 +114,7 @@ public class PortletType extends ResourceType {
setEmbeddedView(true); setEmbeddedView(true);
} }
@Override
protected String getBaseDataObjectType() { protected String getBaseDataObjectType() {
return BASE_DATA_OBJECT_TYPE; return BASE_DATA_OBJECT_TYPE;
} }
@ -358,6 +360,7 @@ public class PortletType extends ResourceType {
return m_path; return m_path;
} }
@Override
public boolean equals(Object o) { public boolean equals(Object o) {
if (!(o instanceof XSLEntry)) { if (!(o instanceof XSLEntry)) {
return false; return false;

View File

@ -27,6 +27,20 @@ import java.util.List;
import java.util.Iterator; import java.util.Iterator;
/** /**
* <p>This class is a convenience class for easily initializing an
* Application Portlet type (ie full screen portlet) wrapping
* {@link PortletType} class.</p>
* <p>
* The usage pattern for this class is:
* <ul>
* <li> Create a PortletSetup class.</li>
* <li> Use setters to initialize values.</li>
* <li> Call the run method ( setup.run() ).</li>
* </ul>
* </p>
* <p>
* Necessary values that are uninitialized when run() is called throw an
* exception. </p>
* *
* @author <a href="mailto:jparsons@arsdigita.com">Jim Parsons</a> * @author <a href="mailto:jparsons@arsdigita.com">Jim Parsons</a>
*/ */
@ -36,19 +50,38 @@ public class AppPortletSetup extends PortletSetup {
protected boolean m_isSingleton = false; 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) { public AppPortletSetup(Category category) {
super(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) { public void setPortalApplication(boolean isPortalApplication) {
m_isPortalApplication = 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) { public void setSingleton(boolean isSingleton) {
m_isSingleton = isSingleton; m_isSingleton = isSingleton;
} }
@Override
public PortletType run() { public PortletType run() {
notice("Validating setup..."); notice("Validating setup...");

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="../../../../packages/acs-admin/xsl/admin_en.xsl"/>
</xsl:stylesheet>

View File

@ -4,6 +4,6 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"> version="1.0">
<xsl:import href="../../../../packages/acs-admin/xsl/admin_en.xsl"/> <xsl:import href="../../../packages/acs-admin/xsl/admin_en.xsl"/>
</xsl:stylesheet> </xsl:stylesheet>