<?xml version="1.0" encoding="UTF-8"?>
-<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" activate="init" deactivate="destroy" name="Suite Maintenance Service">
+<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" activate="init" deactivate="destroy" immediate="true" name="Suite Maintenance Service">
<implementation class="org.argeo.app.core.SuiteMaintenanceService"/>
<reference bind="setRepository" cardinality="1..1" interface="javax.jcr.Repository" name="Repository" policy="static" target="(cn=entity)"/>
- <reference bind="setUserTransaction" cardinality="1..1" interface="org.argeo.osgi.transaction.WorkTransaction" name="WorkTransaction" policy="static"/>
+ <reference bind="setUserTransaction" cardinality="1..1" interface="org.argeo.util.transaction.WorkTransaction" name="WorkTransaction" policy="static"/>
<reference bind="setUserAdmin" cardinality="1..1" interface="org.osgi.service.useradmin.UserAdmin" name="UserAdmin" policy="static"/>
- <reference bind="setContentRepository" cardinality="1..1" interface="org.argeo.api.acr.spi.ProvidedRepository" name="ProvidedRepository" policy="static"/>
+ <reference bind="setContentRepository" cardinality="1..1" interface="org.argeo.api.acr.spi.ProvidedRepository" name="ContentRepository" policy="static"/>
</scr:component>
import java.util.Objects;
public enum SuiteContentTypes {
+ //
+ // ARGEO
+ //
+ ENTITY("entity", "http://www.argeo.org/ns/entity", null, null),
+ //
+ ARGEO_DBK("argeodbk", "http://www.argeo.org/ns/argeodbk", null, null),
+ //
+ // EXTERNAL
//
XCARD_4_0("xcard", "urn:ietf:params:xml:ns:vcard-4.0", "xCard-4.0.xsd", null),
//
"https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/fop/src/foschema/fop.xsd"),
//
// XCAL_2_0("xcal", "urn:ietf:params:xml:ns:icalendar-2.0", "xCal-2.0.xsd", null),
+ //
+ // ODK
+ //
+ JR("jr", "http://openrosa.org/javarosa", null, null),
+ //
+ ORX("orx", "http://openrosa.org/xforms", null, null),
+ //
+ ORX_LIST("orxList", "http://openrosa.org/xforms/xformsList", null, null),
+ //
+ ORX_MANIFEST("orxManifest", "http://openrosa.org/xforms/xformsManifest", null, null),
+ //
+ ODK("odk", "http://www.opendatakit.org/xforms", null, null),
//
;
this.defaultPrefix = defaultPrefix;
Objects.requireNonNull(namespace);
this.namespace = namespace;
- resource = getClass().getResource(RESOURCE_BASE + resourceFileName);
- Objects.requireNonNull(resource);
+ if (resourceFileName != null) {
+ resource = getClass().getResource(RESOURCE_BASE + resourceFileName);
+ Objects.requireNonNull(resource);
+ }
if (publicUrl != null)
try {
this.publicUrl = new URL(publicUrl);