Native SQL list for members
git-svn-id: https://svn.libreccm.org/ccm/trunk@4942 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
2563287d4a
commit
ebc063f2f6
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<ccm:application xmlns:ccm="http://ccm.redhat.com/ccm-project"
|
<ccm:application xmlns:ccm="http://ccm.redhat.com/ccm-project"
|
||||||
name="ccm-sci-publications-navigation"
|
name="ccm-sci-project-navigation"
|
||||||
version="6.6.0"
|
version="6.6.0"
|
||||||
release="1"
|
release="1"
|
||||||
webapp="ROOT">
|
webapp="ROOT">
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
</ccm:contacts>
|
</ccm:contacts>
|
||||||
|
|
||||||
<ccm:description>
|
<ccm:description>
|
||||||
Provides special navigation components for displaying lists of publications.
|
Provides special navigation components for displaying lists of projects.
|
||||||
</ccm:description>
|
</ccm:description>
|
||||||
|
|
||||||
</ccm:application>
|
</ccm:application>
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,6 @@
|
||||||
</requires>
|
</requires>
|
||||||
|
|
||||||
<provides>
|
<provides>
|
||||||
<initializer class="com.arsdigita.cms.sciproject.navigation.Initializer"/>
|
<initializer class="com.arsdigita.cms.sciproject.navigation.SciProjectInitializer"/>
|
||||||
</provides>
|
</provides>
|
||||||
</load>
|
</load>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,40 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.arsdigita.cms.sciproject.navigation;
|
||||||
|
|
||||||
|
import com.arsdigita.db.DbHelper;
|
||||||
|
import com.arsdigita.persistence.pdl.ManifestSource;
|
||||||
|
import com.arsdigita.persistence.pdl.NameFilter;
|
||||||
|
import com.arsdigita.runtime.CompoundInitializer;
|
||||||
|
import com.arsdigita.runtime.DomainInitEvent;
|
||||||
|
import com.arsdigita.runtime.PDLInitializer;
|
||||||
|
import com.arsdigita.runtime.RuntimeConfig;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||||
|
*/
|
||||||
|
public class SciProjectInitializer extends CompoundInitializer {
|
||||||
|
|
||||||
|
public SciProjectInitializer() {
|
||||||
|
|
||||||
|
super();
|
||||||
|
|
||||||
|
final String url = RuntimeConfig.getConfig().getJDBCURL();
|
||||||
|
final int database = DbHelper.getDatabaseFromURL(url);
|
||||||
|
|
||||||
|
add(new PDLInitializer(new ManifestSource(
|
||||||
|
"empty.pdl.mf",
|
||||||
|
new NameFilter(DbHelper.getDatabaseSuffix(database), "pdl"))));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void init(final DomainInitEvent event) {
|
||||||
|
|
||||||
|
super.init(event);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -10,6 +10,6 @@
|
||||||
</requires>
|
</requires>
|
||||||
|
|
||||||
<provides>
|
<provides>
|
||||||
<initializer class="com.arsdigita.cms.scipublications.navigation.Initializer"/>
|
<initializer class="com.arsdigita.cms.scipublications.navigation.SciPublicationInitializer"/>
|
||||||
</provides>
|
</provides>
|
||||||
</load>
|
</load>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue