RSS Feed teilweise gefixt, Loader angepasst. Scheint aber immer noch nicht richtig zu funktionieren, Admin Oberfläche wird noch vermisst.

git-svn-id: https://svn.libreccm.org/ccm/trunk@1117 8810af33-2d31-482b-a856-94f89814c4df
master
pb 2011-09-12 23:31:00 +00:00
parent 19fe7d8e5d
commit d0a7b174b5
2 changed files with 21 additions and 1 deletions

View File

@ -22,6 +22,7 @@ package com.arsdigita.london.rss;
import com.arsdigita.db.DbHelper;
import com.arsdigita.domain.DomainObject;
import com.arsdigita.domain.DomainObjectFactory;
import com.arsdigita.kernel.ACSObjectInstantiator;
import com.arsdigita.persistence.DataObject;
import com.arsdigita.persistence.pdl.ManifestSource;
@ -64,6 +65,16 @@ public class Initializer extends CompoundInitializer {
super.init(e);
// Prerequisite to access a RSS channel instance
DomainObjectFactory.registerInstantiator(
RSS.BASE_DATA_OBJECT_TYPE, new ACSObjectInstantiator() {
@Override
public DomainObject doNewInstance(DataObject dataObject) {
return new RSS(dataObject);
}
}
);
e.getFactory().registerInstantiator(
WorkspaceDirectoryPortlet.BASE_DATA_OBJECT_TYPE,

View File

@ -64,7 +64,7 @@ public class Loader extends PackageLoader {
// (i.e. create application type)
setupChannelControlCenter();
// Load local fveeds into database
// Load local feeds into database
setupLocalFeeds();
// load portlet type into database
@ -78,6 +78,8 @@ public class Loader extends PackageLoader {
* (old style) compatible applicaiton.
*/
public void setupChannelControlCenter() {
/*
ApplicationSetup setup = new ApplicationSetup(s_log);
setup.setApplicationObjectType(RSS.BASE_DATA_OBJECT_TYPE);
@ -93,7 +95,14 @@ public class Loader extends PackageLoader {
});
ApplicationType type = setup.run();
type.save();
*/
ApplicationType type = ApplicationType.createApplicationType(
"rss",
"RSS Channels",
RSS.BASE_DATA_OBJECT_TYPE);
type.setDescription("RSS Channels");
if (!Application.isInstalled(RSS.BASE_DATA_OBJECT_TYPE,
"/channels/")) {
Application app =