diff --git a/ccm-auth-http/pdl/com/arsdigita/auth/http/HTTPAuth.pdl b/ccm-auth-http/pdl/com/arsdigita/auth/http/HTTPAuth.pdl index 25e7f64df..377206901 100755 --- a/ccm-auth-http/pdl/com/arsdigita/auth/http/HTTPAuth.pdl +++ b/ccm-auth-http/pdl/com/arsdigita/auth/http/HTTPAuth.pdl @@ -20,5 +20,6 @@ model com.arsdigita.auth.http; import com.arsdigita.web.Application; object type HTTPAuth extends Application { - reference key (auth_http.application_id); + // reference key (auth_http.application_id); + // nothing to store here } diff --git a/ccm-auth-http/src/com/arsdigita/auth/http/Loader.java b/ccm-auth-http/src/com/arsdigita/auth/http/Loader.java index 2c6e487f5..ed819a068 100755 --- a/ccm-auth-http/src/com/arsdigita/auth/http/Loader.java +++ b/ccm-auth-http/src/com/arsdigita/auth/http/Loader.java @@ -18,33 +18,31 @@ package com.arsdigita.auth.http; -import com.arsdigita.loader.PackageLoader; import com.arsdigita.kernel.Kernel; import com.arsdigita.kernel.KernelExcursion; import com.arsdigita.kernel.User; - +import com.arsdigita.loader.PackageLoader; import com.arsdigita.persistence.DataCollection; import com.arsdigita.persistence.SessionManager; - import com.arsdigita.runtime.ScriptContext; - import com.arsdigita.util.parameter.Parameter; import com.arsdigita.util.parameter.StringParameter; - import com.arsdigita.web.ApplicationType; import com.arsdigita.web.Application; import org.apache.log4j.Logger; /** - * Loads the HTTP Auth application and type + *
Executes nonrecurring at install time and loads (installs and initializes) + * the HTTP Auth application and type persistently into database.
* * @author Daniel Berrange * @version $Id: Loader.java 287 2005-02-22 00:29:02Z sskracic $ */ public class Loader extends PackageLoader { + /** Creates a s_logging category with name = full name of class */ private static final Logger s_log = Logger.getLogger(Loader.class); private StringParameter m_adminEmail = new StringParameter @@ -53,40 +51,77 @@ public class Loader extends PackageLoader { ("auth.http.admin_identifier", Parameter.REQUIRED, null); + /** + * Constructor registers parameters + */ public Loader() { + register(m_adminEmail); register(m_adminIdent); + loadInfo(); + } + + /** + * + * @param ctx + */ public void run(final ScriptContext ctx) { new KernelExcursion() { public void excurse() { setEffectiveParty(Kernel.getSystemParty()); + setupAdministrator(); setupHTTPAuth(); } }.run(); } + /** + * Loads HTTPAuth type as a legacy free type of application and + * instantiates a (single) default instance. + */ private void setupHTTPAuth() { +/* ApplicationType type = ApplicationType .createApplicationType("auth-http", "CCM HTTP Authentication Admin", HTTPAuth.BASE_DATA_OBJECT_TYPE); +*/ + + /* Create new type legacy free application type + * NOTE: The wording in the title parameter of ApplicationType + * determines the name of the subdirectory for the XSL stylesheets. + * It gets "urlized", i.e. trimming leading and trailing blanks and + * replacing blanks between words and illegal characters with an + * hyphen and converted to lower case. + * "Auth HTTP" will become "auth-http". */ + ApplicationType type = new ApplicationType("Auth HTTP", + HTTPAuth.BASE_DATA_OBJECT_TYPE ); + type.setDescription("CCM HTTP authentication administration"); + type.save(); Application admin = Application.retrieveApplicationForPath("/admin/"); - Application app = - Application.createApplication(type, - "auth-http", - "CCM HTTP Authentication Admin", - admin); + Application app = Application + .createApplication(type, + "auth-http", + "CCM HTTP Authentication Admin", + admin); + app.save(); } + /** + * + */ private void setupAdministrator() { - DataCollection coll = SessionManager.getSession().retrieve - ( User.BASE_DATA_OBJECT_TYPE ); + + s_log.warn("Administrator eMail is retrieved as: " + getAdminEmail()); + + DataCollection coll = SessionManager.getSession() + .retrieve(User.BASE_DATA_OBJECT_TYPE); coll.addEqualsFilter( "primaryEmail", getAdminEmail() ); if (!coll.next()) { @@ -98,6 +133,7 @@ public class Loader extends PackageLoader { User admin = User.retrieve( coll.getDataObject() ); coll.close(); + s_log.warn("Administrator is retrieved as: " + admin); UserLogin login = UserLogin.findByUser(admin); if (login == null) { @@ -106,10 +142,18 @@ public class Loader extends PackageLoader { } } + /** + * + * @return + */ private String getAdminEmail() { return (String) get(m_adminEmail); } + /** + * + * @return + */ private String getAdminIdentifier() { return (String) get(m_adminIdent); } diff --git a/ccm-bookmarks/src/ccm-bookmarks.load b/ccm-bookmarks/src/ccm-bookmarks.load index abe31997e..75c6308cc 100755 --- a/ccm-bookmarks/src/ccm-bookmarks.load +++ b/ccm-bookmarks/src/ccm-bookmarks.load @@ -9,5 +9,6 @@Experimental
* * @author Jim Parsons */ public class Initializer extends CompoundInitializer { + /** Creates a s_logging category with name = full name of class */ private static final Logger s_log = Logger.getLogger (Initializer.class); - // required by Old Initializer. - // private Configuration m_conf = new Configuration(); - + /** + * + */ public Initializer() { final String url = RuntimeConfig.getConfig().getJDBCURL(); final int database = DbHelper.getDatabaseFromURL(url); @@ -69,70 +57,34 @@ public class Initializer extends CompoundInitializer { } + /** + * + * @param e + */ @Override public void init(DomainInitEvent e) { s_log.info("Bookmarks app is initializing using .init(DomainInitEvent e)"); - // setupDomainFactory(); + super.init(e); - TransactionContext txn = SessionManager.getSession() - .getTransactionContext(); - txn.beginTxn(); - setupBookmarks(); - txn.commitTxn(); - s_log.info("Bookamrks Initializer completed."); - } - - - -// public final void doStartup() { -// s_log.warn("Initializing Bookmarks..."); - -// TransactionContext txn = -// SessionManager.getSession().getTransactionContext(); - -// txn.beginTxn(); - -// setupBookmarks(); - -// txn.commitTxn(); - -// } - - private void setupBookmarks() { - - ApplicationSetup appsetup = new ApplicationSetup(s_log); - appsetup.setApplicationObjectType( BookmarkApplication.BASE_DATA_OBJECT_TYPE); - appsetup.setKey("bookmarks"); - appsetup.setTitle("Bookmarks Application"); - appsetup.setDescription("Bookmarks for a Portal"); - appsetup.setDispatcherClass("com.arsdigita.bookmarks.BookmarkDispatcher"); - appsetup.setPortalApplication(true); - appsetup.setInstantiator(new ACSObjectInstantiator() { - protected DomainObject doNewInstance(DataObject dataObject) { - return new BookmarkApplication(dataObject); - } - }); - - ApplicationType bmrkAppType = appsetup.run(); - - - AppPortletSetup setup = new AppPortletSetup(s_log); - - setup.setPortletObjectType - (BookmarkPortlet.BASE_DATA_OBJECT_TYPE); - setup.setTitle("Portal Bookmarks"); - setup.setDescription("Displays bookmarks for this portal."); - setup.setProfile(PortletType.NARROW_PROFILE); - setup.setPortalApplication(false); - setup.setProviderApplicationType(bmrkAppType); - setup.setInstantiator(new ACSObjectInstantiator() { + /* Register object instantiator for Bookmarks Application */ + e.getFactory().registerInstantiator( + Bookmarks.BASE_DATA_OBJECT_TYPE, + new ACSObjectInstantiator() { + @Override public DomainObject doNewInstance(DataObject dataObject) { - return new BookmarkPortlet(dataObject); + return new Bookmarks(dataObject); } }); - setup.run(); + + /* Register object instantiator for Bookmarks Portlet */ + e.getFactory().registerInstantiator( + BookmarkPortlet.BASE_DATA_OBJECT_TYPE, + new ACSObjectInstantiator() { + public DomainObject doNewInstance(DataObject dataObject) { + return new BookmarkPortlet(dataObject); + } + }); + } - -// public final void doShutdown() {} } diff --git a/ccm-bookmarks/src/com/arsdigita/bookmarks/Loader.java b/ccm-bookmarks/src/com/arsdigita/bookmarks/Loader.java new file mode 100644 index 000000000..8e35daf8f --- /dev/null +++ b/ccm-bookmarks/src/com/arsdigita/bookmarks/Loader.java @@ -0,0 +1,126 @@ +/* + * Copyright (C) 2012 Peter BoyExecutes nonrecurring at install time and loads (installs and initializes) + * the HTTP Auth application and type persistently into database.
+ * + * @author Daniel Berrange + * @version $Id: Loader.java 287 2005-02-22 00:29:02Z sskracic $ + */ + +/** + * + * @author pb + */ +public class Loader extends PackageLoader { + + /** Creates a s_logging category with name = full name of class */ + private static final Logger s_log = Logger.getLogger(Loader.class); + + /** + * + * @param ctx + */ + public void run(final ScriptContext ctx) { + new KernelExcursion() { + public void excurse() { + setEffectiveParty(Kernel.getSystemParty()); + + ApplicationType bmrkAppType = loadBookmarksApp(); + loadBookmarksPortlet(bmrkAppType); + setupDefaultBookmarkApplicationInstance(); + + } + }.run(); + } + + /** + * Load the Bookmarks application into persistent storage. + * + * @return Bookmarks application type, requirred to load the portlet type + */ + private ApplicationType loadBookmarksApp() { + + /* Create new type legacy free application type + * NOTE: The wording in the title parameter of ApplicationType + * determines the name of the subdirectory for the XSL stylesheets. + * It gets "urlized", i.e. trimming leading and trailing blanks and + * replacing blanks between words and illegal characters with an + * hyphen and converted to lower case. + * "Bookmarks" will become "bookmarks". */ + ApplicationType type = new ApplicationType("Bookmarks", + Bookmarks.BASE_DATA_OBJECT_TYPE ); + + type.setDescription("Bookmarks for a Portal"); + type.save(); + + return type; + } + + private void loadBookmarksPortlet(ApplicationType bmrkAppType ) { + + AppPortletType type = AppPortletType.createAppPortletType( + "Portal Bookmarks", + PortletType.NARROW_PROFILE, + BookmarkPortlet.BASE_DATA_OBJECT_TYPE); + type.setProviderApplicationType(bmrkAppType); + type.setDescription("Displays bookmarks for this portal."); + + } + + + /** + * Instantiates the Bookmarks application admin instance. + * + */ + public static void setupDefaultBookmarkApplicationInstance() { + + /* Determine a parent application. Bookmarks admin page will be + * installed beyond the admin's applications URL. */ + Application admin = Application.retrieveApplicationForPath("/admin/"); + + // create application instance + // Whether a legacy compatible or a legacy free application is + // created depends on the type of ApplicationType above. No need to + // modify anything here in the migration process + // old-style package key used as url fragment where to install the instance + s_log.debug("Creating BookmarkApplication instance ..."); + + Bookmarks app = Bookmarks.create("bookmarks", "Bookmarks", admin); + + s_log.debug("Bookmarks instance " + " created."); + s_log.debug("Done loading bookmarks."); + } + +} diff --git a/ccm-bookmarks/src/com/arsdigita/bookmarks/ui/BookmarkBasePage.java b/ccm-bookmarks/src/com/arsdigita/bookmarks/ui/BookmarkBasePage.java index 1ac996397..06ac0bee3 100755 --- a/ccm-bookmarks/src/com/arsdigita/bookmarks/ui/BookmarkBasePage.java +++ b/ccm-bookmarks/src/com/arsdigita/bookmarks/ui/BookmarkBasePage.java @@ -117,10 +117,12 @@ public class BookmarkBasePage extends Page { } + @Override public void lock() { - buildPage(); + buildPage(); super.lock(); + } // Only the PortalPage.lock() should invoke this @@ -342,8 +344,10 @@ public class BookmarkBasePage extends Page { Application parent = app.getParentApplication(); - link.setChild(new Label(parent.getTitle())); - link.setTarget(parent.getPath()); + if (parent != null) { + link.setChild(new Label(parent.getTitle())); + link.setTarget(parent.getPath()); + } } } diff --git a/ccm-bookmarks/src/com/arsdigita/bookmarks/ui/BookmarkEditPane.java b/ccm-bookmarks/src/com/arsdigita/bookmarks/ui/BookmarkEditPane.java index 5fa8e3367..1b7457e85 100755 --- a/ccm-bookmarks/src/com/arsdigita/bookmarks/ui/BookmarkEditPane.java +++ b/ccm-bookmarks/src/com/arsdigita/bookmarks/ui/BookmarkEditPane.java @@ -18,7 +18,7 @@ package com.arsdigita.bookmarks.ui; import com.arsdigita.bookmarks.util.GlobalizationUtil; import com.arsdigita.bookmarks.BookmarkCollection; -import com.arsdigita.bookmarks.BookmarkApplication; +import com.arsdigita.bookmarks.Bookmarks; import com.arsdigita.bookmarks.Bookmark; import com.arsdigita.web.Application; @@ -89,7 +89,7 @@ public class BookmarkEditPane extends DynamicListWizard { BookmarkCollection m_bmrks; Bookmark m_bmrk; public BmrkListModel(PageState s) { - BookmarkApplication bmrkapp = (BookmarkApplication)Application.getCurrentApplication(s.getRequest()); + Bookmarks bmrkapp = (Bookmarks)Application.getCurrentApplication(s.getRequest()); m_bmrks = bmrkapp.getBookmarks(); } public boolean next() { @@ -129,7 +129,7 @@ public class BookmarkEditPane extends DynamicListWizard { m_prtlRL = new RequestLocal() { protected Object initialValue(PageState ps) { - return (BookmarkApplication)Application.getCurrentApplication( + return (Bookmarks)Application.getCurrentApplication( ps.getRequest()); } }; @@ -181,7 +181,7 @@ public class BookmarkEditPane extends DynamicListWizard { public void validate(FormSectionEvent ev) { // check that the user has permission to create bookmarks. PageState ps = ev.getPageState(); - BookmarkApplication ba = (BookmarkApplication)m_prtlRL.get(ps); + Bookmarks ba = (Bookmarks)m_prtlRL.get(ps); ba.assertPrivilege(PrivilegeDescriptor.CREATE); } }); @@ -190,7 +190,7 @@ public class BookmarkEditPane extends DynamicListWizard { addForm.addProcessListener(new FormProcessListener() { public void process(FormSectionEvent ev) { PageState ps = ev.getPageState(); - final BookmarkApplication ba = (BookmarkApplication)m_prtlRL.get(ps); + final Bookmarks ba = (Bookmarks)m_prtlRL.get(ps); final Bookmark newBmrk = new Bookmark(newBmrkName.getValue(ps).toString(), newBmrkURL.getValue(ps).toString()); @@ -252,7 +252,7 @@ public class BookmarkEditPane extends DynamicListWizard { public Component getComponent(List list, PageState state, Object value, String key, int index, boolean isSelected) { - BookmarkApplication app = (BookmarkApplication) Web.getContext() + Bookmarks app = (Bookmarks) Web.getContext() .getApplication(); BookmarkCollection bColl = app.getBookmarks(); final long size = bColl.size(); @@ -303,13 +303,13 @@ public class BookmarkEditPane extends DynamicListWizard { if (EVENT_SWAP_UP.equals(name)) { BigDecimal bID = new BigDecimal(bIDstr); Bookmark b = Bookmark.retrieveBookmark(bID); - BookmarkApplication bApp = b.getBookmarkApplication(); + Bookmarks bApp = b.getBookmarkApplication(); bApp.swapBookmarkWithPrevious(b); } else if (EVENT_SWAP_DOWN.equals(name)) { BigDecimal bID = new BigDecimal(bIDstr); Bookmark b = Bookmark.retrieveBookmark(bID); - BookmarkApplication bApp = b.getBookmarkApplication(); + Bookmarks bApp = b.getBookmarkApplication(); bApp.swapBookmarkWithNext(b); } else { @@ -536,7 +536,7 @@ public class BookmarkEditPane extends DynamicListWizard { BigDecimal bd = new BigDecimal((String) getSelectionModel().getSelectedKey(s)); Bookmark bmrk = Bookmark.retrieveBookmark(bd); - BookmarkApplication ba = (BookmarkApplication)Application.getCurrentApplication(s.getRequest()); + Bookmarks ba = (Bookmarks)Application.getCurrentApplication(s.getRequest()); bmrk.setName(bookmarkName.getValue(s).toString()); bmrk.setURL(bookmarkURL.getValue(s).toString()); bmrk.setDescription(bookmarkDescription.getValue(s).toString()); @@ -592,7 +592,7 @@ public class BookmarkEditPane extends DynamicListWizard { if(button.isSelected(s)) { BigDecimal bmrkID = new BigDecimal((String)getSelectionModel().getSelectedKey(s)); Bookmark bmrk = Bookmark.retrieveBookmark(bmrkID); - BookmarkApplication bmrkapp = (BookmarkApplication)Application.getCurrentApplication(s.getRequest()); + Bookmarks bmrkapp = (Bookmarks)Application.getCurrentApplication(s.getRequest()); bmrkapp.removeBookmark(bmrk); getSelectionModel().clearSelection(s); reset(s); diff --git a/ccm-bookmarks/src/com/arsdigita/bookmarks/ui/BookmarkPortlet.java b/ccm-bookmarks/src/com/arsdigita/bookmarks/ui/BookmarkPortlet.java index 898c73dca..6cf293fe3 100755 --- a/ccm-bookmarks/src/com/arsdigita/bookmarks/ui/BookmarkPortlet.java +++ b/ccm-bookmarks/src/com/arsdigita/bookmarks/ui/BookmarkPortlet.java @@ -23,7 +23,7 @@ import com.arsdigita.bebop.GridPanel; import com.arsdigita.bebop.Label; import com.arsdigita.bebop.PageState; import com.arsdigita.bebop.portal.AbstractPortletRenderer; -import com.arsdigita.bookmarks.BookmarkApplication; +import com.arsdigita.bookmarks.Bookmarks; import com.arsdigita.bookmarks.BookmarkCollection; import com.arsdigita.bookmarks.util.GlobalizationUtil; import com.arsdigita.kernel.permissions.PermissionDescriptor; @@ -44,44 +44,82 @@ import com.arsdigita.xml.Element; */ public class BookmarkPortlet extends AppPortlet { + /** Logger instance for debugging */ private static final Logger s_log = Logger.getLogger(BookmarkPortlet.class); + /** PDL stuff - Data Object */ public static final String BASE_DATA_OBJECT_TYPE = - "com.arsdigita.workspace.BookmarkPortlet"; + "com.arsdigita.workspace.BookmarkPortlet"; + /** + * Provide the Data Object Type. + * @return DataObjectType as String + */ + @Override protected String getBaseDataObjectType() { return BASE_DATA_OBJECT_TYPE; } + /** + * Constructor + * + * @param dataObject + */ public BookmarkPortlet(DataObject dataObject) { super(dataObject); } + /** + * + * @return + */ + @Override public String getZoomURL() { Application app = getParentApplication(); if (!PermissionService.checkPermission( - new PermissionDescriptor(PrivilegeDescriptor.READ, app, Web.getContext().getUser()))) { + new PermissionDescriptor(PrivilegeDescriptor.READ, + app, + Web.getContext().getUser()))) { return null; } return (URL.getDispatcherPath() + app.getPrimaryURL()); } + /** + * + * @return + */ + @Override protected AbstractPortletRenderer doGetPortletRenderer() { return new BookmarkPortletRenderer(this); } } +/** + * + * + */ class BookmarkPortletRenderer extends AbstractPortletRenderer { + private BookmarkPortlet m_portlet; + /** + * + * @param portlet + */ public BookmarkPortletRenderer (BookmarkPortlet portlet) { m_portlet = portlet; } + /** + * + * @param pageState + * @param parentElement + */ protected void generateBodyXML(PageState pageState, Element parentElement) { - BookmarkApplication bmrkapp = - (BookmarkApplication)m_portlet.getParentApplication(); + Bookmarks bmrkapp = + (Bookmarks)m_portlet.getParentApplication(); // Variables used cursorwise. int counter; diff --git a/ccm-bookmarks/web/WEB-INF/web.ccm-bookmarks.xml b/ccm-bookmarks/web/WEB-INF/web.ccm-bookmarks.xml new file mode 100644 index 000000000..9421251ce --- /dev/null +++ b/ccm-bookmarks/web/WEB-INF/web.ccm-bookmarks.xml @@ -0,0 +1,18 @@ + +
- * Specificall, this method should only be used to set
- * associations whose multiplicity is 0..1 or 1..1.
- * If the upper bound of the multiplicity is greater than 1
- * then the {@link #add(String, DataObject)} method should be used.
+ * Specifically, this method should only be used to set associations
+ * whose multiplicity is 0..1 or 1..1.
+ * If the upper bound of the multiplicity is greater than 1 then the
+ * {@link #add(String, DataObject)} method should be used.
*
* @see com.arsdigita.persistence.DataObject#set(String, Object)
- **/
+ */
protected void setAssociation(String attr, DomainObject dobj) {
set(attr, dobj == null ? null : dobj.m_dataObject);
}
@@ -515,8 +514,9 @@ public abstract class DomainObject {
* whether the object is new, modified, deleted, or unknown. Unknown is for
* objects that have been invalidated.
*/
+ @Override
public String toString() {
- StringBuffer result = new StringBuffer();
+ StringBuilder result = new StringBuilder();
OID oid = getOID();
if ( oid != null ) {
result.append(oid.toString());
@@ -586,37 +586,47 @@ public abstract class DomainObject {
private DomainObject getDomainObject() { return DomainObject.this; }
+ @Override
public void set(DataObject object, String property, Object previous,
Object value) { }
+ @Override
public void add(DataObject object, String property,
DataObject value) { }
+ @Override
public void remove(DataObject object, String property,
DataObject value) { }
+ @Override
public void clear(DataObject object, String property) { }
+ @Override
public void beforeSave(DataObject object) {
getDomainObject().beforeSave();
}
+ @Override
public void afterSave(DataObject object) {
getDomainObject().afterSave();
}
+ @Override
public void beforeDelete(DataObject object) {
getDomainObject().beforeDelete();
}
+ @Override
public void afterDelete(DataObject object) {
getDomainObject().afterDelete();
}
+ @Override
public int hashCode() {
return getDomainObject().hashCode();
}
+ @Override
public boolean equals(Object other) {
if (other instanceof SaveObserver) {
return getDomainObject().equals(
@@ -639,6 +649,7 @@ public abstract class DomainObject {
return false;
}
+ @Override
public String toString() {
return "Save observer for: " + getDomainObject().getOID() + " (" +
super.toString() + ")";
diff --git a/ccm-core/src/com/arsdigita/portal/PortletType.java b/ccm-core/src/com/arsdigita/portal/PortletType.java
index 9d5189ff9..166a9bab0 100755
--- a/ccm-core/src/com/arsdigita/portal/PortletType.java
+++ b/ccm-core/src/com/arsdigita/portal/PortletType.java
@@ -109,19 +109,7 @@ public class PortletType extends ResourceType {
Assert.exists(title, "title");
Assert.exists(profile, "profile");
Assert.exists(portletObjectType, "portletObjectType");
-/* Portal now legacy free. To be deleted when transistion is completed.
- PackageType packageType = null;
- // is com.arsdigita.portal.Portal initialized
- try {
- packageType = PackageType.findByKey("portal");
- } catch (DataObjectNotFoundException nfe) {
- String message =
- "The PackageType 'portal' is not installed. It must be " +
- "installed in order to create a new PortletType.";
- s_cat.error(message);
- throw new IllegalStateException(message);
- }
-*/
+
// is com.arsdigita.portal.Portal initialized?
if ( !ResourceType.isInstalled(Portal.BASE_DATA_OBJECT_TYPE) ) {
String message =
diff --git a/ccm-core/src/com/arsdigita/portal/apportlet/AppPortlet.java b/ccm-core/src/com/arsdigita/portal/apportlet/AppPortlet.java
index 863fdad3b..1e52d7d9d 100755
--- a/ccm-core/src/com/arsdigita/portal/apportlet/AppPortlet.java
+++ b/ccm-core/src/com/arsdigita/portal/apportlet/AppPortlet.java
@@ -82,6 +82,7 @@ public class AppPortlet extends Portlet {
}
}
+ @Override
public PortletRenderer getPortletRenderer() {
AbstractPortletRenderer portletRenderer = doGetPortletRenderer();
diff --git a/ccm-core/src/com/arsdigita/portal/apportlet/AppPortletType.java b/ccm-core/src/com/arsdigita/portal/apportlet/AppPortletType.java
index bd6974196..2c2b55672 100755
--- a/ccm-core/src/com/arsdigita/portal/apportlet/AppPortletType.java
+++ b/ccm-core/src/com/arsdigita/portal/apportlet/AppPortletType.java
@@ -35,19 +35,20 @@ import java.math.BigDecimal;
public final class AppPortletType extends PortletType {
private static final Logger s_cat =
- Logger.getLogger(AppPortletType.class.getName());
+ Logger.getLogger(AppPortletType.class.getName());
- private final static String IS_PORTAL_APPLICATION =
- "isWorkspaceApplication";
+ private final static String IS_PORTAL_APPLICATION = "isWorkspaceApplication";
protected AppPortletType(DataObject dataObject) {
super(dataObject);
}
// Create from packageType.
- protected AppPortletType
- (String dataObjectType, String title, String profile,
- String portletObjectType) {
+ protected AppPortletType(String dataObjectType,
+ String title,
+ String profile,
+ String portletObjectType) {
+
super(dataObjectType,title,profile,portletObjectType);
}
diff --git a/ccm-docmgr/application.xml b/ccm-docmgr/application.xml
index 7feedbeec..a04736874 100755
--- a/ccm-docmgr/application.xml
+++ b/ccm-docmgr/application.xml
@@ -11,7 +11,7 @@