-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DB-22] Consolidate DatabaseTable and ScriptedSQL connectors into a s…
…ingle bundle (#5)
- Loading branch information
Showing
62 changed files
with
5,560 additions
and
228 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
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
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,103 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
==================== | ||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. | ||
Copyright 2011 ConnId. All rights reserved. | ||
The contents of this file are subject to the terms of the Common Development | ||
and Distribution License("CDDL") (the "License"). You may not use this file | ||
except in compliance with the License. | ||
You can obtain a copy of the License at | ||
http://opensource.org/licenses/cddl1.php | ||
See the License for the specific language governing permissions and limitations | ||
under the License. | ||
When distributing the Covered Code, include this CDDL Header Notice in each file | ||
and include the License file at http://opensource.org/licenses/cddl1.php. | ||
If applicable, add the following below this CDDL Header, with the fields | ||
enclosed by brackets [] replaced by your own identifying information: | ||
"Portions Copyrighted [year] [name of copyright owner]" | ||
==================== | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>net.tirasa.connid.bundles.db</groupId> | ||
<artifactId>db</artifactId> | ||
<version>2.3.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<groupId>net.tirasa.connid.bundles.db</groupId> | ||
<artifactId>net.tirasa.connid.bundles.db</artifactId> | ||
|
||
<name>Bundles: DB: assembly</name> | ||
|
||
<packaging>jar</packaging> | ||
|
||
<properties> | ||
<rootpom.basedir>${basedir}/..</rootpom.basedir> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>net.tirasa.connid.bundles.db</groupId> | ||
<artifactId>table</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>net.tirasa.connid.bundles.db</groupId> | ||
<artifactId>scriptedsql</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<inherited>true</inherited> | ||
<configuration> | ||
<appendAssemblyId>true</appendAssemblyId> | ||
<descriptors> | ||
<descriptor>src/assemble/connector.xml</descriptor> | ||
</descriptors> | ||
<archive> | ||
<index>true</index> | ||
<manifestEntries> | ||
<ConnectorBundle-FrameworkVersion>${connid.version}</ConnectorBundle-FrameworkVersion> | ||
<ConnectorBundle-Name>${project.artifactId}</ConnectorBundle-Name> | ||
<ConnectorBundle-Version>${project.version}</ConnectorBundle-Version> | ||
</manifestEntries> | ||
</archive> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>make-assembly</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>single</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
|
||
<resources> | ||
<resource> | ||
<directory>..</directory> | ||
<targetPath>META-INF</targetPath> | ||
<includes> | ||
<include>LICENSE</include> | ||
</includes> | ||
</resource> | ||
</resources> | ||
</build> | ||
</project> |
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,81 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
==================== | ||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. | ||
Copyright 2011 ConnId. All rights reserved. | ||
The contents of this file are subject to the terms of the Common Development | ||
and Distribution License("CDDL") (the "License"). You may not use this file | ||
except in compliance with the License. | ||
You can obtain a copy of the License at | ||
http://opensource.org/licenses/cddl1.php | ||
See the License for the specific language governing permissions and limitations | ||
under the License. | ||
When distributing the Covered Code, include this CDDL Header Notice in each file | ||
and include the License file at http://opensource.org/licenses/cddl1.php. | ||
If applicable, add the following below this CDDL Header, with the fields | ||
enclosed by brackets [] replaced by your own identifying information: | ||
"Portions Copyrighted [year] [name of copyright owner]" | ||
==================== | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>net.tirasa.connid.bundles.db</groupId> | ||
<artifactId>db</artifactId> | ||
<version>2.3.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<groupId>net.tirasa.connid.bundles.db</groupId> | ||
<artifactId>commons</artifactId> | ||
|
||
<name>Bundles: DB: commons</name> | ||
|
||
<packaging>jar</packaging> | ||
|
||
<properties> | ||
<rootpom.basedir>${basedir}/..</rootpom.basedir> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>net.tirasa.connid</groupId> | ||
<artifactId>connector-framework</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>net.tirasa.connid</groupId> | ||
<artifactId>connector-framework-internal</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.junit.jupiter</groupId> | ||
<artifactId>junit-jupiter</artifactId> | ||
<version>${junit.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<resources> | ||
<resource> | ||
<directory>src/main/resources</directory> | ||
</resource> | ||
<resource> | ||
<directory>${rootpom.basedir}</directory> | ||
<targetPath>META-INF</targetPath> | ||
<includes> | ||
<include>LICENSE</include> | ||
<include>NOTICE</include> | ||
</includes> | ||
</resource> | ||
</resources> | ||
</build> | ||
</project> |
54 changes: 54 additions & 0 deletions
54
commons/src/main/java/net/tirasa/connid/bundles/db/commons/Constants.java
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,54 @@ | ||
/* | ||
* ==================== | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. | ||
* | ||
* Copyright 2016 Tirasa. All rights reserved. | ||
* | ||
* The contents of this file are subject to the terms of the Common Development | ||
* and Distribution License("CDDL") (the "License"). You may not use this file | ||
* except in compliance with the License. | ||
* | ||
* You can obtain a copy of the License at | ||
* http://opensource.org/licenses/cddl1.php | ||
* See the License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* When distributing the Covered Code, include this CDDL Header Notice in each file | ||
* and include the License file at http://opensource.org/licenses/cddl1.php. | ||
* If applicable, add the following below this CDDL Header, with the fields | ||
* enclosed by brackets [] replaced by your own identifying information: | ||
* "Portions Copyrighted [year] [name of copyright owner]" | ||
* ==================== | ||
*/ | ||
package net.tirasa.connid.bundles.db.commons; | ||
|
||
public final class Constants { | ||
|
||
public static final String MSG_JDBC_TEMPLATE_BLANK = "jdbc.template.blank"; | ||
|
||
public static final String MSG_USER_BLANK = "admin.user.blank"; | ||
|
||
public static final String MSG_PASSWORD_BLANK = "admin.password.blank"; | ||
|
||
public static final String MSG_HOST_BLANK = "host.blank"; | ||
|
||
public static final String MSG_PORT_BLANK = "port.blank"; | ||
|
||
public static final String MSG_DATABASE_BLANK = "database.blank"; | ||
|
||
public static final String MSG_JDBC_DRIVER_BLANK = "jdbc.driver.blank"; | ||
|
||
public static final String MSG_JDBC_DRIVER_NOT_FOUND = "jdbc.driver.not.found"; | ||
|
||
public static final String MSG_ACCOUNT_OBJECT_CLASS_REQUIRED = "acount.object.class.required"; | ||
|
||
public static final String MSG_INVALID_ATTRIBUTE_SET = "invalid.attribute.set"; | ||
|
||
public static final String MSG_UID_BLANK = "uid.blank"; | ||
|
||
public static final String MSG_RESULT_HANDLER_NULL = "result.handler.null"; | ||
|
||
private Constants() { | ||
// private constructor for static utility class | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
commons/src/main/java/net/tirasa/connid/bundles/db/commons/DBMessages.java
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,36 @@ | ||
/* | ||
* ==================== | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. | ||
* | ||
* Copyright 2008-2009 Sun Microsystems, Inc. All rights reserved. | ||
* | ||
* The contents of this file are subject to the terms of the Common Development | ||
* and Distribution License("CDDL") (the "License"). You may not use this file | ||
* except in compliance with the License. | ||
* | ||
* You can obtain a copy of the License at | ||
* http://opensource.org/licenses/cddl1.php | ||
* See the License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* When distributing the Covered Code, include this CDDL Header Notice in each file | ||
* and include the License file at http://opensource.org/licenses/cddl1.php. | ||
* If applicable, add the following below this CDDL Header, with the fields | ||
* enclosed by brackets [] replaced by your own identifying information: | ||
* "Portions Copyrighted [year] [name of copyright owner]" | ||
* ==================== | ||
* Portions Copyrighted 2011 ConnId. | ||
*/ | ||
package net.tirasa.connid.bundles.db.commons; | ||
|
||
abstract class DBMessages { | ||
|
||
static final String ASSERT_NULL = "assert.null"; | ||
|
||
static final String ASSERT_NOT_NULL = "assert.notNull"; | ||
|
||
static final String ASSERT_BLANK = "assert.blank"; | ||
|
||
static final String ASSERT_NOT_BLANK = "assert.notBlank"; | ||
|
||
} |
Oops, something went wrong.