diff options
Diffstat (limited to 'bpmn/MSOURN-plugin/src/main')
-rw-r--r-- | bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/URNMapPlugin.java (renamed from bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/URNMapPlugin.java) | 7 | ||||
-rw-r--r-- | bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/db/MyBatisExtendedSessionFactory.java (renamed from bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/db/MyBatisExtendedSessionFactory.java) | 2 | ||||
-rw-r--r-- | bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/db/MyBatisQueryCommandExecutor.java (renamed from bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/db/MyBatisQueryCommandExecutor.java) | 2 | ||||
-rw-r--r-- | bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/db/URNData.java (renamed from bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/db/URNData.java) | 2 | ||||
-rw-r--r-- | bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/db/URNService.java (renamed from bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/db/URNService.java) | 2 | ||||
-rw-r--r-- | bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/ProcessInstanceResource.java (renamed from bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/resources/ProcessInstanceResource.java) | 6 | ||||
-rw-r--r-- | bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/URNMapPluginRootResource.java (renamed from bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/resources/URNMapPluginRootResource.java) | 5 | ||||
-rw-r--r-- | bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/URNResource.java (renamed from bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/resources/URNResource.java) | 10 | ||||
-rw-r--r-- | bpmn/MSOURN-plugin/src/main/resources/META-INF/services/org.camunda.bpm.cockpit.plugin.spi.CockpitPlugin | 2 | ||||
-rw-r--r-- | bpmn/MSOURN-plugin/src/main/resources/mappings.xml | 2 | ||||
-rw-r--r-- | bpmn/MSOURN-plugin/src/main/resources/org/openecomp/camunda/bpm/plugin/urnmap/queries/urnMap.xml (renamed from bpmn/MSOURN-plugin/src/main/resources/com/att/camunda/bpm/plugin/urnmap/queries/urnMap.xml) | 14 |
11 files changed, 25 insertions, 29 deletions
diff --git a/bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/URNMapPlugin.java b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/URNMapPlugin.java index 9a02aa0c38..fc08d2d54e 100644 --- a/bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/URNMapPlugin.java +++ b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/URNMapPlugin.java @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package com.att.camunda.bpm.plugin.urnmap; +package org.openecomp.camunda.bpmn.plugin.urnmap; import java.util.Arrays; import java.util.HashSet; @@ -26,8 +26,7 @@ import java.util.List; import java.util.Set; import org.camunda.bpm.cockpit.plugin.spi.impl.AbstractCockpitPlugin; - -import com.att.camunda.bpm.plugin.urnmap.resources.URNMapPluginRootResource; +import org.openecomp.camunda.bpmn.plugin.urnmap.resources.URNMapPluginRootResource; @@ -49,6 +48,6 @@ public class URNMapPlugin extends AbstractCockpitPlugin{ @Override public List<String> getMappingFiles() { - return Arrays.asList("com/att/camunda/bpm/plugin/urnmap/queries/urnMap.xml"); + return Arrays.asList("org/openecomp/camunda/bpm/plugin/urnmap/queries/urnMap.xml"); } } diff --git a/bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/db/MyBatisExtendedSessionFactory.java b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/db/MyBatisExtendedSessionFactory.java index 8a9d136dd6..728042008d 100644 --- a/bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/db/MyBatisExtendedSessionFactory.java +++ b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/db/MyBatisExtendedSessionFactory.java @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package com.att.camunda.bpm.plugin.urnmap.db; +package org.openecomp.camunda.bpmn.plugin.urnmap.db; import org.camunda.bpm.engine.ProcessEngineConfiguration; import org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl; diff --git a/bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/db/MyBatisQueryCommandExecutor.java b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/db/MyBatisQueryCommandExecutor.java index 0bd7d739c5..e7140cd318 100644 --- a/bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/db/MyBatisQueryCommandExecutor.java +++ b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/db/MyBatisQueryCommandExecutor.java @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package com.att.camunda.bpm.plugin.urnmap.db; +package org.openecomp.camunda.bpmn.plugin.urnmap.db; import org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl; import org.camunda.bpm.engine.impl.interceptor.Command; diff --git a/bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/db/URNData.java b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/db/URNData.java index f8396bb223..ac8b2e15ee 100644 --- a/bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/db/URNData.java +++ b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/db/URNData.java @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package com.att.camunda.bpm.plugin.urnmap.db; +package org.openecomp.camunda.bpmn.plugin.urnmap.db; public class URNData { diff --git a/bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/db/URNService.java b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/db/URNService.java index 7fd41c131d..3838343aba 100644 --- a/bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/db/URNService.java +++ b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/db/URNService.java @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package com.att.camunda.bpm.plugin.urnmap.db; +package org.openecomp.camunda.bpmn.plugin.urnmap.db; import java.util.List; diff --git a/bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/resources/ProcessInstanceResource.java b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/ProcessInstanceResource.java index 44fe47b053..4a155809e5 100644 --- a/bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/resources/ProcessInstanceResource.java +++ b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/ProcessInstanceResource.java @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package com.att.camunda.bpm.plugin.urnmap.resources; +package org.openecomp.camunda.bpmn.plugin.urnmap.resources; import java.util.List; import java.util.StringTokenizer; @@ -29,10 +29,8 @@ import javax.ws.rs.PUT; import org.camunda.bpm.cockpit.db.QueryParameters; import org.camunda.bpm.cockpit.plugin.resource.AbstractPluginResource; -import com.att.camunda.bpm.plugin.urnmap.db.*; import org.camunda.bpm.cockpit.db.CommandExecutor; - -import com.att.camunda.bpm.plugin.urnmap.db.URNData; +import org.openecomp.camunda.bpmn.plugin.urnmap.db.*; public class ProcessInstanceResource extends AbstractPluginResource { diff --git a/bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/resources/URNMapPluginRootResource.java b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/URNMapPluginRootResource.java index c30eb8d8d7..d31fec66b9 100644 --- a/bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/resources/URNMapPluginRootResource.java +++ b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/URNMapPluginRootResource.java @@ -18,14 +18,13 @@ * ============LICENSE_END========================================================= */ -package com.att.camunda.bpm.plugin.urnmap.resources; +package org.openecomp.camunda.bpmn.plugin.urnmap.resources; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import org.camunda.bpm.cockpit.plugin.resource.AbstractPluginRootResource; - -import com.att.camunda.bpm.plugin.urnmap.URNMapPlugin; +import org.openecomp.camunda.bpmn.plugin.urnmap.URNMapPlugin; @SuppressWarnings("deprecation") @Path("plugin/" + URNMapPlugin.ID) diff --git a/bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/resources/URNResource.java b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/URNResource.java index 08724db415..5838130a92 100644 --- a/bpmn/MSOURN-plugin/src/main/java/com/att/camunda/bpm/plugin/urnmap/resources/URNResource.java +++ b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/URNResource.java @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package com.att.camunda.bpm.plugin.urnmap.resources; +package org.openecomp.camunda.bpmn.plugin.urnmap.resources; /*** import java.beans.Statement; import java.sql.DriverManager; @@ -44,7 +44,7 @@ import org.camunda.bpm.cockpit.plugin.resource.AbstractCockpitPluginResource; //import org.camunda.bpm.cockpit.plugin.resource.AbstractPluginResource; -import com.att.camunda.bpm.plugin.urnmap.db.URNData; +import org.openecomp.camunda.bpmn.plugin.urnmap.db.URNData; import org.openecomp.mso.logger.MsoLogger; @@ -65,7 +65,7 @@ public class URNResource extends AbstractCockpitPluginResource{ conn = getDBConnection(); PreparedStatement psData = conn - .prepareStatement("select * from ATT_URN_MAPPING order by NAME_"); + .prepareStatement("select * from MSO_URN_MAPPING order by NAME_"); ResultSet r = psData.executeQuery(); @@ -164,7 +164,7 @@ public class URNResource extends AbstractCockpitPluginResource{ conn = getDBConnection(); PreparedStatement psData = conn - .prepareStatement("Insert into ATT_URN_MAPPING values ('" + key_ + "', '" + value_ + "', '1')"); + .prepareStatement("Insert into MSO_URN_MAPPING values ('" + key_ + "', '" + value_ + "', '1')"); psData.executeUpdate(); @@ -189,7 +189,7 @@ public class URNResource extends AbstractCockpitPluginResource{ conn = getDBConnection(); PreparedStatement psData = conn - .prepareStatement("UPDATE ATT_URN_MAPPING set VALUE_ ='"+ d.getURNValue() + "' WHERE NAME_='" + d.getURNName() + "'"); + .prepareStatement("UPDATE MSO_URN_MAPPING set VALUE_ ='"+ d.getURNValue() + "' WHERE NAME_='" + d.getURNName() + "'"); psData.executeUpdate(); diff --git a/bpmn/MSOURN-plugin/src/main/resources/META-INF/services/org.camunda.bpm.cockpit.plugin.spi.CockpitPlugin b/bpmn/MSOURN-plugin/src/main/resources/META-INF/services/org.camunda.bpm.cockpit.plugin.spi.CockpitPlugin index 1e207d8022..9a5055af22 100644 --- a/bpmn/MSOURN-plugin/src/main/resources/META-INF/services/org.camunda.bpm.cockpit.plugin.spi.CockpitPlugin +++ b/bpmn/MSOURN-plugin/src/main/resources/META-INF/services/org.camunda.bpm.cockpit.plugin.spi.CockpitPlugin @@ -1 +1 @@ -com.att.camunda.bpm.plugin.urnmap.URNMapPlugin
\ No newline at end of file +org.openecomp.camunda.bpm.plugin.urnmap.URNMapPlugin
\ No newline at end of file diff --git a/bpmn/MSOURN-plugin/src/main/resources/mappings.xml b/bpmn/MSOURN-plugin/src/main/resources/mappings.xml index d0a9177b7e..3141dfee4c 100644 --- a/bpmn/MSOURN-plugin/src/main/resources/mappings.xml +++ b/bpmn/MSOURN-plugin/src/main/resources/mappings.xml @@ -27,6 +27,6 @@ <setting name="lazyLoadingEnabled" value="false" /> </settings> <mappers> - <mapper resource="com/att/camunda/bpm/plugin/urnmap/queries/urnMap.xml" /> + <mapper resource="org/openecomp/camunda/bpm/plugin/urnmap/queries/urnMap.xml" /> </mappers> </configuration> diff --git a/bpmn/MSOURN-plugin/src/main/resources/com/att/camunda/bpm/plugin/urnmap/queries/urnMap.xml b/bpmn/MSOURN-plugin/src/main/resources/org/openecomp/camunda/bpm/plugin/urnmap/queries/urnMap.xml index ed610305ac..d0b58618e4 100644 --- a/bpmn/MSOURN-plugin/src/main/resources/com/att/camunda/bpm/plugin/urnmap/queries/urnMap.xml +++ b/bpmn/MSOURN-plugin/src/main/resources/org/openecomp/camunda/bpm/plugin/urnmap/queries/urnMap.xml @@ -23,39 +23,39 @@ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="cockpit.urnMap"> - <resultMap id="urnDataMap" type="com.att.camunda.bpm.plugin.urnmap.db.URNData"> + <resultMap id="urnDataMap" type="org.openecomp.camunda.bpm.plugin.urnmap.db.URNData"> <result property="URNName" column="URNNAME" jdbcType="VARCHAR"/> <result property="URNValue" column="URNVALUE" jdbcType="VARCHAR" /> </resultMap> <select id="retrieveUrnKeyValuePair" resultMap="urnDataMap"> - select NAME_ URNName, VALUE_ URNValue from ATT_URN_MAPPING + select NAME_ URNName, VALUE_ URNValue from MSO_URN_MAPPING </select> <!-- INSERT cockpit.InsertURNData keyProperty="NAME_" --> - <resultMap id="insertNewRow" type="com.att.camunda.bpm.plugin.urnmap.db.URNData"> + <resultMap id="insertNewRow" type="org.openecomp.camunda.bpm.plugin.urnmap.db.URNData"> <result property="URNName" column="NAME_" jdbcType="VARCHAR" /> <result property="URNValue" column="VALUE_" jdbcType="VARCHAR" /> <result property="1" column="REV_" jdbcType="INTEGER"/> </resultMap> - <insert id="insertNewRow" parameterType="com.att.camunda.bpm.plugin.urnmap.db.URNData"> - insert into ATT_URN_MAPPING (NAME_, VALUE_, REV_) + <insert id="insertNewRow" parameterType="org.openecomp.camunda.bpm.plugin.urnmap.db.URNData"> + insert into MSO_URN_MAPPING (NAME_, VALUE_, REV_) values ( #{URNName}, #{URNValue}, 1 ) </insert> <!-- UPDATE cockpit.InsertURNData --> - <resultMap id="saveURNMappingDataMap" type="com.att.camunda.bpm.plugin.urnmap.db.URNData"> + <resultMap id="saveURNMappingDataMap" type="org.openecomp.camunda.bpm.plugin.urnmap.db.URNData"> <result property="URNName" column="NAME_" jdbcType="VARCHAR" /> <result property="URNValue" column="VALUE_" jdbcType="VARCHAR" /> <result property="1" column="REV_" jdbcType="INTEGER"/> </resultMap> <update id="persistURNData"> - update ATT_URN_MAPPING set + update MSO_URN_MAPPING set NAME_ = #{URNName}, VALUE_ = #{URNValue}, REV_ = 1 |