Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added maven repo

  • Loading branch information...
commit b4518eaaf494f6d873cdf85b53cde53af52cd85b 1 parent e9f4113
@openmandragora authored
View
7 nbactions.xml
@@ -7,4 +7,11 @@
<goal>sql:execute</goal>
</goals>
</action>
+ <action>
+ <actionName>CUSTOM-deploy</actionName>
+ <displayName>deploy</displayName>
+ <goals>
+ <goal>deploy</goal>
+ </goals>
+ </action>
</actions>
View
20 pom.xml
@@ -41,7 +41,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
- <version>3.0.5.RELEASE</version>
+ <version>3.0.5.RELEASE</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
@@ -132,8 +132,8 @@
</executions>
<extensions>true</extensions>
<configuration>
- <instructions>
-
+ <instructions>
+ <Import-Package>org.eclipse.virgo.medic.eventlog,*</Import-Package>
</instructions>
</configuration>
</plugin>
@@ -141,4 +141,18 @@
</plugins>
</build>
+
+ <repositories>
+ <repository>
+ <id>xeneo-snap</id>
+ <url>http://www.wi.fh-kufstein.ac.at:40700/nexus/content/repositories/xeneo/</url>
+ </repository>
+ </repositories>
+
+ <distributionManagement>
+ <snapshotRepository>
+ <id>xeneo-snap</id>
+ <url>http://www.wi.fh-kufstein.ac.at:40700/nexus/content/repositories/xeneo/</url>
+ </snapshotRepository>
+ </distributionManagement>
</project>
View
6 src/main/java/org/xeneo/db/JdbcPluginManager.java
@@ -33,7 +33,13 @@ public void setJdbcTemplate(JdbcTemplate jt) {
private static final String PLUGIN_DEACTIVATE = "update Plugin set Active=0 where PluginURI = ?";
private static final String PLUGIN_LIST = "select PluginURI,PluginType,Title,Description,Classname,BundleID from Plugin where Active=1 and PluginType in(%s)";
+ public void init() {
+ logger.info("PluginManager initialized.");
+ }
+
public void addPlugin(PluginDescriptor descriptor) {
+ logger.info("Try to add plugin with URI: " + descriptor.getPluginURI() + " and name: " + descriptor.getTitle());
+
int i = jdbcTemplate.queryForInt(PLUGIN_EXISTS, descriptor.getPluginURI());
if (i > 0) {
logger.info("update Plugin: " + descriptor.getTitle());
View
4 src/main/java/org/xeneo/db/security/JdbcUserServices.java
@@ -37,5 +37,9 @@ public String getCurrentUserURI() {
public String getCurrentUsername() {
return getCurrentJdbcUser().getUsername();
}
+
+ public org.xeneo.core.security.User getUserMapping(String externalUsername, String pluginURI) {
+ throw new UnsupportedOperationException("Not supported yet.");
+ }
}
View
5 src/main/resources/Meta-INF/spring/module-context.xml
@@ -9,14 +9,15 @@
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd">
+ <c:property-placeholder location="classpath:db.properties" />
<c:annotation-config />
- <bean id="pluginManager" class="org.xeneo.db.JdbcPluginManager">
+ <bean id="pluginManager" init-method="init" class="org.xeneo.db.JdbcPluginManager">
<property name="jdbcTemplate" ref="jdbcTemplate" />
</bean>
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource" ref="dataSource" />
</bean>
-
+
</beans>
View
5 src/main/resources/Meta-INF/spring/osgi-context.xml
@@ -13,8 +13,7 @@
<osgi:service interface="org.xeneo.core.plugin.PluginManager" ref="pluginManager" />
<osgi:reference id="dataSource" interface="javax.sql.DataSource" />
-
- <!--osgi:reference id="eventLogger" interface="org.eclipse.virgo.medic.eventlog.EventLogger"/-->
-
+
+ <osgi:reference id="eventLogger" interface="org.eclipse.virgo.medic.eventlog.EventLogger" />
</beans>
View
BIN  src/main/resources/database_diagram.mwb
Binary file not shown
View
5 src/main/resources/db.properties
@@ -0,0 +1,5 @@
+jdbc.driver=com.mysql.jdbc.Driver
+jdbc.url=jdbc:mysql://127.0.0.1:3306/
+jdbc.dbname=flower
+jdbc.username=root
+jdbc.password=root
View
2  src/test/java/org/xeneo/db/JdbcActivityTest.java
@@ -45,7 +45,7 @@
Logger logger = LoggerFactory.getLogger(JdbcActivityTest.class);
// amount of activities to test
- private final int n = 20;
+ private final int n = 5;
@Autowired
private JdbcCaseEngine engine;
@Autowired
Please sign in to comment.
Something went wrong with that request. Please try again.