-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy from the trunk to the master directory
git-svn-id: https://svn.lternet.edu/svn/NIS/master@2349 494e2532-0c3a-4da7-aa3c-384db2200ce1
- Loading branch information
dcosta
committed
Sep 25, 2012
1 parent
581e8a8
commit 83d5039
Showing
46 changed files
with
6,231 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Steps to checkout and deploy the Event Manager | ||
|
||
ssh basalt.lternet.edu | ||
|
||
sudo su -l pasta | ||
|
||
cd /home/pasta/svn | ||
|
||
svn checkout https://svn.lternet.edu/svn/NIS/trunk/shell | ||
- or - | ||
cd shell ; svn update ; cd .. | ||
|
||
mkdir EventManager | ||
- or - | ||
rm -rf EventManager/* | ||
|
||
cd EventManager | ||
|
||
svn checkout https://svn.lternet.edu/svn/NIS/trunk/EventManager | ||
svn checkout https://svn.lternet.edu/svn/NIS/trunk/common | ||
svn checkout https://svn.lternet.edu/svn/NIS/trunk/ant-util | ||
svn checkout https://svn.lternet.edu/svn/NIS/trunk/doc-util | ||
svn checkout https://svn.lternet.edu/svn/NIS/trunk/db-util | ||
svn checkout https://svn.lternet.edu/svn/NIS/trunk/lib | ||
svn checkout https://svn.lternet.edu/svn/NIS/trunk/eventmanagertester | ||
|
||
cd eventmanagertester | ||
ant deploy | ||
../../shell/tomcat_shutdown.sh | ||
../../shell/tomcat_startup.sh | ||
|
||
cd ../EventManager | ||
|
||
open src/META-INF/persistence.xml and replace both occurrences of | ||
@PASSWORD@ with the password for the postgres user 'pasta'. | ||
|
||
ant test | ||
ant deploy | ||
../../shell/tomcat_shutdown.sh | ||
../../shell/tomcat_startup.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Manifest-Version: 1.0 | ||
Class-Path: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
create schema eventmanager authorization pasta; | ||
create table eventmanager.emlsubscription ( | ||
subscriptionId bigserial primary key, | ||
active boolean not null, | ||
creator text not null, | ||
scope text, | ||
identifier integer, | ||
revision integer, | ||
url text not null | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP SCHEMA eventmanager CASCADE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<xs:element name="subscription"> | ||
<xs:complexType> | ||
<xs:all> | ||
|
||
<xs:element name="packageId" type="xs:string" | ||
minOccurs="1" maxOccurs="1"/> | ||
|
||
<xs:element name="url" type="xs:string" minOccurs="1" maxOccurs="1"/> | ||
|
||
</xs:all> | ||
<xs:attribute name="type" type="xs:string" use="required" fixed="eml"/> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
persistence.unit=EventManager | ||
junit.persistence.unit=JUnitTests | ||
|
||
eml.subscription.create.acr=create subscription access control rule | ||
eml.subscription.read.acr=read subscription access control rule | ||
eml.subscription.delete.acr=delete subscription access control rule | ||
|
||
event.notification.acr=event notification access control rule | ||
|
||
pasta.service.acr=service.xml | ||
web.service.version=EventManager-0.3 | ||
welcome.page=../doc/welcome.html | ||
api.document=../doc/edu.lternet.pasta.eventmanager.EventSubscriptionResource.html | ||
tutorial.document=../doc/tutorial.html | ||
demo.directory=../demo | ||
|
||
eml.subscription.schema=eml-subscription.xsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# /** | ||
# * '$rcsfile: log4j.properties,v $' | ||
# * copyright: 2002 regents of the university of california and the | ||
# * national center for ecological analysis and synthesis | ||
# * '$author: brooke $' | ||
# * '$date: 2003/06/24 00:58:49 $' | ||
# * '$revision: 1.1 $' | ||
# * | ||
# * this program is free software; you can redistribute it and/or modify | ||
# * it under the terms of the gnu general public license as published by | ||
# * the free software foundation; either version 2 of the license, or | ||
# * (at your option) any later version. | ||
# * | ||
# * this program is distributed in the hope that it will be useful, | ||
# * but without any warranty; without even the implied warranty of | ||
# * merchantability or fitness for a particular purpose. see the | ||
# * gnu general public license for more details. | ||
# * | ||
# * you should have received a copy of the gnu general public license | ||
# * along with this program; if not, write to the free software | ||
# * foundation, inc., 59 temple place, suite 330, boston, ma 02111-1307 usa | ||
# */ | ||
# | ||
# | ||
################################################################################ | ||
################################################################################ | ||
# | ||
# for conversion/formatting characters, see: | ||
# | ||
# http://logging.apache.org/log4j/docs/api/org/apache/log4j/PatternLayout.html | ||
# | ||
################################################################################ | ||
################################################################################ | ||
|
||
# set the log level to WARN and the log should be printed to stdout. | ||
log4j.rootLogger=WARN, stdout | ||
log4j.threshold=FATAL, ERROR, WARN, INFO | ||
|
||
|
||
### LOGGING TO CONSOLE ######################################################### | ||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender | ||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout | ||
|
||
# define the pattern to be used in the logs... | ||
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} EventManager: [%p] [%c]: %m %n | ||
|
||
# %p -> priority level of the event - (e.g. WARN) | ||
# %m -> message to be printed | ||
# %c -> category name ... in this case name of the class | ||
# %d -> Used to output the date of the logging event. example, %d{HH:mm:ss,SSS} or %d{dd MMM yyyy HH:mm:ss,SSS}. Default format is ISO8601 format | ||
# %M -> print the method name where the event was generated ... can be extremely slow. | ||
# %L -> print the line number of the event generated ... can be extremely slow. | ||
# %t -> Used to output the name of the thread that generated the log event | ||
# %n -> carriage return | ||
|
||
################################################################################ | ||
# EXAMPLE: Print only messages of level WARN or above in the package com.foo: | ||
# log4j.logger.com.foo=WARN | ||
log4j.logger.edu.lternet.PASTA.workflowmanagement.eventmanager=INFO | ||
|
||
|
||
# For OpenJPA (untested) | ||
log4j.rootCategory=WARN, console | ||
log4j.category.openjpa.Tool=INFO | ||
log4j.category.openjpa.Runtime=INFO | ||
log4j.category.openjpa.Remote=WARN | ||
log4j.category.openjpa.DataCache=WARN | ||
log4j.category.openjpa.MetaData=WARN | ||
log4j.category.openjpa.Enhance=WARN | ||
log4j.category.openjpa.Query=WARN | ||
log4j.category.openjpa.jdbc.SQL=WARN | ||
log4j.category.openjpa.jdbc.JDBC=WARN | ||
log4j.category.openjpa.jdbc.Schema=WARN | ||
|
||
log4j.appender.console=org.apache.log4j.ConsoleAppender |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<pasta:service | ||
xmlns:pasta="pasta://pasta.lternet.edu/service-0.1" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="pasta://pasta.lternet.edu/service-0.1 http://nis.lternet.edu/schemas/pasta/pasta-service.xsd" | ||
> | ||
|
||
<pasta:service-method name="notifyOfEvent"> | ||
<access | ||
system="https://pasta.lternet.edu" | ||
authSystem="https://pasta.lternet.edu/authentication" | ||
order="allowFirst"> | ||
<allow> | ||
<principal>pasta</principal> | ||
<permission>write</permission> | ||
</allow> | ||
<allow> | ||
<principal>authenticated</principal> | ||
<permission>write</permission> | ||
</allow> | ||
</access> | ||
</pasta:service-method> | ||
|
||
<pasta:service-method name="executeSubscription"> | ||
<access | ||
system="https://pasta.lternet.edu" | ||
authSystem="https://pasta.lternet.edu/authentication" | ||
order="allowFirst"> | ||
<allow> | ||
<principal>pasta</principal> | ||
<permission>write</permission> | ||
</allow> | ||
<allow> | ||
<principal>authenticated</principal> | ||
<permission>write</permission> | ||
</allow> | ||
</access> | ||
</pasta:service-method> | ||
|
||
<pasta:service-method name="createSubscription"> | ||
<access | ||
system="https://pasta.lternet.edu" | ||
authSystem="https://pasta.lternet.edu/authentication" | ||
order="allowFirst"> | ||
<allow> | ||
<principal>pasta</principal> | ||
<permission>write</permission> | ||
</allow> | ||
<allow> | ||
<principal>authenticated</principal> | ||
<permission>write</permission> | ||
</allow> | ||
</access> | ||
</pasta:service-method> | ||
|
||
<pasta:service-method name="getSubscriptionWithId"> | ||
<access | ||
system="https://pasta.lternet.edu" | ||
authSystem="https://pasta.lternet.edu/authentication" | ||
order="allowFirst"> | ||
<allow> | ||
<principal>pasta</principal> | ||
<permission>read</permission> | ||
</allow> | ||
<allow> | ||
<principal>authenticated</principal> | ||
<permission>read</permission> | ||
</allow> | ||
</access> | ||
</pasta:service-method> | ||
|
||
<pasta:service-method name="getMatchingSubscriptions"> | ||
<access | ||
system="https://pasta.lternet.edu" | ||
authSystem="https://pasta.lternet.edu/authentication" | ||
order="allowFirst"> | ||
<allow> | ||
<principal>pasta</principal> | ||
<permission>read</permission> | ||
</allow> | ||
<allow> | ||
<principal>authenticated</principal> | ||
<permission>read</permission> | ||
</allow> | ||
</access> | ||
</pasta:service-method> | ||
|
||
<pasta:service-method name="deleteSubscription"> | ||
<access | ||
system="https://pasta.lternet.edu" | ||
authSystem="https://pasta.lternet.edu/authentication" | ||
order="allowFirst"> | ||
<allow> | ||
<principal>pasta</principal> | ||
<permission>write</permission> | ||
</allow> | ||
<allow> | ||
<principal>authenticated</principal> | ||
<permission>write</permission> | ||
</allow> | ||
</access> | ||
</pasta:service-method> | ||
|
||
</pasta:service> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<subscription type="eml"> | ||
<packageId>example.12</packageId> | ||
<url>http://foo?bar&blah</url> | ||
<accessControlRule>NA</accessControlRule> | ||
</subscription> |
Oops, something went wrong.