Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
acdc
repository-extension-services
Commits
60a17dc4
Commit
60a17dc4
authored
Jun 24, 2016
by
bseeger
Browse files
Renames acrepo-jsonld-service to acrepo-exts-jsonld
parent
84f5b9de
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
21 additions
and
21 deletions
+21
-21
acrepo-exts-jsonld/README.md
acrepo-exts-jsonld/README.md
+2
-2
acrepo-exts-jsonld/pom.xml
acrepo-exts-jsonld/pom.xml
+3
-3
acrepo-exts-jsonld/src/main/cfg/edu.amherst.acdc.exts.jsonld.cfg
...exts-jsonld/src/main/cfg/edu.amherst.acdc.exts.jsonld.cfg
+0
-0
acrepo-exts-jsonld/src/main/java/edu/amherst/acdc/jsonld/service/EventRouter.java
...ain/java/edu/amherst/acdc/jsonld/service/EventRouter.java
+1
-1
acrepo-exts-jsonld/src/main/resources/OSGI-INF/blueprint/blueprint.xml
...sonld/src/main/resources/OSGI-INF/blueprint/blueprint.xml
+2
-2
acrepo-exts-jsonld/src/main/resources/log4j.properties
acrepo-exts-jsonld/src/main/resources/log4j.properties
+0
-0
acrepo-exts-jsonld/src/main/resources/options.ttl
acrepo-exts-jsonld/src/main/resources/options.ttl
+0
-0
acrepo-exts-jsonld/src/test/java/edu/amherst/acdc/jsonld/service/RouteTest.java
.../test/java/edu/amherst/acdc/jsonld/service/RouteTest.java
+1
-1
acrepo-exts-jsonld/src/test/resources/logback-test.xml
acrepo-exts-jsonld/src/test/resources/logback-test.xml
+0
-0
acrepo-itests/pom.xml
acrepo-itests/pom.xml
+1
-1
acrepo-itests/src/test/java/edu/amherst/acdc/itests/AcrepoJsonLDIT.java
...src/test/java/edu/amherst/acdc/itests/AcrepoJsonLDIT.java
+4
-4
acrepo-itests/src/test/java/edu/amherst/acdc/itests/AcrepoServicesIT.java
...c/test/java/edu/amherst/acdc/itests/AcrepoServicesIT.java
+3
-3
acrepo-karaf/src/main/resources/features.xml
acrepo-karaf/src/main/resources/features.xml
+3
-3
pom.xml
pom.xml
+1
-1
No files found.
acrepo-jsonld
-service
/README.md
→
acrepo-
exts-
jsonld/README.md
View file @
60a17dc4
...
...
@@ -19,7 +19,7 @@ This projects can be deployed in an OSGi container. For example using
command from its shell:
feature:repo-add mvn:edu.amherst.acdc/acrepo-karaf/LATEST/xml/features
feature:install acrepo-jsonld
-service
feature:install acrepo-
exts-
jsonld
Or by copying any of the compiled bundles into
`$KARAF_HOME/deploy`
.
...
...
@@ -27,7 +27,7 @@ Configuration
-------------
The application can be configured by creating the following configuration
file
`$KARAF_HOME/etc/edu.amherst.acdc.jsonld.
service.
cfg`
. The following values
file
`$KARAF_HOME/etc/edu.amherst.acdc.
exts.
jsonld.cfg`
. The following values
are available for configuration:
In the event of failure, the maximum number of times a redelivery will be attempted.
...
...
acrepo-jsonld
-service
/pom.xml
→
acrepo-
exts-
jsonld/pom.xml
View file @
60a17dc4
...
...
@@ -9,13 +9,13 @@
<version>
1.0.1-SNAPSHOT
</version>
</parent>
<artifactId>
acrepo-jsonld
-service
</artifactId>
<artifactId>
acrepo-
exts-
jsonld
</artifactId>
<packaging>
bundle
</packaging>
<name>
JSON-LD AppCache Workflow
</name>
<properties>
<osgi.export.packages>
edu.amherst.acdc.jsonld
.service
;version=${project.version}
</osgi.export.packages>
<osgi.export.packages>
edu.amherst.acdc.
exts.
jsonld;version=${project.version}
</osgi.export.packages>
</properties>
<dependencies>
...
...
@@ -80,7 +80,7 @@
<configuration>
<artifacts>
<artifact>
<file>
src/main/cfg/edu.amherst.acdc.jsonld.
service.
cfg
</file>
<file>
src/main/cfg/edu.amherst.acdc.
exts.
jsonld.cfg
</file>
<type>
cfg
</type>
<classifier>
configuration
</classifier>
</artifact>
...
...
acrepo-jsonld
-service
/src/main/cfg/edu.amherst.acdc.jsonld.
service.
cfg
→
acrepo-
exts-
jsonld/src/main/cfg/edu.amherst.acdc.
exts.
jsonld.cfg
View file @
60a17dc4
File moved
acrepo-jsonld
-service
/src/main/java/edu/amherst/acdc/jsonld/service/EventRouter.java
→
acrepo-
exts-
jsonld/src/main/java/edu/amherst/acdc/jsonld/service/EventRouter.java
View file @
60a17dc4
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
edu.amherst.acdc.jsonld
.service
;
package
edu.amherst.acdc.
exts.
jsonld
;
import
static
org
.
apache
.
camel
.
Exchange
.
CONTENT_TYPE
;
import
static
org
.
apache
.
camel
.
Exchange
.
HTTP_METHOD
;
...
...
acrepo-jsonld
-service
/src/main/resources/OSGI-INF/blueprint/blueprint.xml
→
acrepo-
exts-
jsonld/src/main/resources/OSGI-INF/blueprint/blueprint.xml
View file @
60a17dc4
...
...
@@ -8,7 +8,7 @@
http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd"
>
<!-- OSGI blueprint property placeholder -->
<cm:property-placeholder
persistent-id=
"edu.amherst.acdc.jsonld
.service
"
update-strategy=
"reload"
>
<cm:property-placeholder
persistent-id=
"edu.amherst.acdc.
exts.
jsonld"
update-strategy=
"reload"
>
<cm:default-properties>
<cm:property
name=
"error.maxRedeliveries"
value=
"10"
/>
<cm:property
name=
"rest.port"
value=
"9102"
/>
...
...
@@ -22,7 +22,7 @@
<reference
id=
"jsonldService"
interface=
"edu.amherst.acdc.services.jsonld.JsonLdService"
filter=
"(osgi.jndi.service.name=jsonld)"
/>
<camelContext
id=
"AcrepoJsonLdService"
xmlns=
"http://camel.apache.org/schema/blueprint"
>
<package>
edu.amherst.acdc.jsonld
.service
</package>
<package>
edu.amherst.acdc.
exts.
jsonld
</package>
<route
id=
"JsonLdCompaction"
>
<from
uri=
"direct:compact"
/>
...
...
acrepo-jsonld
-service
/src/main/resources/log4j.properties
→
acrepo-
exts-
jsonld/src/main/resources/log4j.properties
View file @
60a17dc4
File moved
acrepo-jsonld
-service
/src/main/resources/options.ttl
→
acrepo-
exts-
jsonld/src/main/resources/options.ttl
View file @
60a17dc4
File moved
acrepo-jsonld
-service
/src/test/java/edu/amherst/acdc/jsonld/service/RouteTest.java
→
acrepo-
exts-
jsonld/src/test/java/edu/amherst/acdc/jsonld/service/RouteTest.java
View file @
60a17dc4
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
edu.amherst.acdc.jsonld
.service
;
package
edu.amherst.acdc.
exts.
jsonld
;
import
java.util.Dictionary
;
import
java.util.Map
;
...
...
acrepo-jsonld
-service
/src/test/resources/logback-test.xml
→
acrepo-
exts-
jsonld/src/test/resources/logback-test.xml
View file @
60a17dc4
File moved
acrepo-itests/pom.xml
View file @
60a17dc4
...
...
@@ -54,7 +54,7 @@
<dependency>
<groupId>
edu.amherst.acdc
</groupId>
<artifactId>
acrepo-jsonld
-service
</artifactId>
<artifactId>
acrepo-
exts-
jsonld
</artifactId>
<version>
${project.version}
</version>
<scope>
test
</scope>
</dependency>
...
...
acrepo-itests/src/test/java/edu/amherst/acdc/itests/AcrepoJsonLDIT.java
View file @
60a17dc4
...
...
@@ -80,7 +80,7 @@ public class AcrepoJsonLDIT extends AbstractOSGiIT {
.
versionAsInProject
().
classifier
(
"features"
).
type
(
"xml"
),
"scr"
),
features
(
maven
().
groupId
(
"edu.amherst.acdc"
).
artifactId
(
"acrepo-karaf"
)
.
type
(
"xml"
).
classifier
(
"features"
).
versionAsInProject
(),
"acrepo-jsonld
-service
"
,
"acrepo-services-jsonld"
),
"acrepo-
exts-
jsonld"
,
"acrepo-services-jsonld"
),
mavenBundle
().
groupId
(
"com.fasterxml.jackson.core"
).
artifactId
(
"jackson-core"
).
versionAsInProject
(),
mavenBundle
().
groupId
(
"com.fasterxml.jackson.core"
).
artifactId
(
"jackson-databind"
).
versionAsInProject
(),
...
...
@@ -91,8 +91,8 @@ public class AcrepoJsonLDIT extends AbstractOSGiIT {
editConfigurationFilePut
(
"etc/org.apache.karaf.management.cfg"
,
"rmiRegistryPort"
,
rmiRegistryPort
),
editConfigurationFilePut
(
"etc/org.apache.karaf.management.cfg"
,
"rmiServerPort"
,
rmiServerPort
),
editConfigurationFilePut
(
"etc/org.apache.karaf.shell.cfg"
,
"sshPort"
,
sshPort
),
editConfigurationFilePut
(
"etc/edu.amherst.acdc.jsonld.
service.
cfg"
,
"fcrepo.baseUrl"
,
fcrepoBaseUrl
),
editConfigurationFilePut
(
"etc/edu.amherst.acdc.jsonld.
service.
cfg"
,
"rest.port"
,
jsonldServicePort
)
editConfigurationFilePut
(
"etc/edu.amherst.acdc.
exts.
jsonld.cfg"
,
"fcrepo.baseUrl"
,
fcrepoBaseUrl
),
editConfigurationFilePut
(
"etc/edu.amherst.acdc.
exts.
jsonld.cfg"
,
"rest.port"
,
jsonldServicePort
)
};
}
...
...
@@ -100,7 +100,7 @@ public class AcrepoJsonLDIT extends AbstractOSGiIT {
public
void
testInstallation
()
throws
Exception
{
assertTrue
(
featuresService
.
isInstalled
(
featuresService
.
getFeature
(
"camel-core"
)));
assertTrue
(
featuresService
.
isInstalled
(
featuresService
.
getFeature
(
"fcrepo-camel"
)));
assertTrue
(
featuresService
.
isInstalled
(
featuresService
.
getFeature
(
"acrepo-jsonld
-service
"
)));
assertTrue
(
featuresService
.
isInstalled
(
featuresService
.
getFeature
(
"acrepo-
exts-
jsonld"
)));
assertTrue
(
featuresService
.
isInstalled
(
featuresService
.
getFeature
(
"acrepo-services-jsonld"
)));
}
...
...
acrepo-itests/src/test/java/edu/amherst/acdc/itests/AcrepoServicesIT.java
View file @
60a17dc4
...
...
@@ -80,9 +80,9 @@ public class AcrepoServicesIT extends AbstractOSGiIT {
.
type
(
"xml"
).
classifier
(
"features"
).
versionAsInProject
(),
"acrepo-idiomatic"
,
"acrepo-idiomatic-pgsql"
,
"acrepo-xml-metadata"
,
"acrepo-image-service"
,
"acrepo-services-validation"
,
"acrepo-services-jsonld"
,
"acrepo-services-mint"
,
"acrepo-jsonld
-service
"
,
"acrepo-template-mustache"
,
"acrepo-fits-rest"
),
"acrepo-
exts-
jsonld"
,
"acrepo-template-mustache"
,
"acrepo-fits-rest"
),
editConfigurationFilePut
(
"etc/edu.amherst.acdc.jsonld.
service.
cfg"
,
"rest.port"
,
jsonldPort
),
editConfigurationFilePut
(
"etc/edu.amherst.acdc.
exts.
jsonld.cfg"
,
"rest.port"
,
jsonldPort
),
editConfigurationFilePut
(
"etc/edu.amherst.acdc.template.mustache.cfg"
,
"rest.port"
,
templatePort
),
editConfigurationFilePut
(
"etc/edu.amherst.acdc.xml.metadata.cfg"
,
"rest.port"
,
metadataPort
),
editConfigurationFilePut
(
"etc/edu.amherst.acdc.idiomatic.cfg"
,
"rest.port"
,
idiomaticPort
),
...
...
@@ -104,7 +104,7 @@ public class AcrepoServicesIT extends AbstractOSGiIT {
assertTrue
(
featuresService
.
isInstalled
(
featuresService
.
getFeature
(
"acrepo-services-mint"
)));
assertTrue
(
featuresService
.
isInstalled
(
featuresService
.
getFeature
(
"acrepo-services-validation"
)));
assertTrue
(
featuresService
.
isInstalled
(
featuresService
.
getFeature
(
"acrepo-xml-metadata"
)));
assertTrue
(
featuresService
.
isInstalled
(
featuresService
.
getFeature
(
"acrepo-jsonld
-service
"
)));
assertTrue
(
featuresService
.
isInstalled
(
featuresService
.
getFeature
(
"acrepo-
exts-
jsonld"
)));
assertTrue
(
featuresService
.
isInstalled
(
featuresService
.
getFeature
(
"acrepo-template-mustache"
)));
assertTrue
(
featuresService
.
isInstalled
(
featuresService
.
getFeature
(
"acrepo-image-service"
)));
assertTrue
(
featuresService
.
isInstalled
(
featuresService
.
getFeature
(
"acrepo-fits-rest"
)));
...
...
acrepo-karaf/src/main/resources/features.xml
View file @
60a17dc4
...
...
@@ -95,7 +95,7 @@
<bundle>
mvn:edu.amherst.acdc/acrepo-services-jsonld/${project.version}
</bundle>
</feature>
<feature
name=
"acrepo-jsonld
-service
"
version=
"${project.version}"
resolver=
"(orb)"
start-level=
"50"
>
<feature
name=
"acrepo-
exts-
jsonld"
version=
"${project.version}"
resolver=
"(orb)"
start-level=
"50"
>
<details>
Installs a sample JSON-LD transformation workflow
</details>
<feature
version=
"${camel.version}"
>
camel
</feature>
...
...
@@ -104,9 +104,9 @@
<feature
version=
"${fcrepo-camel.version}"
>
fcrepo-camel
</feature>
<feature
version=
"${project.version}"
>
acrepo-services-jsonld
</feature>
<bundle>
mvn:edu.amherst.acdc/acrepo-jsonld
-service
/${project.version}
</bundle>
<bundle>
mvn:edu.amherst.acdc/acrepo-
exts-
jsonld/${project.version}
</bundle>
<configfile
finalname=
"/etc/edu.amherst.acdc.jsonld.
service.
cfg"
>
mvn:edu.amherst.acdc/acrepo-jsonld
-service
/${project.version}/cfg/configuration
</configfile>
<configfile
finalname=
"/etc/edu.amherst.acdc.
exts.
jsonld.cfg"
>
mvn:edu.amherst.acdc/acrepo-
exts-
jsonld/${project.version}/cfg/configuration
</configfile>
</feature>
<feature
name=
"acrepo-template-mustache"
version=
"${project.version}"
resolver=
"(orb)"
start-level=
"50"
>
...
...
pom.xml
View file @
60a17dc4
...
...
@@ -94,7 +94,7 @@
<module>
acrepo-services-mint
</module>
<module>
acrepo-services-validation
</module>
<module>
acrepo-xml-metadata
</module>
<module>
acrepo-jsonld
-service
</module>
<module>
acrepo-
exts-
jsonld
</module>
<module>
acrepo-template-mustache
</module>
<module>
acrepo-fits-rest
</module>
</modules>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment