Initial commit
This commit is contained in:
commit
b9eba78ec7
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
/.idea/
|
||||
*.iml
|
||||
**/target/**
|
||||
**/out/**
|
64
Jenkinsfile
vendored
Normal file
64
Jenkinsfile
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
pipeline {
|
||||
agent {node 'debian'}
|
||||
options {
|
||||
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
|
||||
}
|
||||
environment {
|
||||
VERSION = readMavenPom().getVersion()
|
||||
}
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
checkout scm
|
||||
script {
|
||||
currentBuild.displayName = "${env.BRANCH_NAME}-${env.BUILD_NUMBER}"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage ('Build') {
|
||||
steps {
|
||||
withMaven(jdk: 'JDK1.7_Oracle', maven: 'Maven3', mavenSettingsConfig: 'nexus_settings') {
|
||||
sh "mvn -Dhttps.protocols=TLSv1.2 -Dmaven.test.failure.ignore=true -P validation clean install"
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
archiveArtifacts artifacts: '**/*.ear', fingerprint: true
|
||||
//
|
||||
// junit '**/build/surefire-reports/**/*.xml'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage ('Quality') {
|
||||
steps {
|
||||
withSonarQubeEnv('Sonarqube') {
|
||||
withMaven(jdk: 'JDK1.8_Oracle', maven: 'Maven3', mavenSettingsConfig: 'nexus_settings', mavenOpts: '-Xms256m -Xmx1024m') {
|
||||
sh "mvn -Dhttps.protocols=TLSv1.2 -Dmaven.test.failure.ignore=true org.sonarsource.scanner.maven:sonar-maven-plugin:3.5.0.1254:sonar"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Deploy VAL') {
|
||||
when {
|
||||
beforeAgent true
|
||||
branch 'TM*'
|
||||
}
|
||||
steps {
|
||||
sh ''
|
||||
}
|
||||
}
|
||||
stage('Package') {
|
||||
steps {
|
||||
withMaven(jdk: 'JDK1.7_Oracle', maven: 'Maven3', mavenSettingsConfig: 'nexus_settings') {
|
||||
sh "mvn -Dhttps.protocols=TLSv1.2 package"
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
archiveArtifacts '**/target/*.ear'
|
||||
archiveArtifacts '**/target/*.zip'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
65
core-ear/pom.xml
Normal file
65
core-ear/pom.xml
Normal file
@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>core-ear</artifactId>
|
||||
<packaging>ear</packaging>
|
||||
<name>core-ear</name>
|
||||
|
||||
<parent>
|
||||
<groupId>com.capgemini.reports</groupId>
|
||||
<artifactId>kurt</artifactId>
|
||||
<version>1.32.9</version>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.capgemini.reports</groupId>
|
||||
<artifactId>kurt-web</artifactId>
|
||||
<version>1.32.9</version>
|
||||
<type>war</type>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-ear-plugin</artifactId>
|
||||
<configuration>
|
||||
<version>6</version>
|
||||
<defaultLibBundleDir>lib</defaultLibBundleDir>
|
||||
<modules>
|
||||
<webModule>
|
||||
<groupId>com.capgemini.reports</groupId>
|
||||
<artifactId>kurt-web</artifactId>
|
||||
<contextRoot>/kurt-web</contextRoot>
|
||||
</webModule>
|
||||
</modules>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>validation</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.jboss.as.plugins</groupId>
|
||||
<artifactId>jboss-as-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<hostname>${hostname}</hostname>
|
||||
<port>9999</port>
|
||||
<username>admin</username>
|
||||
<password>jboss</password>
|
||||
<force>true</force>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
|
||||
</project>
|
96
deployment-tool/pom.xml
Normal file
96
deployment-tool/pom.xml
Normal file
@ -0,0 +1,96 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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>
|
||||
<artifactId>deployment-tool</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<name>Deployment tool</name>
|
||||
<description>Deployment tool for JAVA project facilitating resources updates in archives (jar, war, ear)
|
||||
</description>
|
||||
|
||||
<parent>
|
||||
<artifactId>kurt</artifactId>
|
||||
<groupId>com.capgemini.reports</groupId>
|
||||
<version>1.32.9</version>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.testng</groupId>
|
||||
<artifactId>testng</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.assertj</groupId>
|
||||
<artifactId>assertj-core</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>1.7.7</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-log4j12</artifactId>
|
||||
<version>1.7.7</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>log4j</groupId>
|
||||
<artifactId>log4j</artifactId>
|
||||
<version>1.2.16</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.oracle</groupId>
|
||||
<artifactId>ojdbc6</artifactId>
|
||||
<version>11.2.0.3</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-dependencies</id>
|
||||
<phase>prepare-package</phase>
|
||||
<goals>
|
||||
<goal>unpack-dependencies</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/classes</outputDirectory>
|
||||
<includeScope>runtime</includeScope>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifest>
|
||||
<mainClass>com.capgemini.framework.deployment.Install</mainClass>
|
||||
<addClasspath>true</addClasspath>
|
||||
</manifest>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
@ -0,0 +1,71 @@
|
||||
package com.capgemini.framework.common;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Class for common file management.
|
||||
**/
|
||||
public final class FileHelper {
|
||||
private static final Logger log = LoggerFactory.getLogger(FileHelper.class);
|
||||
private static final char LINE_FEED = 0x000A;
|
||||
|
||||
private FileHelper() {
|
||||
// Constructor of helper classes must be private
|
||||
}
|
||||
|
||||
/**
|
||||
* Check file existence.
|
||||
*
|
||||
* @param aFilePath File which must be checked
|
||||
* @return True when the file exists
|
||||
*/
|
||||
public static boolean fileExist(final String aFilePath) {
|
||||
boolean status = true;
|
||||
if (aFilePath == null) {
|
||||
log.debug("File name is null");
|
||||
return false;
|
||||
}
|
||||
|
||||
File theFile = new File(aFilePath);
|
||||
if (!theFile.exists() || theFile.isDirectory()) {
|
||||
log.debug("File does not exist: {}", theFile.getAbsolutePath());
|
||||
status = false;
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a text file and findAll its content.
|
||||
*
|
||||
* @param aSourceFilePath parsed source file path
|
||||
* @return string with text file content
|
||||
*/
|
||||
public static String read(final String aSourceFilePath) throws IOException {
|
||||
// Check file existence
|
||||
if (!fileExist(aSourceFilePath)) {
|
||||
throw new FileNotFoundException("File does not exist: " + aSourceFilePath);
|
||||
}
|
||||
|
||||
StringBuilder theContent = new StringBuilder();
|
||||
try (BufferedReader reader = new BufferedReader(new FileReader(aSourceFilePath))) {
|
||||
// Browse lines of file
|
||||
String theCurrentLine = reader.readLine();
|
||||
while (theCurrentLine != null) {
|
||||
theContent.append(theCurrentLine);
|
||||
theContent.append(LINE_FEED);
|
||||
theCurrentLine = reader.readLine();
|
||||
}
|
||||
}
|
||||
|
||||
// Read file content
|
||||
return theContent.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
package com.capgemini.framework.common;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Class for folder management.
|
||||
**/
|
||||
public final class FolderHelper {
|
||||
|
||||
private FolderHelper() {
|
||||
// Constructor of helper classes must be private
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get file list from a specific directory with a filtered extension.
|
||||
*
|
||||
* @param aDirectory Directory path containing searched files
|
||||
* @param anExtension Extension of searched files (Set to null when all files should be returned)
|
||||
* @return List of files
|
||||
*/
|
||||
public static List<String> dirList(final File aDirectory, final String anExtension) {
|
||||
List<String> filteredFileList = new ArrayList<>();
|
||||
for (String element : aDirectory.list()) {
|
||||
if (anExtension == null || (element.endsWith(anExtension))) {
|
||||
filteredFileList.add(element);
|
||||
}
|
||||
}
|
||||
|
||||
return filteredFileList;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package com.capgemini.framework.db;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
import java.sql.SQLException;
|
||||
|
||||
/**
|
||||
* Define the migration database connection.
|
||||
**/
|
||||
class DbConnection {
|
||||
private static final Logger log = LoggerFactory.getLogger(DbConnection.class);
|
||||
private Connection connection;
|
||||
|
||||
/**
|
||||
* Connect directly to the database by specifying user and password.
|
||||
*
|
||||
* @param anUrl Database URL.
|
||||
* @param anUser User required for authentication.
|
||||
* @param aPassword Password required for authentication.
|
||||
**/
|
||||
DbConnection(final String anUrl, final String anUser, final String aPassword) {
|
||||
try {
|
||||
/* Load driver */
|
||||
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
|
||||
|
||||
/* Connect to database */
|
||||
connection = DriverManager.getConnection(anUrl, anUser, aPassword);
|
||||
|
||||
/* By default enabled auto commit */
|
||||
connection.setAutoCommit(true);
|
||||
}
|
||||
catch (SQLException e) {
|
||||
log.error("Unable to prepare connection", e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for connection attribute.
|
||||
*
|
||||
* @return Active connection.
|
||||
*/
|
||||
Connection getConnection() {
|
||||
return connection;
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.capgemini.framework.db;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Statement;
|
||||
|
||||
/**
|
||||
* Class for all JDBC connections.
|
||||
*/
|
||||
public class DbManager {
|
||||
private static final Logger log = LoggerFactory.getLogger(DbManager.class);
|
||||
private final DbConnection connection;
|
||||
|
||||
public DbManager(final String url, final String login, final String password) {
|
||||
connection = new DbConnection(url, login, password);
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute a query for private use of this utility class.
|
||||
*
|
||||
* @param query the SQL query
|
||||
* @return the number of affected rows
|
||||
*/
|
||||
private int execute(final String query) throws SQLException {
|
||||
try (Statement theStatement = connection.getConnection().createStatement()) {
|
||||
return theStatement.executeUpdate(query);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute a SQL query with stack trace display parameter.
|
||||
*
|
||||
* @param aQuery SQL query content.
|
||||
* @return True when the query has been executed successfully.
|
||||
*/
|
||||
boolean executeQuery(final String aQuery) {
|
||||
boolean status = true;
|
||||
int nbRowsImpacted = executeQueryAndGetRowCount(aQuery);
|
||||
if (nbRowsImpacted < 0) {
|
||||
status = false;
|
||||
}
|
||||
return status;
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute a SQL query and findAll its impacted rows count (for UPDATE and DELETE operations).
|
||||
*
|
||||
* @param aQuery SQL query content.
|
||||
* @return impacted row count (-1 = error).
|
||||
*/
|
||||
private int executeQueryAndGetRowCount(final String aQuery) {
|
||||
try {
|
||||
return execute(aQuery);
|
||||
}
|
||||
catch (SQLException e) {
|
||||
if (!isIgnoredError(e)) {
|
||||
log.error("SQL error detected during following query execution: " + aQuery, e);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
private boolean isIgnoredError(final SQLException exc) {
|
||||
int theErrorCode = exc.getErrorCode();
|
||||
return theErrorCode == 2289 || theErrorCode == 942;
|
||||
}
|
||||
}
|
@ -0,0 +1,105 @@
|
||||
package com.capgemini.framework.db;
|
||||
|
||||
import com.capgemini.framework.common.FileHelper;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Utility class for running SQL queries from an SQL file.
|
||||
**/
|
||||
public final class SqlHelper {
|
||||
private static final Logger log = LoggerFactory.getLogger(SqlHelper.class);
|
||||
|
||||
private SqlHelper() {
|
||||
/* Constructor of helper classes must be private */
|
||||
}
|
||||
|
||||
/**
|
||||
* Load a set of SQL queries from a text file.
|
||||
*
|
||||
* @param aDbManager Database manager for executing SQL queries
|
||||
* @param aFilePath File path for the loaded SQL file
|
||||
* @return True when all executed queries have been successfully run
|
||||
**/
|
||||
public static boolean runSqlFile(DbManager aDbManager, String aFilePath) throws IOException {
|
||||
|
||||
/* Check file existence */
|
||||
if (!FileHelper.fileExist(aFilePath)) {
|
||||
log.error("SQL file does not exist: {}", aFilePath);
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Extract the SQL file content */
|
||||
String theFileContent = FileHelper.read(aFilePath);
|
||||
|
||||
/* Separate each query */
|
||||
String[] theQueryArray = theFileContent.split(";\n");
|
||||
|
||||
return runSqlFile(aDbManager, aFilePath, theQueryArray);
|
||||
}
|
||||
|
||||
/**
|
||||
* Load a set of SQL queries from a text file.
|
||||
*
|
||||
* @param aDbManager Database manager for executing SQL queries
|
||||
* @param aFilePath File path for the loaded SQL file
|
||||
* @param aQueryArray List of SQL queries executed
|
||||
* @return True when all executed queries have been successfully run
|
||||
**/
|
||||
public static boolean runSqlFile(DbManager aDbManager, String aFilePath, String[] aQueryArray) {
|
||||
|
||||
boolean isSuccess = true;
|
||||
int successQueryCount = 0;
|
||||
|
||||
/* Browse SQL queries from file */
|
||||
for (String currentQuery : aQueryArray) {
|
||||
|
||||
/* Check if current query could be managed by loader */
|
||||
String currentUnformatedQuery = unformatQuery(currentQuery);
|
||||
if (currentUnformatedQuery.isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Run the SQL query */
|
||||
if (aDbManager.executeQuery(currentUnformatedQuery)) {
|
||||
successQueryCount++;
|
||||
}
|
||||
else {
|
||||
isSuccess = false;
|
||||
}
|
||||
}
|
||||
|
||||
/* Log correct queries */
|
||||
if (successQueryCount > 0) {
|
||||
log.debug("{} queries have been executed successfully from file: {}", successQueryCount, aFilePath);
|
||||
}
|
||||
|
||||
return isSuccess;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean the special characters used for indentation in the query.
|
||||
*
|
||||
* @param aQueryValue Original query (with pretty print format)
|
||||
* @return Cleaned query
|
||||
**/
|
||||
private static String unformatQuery(String aQueryValue) {
|
||||
|
||||
String theUnformatedQuery = aQueryValue;
|
||||
|
||||
/* Delete "pretty print" */
|
||||
theUnformatedQuery = theUnformatedQuery.replace("\n", " ").replace("\r", "").replace("\t", " ");
|
||||
|
||||
/* Delete comments */
|
||||
theUnformatedQuery = theUnformatedQuery.replaceAll("/\\*.*?\\*/", "").trim();
|
||||
|
||||
/* Ignore query with only "COMMIT" instruction */
|
||||
if ("COMMIT".equalsIgnoreCase(theUnformatedQuery)) {
|
||||
theUnformatedQuery = "";
|
||||
}
|
||||
|
||||
return theUnformatedQuery;
|
||||
}
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
package com.capgemini.framework.deployment;
|
||||
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Properties;
|
||||
|
||||
/**
|
||||
* Property ready for user inputs.
|
||||
**/
|
||||
class DeployProperties {
|
||||
private static final Logger log = LoggerFactory.getLogger(DeployProperties.class);
|
||||
private final Properties propFile;
|
||||
|
||||
DeployProperties(String aFilePath) {
|
||||
propFile = new Properties();
|
||||
try (FileInputStream theFileStream = getInputStream(aFilePath)) {
|
||||
propFile.load(theFileStream);
|
||||
displayValues();
|
||||
}
|
||||
catch (FileNotFoundException e) {
|
||||
log.error("The file has not been found: " + aFilePath, e);
|
||||
}
|
||||
catch (IOException e) {
|
||||
log.error("Error while reading file: " + aFilePath, e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Display property file content for debug purpose.
|
||||
*/
|
||||
private void displayValues() {
|
||||
if (log.isDebugEnabled()) {
|
||||
StringBuilder thePropValues = new StringBuilder();
|
||||
thePropValues.append("Property values:\n");
|
||||
|
||||
for (Entry<Object, Object> currentProp : propFile.entrySet()) {
|
||||
String currentKey = currentProp.getKey().toString();
|
||||
String currentValue = currentProp.getValue().toString();
|
||||
thePropValues.append("\t").append(currentKey).append("=").append(currentValue).append("\n");
|
||||
}
|
||||
|
||||
log.debug(thePropValues.toString());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Read input properties file.
|
||||
*/
|
||||
private FileInputStream getInputStream(String aFilePath) throws FileNotFoundException {
|
||||
return new FileInputStream(new File(aFilePath));
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve a property value.
|
||||
*
|
||||
* @param aDynamicRef Reference of the the searched property
|
||||
* @return Property value
|
||||
*/
|
||||
String getString(String aDynamicRef) {
|
||||
String thePropValue = "";
|
||||
if (propFile.containsKey(aDynamicRef)) {
|
||||
thePropValue = propFile.getProperty(aDynamicRef);
|
||||
}
|
||||
else {
|
||||
log.debug("Unknown property reference: {}", aDynamicRef);
|
||||
}
|
||||
return thePropValue;
|
||||
}
|
||||
}
|
@ -0,0 +1,137 @@
|
||||
package com.capgemini.framework.deployment;
|
||||
|
||||
import com.capgemini.framework.common.FileHelper;
|
||||
import com.capgemini.framework.common.FolderHelper;
|
||||
import com.capgemini.framework.db.DbManager;
|
||||
import com.capgemini.framework.db.SqlHelper;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Main class of executable JAR.
|
||||
**/
|
||||
public class Install {
|
||||
private static final Logger log = LoggerFactory.getLogger(Install.class);
|
||||
private String homeDir;
|
||||
private DeployProperties deployProperties;
|
||||
|
||||
/**
|
||||
* Main entry point of executable JAR.
|
||||
*
|
||||
* @param args Command line arguments
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
log.info("Start installation");
|
||||
log.info("==================");
|
||||
|
||||
boolean isSuccess = true;
|
||||
int theStatus = 0;
|
||||
try {
|
||||
Install theInstaller = new Install();
|
||||
|
||||
/* Check that the execution mode has been selected */
|
||||
isSuccess = theInstaller.checkEnvironment();
|
||||
if (isSuccess) {
|
||||
isSuccess = theInstaller.runSqlExec();
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
log.error("Unexpected error occurred", e);
|
||||
}
|
||||
finally {
|
||||
if (!isSuccess) {
|
||||
log.info("Installation status: FAILED");
|
||||
theStatus = 1;
|
||||
}
|
||||
else {
|
||||
log.info("Installation status: SUCCESS");
|
||||
}
|
||||
log.info("===============================");
|
||||
}
|
||||
System.exit(theStatus);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a environment variable is set.
|
||||
*
|
||||
* @return True when variable is set
|
||||
*/
|
||||
private static boolean checkEnvVar() {
|
||||
boolean isSet = true;
|
||||
String theEnvValue = System.getenv("DEPLOY_TOOL_HOME");
|
||||
if (theEnvValue == null) {
|
||||
isSet = false;
|
||||
}
|
||||
return isSet;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load SQL files which are in the "sql" sub-folder.
|
||||
*
|
||||
* @return True when all the SQL queries have been executed successfully
|
||||
**/
|
||||
private boolean runSqlExec() throws IOException {
|
||||
|
||||
boolean isSuccess = true;
|
||||
|
||||
/* Retrieve database parameters from properties */
|
||||
String url = deployProperties.getString("database.url");
|
||||
String theLogin = deployProperties.getString("database.schema.login");
|
||||
String thePass = deployProperties.getString("database.schema.password");
|
||||
|
||||
/* Instantiate database connector */
|
||||
DbManager theDbManager = new DbManager(url, theLogin, thePass);
|
||||
|
||||
/* Browse PL/SQL folder and load each SQL file */
|
||||
File thePlSqlFolder = new File(homeDir + "/plsql");
|
||||
List<String> theDirList = FolderHelper.dirList(thePlSqlFolder, "sql");
|
||||
for (String currentFile : theDirList) {
|
||||
String currentFilePath = homeDir + "/plsql/" + currentFile;
|
||||
String currentFileContent = FileHelper.read(currentFilePath);
|
||||
isSuccess &= SqlHelper.runSqlFile(theDbManager, currentFilePath, new String[]{currentFileContent});
|
||||
}
|
||||
|
||||
/* Browse SQL folder and load each SQL file */
|
||||
File theSqlFolder = new File(homeDir + "/sql");
|
||||
theDirList = FolderHelper.dirList(theSqlFolder, "sql");
|
||||
for (String currentFile : theDirList) {
|
||||
isSuccess &= SqlHelper.runSqlFile(theDbManager, homeDir + "/sql/" + currentFile);
|
||||
}
|
||||
|
||||
return isSuccess;
|
||||
}
|
||||
|
||||
/**
|
||||
* Run all prerequisite checks for verifying the environment setup.
|
||||
**/
|
||||
private boolean checkEnvironment() {
|
||||
/* Check environment */
|
||||
if (!checkEnvVar()) {
|
||||
log.error("The environment variable DEPLOY_TOOL_HOME must be set");
|
||||
return false;
|
||||
}
|
||||
homeDir = getEnvDir();
|
||||
String propFilePath = homeDir + "/db.properties";
|
||||
if (!FileHelper.fileExist(propFilePath)) {
|
||||
log.error("The property file for installation is missing: {}", propFilePath);
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Call the properties loader when all prerequisites checks have been done. */
|
||||
deployProperties = new DeployProperties(propFilePath);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get directory path and replace backslash separator to slash separator.
|
||||
**/
|
||||
private String getEnvDir() {
|
||||
String theDirPath = System.getenv("DEPLOY_TOOL_HOME");
|
||||
return theDirPath.replace("\\", "/");
|
||||
}
|
||||
}
|
15
deployment-tool/src/main/resources/log4j.properties
Normal file
15
deployment-tool/src/main/resources/log4j.properties
Normal file
@ -0,0 +1,15 @@
|
||||
# Root logger option
|
||||
log4j.rootLogger=DEBUG, stdout, file
|
||||
# Direct log messages to stdout
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target=System.out
|
||||
log4j.appender.stdout.threshold=DEBUG
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} - %m%n
|
||||
|
||||
log4j.appender.file=org.apache.log4j.RollingFileAppender
|
||||
log4j.appender.file.File=./log/install.log
|
||||
log4j.appender.file.MaxFileSize=10MB
|
||||
log4j.appender.file.MaxBackupIndex=10
|
||||
log4j.appender.file.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
|
@ -0,0 +1 @@
|
||||
# This file may be empty for test but must exist
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,7 @@
|
||||
com.capgemini.property1=value1
|
||||
com.capgemini.property2 =value2
|
||||
|
||||
# Unmodified comment and commented property
|
||||
# com.capgemini.property1=value1
|
||||
|
||||
com.capgemini.property3 =value3
|
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<settings>
|
||||
<!-- Test of XML comment which should be unchanged. -->
|
||||
<tag1Level1>
|
||||
<tag1Level2>
|
||||
OldValue1
|
||||
</tag1Level2>
|
||||
<tag2Level2>OldValue2</tag2Level2>
|
||||
<tag3Level2>
|
||||
<tag1Level4 updatedAttribute="OldAttValue" emptyAttribute=""/>
|
||||
<tag1Level4 notUpdatedAttribute="TestAttValue" updatedAttribute="OldAttValue2" notUpdated="Test" />
|
||||
</tag3Level2>
|
||||
</tag1Level1>
|
||||
<tag2Level1>
|
||||
<tag1Level2 updatedAttribute="ShouldNotBeUpdated">Should not be updated</tag1Level2>
|
||||
</tag2Level1>
|
||||
<tagConditionTest name="ConditionOK">Changed</tagConditionTest>
|
||||
<tagConditionTest name="ConditionKO">Unchanged</tagConditionTest>
|
||||
</settings>
|
@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<deployment workingDirectory="/src/test/resources/">
|
||||
|
||||
<!-- Parent EAR file -->
|
||||
<archive
|
||||
description="Main application package (EAR)"
|
||||
inputFile="input/sampleArchives/sampleEar.ear"
|
||||
outputFile="output/sampleArchives/sampleEarUpdated.ear">
|
||||
<embeddedFile filePath="root.xml">
|
||||
<xmlReplace tagTree="/root/tag1" newValue="NewValue1" />
|
||||
<xmlReplace tagTree="/root/tag2" newValue="NewValue2" />
|
||||
<xmlReplace tagTree="/root/tag3" newValue="NewValue3" />
|
||||
<xmlReplace tagTree="/root/tag4@attribute" newValue="NewValue4" />
|
||||
<xmlReplace tagTree="/root/tag5/tag6" newValue="NewValue6" />
|
||||
</embeddedFile>
|
||||
|
||||
<!-- Child WAR file contained in the EAR -->
|
||||
<archive
|
||||
description="Embedded Web Application (WAR)"
|
||||
inputFile="sampleWar.war"
|
||||
outputFile="sampleWar.war">
|
||||
|
||||
<embeddedFile filePath="resources/testInWar.xml">
|
||||
<xmlReplace tagTree="/settings/tag1Level1/tag1Level2" newValue="NewValue1" />
|
||||
<xmlReplace tagTree="/settings/tag1Level1/tag2Level2" newValue="NewValue2" />
|
||||
<xmlReplace tagTree="/settings/tag1Level1/tag3Level2/tag1Level4@updatedAttribute" newValue="NewAttValue" />
|
||||
</embeddedFile>
|
||||
|
||||
<embeddedFile filePath="resources/testInWar.properties">
|
||||
<propReplace key="com.capgemini.property1" newValue="NewValue1" />
|
||||
<propReplace key="com.capgemini.property2" newValue="NewValue2" />
|
||||
<propReplace key="com.capgemini.property3" newValue="NewValue3" />
|
||||
</embeddedFile>
|
||||
</archive>
|
||||
|
||||
<!-- Child JAR file contained in the EAR -->
|
||||
<archive
|
||||
description="JAVA API (JAR)"
|
||||
inputFile="sampleJar.jar"
|
||||
outputFile="sampleJar.jar">
|
||||
|
||||
<embeddedFile filePath="src/main/resources/testInJar.xml">
|
||||
<xmlReplace tagTree="/settings/tag1Level1/tag1Level2" newValue="NewValue1" />
|
||||
<xmlReplace tagTree="/settings/tag1Level1/tag2Level2" newValue="NewValue2" />
|
||||
<xmlReplace tagTree="/settings/tag1Level1/tag3Level2/tag1Level4@updatedAttribute" newValue="NewAttValue" />
|
||||
</embeddedFile>
|
||||
|
||||
<embeddedFile filePath="src/main/resources/testInJar.properties">
|
||||
<propReplace key="com.capgemini.property1" newValue="NewValue1" />
|
||||
<propReplace key="com.capgemini.property2" newValue="NewValue2" />
|
||||
<propReplace key="com.capgemini.property3" newValue="NewValue3" />
|
||||
</embeddedFile>
|
||||
</archive>
|
||||
|
||||
</archive>
|
||||
</deployment>
|
9
deployment-tool/src/test/resources/log4j.properties
Normal file
9
deployment-tool/src/test/resources/log4j.properties
Normal file
@ -0,0 +1,9 @@
|
||||
# Direct log messages to stdout
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target=System.out
|
||||
log4j.appender.stdout.threshold=DEBUG
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %c{1}:%L - %m%n
|
||||
|
||||
# Root logger option
|
||||
log4j.rootLogger=DEBUG, stdout
|
@ -0,0 +1,7 @@
|
||||
com.capgemini.property1=NewValueOne
|
||||
com.capgemini.property2=NewValueTwo
|
||||
|
||||
# Unmodified comment and commented property
|
||||
# com.capgemini.property1=value1
|
||||
|
||||
com.capgemini.property3=NewValueThree
|
17
deployment-tool/src/test/resources/ref/XmlUpdaterTest.ref
Normal file
17
deployment-tool/src/test/resources/ref/XmlUpdaterTest.ref
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<settings>
|
||||
<!-- Test of XML comment which should be unchanged. -->
|
||||
<tag1Level1>
|
||||
<tag1Level2>NewValueOne</tag1Level2>
|
||||
<tag2Level2>NewValueTwo</tag2Level2>
|
||||
<tag3Level2>
|
||||
<tag1Level4 updatedAttribute="NewAttValue" emptyAttribute="" />
|
||||
<tag1Level4 notUpdatedAttribute="TestAttValue" updatedAttribute="NewAttValue" notUpdated="Test" />
|
||||
</tag3Level2>
|
||||
</tag1Level1>
|
||||
<tag2Level1>
|
||||
<tag1Level2 updatedAttribute="ShouldNotBeUpdated">Should not be updated</tag1Level2>
|
||||
</tag2Level1>
|
||||
<tagConditionTest name="ConditionOK">Changed by condition</tagConditionTest>
|
||||
<tagConditionTest name="ConditionKO">Unchanged</tagConditionTest>
|
||||
</settings>
|
97
distribution/assembly.xml
Normal file
97
distribution/assembly.xml
Normal file
@ -0,0 +1,97 @@
|
||||
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
|
||||
<id>report-assembly</id>
|
||||
<formats>
|
||||
<format>zip</format>
|
||||
</formats>
|
||||
<includeBaseDirectory>false</includeBaseDirectory>
|
||||
<moduleSets>
|
||||
<moduleSet>
|
||||
<useAllReactorProjects>true</useAllReactorProjects>
|
||||
<includes>
|
||||
<include>com.capgemini.reports:core-ear</include>
|
||||
</includes>
|
||||
<binaries>
|
||||
<outputDirectory>Installation/reports</outputDirectory>
|
||||
<unpack>false</unpack>
|
||||
<includeDependencies>false</includeDependencies>
|
||||
<outputFileNameMapping>snecma-reports.${module.extension}</outputFileNameMapping>
|
||||
</binaries>
|
||||
</moduleSet>
|
||||
<moduleSet>
|
||||
<useAllReactorProjects>true</useAllReactorProjects>
|
||||
<includes>
|
||||
<include>com.capgemini.reports:deployment-tool</include>
|
||||
</includes>
|
||||
<binaries>
|
||||
<outputDirectory>Installation/reports/bin</outputDirectory>
|
||||
<unpack>false</unpack>
|
||||
<includeDependencies>false</includeDependencies>
|
||||
<outputFileNameMapping>install-reports.${module.extension}</outputFileNameMapping>
|
||||
</binaries>
|
||||
</moduleSet>
|
||||
<moduleSet>
|
||||
<useAllReactorProjects>true</useAllReactorProjects>
|
||||
<excludes>
|
||||
<exclude>com.capgemini.reports:distribution</exclude>
|
||||
</excludes>
|
||||
<sources>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<excludes>
|
||||
<exclude>target/</exclude>
|
||||
<exclude>src/test/</exclude>
|
||||
<exclude>**/*.iml</exclude>
|
||||
</excludes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
<outputDirectoryMapping>Sources/${module.basedir.name}</outputDirectoryMapping>
|
||||
</sources>
|
||||
</moduleSet>
|
||||
<moduleSet>
|
||||
<useAllReactorProjects>true</useAllReactorProjects>
|
||||
<includes>
|
||||
<include>com.capgemini.reports:kurt-utility</include>
|
||||
</includes>
|
||||
<sources>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<directory>src/main/resources/xml/policies/</directory>
|
||||
<includes>
|
||||
<include>**/*.xml</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
<outputDirectoryMapping>Installation/teamcenter/data/policies</outputDirectoryMapping>
|
||||
</sources>
|
||||
</moduleSet>
|
||||
</moduleSets>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<directory>${basedir}/install</directory>
|
||||
<outputDirectory>Installation</outputDirectory>
|
||||
<excludes>
|
||||
<exclude>**/bin/**</exclude>
|
||||
<exclude>**/modules/**</exclude>
|
||||
</excludes>
|
||||
<lineEnding>unix</lineEnding>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<directory>${basedir}/install</directory>
|
||||
<outputDirectory>Installation</outputDirectory>
|
||||
<includes>
|
||||
<include>**/bin/**</include>
|
||||
<include>**/modules/**</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
<files>
|
||||
<file>
|
||||
<source>install/teamcenter/report_install.pl</source>
|
||||
<outputDirectory>Installation/teamcenter</outputDirectory>
|
||||
<filtered>true</filtered>
|
||||
</file>
|
||||
</files>
|
||||
|
||||
</assembly>
|
@ -0,0 +1,9 @@
|
||||
CALL PR_DROP_SEQ_IF_EXIST('HIBERNATE_SEQUENCE');
|
||||
|
||||
CREATE SEQUENCE HIBERNATE_SEQUENCE
|
||||
START WITH 1
|
||||
MAXVALUE 9999999999999999999999999999
|
||||
MINVALUE 1
|
||||
NOCYCLE
|
||||
CACHE 20
|
||||
NOORDER;
|
101
distribution/install/reports/DBcreate/002_table.sql
Normal file
101
distribution/install/reports/DBcreate/002_table.sql
Normal file
@ -0,0 +1,101 @@
|
||||
CALL PR_DROP_IF_EXIST('CRITERIA_VAL');
|
||||
CALL PR_DROP_IF_EXIST('CRITERIA');
|
||||
CALL PR_DROP_IF_EXIST('MEM_MONITOR');
|
||||
CALL PR_DROP_IF_EXIST('REP_USER');
|
||||
CALL PR_DROP_IF_EXIST('REPORT_OWNER');
|
||||
CALL PR_DROP_IF_EXIST('CRITERIA');
|
||||
CALL PR_DROP_IF_EXIST('REPORT');
|
||||
CALL PR_DROP_IF_EXIST('REPORT_OWNER');
|
||||
CALL PR_DROP_IF_EXIST('REPORT_TYPE');
|
||||
CALL PR_DROP_IF_EXIST('SCHEDULING_REPORT');
|
||||
CALL PR_DROP_IF_EXIST('SCHEDULING_CRITERIA_VAL');
|
||||
|
||||
CREATE TABLE CRITERIA
|
||||
(
|
||||
CRITERIA_ID NUMBER(19) NOT NULL PRIMARY KEY,
|
||||
CRITERIA_NAME VARCHAR2(32 CHAR) NOT NULL,
|
||||
CRITERIA_TYPE VARCHAR2(32 CHAR) NOT NULL,
|
||||
IS_TEMPOREL VARCHAR2(5 CHAR) NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE CRITERIA_VAL
|
||||
(
|
||||
CRITERIA_VAL_ID NUMBER(19) NOT NULL PRIMARY KEY,
|
||||
REPORT_ID NUMBER(19),
|
||||
CRITERIA_ID NUMBER(19) NOT NULL,
|
||||
CRITERIA_VALUE VARCHAR2(3999 CHAR)
|
||||
);
|
||||
|
||||
CREATE TABLE MEM_MONITOR
|
||||
(
|
||||
MEM_MONITOR_ID NUMBER(19) NOT NULL PRIMARY KEY,
|
||||
MONITORDATE TIMESTAMP(6),
|
||||
TOTALMEMORY FLOAT(126),
|
||||
MAXMEMORY FLOAT(126),
|
||||
FREEMEMORY FLOAT(126),
|
||||
USEDMEMORY FLOAT(126),
|
||||
MAXPERCENT FLOAT(126)
|
||||
);
|
||||
|
||||
CREATE TABLE REP_USER
|
||||
(
|
||||
USER_ID NUMBER(19) NOT NULL PRIMARY KEY,
|
||||
LOGIN VARCHAR2(16 CHAR) NOT NULL,
|
||||
EMAIL VARCHAR2(255 CHAR),
|
||||
SURNAME VARCHAR2(32 CHAR),
|
||||
FIRSTNAME VARCHAR2(32 CHAR),
|
||||
LASTCONNECTIONDATE DATE,
|
||||
IS_ADMIN VARCHAR2(5 CHAR)
|
||||
);
|
||||
|
||||
CREATE TABLE REPORT
|
||||
(
|
||||
REPORT_ID NUMBER(19) NOT NULL PRIMARY KEY,
|
||||
STARTGENERATIONDATE TIMESTAMP(6),
|
||||
ENDGENERATIONDATE TIMESTAMP(6),
|
||||
GENERATION_DURATION NUMBER(19),
|
||||
REPORT_CODE VARCHAR2(3 CHAR) NOT NULL,
|
||||
REPORTUID VARCHAR2(64 CHAR) NOT NULL,
|
||||
FILE_NAME VARCHAR2(255 CHAR),
|
||||
STATE VARCHAR2(16 CHAR) NOT NULL,
|
||||
ERROR_TYPE VARCHAR2(16 CHAR),
|
||||
ERROR_MESSAGE VARCHAR2(3999 CHAR),
|
||||
SCHEDULING_REPORT_ID NUMBER(19,0)
|
||||
);
|
||||
|
||||
CREATE TABLE REPORT_OWNER
|
||||
(
|
||||
REPORT_OWNER_ID NUMBER(19) NOT NULL PRIMARY KEY,
|
||||
REPORT_ID NUMBER(19) NOT NULL,
|
||||
USER_ID NUMBER(19) NOT NULL,
|
||||
REQUESTDATE TIMESTAMP(6),
|
||||
MONTH_PERIOD VARCHAR2(7 CHAR)
|
||||
);
|
||||
|
||||
CREATE TABLE REPORT_TYPE
|
||||
(
|
||||
REPORT_TYPE_ID NUMBER(19) NOT NULL PRIMARY KEY,
|
||||
CODE VARCHAR2(3 CHAR) NOT NULL,
|
||||
TITLE VARCHAR2(255 CHAR) NOT NULL,
|
||||
REVISION_RULE VARCHAR2(255 CHAR),
|
||||
PRIORITY NUMBER(19) NOT NULL,
|
||||
REPORT_AUTHORIZED VARCHAR2(5 CHAR),
|
||||
IS_CANDIDATE_FOR_SCHEDULING VARCHAR2(5 CHAR)
|
||||
);
|
||||
|
||||
CREATE TABLE SCHEDULING_CRITERIA_VAL
|
||||
(
|
||||
SCHEDULING_CRITERIA_VAL_ID NUMBER(19) NOT NULL PRIMARY KEY,
|
||||
CRITERIA_ID NUMBER(19) NOT NULL,
|
||||
SCHEDULING_REPORT_ID NUMBER(19) NOT NULL,
|
||||
CRITERIA_VALUE VARCHAR2(32 CHAR)
|
||||
);
|
||||
|
||||
CREATE TABLE SCHEDULING_REPORT
|
||||
(
|
||||
SCHEDULING_REPORT_ID NUMBER(19) NOT NULL PRIMARY KEY,
|
||||
SCHEDULING_NAME VARCHAR2(200 CHAR) NOT NULL,
|
||||
USER_ID NUMBER(19) NOT NULL,
|
||||
LAST_UPDATE TIMESTAMP(6),
|
||||
REPORT_CODE VARCHAR2(3 CHAR) NOT NULL
|
||||
);
|
@ -0,0 +1,81 @@
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R01', 'BOM assemblage PU', ' DMA Configuration Interface R01', 2, 'TRUE', 'TRUE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R03', 'BOM fabrication date', ' DMA Configuration Interface', 1, 'TRUE', 'FALSE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R05', 'BOM Multi r<>cepteurs PU', ' DMA Configuration Interface', 1, 'FALSE',
|
||||
'FALSE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R06', 'Statut Def et Indus PU', ' DMA Configuration Interface', 1, 'FALSE',
|
||||
'FALSE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R07', 'Comparaison BOM PU', ' DMA Configuration Rapport PU', 1, 'TRUE', 'TRUE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R10', 'Documents associes g<>n<EFBFBD>rique', ' DMA Configuration Validated', 1, 'TRUE',
|
||||
'TRUE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R11', 'Mise en maquette et coh<6F>rence', ' DMA Configuration Mockup Best So Far', 1,
|
||||
'TRUE',
|
||||
'TRUE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R13', 'Etat avancement processus', ' DMA Configuration Interface', 2, 'TRUE',
|
||||
'TRUE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R15', 'Fiche article', ' DMA Configuration Interface', 1, 'TRUE', 'FALSE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'W15', 'Fiche article', ' DMA Configuration Interface', 1, 'FALSE', 'FALSE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R16', 'Fiche g<>n<EFBFBD>rique', ' DMA Configuration Validated', 1, 'TRUE', 'TRUE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R17', 'Liste document associ<63>s article', ' DMA Configuration Interface', 1, 'TRUE',
|
||||
'FALSE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R19', 'Cas utilisation document', ' DMA Configuration Interface', 1, 'TRUE',
|
||||
'FALSE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R20', 'Gel de UNIT', ' DMA Configuration Interface', 2, 'TRUE', 'TRUE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R21', 'Compare Net', ' DMA Configuration Interface', 3, 'TRUE', 'TRUE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R22', 'BOM fabrication date PDF eDOC', ' DMA Configuration Interface', 1, 'TRUE',
|
||||
'FALSE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'W22', 'BOM fabrication date PDF eDOC', ' DMA Configuration Interface', 1, 'FALSE',
|
||||
'FALSE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R23', 'BOM assemblage PU(s)', ' DMA Configuration Interface PU R23', 2, 'FALSE', 'TRUE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R24', 'Fiche(s) g<>n<EFBFBD>rique(s)', ' DMA Configuration Validated', 1, 'FALSE', 'TRUE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R25', 'Liste des documents des g<>n<EFBFBD>riques', ' DMA Configuration Descriptif R25', 1,
|
||||
'TRUE', 'TRUE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R26', 'Cas d''emploi d''un article', ' DMA Configuration Interface', 1, 'TRUE',
|
||||
'FALSE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R27', 'Extraction des articles de type Pi<50>ces', null, 1, 'TRUE', 'TRUE');
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values (HIBERNATE_SEQUENCE.NEXTVAL, 'R28', 'Extraction des rep<65>res fonctionnels ', null, 1, 'TRUE', 'TRUE');
|
111
distribution/install/reports/DBcreate/004_criteria_data.sql
Normal file
111
distribution/install/reports/DBcreate/004_criteria_data.sql
Normal file
@ -0,0 +1,111 @@
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Date d''effectivit<EFBFBD>', 'date', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'G<EFBFBD>n<EFBFBD>rique', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'G<EFBFBD>n<EFBFBD>rique montage', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Niveau', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Num<EFBFBD>ro d''article', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'R<EFBFBD>vision', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Produit', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Unit', 'integer', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Unit pr<70>c<EFBFBD>dent', 'integer', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Unit suivant', 'integer', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Produit pr<70>c<EFBFBD>dent', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Produit suivant', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Matricule moteur', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'LMR', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Classe', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Majeur mineur', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Conjoint unique', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Type d''impression', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Langue', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Date de d<>but', 'date', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Date de fin', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Type d''objet', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Unit configuration 1', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Unit configuration 2', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Num<EFBFBD>ro document', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'Document R<>vision', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'period', 'string', 'TRUE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'weekly', 'string', 'TRUE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'weekend', 'string', 'TRUE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'date', 'string', 'TRUE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'day_in_month_value', 'string', 'TRUE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'R<EFBFBD>gle de r<>vision', 'string', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values (HIBERNATE_SEQUENCE.NEXTVAL, 'SuperModel', 'boolean', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values
|
||||
(HIBERNATE_SEQUENCE.NEXTVAL, 'Avec le(s) unit(s) gelé(s)', 'boolean', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values
|
||||
(HIBERNATE_SEQUENCE.NEXTVAL, 'A partir de Unit', 'integer', 'FALSE');
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values
|
||||
(HIBERNATE_SEQUENCE.NEXTVAL, 'Units gelés il y a moins de', 'string', 'FALSE');
|
192
distribution/install/reports/DBcreate/006_quartz_tables.sql
Normal file
192
distribution/install/reports/DBcreate/006_quartz_tables.sql
Normal file
@ -0,0 +1,192 @@
|
||||
--
|
||||
-- A hint submitted by a user: Oracle DB MUST be created as "shared" and the
|
||||
-- job_queue_processes parameter must be greater than 2
|
||||
-- However, these settings are pretty much standard after any
|
||||
-- Oracle install, so most users need not worry about this.
|
||||
--
|
||||
-- Many other users (including the primary author of Quartz) have had success
|
||||
-- runing in dedicated mode, so only consider the above as a hint ;-)
|
||||
--
|
||||
|
||||
delete from qrtz_fired_triggers;
|
||||
delete from qrtz_simple_triggers;
|
||||
delete from qrtz_simprop_triggers;
|
||||
delete from qrtz_cron_triggers;
|
||||
delete from qrtz_blob_triggers;
|
||||
delete from qrtz_triggers;
|
||||
delete from qrtz_job_details;
|
||||
delete from qrtz_calendars;
|
||||
delete from qrtz_paused_trigger_grps;
|
||||
delete from qrtz_locks;
|
||||
delete from qrtz_scheduler_state;
|
||||
|
||||
drop table qrtz_calendars;
|
||||
drop table qrtz_fired_triggers;
|
||||
drop table qrtz_blob_triggers;
|
||||
drop table qrtz_cron_triggers;
|
||||
drop table qrtz_simple_triggers;
|
||||
drop table qrtz_simprop_triggers;
|
||||
drop table qrtz_triggers;
|
||||
drop table qrtz_job_details;
|
||||
drop table qrtz_paused_trigger_grps;
|
||||
drop table qrtz_locks;
|
||||
drop table qrtz_scheduler_state;
|
||||
|
||||
|
||||
CREATE TABLE qrtz_job_details
|
||||
(
|
||||
SCHED_NAME VARCHAR2(120) NOT NULL,
|
||||
JOB_NAME VARCHAR2(200) NOT NULL,
|
||||
JOB_GROUP VARCHAR2(200) NOT NULL,
|
||||
DESCRIPTION VARCHAR2(250) NULL,
|
||||
JOB_CLASS_NAME VARCHAR2(250) NOT NULL,
|
||||
IS_DURABLE VARCHAR2(1) NOT NULL,
|
||||
IS_NONCONCURRENT VARCHAR2(1) NOT NULL,
|
||||
IS_UPDATE_DATA VARCHAR2(1) NOT NULL,
|
||||
REQUESTS_RECOVERY VARCHAR2(1) NOT NULL,
|
||||
JOB_DATA BLOB NULL,
|
||||
CONSTRAINT QRTZ_JOB_DETAILS_PK PRIMARY KEY (SCHED_NAME,JOB_NAME,JOB_GROUP)
|
||||
);
|
||||
CREATE TABLE qrtz_triggers
|
||||
(
|
||||
SCHED_NAME VARCHAR2(120) NOT NULL,
|
||||
TRIGGER_NAME VARCHAR2(200) NOT NULL,
|
||||
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
|
||||
JOB_NAME VARCHAR2(200) NOT NULL,
|
||||
JOB_GROUP VARCHAR2(200) NOT NULL,
|
||||
DESCRIPTION VARCHAR2(250) NULL,
|
||||
NEXT_FIRE_TIME NUMBER(13) NULL,
|
||||
PREV_FIRE_TIME NUMBER(13) NULL,
|
||||
PRIORITY NUMBER(13) NULL,
|
||||
TRIGGER_STATE VARCHAR2(16) NOT NULL,
|
||||
TRIGGER_TYPE VARCHAR2(8) NOT NULL,
|
||||
START_TIME NUMBER(13) NOT NULL,
|
||||
END_TIME NUMBER(13) NULL,
|
||||
CALENDAR_NAME VARCHAR2(200) NULL,
|
||||
MISFIRE_INSTR NUMBER(2) NULL,
|
||||
JOB_DATA BLOB NULL,
|
||||
CONSTRAINT QRTZ_TRIGGERS_PK PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
|
||||
CONSTRAINT QRTZ_TRIGGER_TO_JOBS_FK FOREIGN KEY (SCHED_NAME,JOB_NAME,JOB_GROUP)
|
||||
REFERENCES QRTZ_JOB_DETAILS(SCHED_NAME,JOB_NAME,JOB_GROUP)
|
||||
);
|
||||
CREATE TABLE qrtz_simple_triggers
|
||||
(
|
||||
SCHED_NAME VARCHAR2(120) NOT NULL,
|
||||
TRIGGER_NAME VARCHAR2(200) NOT NULL,
|
||||
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
|
||||
REPEAT_COUNT NUMBER(7) NOT NULL,
|
||||
REPEAT_INTERVAL NUMBER(12) NOT NULL,
|
||||
TIMES_TRIGGERED NUMBER(10) NOT NULL,
|
||||
CONSTRAINT QRTZ_SIMPLE_TRIG_PK PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
|
||||
CONSTRAINT QRTZ_SIMPLE_TRIG_TO_TRIG_FK FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
|
||||
REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
|
||||
);
|
||||
CREATE TABLE qrtz_cron_triggers
|
||||
(
|
||||
SCHED_NAME VARCHAR2(120) NOT NULL,
|
||||
TRIGGER_NAME VARCHAR2(200) NOT NULL,
|
||||
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
|
||||
CRON_EXPRESSION VARCHAR2(120) NOT NULL,
|
||||
TIME_ZONE_ID VARCHAR2(80),
|
||||
CONSTRAINT QRTZ_CRON_TRIG_PK PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
|
||||
CONSTRAINT QRTZ_CRON_TRIG_TO_TRIG_FK FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
|
||||
REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
|
||||
);
|
||||
CREATE TABLE qrtz_simprop_triggers
|
||||
(
|
||||
SCHED_NAME VARCHAR2(120) NOT NULL,
|
||||
TRIGGER_NAME VARCHAR2(200) NOT NULL,
|
||||
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
|
||||
STR_PROP_1 VARCHAR2(512) NULL,
|
||||
STR_PROP_2 VARCHAR2(512) NULL,
|
||||
STR_PROP_3 VARCHAR2(512) NULL,
|
||||
INT_PROP_1 NUMBER(10) NULL,
|
||||
INT_PROP_2 NUMBER(10) NULL,
|
||||
LONG_PROP_1 NUMBER(13) NULL,
|
||||
LONG_PROP_2 NUMBER(13) NULL,
|
||||
DEC_PROP_1 NUMERIC(13,4) NULL,
|
||||
DEC_PROP_2 NUMERIC(13,4) NULL,
|
||||
BOOL_PROP_1 VARCHAR2(1) NULL,
|
||||
BOOL_PROP_2 VARCHAR2(1) NULL,
|
||||
CONSTRAINT QRTZ_SIMPROP_TRIG_PK PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
|
||||
CONSTRAINT QRTZ_SIMPROP_TRIG_TO_TRIG_FK FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
|
||||
REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
|
||||
);
|
||||
CREATE TABLE qrtz_blob_triggers
|
||||
(
|
||||
SCHED_NAME VARCHAR2(120) NOT NULL,
|
||||
TRIGGER_NAME VARCHAR2(200) NOT NULL,
|
||||
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
|
||||
BLOB_DATA BLOB NULL,
|
||||
CONSTRAINT QRTZ_BLOB_TRIG_PK PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
|
||||
CONSTRAINT QRTZ_BLOB_TRIG_TO_TRIG_FK FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
|
||||
REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
|
||||
);
|
||||
CREATE TABLE qrtz_calendars
|
||||
(
|
||||
SCHED_NAME VARCHAR2(120) NOT NULL,
|
||||
CALENDAR_NAME VARCHAR2(200) NOT NULL,
|
||||
CALENDAR BLOB NOT NULL,
|
||||
CONSTRAINT QRTZ_CALENDARS_PK PRIMARY KEY (SCHED_NAME,CALENDAR_NAME)
|
||||
);
|
||||
CREATE TABLE qrtz_paused_trigger_grps
|
||||
(
|
||||
SCHED_NAME VARCHAR2(120) NOT NULL,
|
||||
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
|
||||
CONSTRAINT QRTZ_PAUSED_TRIG_GRPS_PK PRIMARY KEY (SCHED_NAME,TRIGGER_GROUP)
|
||||
);
|
||||
CREATE TABLE qrtz_fired_triggers
|
||||
(
|
||||
SCHED_NAME VARCHAR2(120) NOT NULL,
|
||||
ENTRY_ID VARCHAR2(95) NOT NULL,
|
||||
TRIGGER_NAME VARCHAR2(200) NOT NULL,
|
||||
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
|
||||
INSTANCE_NAME VARCHAR2(200) NOT NULL,
|
||||
FIRED_TIME NUMBER(13) NOT NULL,
|
||||
PRIORITY NUMBER(13) NOT NULL,
|
||||
STATE VARCHAR2(16) NOT NULL,
|
||||
JOB_NAME VARCHAR2(200) NULL,
|
||||
JOB_GROUP VARCHAR2(200) NULL,
|
||||
IS_NONCONCURRENT VARCHAR2(1) NULL,
|
||||
REQUESTS_RECOVERY VARCHAR2(1) NULL,
|
||||
CONSTRAINT QRTZ_FIRED_TRIGGER_PK PRIMARY KEY (SCHED_NAME,ENTRY_ID)
|
||||
);
|
||||
CREATE TABLE qrtz_scheduler_state
|
||||
(
|
||||
SCHED_NAME VARCHAR2(120) NOT NULL,
|
||||
INSTANCE_NAME VARCHAR2(200) NOT NULL,
|
||||
LAST_CHECKIN_TIME NUMBER(13) NOT NULL,
|
||||
CHECKIN_INTERVAL NUMBER(13) NOT NULL,
|
||||
CONSTRAINT QRTZ_SCHEDULER_STATE_PK PRIMARY KEY (SCHED_NAME,INSTANCE_NAME)
|
||||
);
|
||||
CREATE TABLE qrtz_locks
|
||||
(
|
||||
SCHED_NAME VARCHAR2(120) NOT NULL,
|
||||
LOCK_NAME VARCHAR2(40) NOT NULL,
|
||||
CONSTRAINT QRTZ_LOCKS_PK PRIMARY KEY (SCHED_NAME,LOCK_NAME)
|
||||
);
|
||||
|
||||
create index idx_qrtz_j_req_recovery on qrtz_job_details(SCHED_NAME,REQUESTS_RECOVERY);
|
||||
create index idx_qrtz_j_grp on qrtz_job_details(SCHED_NAME,JOB_GROUP);
|
||||
|
||||
create index idx_qrtz_t_j on qrtz_triggers(SCHED_NAME,JOB_NAME,JOB_GROUP);
|
||||
create index idx_qrtz_t_jg on qrtz_triggers(SCHED_NAME,JOB_GROUP);
|
||||
create index idx_qrtz_t_c on qrtz_triggers(SCHED_NAME,CALENDAR_NAME);
|
||||
create index idx_qrtz_t_g on qrtz_triggers(SCHED_NAME,TRIGGER_GROUP);
|
||||
create index idx_qrtz_t_state on qrtz_triggers(SCHED_NAME,TRIGGER_STATE);
|
||||
create index idx_qrtz_t_n_state on qrtz_triggers(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP,TRIGGER_STATE);
|
||||
create index idx_qrtz_t_n_g_state on qrtz_triggers(SCHED_NAME,TRIGGER_GROUP,TRIGGER_STATE);
|
||||
create index idx_qrtz_t_next_fire_time on qrtz_triggers(SCHED_NAME,NEXT_FIRE_TIME);
|
||||
create index idx_qrtz_t_nft_st on qrtz_triggers(SCHED_NAME,TRIGGER_STATE,NEXT_FIRE_TIME);
|
||||
create index idx_qrtz_t_nft_misfire on qrtz_triggers(SCHED_NAME,MISFIRE_INSTR,NEXT_FIRE_TIME);
|
||||
create index idx_qrtz_t_nft_st_misfire on qrtz_triggers(SCHED_NAME,MISFIRE_INSTR,NEXT_FIRE_TIME,TRIGGER_STATE);
|
||||
create index idx_qrtz_t_nft_st_misfire_grp on qrtz_triggers(SCHED_NAME,MISFIRE_INSTR,NEXT_FIRE_TIME,TRIGGER_GROUP,TRIGGER_STATE);
|
||||
|
||||
create index idx_qrtz_ft_trig_inst_name on qrtz_fired_triggers(SCHED_NAME,INSTANCE_NAME);
|
||||
create index idx_qrtz_ft_inst_job_req_rcvry on qrtz_fired_triggers(SCHED_NAME,INSTANCE_NAME,REQUESTS_RECOVERY);
|
||||
create index idx_qrtz_ft_j_g on qrtz_fired_triggers(SCHED_NAME,JOB_NAME,JOB_GROUP);
|
||||
create index idx_qrtz_ft_jg on qrtz_fired_triggers(SCHED_NAME,JOB_GROUP);
|
||||
create index idx_qrtz_ft_t_g on qrtz_fired_triggers(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP);
|
||||
create index idx_qrtz_ft_tg on qrtz_fired_triggers(SCHED_NAME,TRIGGER_GROUP);
|
||||
|
||||
|
@ -0,0 +1,5 @@
|
||||
Insert into REPORT_TYPE
|
||||
(REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING)
|
||||
Values
|
||||
(HIBERNATE_SEQUENCE.NEXTVAL, 'R26', 'Cas d''emploi d''un article', ' DMA Configuration Interface', 1, 'TRUE',
|
||||
'FALSE');
|
@ -0,0 +1,2 @@
|
||||
INSERT INTO REPORT_TYPE (REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING) VALUES (HIBERNATE_SEQUENCE.NEXTVAL, 'R27', 'Extraction des articles de type pièces', null, 1, 'FALSE', 'TRUE');
|
||||
INSERT INTO REPORT_TYPE (REPORT_TYPE_ID, CODE, TITLE, REVISION_RULE, PRIORITY, REPORT_AUTHORIZED, IS_CANDIDATE_FOR_SCHEDULING) VALUES (HIBERNATE_SEQUENCE.NEXTVAL, 'R28', 'Extraction des repères fonctionnels ', null, 1, 'FALSE', 'TRUE');
|
@ -0,0 +1,2 @@
|
||||
update REPORT_TYPE set REVISION_RULE = ' DMA Configuration Interface R01' where CODE = 'R01';
|
||||
update REPORT_TYPE set REVISION_RULE = ' DMA Configuration Interface PU R23' where CODE = 'R23';
|
@ -0,0 +1 @@
|
||||
update REPORT_TYPE set REVISION_RULE = ' Generic / Generic Assemb R19' where CODE = 'R19';
|
@ -0,0 +1,4 @@
|
||||
Insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
Values
|
||||
(HIBERNATE_SEQUENCE.NEXTVAL, 'R<EFBFBD>gle de r<>vision', 'string', 'FALSE');
|
@ -0,0 +1,4 @@
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values
|
||||
(HIBERNATE_SEQUENCE.NEXTVAL, 'SuperModel', 'boolean', 'FALSE');
|
@ -0,0 +1,14 @@
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values
|
||||
(HIBERNATE_SEQUENCE.NEXTVAL, 'Avec le(s) unit(s) gelé(s)', 'boolean', 'FALSE');
|
||||
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values
|
||||
(HIBERNATE_SEQUENCE.NEXTVAL, 'A partir de Unit', 'integer', 'FALSE');
|
||||
|
||||
insert into CRITERIA
|
||||
(CRITERIA_ID, CRITERIA_NAME, CRITERIA_TYPE, IS_TEMPOREL)
|
||||
values
|
||||
(HIBERNATE_SEQUENCE.NEXTVAL, 'Units gelés il y a moins de', 'string', 'FALSE');
|
35
distribution/install/reports/create_database.bat
Normal file
35
distribution/install/reports/create_database.bat
Normal file
@ -0,0 +1,35 @@
|
||||
@echo on
|
||||
echo =========================
|
||||
echo REPORTING DATABASE CREATE
|
||||
echo =========================
|
||||
|
||||
IF "%DEPLOY_TOOL_HOME%"=="" (
|
||||
echo > DEPLOY_TOOL_HOME must be defined
|
||||
exit/B
|
||||
)
|
||||
|
||||
IF "%JBOSS_HOME%"=="" (
|
||||
echo > JBOSS_HOME must be defined
|
||||
exit/B
|
||||
)
|
||||
|
||||
echo copy sql creation files
|
||||
copy %DEPLOY_TOOL_HOME%\DBcreate\. %DEPLOY_TOOL_HOME%\sql
|
||||
echo - Run database create
|
||||
java -jar %DEPLOY_TOOL_HOME%\bin\install-reports.jar
|
||||
if %ERRORLEVEL% EQU 1 (
|
||||
echo - Error detected, check install.log file
|
||||
) else (
|
||||
echo - Database create run successfully
|
||||
)
|
||||
|
||||
echo clearing sql folder contents
|
||||
del %DEPLOY_TOOL_HOME%\sql\* /Q
|
||||
|
||||
echo ==========================
|
||||
echo END OF DATABASE CREATE
|
||||
echo ==========================
|
||||
|
||||
pause
|
||||
|
||||
exit/B
|
@ -0,0 +1,2 @@
|
||||
[ZoneTransfer]
|
||||
ZoneId=3
|
4
distribution/install/reports/db.properties
Normal file
4
distribution/install/reports/db.properties
Normal file
@ -0,0 +1,4 @@
|
||||
# Database configuration
|
||||
database.url=TO_BE_DEFINED
|
||||
database.schema.login=TO_BE_DEFINED
|
||||
database.schema.password=TO_BE_DEFINED
|
1
distribution/install/reports/log/readme.txt
Normal file
1
distribution/install/reports/log/readme.txt
Normal file
@ -0,0 +1 @@
|
||||
Ce dossier contient l'ensemble des traces d'exécution de la procédure de packaging et de mise à jour de la base de données.
|
BIN
distribution/install/reports/modules/modules.zip
Normal file
BIN
distribution/install/reports/modules/modules.zip
Normal file
Binary file not shown.
@ -0,0 +1,11 @@
|
||||
CREATE OR REPLACE PROCEDURE PR_DROP_SEQ_IF_EXIST
|
||||
(aSeqName IN VARCHAR2)
|
||||
IS
|
||||
BEGIN
|
||||
EXECUTE IMMEDIATE 'DROP SEQUENCE ' || aSeqName;
|
||||
EXCEPTION
|
||||
WHEN OTHERS THEN
|
||||
IF SQLCODE != -2289 THEN
|
||||
RAISE;
|
||||
END IF;
|
||||
END;
|
@ -0,0 +1,11 @@
|
||||
CREATE OR REPLACE PROCEDURE PR_DROP_IF_EXIST
|
||||
(aTableName IN VARCHAR2)
|
||||
IS
|
||||
BEGIN
|
||||
EXECUTE IMMEDIATE 'DROP TABLE ' || aTableName || ' PURGE';
|
||||
EXCEPTION
|
||||
WHEN OTHERS THEN
|
||||
IF SQLCODE != -942 THEN
|
||||
RAISE;
|
||||
END IF;
|
||||
END;
|
35
distribution/install/reports/update_database.bat
Normal file
35
distribution/install/reports/update_database.bat
Normal file
@ -0,0 +1,35 @@
|
||||
@echo off
|
||||
echo =========================
|
||||
echo REPORTING DATABASE UPDATE
|
||||
echo =========================
|
||||
|
||||
IF "%DEPLOY_TOOL_HOME%"=="" (
|
||||
echo > DEPLOY_TOOL_HOME must be defined
|
||||
exit/B
|
||||
)
|
||||
|
||||
IF "%JBOSS_HOME%"=="" (
|
||||
echo > JBOSS_HOME must be defined
|
||||
exit/B
|
||||
)
|
||||
|
||||
echo copy sql update files
|
||||
copy %DEPLOY_TOOL_HOME%\DBupdate\. %DEPLOY_TOOL_HOME%\sql
|
||||
echo - Run database update
|
||||
java -jar %DEPLOY_TOOL_HOME%\bin\install-reports.jar
|
||||
if %ERRORLEVEL% EQU 1 (
|
||||
echo - Error detected, check install.log file
|
||||
) else (
|
||||
echo - Database update run successfully
|
||||
)
|
||||
|
||||
echo clearing sql folder contents
|
||||
del %DEPLOY_TOOL_HOME%\sql\* /Q
|
||||
|
||||
echo ==========================
|
||||
echo END OF DATABASE UPDATE
|
||||
echo ==========================
|
||||
|
||||
pause
|
||||
|
||||
exit/B
|
@ -0,0 +1,2 @@
|
||||
[ZoneTransfer]
|
||||
ZoneId=3
|
BIN
distribution/install/teamcenter/data/bin/clause_propriete_update
Normal file
BIN
distribution/install/teamcenter/data/bin/clause_propriete_update
Normal file
Binary file not shown.
BIN
distribution/install/teamcenter/data/bin/encrypt
Normal file
BIN
distribution/install/teamcenter/data/bin/encrypt
Normal file
Binary file not shown.
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-09-10" languages="en-us fr-fr de-de it-it es-es pt-br" time="10:19:33" author="Teamcenter V10000.1.0.31_20150207.00 - infodba@SNECMA_RI(505997169)">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_All_Sequences" queryFlag="0" queryClass="ItemRevision">
|
||||
<Description>All Sequences of an ItemRevision</Description>
|
||||
<ApplicationRef version="SqRVPMBlhLofXA" application="Teamcenter" label="SqRVPMBlhLofXA"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM ItemRevision WHERE "items_tag.item_id" = "${report_item_id = }""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="fr-fr"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="fr-fr"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-07-09" languages="en-us fr-fr de-de it-it es-es pt-br" time="14:28:35" author="Teamcenter V10000.1.0.31_20150207.00 - infodba@SNECMA_RI(505997169)">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_ChangeNotice_R07" queryFlag="0" queryClass="ChangeNoticeRevision">
|
||||
<Description>Récupère toutes les change notice associé à une part ou un générique</Description>
|
||||
<ApplicationRef version="C_XVZ7V5hLofXA" application="Teamcenter" label="C_XVZ7V5hLofXA"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM ChangeNoticeRevision WHERE "active_seq" != "0" AND "ItemRevision:CMHasSolutionItem.item_revision_id" = "${report_part_revision = }" AND "ItemRevision:CMHasSolutionItem.items_tag.item_id" = "${report_part_id = }""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="fr-fr"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="fr-fr"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-04-03" languages="en-us fr-fr de-de it-it es-es pt-br" time="14:35:24" author="Teamcenter V10000.1.0.21_20140818.00 - infodba@SNECMA_RI(505997169)">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_ChangeRequest" queryFlag="0" queryClass="PV4_GN_CR_DMARevision">
|
||||
<Description>Obtain a Change Request RevisionObtain a Change Request Revision</Description>
|
||||
<ApplicationRef version="CGWROp$ghLofXA" application="Teamcenter" label="CGWROp$ghLofXA"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM PV4_GN_CR_DMARevision WHERE "object_name" = "${report_Name = }" AND "PV4_GN_CR_DMA:items_tag.item_id" = "${report_item_id = }" AND "creation_date" <= "${report_cree_avant = }" AND "creation_date" >= "${report_cree_apres = }" AND "active_seq" != "0""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="en-us"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="fr-fr"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-07-09" languages="en-us fr-fr de-de it-it es-es pt-br" time="11:01:08" author="Teamcenter V10000.1.0.31_20150207.00 - infodba@SNECMA_RI(505997169)">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_ChangeRequest_R07" queryFlag="0" queryClass="ChangeRequestRevision">
|
||||
<Description>Récupère toutes les change request associé à une part ou un générique</Description>
|
||||
<ApplicationRef version="C6dVZ7V5hLofXA" application="Teamcenter" label="C6dVZ7V5hLofXA"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM ChangeRequestRevision WHERE "active_seq" != "0" AND "ItemRevision:CMHasSolutionItem" IS_NOT_NULL "IS_NOT_NULL" AND "ItemRevision:CMHasSolutionItem.items_tag.item_id" = "${report_part_id = }" AND "ItemRevision:CMHasSolutionItem.item_revision_id" = "${report_part_revision = }""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="fr-fr"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="fr-fr"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-09-24" languages="en-us fr-fr de-de it-it es-es pt-br" time="15:13:16" author="Teamcenter V10000.1.0.31_20150207.00 - infodba@SNECMA_RI(505997169)">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_ChangeRequest_With_Seq" queryFlag="0" queryClass="PV4_GN_CR_DMARevision">
|
||||
<Description>Obtain a Change Request Revision</Description>
|
||||
<ApplicationRef version="SseVy4pmhLofXA" application="Teamcenter" label="SseVy4pmhLofXA"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM PV4_GN_CR_DMARevision WHERE "object_name" = "${report_Name = }" AND "PV4_GN_CR_DMA:items_tag.item_id" = "${report_item_id = }" AND "creation_date" <= "${report_cree_avant = }" AND "creation_date" >= "${report_cree_apres = }" AND "active_seq" != "0""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="fr-fr"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="fr-fr"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-03-06" languages="en-us fr-fr de-de it-it es-es pt-br" time="11:36:31" author="Teamcenter V10000.1.0.21_20140818.00 - infodba@SNECMA_RI(505997169)">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_ChangeRequest" queryFlag="0" queryClass="PV4_GN_CR_DMARevision">
|
||||
<Description>Obtain a Change Request Revision</Description>
|
||||
<ApplicationRef version="CGWROp$ghLofXA" application="Teamcenter" label="CGWROp$ghLofXA"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM PV4_GN_CR_DMARevision WHERE "object_name" = "${report_Name = }" AND "PV4_GN_CR_DMA:items_tag.item_id" = "${report_item_id = }" AND "creation_date" <= "${report_cree_avant = }" AND "active_seq" != "0""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="en-us"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="en-us"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-03-26" languages="en-us fr-fr de-de it-it es-es pt-br" time="16:06:11" author="Teamcenter V10000.1.0.21_20140818.00 - infodba@SNECMA_RI(505997169)">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_Change_from_Part" queryFlag="0" queryClass="ChangeItemRevision">
|
||||
<Description>Toutes les revisions article de type CR</Description>
|
||||
<ApplicationRef version="SDUVx49YhLofXA" application="Teamcenter" label="SDUVx49YhLofXA"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM ChangeItemRevision WHERE "ItemRevision:CMHasSolutionItem.items_tag.item_id" = "${report_part_id = }" AND "ItemRevision:CMHasSolutionItem" IS_NOT_NULL "IS_NOT_NULL" AND "active_seq" != "0" AND "ItemRevision:CMHasSolutionItem.item_revision_id" = "${report_part_revision = }""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="en-us"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="en-us"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
12
distribution/install/teamcenter/data/queries/Report_DET.xml
Normal file
12
distribution/install/teamcenter/data/queries/Report_DET.xml
Normal file
File diff suppressed because one or more lines are too long
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2016-07-27" languages="en-us fr-fr de-de it-it es-es pt-br" time="09:38:54" author="Teamcenter V10000.1.0.31_35_20150806.00 - infodba@IMC--1461332921(-1461332921)">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_FPP_With_Seq" queryFlag="0" queryClass="PV4_FPPRevision">
|
||||
<Description>Obtain a FPP Revision with all the sequences.Obtain a FPP Revision with all the sequences.</Description>
|
||||
<ApplicationRef version="ieQd55ehK6VT0B" application="Teamcenter" label="ieQd55ehK6VT0B"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM PV4_FPPRevision WHERE "items_tag.item_id" = "${report_item_id = }" AND "object_name" = "${report_Name = }" AND "active_seq" != "0" AND "creation_date" >= "${report_cree_apres = }" AND "creation_date" <= "${report_cree_avant = }""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="en-us"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="en-us"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-01-21" languages="en-us fr-fr de-de it-it es-es pt-br" time="09:22:01" author="Teamcenter V10000.1.0.21_20140818.00">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_Generic" queryFlag="0" queryClass="ItemRevision">
|
||||
<Description>Toutes les revisions article de type Generic</Description>
|
||||
<ApplicationRef version="SJSRrnWOK6VT0B" application="Teamcenter" label="SJSRrnWOK6VT0B"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM ItemRevision WHERE "object_type" = "Generic Revision" AND "items_tag.item_id" = "${report_item_id = }" AND "object_name" = "${report_object_name = }" AND "owning_user.user_name" = "${report_cree_par = }" AND "creation_date" >= "${report_cree_apres = }" AND "creation_date" <= "${report_cree_avant = }" AND "release_status_list.name" = "${report_Status = }" AND "release_status_list.Effectivity:effectivities.end_item.item_id" = "${report_end_item_id = }" AND "release_status_list.Effectivity:effectivities.effectivity_units" = "${report_effectivity_units_intro = }" AND "Form:IMAN_master_form_rev.GenericVerMaster:data_file.pv_designation_en" = "${report_pv_designation_en = }" AND "Form:IMAN_master_form_rev.GenericVerMaster:data_file.pv_responsable_conception" = "${report_pv_responsable_conception = }" AND "active_seq" != "0""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="en-us"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="en-us"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-01-21" languages="en-us fr-fr de-de it-it es-es pt-br" time="09:27:06" author="Teamcenter V10000.1.0.21_20140818.00">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_Generic Assemb" queryFlag="0" queryClass="ItemRevision">
|
||||
<Description>Toutes les revisions d'article de type Generic specifique montage</Description>
|
||||
<ApplicationRef version="SdZRrnWOK6VT0B" application="Teamcenter" label="SdZRrnWOK6VT0B"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM ItemRevision WHERE "object_type" = "Generic Assemb Revision" AND "items_tag.item_id" = "${report_item_id = }" AND "object_name" = "${report_object_name = }" AND "owning_user.user_name" = "${report_cree_par = }" AND "creation_date" >= "${report_cree_apres = }" AND "creation_date" <= "${report_cree_avant = }" AND "release_status_list.name" = "${report_Status = }" AND "release_status_list.Effectivity:effectivities.end_item.item_id" = "${report_end_item_id = }" AND "release_status_list.Effectivity:effectivities.effectivity_units" = "${report_effectivity_units_intro = }" AND "Form:IMAN_master_form_rev.GenericAssembVerMaster:data_file.pv_designation_en" = "${report_pv_designation_en = }" AND "Form:IMAN_master_form_rev.GenericAssembVerMaster:data_file.pv_responsable_conception" = "${report_pv_responsable_conception = }" AND "active_seq" != "0""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="en-us"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="en-us"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
11
distribution/install/teamcenter/data/queries/Report_Item.xml
Normal file
11
distribution/install/teamcenter/data/queries/Report_Item.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-03-11" languages="en-us fr-fr de-de it-it es-es pt-br" time="12:09:28" author="Teamcenter V10000.1.0.21_20140818.00 - nbe@SNECMA_RI(505997169)">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_Item" queryFlag="0" queryClass="Item">
|
||||
<Description>Rechercher le(s) articles</Description>
|
||||
<ApplicationRef version="CedR$L4EhLofXA" application="Teamcenter" label="CedR$L4EhLofXA"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM Item WHERE "object_name" = "${report_Name = }" AND "item_id" = "${report_item_id = }" AND "object_type" = "${Type = Item}" AND "creation_date" >= "${CreatedAfter = }" AND "creation_date" <= "${report_cree_avant = }" AND "last_mod_date" >= "${ModifiedAfter = }" AND "last_mod_date" <= "${ModifiedBefore = }" AND "date_released" >= "${ReleasedAfter = }" AND "date_released" <= "${ReleasedBefore = }" AND "release_status_list.name" = "${ReleaseStatus = }""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="fr-fr"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="fr-fr"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-03-11" languages="en-us fr-fr de-de it-it es-es pt-br" time="12:09:39" author="Teamcenter V10000.1.0.21_20140818.00 - nbe@SNECMA_RI(505997169)">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_ItemRevision" queryFlag="0" queryClass="ItemRevision">
|
||||
<Description>Rechercher le(s) révisions d'articles</Description>
|
||||
<ApplicationRef version="C_fR$L4EhLofXA" application="Teamcenter" label="C_fR$L4EhLofXA"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM ItemRevision WHERE "object_name" = "${report_Name = }" AND "items_tag.item_id" = "${report_item_id = }" AND "item_revision_id" = "${report_Revision = }" AND "active_seq" != "0" AND "object_type" = "${Type = ItemRevision}" AND "creation_date" >= "${Created After = }" AND "creation_date" <= "${report_cree_avant = }" AND "last_mod_date" >= "${Modified After = }" AND "last_mod_date" <= "${Modified Before = }" AND "date_released" >= "${Released After = }" AND "date_released" <= "${Released Before = }" AND "release_status_list.name" = "${Release Status = }""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="fr-fr"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="fr-fr"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-01-21" languages="en-us fr-fr de-de it-it es-es pt-br" time="09:35:38" author="Teamcenter V10000.1.0.21_20140818.00">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_Product" queryFlag="0" queryClass="ItemRevision">
|
||||
<Description>Toutes les revisions article de type Produit</Description>
|
||||
<ApplicationRef version="jcTRrnWOK6VT0B" application="Teamcenter" label="jcTRrnWOK6VT0B"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM ItemRevision WHERE "object_type" = "Product Revision" AND "items_tag.item_id" = "${report_item_id = }" AND "object_name" = "${report_object_name = }" AND "owning_user.user_name" = "${report_cree_par = }" AND "creation_date" >= "${report_cree_apres = }" AND "creation_date" <= "${report_cree_avant = }" AND "Form:IMAN_master_form_rev.ProductVerMaster:data_file.pv_designation_en" = "${report_pv_designation_en = }" AND "Form:IMAN_master_form_rev.ProductVerMaster:data_file.pv_domaine" = "${report_pv_domaine = }" AND "Form:IMAN_master_form_rev.ProductVerMaster:data_file.pv_type_produit" = "${report_pv_type_produit = }" AND "Form:IMAN_master_form_rev.ProductVerMaster:data_file.pv_ligne_produit" = "${report_pv_ligne_produit = }" AND "active_seq" != "0""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="en-us"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="en-us"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-01-21" languages="en-us fr-fr de-de it-it es-es pt-br" time="15:24:49" author="Teamcenter V10000.1.0.21_20140818.00 - infodba@IMC--1461332921(-1461332921)">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_Product Type" queryFlag="0" queryClass="Form">
|
||||
<Description>Tous les formulaires Type ProduitTous les formulaires Type Produit</Description>
|
||||
<ApplicationRef version="CxcR7vs6K6VT0B" application="Teamcenter" label="CxcR7vs6K6VT0B"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM Form WHERE "object_type" = "Product Type" AND "object_name" = "${report_object_name = }" AND "owning_user.user_name" = "${report_cree_par = }" AND "creation_date" >= "${report_cree_apres = }" AND "creation_date" <= "${report_cree_avant = }" AND "ProductTypeStorage:data_file.pv_nom_type_produit" = "${report_pv_nom_type_produit = }" AND "ProductTypeStorage:data_file.pv_code_type_produit" = "${report_pv_code_type_produit = }" AND "ProductTypeStorage:data_file.pv_clause_propriete" = "${report_pv_clause_propriete = }" AND "ProductTypeStorage:data_file.pv_categorie_produit" = "${report_pv_categorie_produit = }""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="en-us"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="en-us"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2016-01-28" languages="en-us fr-fr de-de it-it es-es pt-br" time="16:55:50" author="Teamcenter V10000.1.0.31_20150207.00 - infodba@SNECMA_RI(505997169)">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" name="__Report_Relationship" queryFlag="0" queryClass="ImanRelation">
|
||||
<ApplicationRef version="CaQZKmiohLofXA" application="Teamcenter" label="CaQZKmiohLofXA"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id3" stringValue="SELECT qid FROM ImanRelation WHERE "relation_type.type_name" = "${report_relationship = }" AND "Item:primary_object.item_id" = "${report_item_id = }" AND "Dataset:secondary_object.object_name" = "${report_dataset_name = }""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="fr-fr"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
11
distribution/install/teamcenter/data/queries/Report_Unit.xml
Normal file
11
distribution/install/teamcenter/data/queries/Report_Unit.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-01-21" languages="en-us fr-fr de-de it-it es-es pt-br" time="10:25:20" author="Teamcenter V10000.1.0.21_20140818.00">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_Unit" queryFlag="0" queryClass="ItemRevision">
|
||||
<Description>Toutes les revisions article de type Unit</Description>
|
||||
<ApplicationRef version="zoSRrnWOK6VT0B" application="Teamcenter" label="zoSRrnWOK6VT0B"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM ItemRevision WHERE "object_type" = "Unit Revision" AND "items_tag.item_id" = "${report_item_id = }" AND "object_name" = "${report_object_name = }" AND "owning_user.user_name" = "${report_cree_par = }" AND "creation_date" >= "${report_cree_apres = }" AND "creation_date" <= "${report_cree_avant = }" AND "release_status_list.name" = "${report_Status = }" AND "release_status_list.Effectivity:effectivities.end_item.item_id" = "${report_end_item_id = }" AND "release_status_list.Effectivity:effectivities.effectivity_units" = "${report_effectivity_units_intro = }" AND "Form:IMAN_master_form_rev.UnitVerMaster:data_file.pv_date_unit" >= "${report_pv_date_unit_apres = }" AND "Form:IMAN_master_form_rev.UnitVerMaster:data_file.pv_date_unit" <= "${report_pv_date_unit_avant = }" AND "Form:IMAN_master_form_rev.UnitVerMaster:data_file.pv_unit_exceptionnel" = "${report_pv_unit_exceptionnel = }" AND "active_seq" != "0""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="en-us"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="en-us"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-02-26" languages="en-us fr-fr de-de it-it es-es pt-br" time="10:44:39" author="Teamcenter V10000.1.0.21_20140818.00 - nbe@SNECMA_RI(505997169)">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_Unit_from_CR" queryFlag="0" queryClass="ItemRevision">
|
||||
<Description>Toutes les revisions article de type UnitToutes les revisions article de type Unit</Description>
|
||||
<ApplicationRef version="4QXRe7oGhLofXA" application="Teamcenter" label="4QXRe7oGhLofXA"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM ItemRevision WHERE "PV4_GN_CR_DMARevision:_PV_change_list" IS_NOT_NULL "IS_NOT_NULL" AND "PV4_GN_CR_DMARevision:_PV_change_list.items_tag.item_id" = "${report_change_id = }""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="fr-fr"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="fr-fr"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-03-02" languages="en-us fr-fr de-de it-it es-es pt-br" time="14:23:19" author="Teamcenter V10000.1.0.21_20140818.00 - infodba@SNECMA_RI(505997169)">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_Unit_With_WKF" queryFlag="0" queryClass="ItemRevision">
|
||||
<Description>Toutes les revisions article de type UnitToutes les revisions article de type Unit</Description>
|
||||
<ApplicationRef version="0rTR_CEwhLofXA" application="Teamcenter" label="0rTR_CEwhLofXA"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM ItemRevision WHERE "object_type" = "Unit Revision" AND "items_tag.item_id" = "${report_item_id = }" AND "object_name" = "${report_object_name = }" AND "owning_user.user_name" = "${report_cree_par = }" AND "creation_date" >= "${report_cree_apres = }" AND "EPMTask<-attachments" IS_NOT_NULL "IS_NOT_NULL" AND "creation_date" <= "${report_cree_avant = }" AND "release_status_list.name" = "${report_Status = }" AND "release_status_list.Effectivity:effectivities.end_item.item_id" = "${report_end_item_id = }" AND "release_status_list.Effectivity:effectivities.effectivity_units" = "${report_effectivity_units_intro = }" AND "Form:IMAN_master_form_rev.UnitVerMaster:data_file.pv_date_unit" >= "${report_pv_date_unit_apres = }" AND "Form:IMAN_master_form_rev.UnitVerMaster:data_file.pv_date_unit" <= "${report_pv_date_unit_avant = }" AND "Form:IMAN_master_form_rev.UnitVerMaster:data_file.pv_unit_exceptionnel" = "${report_pv_unit_exceptionnel = }" AND "active_seq" != "0" AND "EPMTask<-attachments.task_name" = "${none = }" AND "EPMTask<-attachments.task_name" = "${report_task_name = }""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="en-us"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="en-us"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-03-05" languages="en-us fr-fr de-de it-it es-es pt-br" time="10:51:47" author="Teamcenter V10000.1.0.21_20140818.00 - nbe@SNECMA_RI(505997169)">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_WKF_ValidationUnit_on_Unit" queryFlag="0" queryClass="EPMTask">
|
||||
<Description>Toutes les revisions article de type UnitToutes les revisions article de type Unit</Description>
|
||||
<ApplicationRef version="lIbR_CEwhLofXA" application="Teamcenter" label="lIbR_CEwhLofXA"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM EPMTask WHERE "ItemRevision:attachments.items_tag.item_id" = "${report_unit_id = }" AND "object_name" = "${report_wkf_name = UNIT-Validation UNIT par SO}""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="en-us"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="en-us"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-06-11" languages="en-us fr-fr de-de it-it es-es pt-br" time="10:51:49" author="Teamcenter V10000.1.0.31_20150207.00 - infodba@SNECMA_RI(505997169)">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_WKF_on_Change" queryFlag="0" queryClass="EPMTask">
|
||||
<Description>Tous les Workflows associé à un Change ou correspondant à un certain nom.Tous les Workflows associé à un Change ou correspondant à un certain nom.</Description>
|
||||
<ApplicationRef version="yCTVHawlhLofXA" application="Teamcenter" label="yCTVHawlhLofXA"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM EPMTask WHERE "ChangeItemRevision:attachments.items_tag.item_id" = "${report_item_id = }" AND "ChangeItemRevision:attachments.item_revision_id" = "${report_Revision = }" AND "object_name" = "${report_wkf_name = }" AND "ChangeItemRevision:attachments.active_seq" = "${report_active_seq = }" AND "ChangeItemRevision:attachments.sequence_id" = "${report_sequence_id = }""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="fr-fr"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="fr-fr"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-04-08" languages="en-us fr-fr de-de it-it es-es pt-br" time="14:48:50" author="Teamcenter V10000.1.0.21_20140818.00 - infodba@SNECMA_RI(505997169)">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__Report_WKF_on_ItemRevision" queryFlag="0" queryClass="EPMTask">
|
||||
<Description>Tous les Workflows associé à un ItemRevision ou correspondant à un certain nom.</Description>
|
||||
<ApplicationRef version="SnQVCtK2hLofXA" application="Teamcenter" label="SnQVCtK2hLofXA"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM EPMTask WHERE "ItemRevision:attachments.items_tag.item_id" = "${report_item_id = }" AND "ItemRevision:attachments.item_revision_id" = "${report_Revision = }" AND "object_name" = "${report_wkf_name = }""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="fr-fr"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="fr-fr"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- GENERATED BY: PLM XML SDK 7.0.3.296 -->
|
||||
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
|
||||
xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
|
||||
schemaVersion="6" language="fr-fr" date="2015-01-09" languages="en-us fr-fr de-de it-it es-es pt-br" time="14:38:39" author="Teamcenter V10000.1.0.21_20140818.00 - infodba@IMC--1461332921(-1461332921)">
|
||||
<plmxml_bus:SavedQueryDef id="id1" nameRef="#id2" descriptionTextRef="#id3" name="__pv_snecma_search_report_by_source" resultsType="hierarchical" queryFlag="0" queryClass="ReportDefinition">
|
||||
<Description>Query</Description>
|
||||
<ApplicationRef version="BZURqvPqK6VT0B" application="Teamcenter" label="BZURqvPqK6VT0B"></ApplicationRef>
|
||||
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM ReportDefinition WHERE "rd_id" = "${rd_id = }" AND "rd_source" = "${rd_source = }""></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
|
||||
<plmxml_bus:Text id="id2" primary="fr-fr"></plmxml_bus:Text>
|
||||
<plmxml_bus:Text id="id3" primary="en-us"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>
|
20
distribution/install/teamcenter/data/report_prefs.xml
Normal file
20
distribution/install/teamcenter/data/report_prefs.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<preferences version="10.0">
|
||||
<category name="Configuration.Reports">
|
||||
<category_description></category_description>
|
||||
<preference name="TC_RA_server_parameters" type="String" array="true" disabled="false" protectionScope="Site" envEnabled="false">
|
||||
<preference_description>Specifies the configuration for eQube by allowing the system administrator to change the Application server Protocol, Host, Port, eQube installation location and eQube servlet name.
|
||||
By default, the following rules are provided: Protocol:http, Host:localhost, Port:80, Context:eQube, ServletName:eQubeServlet, ServiceDashboard:action=Dashboard.
|
||||
Valid values for Protocol are http or https.</preference_description>
|
||||
<context name="Teamcenter">
|
||||
<value>Protocol:http</value>
|
||||
<value>Host:localhost</value>
|
||||
<value>Port:8080</value>
|
||||
<value>Context:kurt-web</value>
|
||||
<value>ServletName:dispatcherServlet</value>
|
||||
<value>User:username</value>
|
||||
<value>Password:encrypted_password</value>
|
||||
</context>
|
||||
</preference>
|
||||
</category>
|
||||
</preferences>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R01"/>
|
||||
<name value="R01 BOM Assemblage PU"/>
|
||||
<Description value="R01 BOM Assemblage PU"/>
|
||||
<Class value=""/>
|
||||
<Type value="0"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R03"/>
|
||||
<name value="R03 BOM fabrication date"/>
|
||||
<Description value="R03 BOM fabrication date"/>
|
||||
<Class value="ItemRevision"/>
|
||||
<Type value="1"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R07"/>
|
||||
<name value="R07 Comparaison BOM PU"/>
|
||||
<Description value="R07 Comparaison BOM PU"/>
|
||||
<Class value=""/>
|
||||
<Type value="0"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R10"/>
|
||||
<name value="R10 Documents associés générique"/>
|
||||
<Description value="R10 Documents associés générique"/>
|
||||
<Class value=""/>
|
||||
<Type value="0"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R11"/>
|
||||
<name value="R11 Mise en maquette et cohérence"/>
|
||||
<Description value="R11 Mise en maquette et cohérence"/>
|
||||
<Class value=""/>
|
||||
<Type value="0"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R13"/>
|
||||
<name value="R13 Etat avancement processus"/>
|
||||
<Description value="R13 Etat avancement processus"/>
|
||||
<Class value=""/>
|
||||
<Type value="0"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R15"/>
|
||||
<name value="R15 Impression de la fiche article"/>
|
||||
<Description value="R15 Impression de la fiche article"/>
|
||||
<Class value="ItemRevision"/>
|
||||
<Type value="1"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R16"/>
|
||||
<name value="R16 Fiche Générique"/>
|
||||
<Description value="R16 Fiche Générique"/>
|
||||
<Class value=""/>
|
||||
<Type value="0"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R17"/>
|
||||
<name value="R17 Liste des documents associés"/>
|
||||
<Description value="R17 Liste des documents associés"/>
|
||||
<Class value="ItemRevision"/>
|
||||
<Type value="1"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R19_Document"/>
|
||||
<name value="R19 Cas utilisation document"/>
|
||||
<Description value="R19 Cas utilisation document"/>
|
||||
<Class value="Document"/>
|
||||
<Type value="1"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R19_Document_Design"/>
|
||||
<name value="R19 Cas utilisation document design revision"/>
|
||||
<Description value="R19 Cas utilisation document design revision"/>
|
||||
<Class value="Design_0_Revision_alt"/>
|
||||
<Type value="1"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R19_Document_Revision"/>
|
||||
<name value="R19 Cas utilisation document revision"/>
|
||||
<Description value="R19 Cas utilisation document revision"/>
|
||||
<Class value="DocumentRevision"/>
|
||||
<Type value="1"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R20"/>
|
||||
<name value="R20 Gel du Unit"/>
|
||||
<Description value="R20 Gel du Unit"/>
|
||||
<Class value=""/>
|
||||
<Type value="0"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R21"/>
|
||||
<name value="R21 Compare Net"/>
|
||||
<Description value="R21 Compare Net"/>
|
||||
<Class value=""/>
|
||||
<Type value="0"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R22"/>
|
||||
<name value="R22 BOM fabrication date PDF eDOC"/>
|
||||
<Description value="R22 BOM fabrication date PDF eDOC"/>
|
||||
<Class value="ItemRevision"/>
|
||||
<Type value="1"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R23"/>
|
||||
<name value="R23 BOM Assemblage PU(s)"/>
|
||||
<Description value="R23 BOM Assemblage PU(s)"/>
|
||||
<Class value=""/>
|
||||
<Type value="0"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R24"/>
|
||||
<name value="R24 Fiche(s) Générique(s)"/>
|
||||
<Description value="R24 Fiche(s) Générique(s)"/>
|
||||
<Class value=""/>
|
||||
<Type value="0"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R25"/>
|
||||
<name value="R25 Liste des documents des génériques"/>
|
||||
<Description value="R25 Liste des documents des génériques"/>
|
||||
<Class value=""/>
|
||||
<Type value="0"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R26_Item"/>
|
||||
<name value="R26 Cas d'emploi d'un article"/>
|
||||
<Description value="R26 Cas d'emploi d'un article"/>
|
||||
<Class value="Item"/>
|
||||
<Type value="1"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,8 @@
|
||||
<ReportDefinition>
|
||||
<Id value="REPORT_R26_Item_Revision"/>
|
||||
<name value="R26 Cas d'emploi d'un article"/>
|
||||
<Description value="R26 Cas d'emploi d'un article"/>
|
||||
<Class value="ItemRevision"/>
|
||||
<Type value="1"/>
|
||||
<Source value="TcRA"/>
|
||||
</ReportDefinition>
|
@ -0,0 +1,139 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PLMXML xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema" schemaVersion="6">
|
||||
<Header id="id1" traverseRootRefs="#gdcid701" transferContext="RUNTIME_TRANSFER_MODE_48ea6878"></Header>
|
||||
<RevisionRule id="gdcid701" name=" DMA Configuration Rapport PU">
|
||||
<Description>DMA Configuration Rapport PU</Description>
|
||||
<GroupByTypeRuleEntry id="gdcid102">
|
||||
<AllowedType>Product</AllowedType>
|
||||
<AllowedType>Generic</AllowedType>
|
||||
<AllowedType>Generic Assemb</AllowedType>
|
||||
<AllowedType>RF Generic</AllowedType>
|
||||
<AllowedType>RF Part</AllowedType>
|
||||
<AllowedType>RF Part Assemb</AllowedType>
|
||||
<AllowedType>RF Admin</AllowedType>
|
||||
<AllowedType>RF Admin A</AllowedType>
|
||||
<AllowedType>RF Admin AG</AllowedType>
|
||||
<AllowedType>RF Admin AP</AllowedType>
|
||||
<StatusRuleEntry id="gdcid103" status="Effectivity" type="serialNumber"></StatusRuleEntry>
|
||||
</GroupByTypeRuleEntry>
|
||||
<GroupByTypeRuleEntry id="gdcid106">
|
||||
<AllowedType>Part Aero</AllowedType>
|
||||
<AllowedType>Part No Aero</AllowedType>
|
||||
<AllowedType>Part Mat</AllowedType>
|
||||
<AllowedType>Standard</AllowedType>
|
||||
<AllowedType>DET</AllowedType>
|
||||
<AllowedType>Alternate</AllowedType>
|
||||
<AllowedType>Part Assemb</AllowedType>
|
||||
<GroupRuleEntry id="gdcid107">
|
||||
<StatusRuleEntry id="gdcid108" status="Created" type="releasedDate"></StatusRuleEntry>
|
||||
<StatusRuleEntry id="gdcid109" status="Created_mig" type="releasedDate"></StatusRuleEntry>
|
||||
<StatusRuleEntry id="gdcid110" status="Def Ready" type="releasedDate"></StatusRuleEntry>
|
||||
<StatusRuleEntry id="gdcid111" status="Def Approved" type="releasedDate"></StatusRuleEntry>
|
||||
<StatusRuleEntry id="gdcid112" status="Prelim Def Ready" type="releasedDate"></StatusRuleEntry>
|
||||
<StatusRuleEntry id="gdcid113" status="Prelim Def Approved" type="releasedDate"></StatusRuleEntry>
|
||||
</GroupRuleEntry>
|
||||
</GroupByTypeRuleEntry>
|
||||
</RevisionRule>
|
||||
<RevisionRule id="gdcid801" name=" DMA Configuration Descriptif R25">
|
||||
<Description>DMA Configuration Descriptif R25</Description>
|
||||
<PreciseRuleEntry id="gdcid201"></PreciseRuleEntry>
|
||||
<GroupByTypeRuleEntry id="gdcid202">
|
||||
<AllowedType>RF Generic</AllowedType>
|
||||
<AllowedType>RF Admin</AllowedType>
|
||||
<AllowedType>RF Admin AG</AllowedType>
|
||||
<AllowedType>Descriptif</AllowedType>
|
||||
<AllowedType>Generic</AllowedType>
|
||||
<StatusRuleEntry id="gdcid203" status="Effectivity" type="serialNumber"></StatusRuleEntry>
|
||||
</GroupByTypeRuleEntry>
|
||||
<GroupByTypeRuleEntry id="gdcid206">
|
||||
<AllowedType>Part Aero</AllowedType>
|
||||
<GroupRuleEntry id="gdcid207">
|
||||
<StatusRuleEntry id="gdcid220" status="Def Approved" type="releasedDate"></StatusRuleEntry>
|
||||
</GroupRuleEntry>
|
||||
</GroupByTypeRuleEntry>
|
||||
<GroupByTypeRuleEntry id="gdcid208">
|
||||
<AllowedType>Part Aero</AllowedType>
|
||||
<GroupRuleEntry id="gdcid209">
|
||||
<StatusRuleEntry id="gdcid221" status="Def Ready" type="releasedDate"></StatusRuleEntry>
|
||||
</GroupRuleEntry>
|
||||
</GroupByTypeRuleEntry>
|
||||
</RevisionRule>
|
||||
<RevisionRule id="id818" name=" DMA Configuration Interface R01">
|
||||
<Description>DMA Configuration Interface R01</Description>
|
||||
<GroupByTypeRuleEntry id="id819">
|
||||
<AllowedType>Product</AllowedType>
|
||||
<AllowedType>Generic</AllowedType>
|
||||
<AllowedType>Generic Assemb</AllowedType>
|
||||
<AllowedType>RF Generic</AllowedType>
|
||||
<AllowedType>RF Part</AllowedType>
|
||||
<AllowedType>RF Part Assemb</AllowedType>
|
||||
<AllowedType>RF Admin</AllowedType>
|
||||
<AllowedType>RF Admin A</AllowedType>
|
||||
<AllowedType>RF Admin AG</AllowedType>
|
||||
<AllowedType>RF Admin AP</AllowedType>
|
||||
<AllowedType>Super Model</AllowedType>
|
||||
<StatusRuleEntry id="id820" status="Effectivity" type="serialNumber"></StatusRuleEntry>
|
||||
</GroupByTypeRuleEntry>
|
||||
<GroupByTypeRuleEntry id="id821">
|
||||
<AllowedType>RF Part</AllowedType>
|
||||
<AllowedType>RF Admin</AllowedType>
|
||||
<AllowedType>RF Admin AP</AllowedType>
|
||||
<StatusRuleEntry id="id822" status="Effectivity" type="effectiveDate"></StatusRuleEntry>
|
||||
</GroupByTypeRuleEntry>
|
||||
<GroupRuleEntry id="id823"></GroupRuleEntry>
|
||||
<GroupRuleEntry id="id824"></GroupRuleEntry>
|
||||
<GroupByTypeRuleEntry id="id825">
|
||||
<AllowedType>Part Aero</AllowedType>
|
||||
<AllowedType>Part No Aero</AllowedType>
|
||||
<AllowedType>Part Mat</AllowedType>
|
||||
<AllowedType>Standard</AllowedType>
|
||||
<AllowedType>DET</AllowedType>
|
||||
<AllowedType>Alternate</AllowedType>
|
||||
<AllowedType>Part Assemb</AllowedType>
|
||||
<GroupRuleEntry id="id826">
|
||||
<StatusRuleEntry id="id827" status="Created" type="releasedDate"></StatusRuleEntry>
|
||||
<StatusRuleEntry id="id828" status="Created_mig" type="releasedDate"></StatusRuleEntry>
|
||||
<StatusRuleEntry id="id829" status="Def Ready" type="releasedDate"></StatusRuleEntry>
|
||||
<StatusRuleEntry id="id830" status="Def Approved" type="releasedDate"></StatusRuleEntry>
|
||||
<StatusRuleEntry id="id831" status="Prelim Def Ready" type="releasedDate"></StatusRuleEntry>
|
||||
<StatusRuleEntry id="id832" status="Prelim Def Approved" type="releasedDate"></StatusRuleEntry>
|
||||
</GroupRuleEntry>
|
||||
</GroupByTypeRuleEntry>
|
||||
</RevisionRule>
|
||||
<RevisionRule id="id840" name=" DMA Configuration Interface PU R23">
|
||||
<Description>DMA Configuration Interface PU R23</Description>
|
||||
<PreciseRuleEntry id="id841"></PreciseRuleEntry>
|
||||
<GroupByTypeRuleEntry id="id842">
|
||||
<AllowedType>Product</AllowedType>
|
||||
<AllowedType>Generic</AllowedType>
|
||||
<AllowedType>Generic Assemb</AllowedType>
|
||||
<AllowedType>RF Generic</AllowedType>
|
||||
<AllowedType>RF Part</AllowedType>
|
||||
<AllowedType>RF Part Assemb</AllowedType>
|
||||
<AllowedType>RF Admin</AllowedType>
|
||||
<AllowedType>RF Admin A</AllowedType>
|
||||
<AllowedType>RF Admin AG</AllowedType>
|
||||
<AllowedType>RF Admin AP</AllowedType>
|
||||
<AllowedType>Super Model</AllowedType>
|
||||
<StatusRuleEntry id="id843" status="Effectivity" type="serialNumber"></StatusRuleEntry>
|
||||
</GroupByTypeRuleEntry>
|
||||
<GroupRuleEntry id="id844"></GroupRuleEntry>
|
||||
<GroupByTypeRuleEntry id="id845">
|
||||
<AllowedType>Part Aero</AllowedType>
|
||||
<AllowedType>Part No Aero</AllowedType>
|
||||
<AllowedType>Part Mat</AllowedType>
|
||||
<AllowedType>Standard</AllowedType>
|
||||
<AllowedType>DET</AllowedType>
|
||||
<AllowedType>Alternate</AllowedType>
|
||||
<AllowedType>Part Assemb</AllowedType>
|
||||
<GroupRuleEntry id="id846">
|
||||
<StatusRuleEntry id="id847" status="Created" type="releasedDate"></StatusRuleEntry>
|
||||
<StatusRuleEntry id="id848" status="Created_mig" type="releasedDate"></StatusRuleEntry>
|
||||
<StatusRuleEntry id="id849" status="Def Ready" type="releasedDate"></StatusRuleEntry>
|
||||
<StatusRuleEntry id="id850" status="Def Approved" type="releasedDate"></StatusRuleEntry>
|
||||
<StatusRuleEntry id="id851" status="Prelim Def Ready" type="releasedDate"></StatusRuleEntry>
|
||||
<StatusRuleEntry id="id852" status="Prelim Def Approved" type="releasedDate"></StatusRuleEntry>
|
||||
</GroupRuleEntry>
|
||||
</GroupByTypeRuleEntry>
|
||||
</RevisionRule>
|
||||
</PLMXML>
|
273
distribution/install/teamcenter/report_install.pl
Normal file
273
distribution/install/teamcenter/report_install.pl
Normal file
@ -0,0 +1,273 @@
|
||||
my $env=0;
|
||||
|
||||
if ($ENV{TC_ROOT} eq "") {
|
||||
print "Initialiser TC_ROOT avant de lancer le script\n";
|
||||
$env = 1;
|
||||
}
|
||||
|
||||
if ($ENV{TC_DATA} eq "") {
|
||||
print "Initialiser TC_DATA avant de lancer le script\n";
|
||||
$env = 1;
|
||||
}
|
||||
|
||||
if ($env == 1) {
|
||||
exit 1;
|
||||
}
|
||||
|
||||
my $myversion="${project.version}";
|
||||
my $to_soa = $ENV{TC_DATA}."/soa/";
|
||||
my $to_bin = $ENV{TC_ROOT}."/bin/";
|
||||
my $args=0;
|
||||
my $usr="";
|
||||
my $pwd="";
|
||||
my $grp="";
|
||||
|
||||
$numArgs = $#ARGV + 1;
|
||||
|
||||
foreach $argnum (0 .. $#ARGV) {
|
||||
$arg = $ARGV[$argnum];
|
||||
if ($arg =~ m/^-u=/) {
|
||||
$args = $args + 1;
|
||||
$usr = $arg;
|
||||
$usr =~ s/^-u=//;
|
||||
}
|
||||
if ($arg =~ m/^-p=/) {
|
||||
$args = $args + 1;
|
||||
$pwd = $arg;
|
||||
$pwd =~ s/^-p=//;
|
||||
}
|
||||
if ($arg =~ m/^-g=/) {
|
||||
$args = $args + 1;
|
||||
$grp = $arg;
|
||||
$grp =~ s/^-g=//;
|
||||
}
|
||||
}
|
||||
|
||||
if ($args != 3 || $usr eq "" || $pwd eq "" || $grp eq "") {
|
||||
print "Utilisation 'perl report_install.pl -u=<usr> -p=<pwd> -g=<grp>'\n";
|
||||
print " -u : login utilisateur dba\n";
|
||||
print " -p : mot de passe\n";
|
||||
print " -g : groupe dba\n";
|
||||
exit 1;
|
||||
}
|
||||
|
||||
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
|
||||
my $datedujour = $mday."/".($mon+1)."/".(1900+$year)."-".$hour.":".$min.":".$sec;
|
||||
my $suffixe = (1900+$year).($mon+1).$mday.$hour.$min.$sec;
|
||||
|
||||
system "echo '------- INSTALLATION REPORT v" .$myversion. " -------'";
|
||||
|
||||
system "echo ' Import des reports'";
|
||||
|
||||
my $repertoireReports = "./data/reports";
|
||||
opendir fh_rep, $repertoireReports or die "impossible d'ouvrir le r<>pertoire ".$repertoireReports."\n";
|
||||
|
||||
my $reportId = "";
|
||||
system "echo 'Import de la definition des rapports'";
|
||||
while( ($filename = readdir(fh_rep))){
|
||||
next if ($filename eq "." or $filename eq "..");
|
||||
$reportId = $filename;
|
||||
system "echo ' + Import de ".$reportId."'";
|
||||
system "import_export_reports -import -u=".$usr." -p=".$pwd." -g=".$grp." -v -overwrite -stageDir=./data/reports -reportId=\"".$reportId."\"";
|
||||
}
|
||||
closedir fh_rep or die "Impossible de fermer le r<>pertoire ".$repertoireReports."\n";
|
||||
|
||||
system "echo 'Import des queries'";
|
||||
|
||||
my $repertoireQueries = "./data/queries";
|
||||
opendir fh_rep, $repertoireQueries or die "impossible d'ouvrir le r<>pertoire ".$repertoireQueries."\n";
|
||||
my @fic_rep_list = grep { !/^\.\.?$/ } readdir fh_rep;
|
||||
closedir fh_rep or die "Impossible de fermer le r<>pertoire ".$repertoireQueries."\n";
|
||||
|
||||
concat_query_files($repertoireQueries);
|
||||
system "echo ' Import des requetes en une fois'";
|
||||
$target=$repertoireQueries."/all_queries.xml";
|
||||
if (-e $target){
|
||||
system "plmxml_import -u=".$usr." -p=".$pwd." -g=".$grp." -import_mode=overwrite -xml_file=".$target;
|
||||
}
|
||||
else {
|
||||
print "File ".$target." cannot be found\n";
|
||||
}
|
||||
|
||||
system "echo ' Import des policies'";
|
||||
copy_policy_files("./data/policies");
|
||||
|
||||
system "echo ' Import du binaire d encryptage";
|
||||
system "cp ./data/bin/encrypt ".$to_bin;
|
||||
system "chmod 755 ".$to_bin."encrypt";
|
||||
|
||||
|
||||
system "echo 'Import de la pr<70>f<EFBFBD>rence report'";
|
||||
system "preferences_manager -u=".$usr." -p=".$pwd." -g=".$grp." -mode=import -scope=SITE -file=./data/report_prefs.xml -action=OVERRIDE";
|
||||
|
||||
system "preferences_manager -u=" .$usr. " -p=" .$pwd. " -g=" .$grp. " -mode=import -preference=\"PV SNECMA Reports deployment date\" -scope=SITE -values=" .$datedujour. " -action=OVERRIDE";
|
||||
system "preferences_manager -u=" .$usr. " -p=" .$pwd. " -g=" .$grp. " -mode=import -preference=\"PV SNECMA Reports version\" -scope=SITE -values=" .$myversion. " -action=OVERRIDE";
|
||||
|
||||
system "echo ' Import des Regles de Revision'";
|
||||
|
||||
system "plmxml_import -u=" .$usr. " -p=" .$pwd. " -g=" .$grp. " -xml_file=./data/revision_rule/revisionrule.xml -import_mode=overwrite";
|
||||
|
||||
system "echo '----- FIN INSTALLATION REPORT v" .$myversion. " -------'";
|
||||
|
||||
sub promptUser {
|
||||
#-------------------------------------------------------------------#
|
||||
# two possible input arguments - $promptString, and $defaultValue #
|
||||
# make the input arguments local variables. #
|
||||
#-------------------------------------------------------------------#
|
||||
|
||||
local($promptString,$defaultValue) = @_;
|
||||
|
||||
#-------------------------------------------------------------------#
|
||||
# if there is a default value, use the first print statement; if #
|
||||
# no default is provided, print the second string. #
|
||||
#-------------------------------------------------------------------#
|
||||
|
||||
if ($defaultValue) {
|
||||
print $promptString, "[", $defaultValue, "]: ";
|
||||
} else {
|
||||
print $promptString, ": ";
|
||||
}
|
||||
|
||||
$| = 1; # force a flush after our print
|
||||
$_ = <STDIN>; # get the input from STDIN (presumably the keyboard)
|
||||
|
||||
|
||||
#------------------------------------------------------------------#
|
||||
# remove the newline character from the end of the input the user #
|
||||
# gave us. #
|
||||
#------------------------------------------------------------------#
|
||||
|
||||
chomp;
|
||||
|
||||
#-----------------------------------------------------------------#
|
||||
# if we had a $default value, and the user gave us input, then #
|
||||
# return the input; if we had a default, and they gave us no #
|
||||
# no input, return the $defaultValue. #
|
||||
# #
|
||||
# if we did not have a default value, then just return whatever #
|
||||
# the user gave us. if they just hit the <enter> key, #
|
||||
# the calling routine will have to deal with that. #
|
||||
#-----------------------------------------------------------------#
|
||||
|
||||
if ("$defaultValue") {
|
||||
return $_ ? $_ : $defaultValue; # return $_ if it has a value
|
||||
} else {
|
||||
return $_;
|
||||
}
|
||||
}
|
||||
|
||||
sub copy_policy_files{
|
||||
#
|
||||
# Copie toutes les policies dans tous les sous-dossiers vers le dossier SOA, *a plat*
|
||||
# system "cp -Rf ./data/policies/reports/SOME_FOLDER/SOME_FILE.xml " . $to_soa;
|
||||
|
||||
my $source_dir = $_[0];
|
||||
|
||||
print "Import de la policy: dossier = ".$source_dir."\n";
|
||||
|
||||
# entete du fichier genere
|
||||
opendir fh_rep, $source_dir or die "impossible d'ouvrir le r<>pertoire ".$source_dir."\n";
|
||||
my @fic_rep_list = grep { !/^\.\.?$/ } readdir fh_rep;
|
||||
closedir fh_rep or die "Impossible de fermer le r<>pertoire ".$source_dir."\n";
|
||||
|
||||
# Browse all the folder"s content
|
||||
foreach my $elem ( @fic_rep_list) {
|
||||
# Skipping files begginning whith . or .svn
|
||||
my $absoluteElem = $source_dir . '/'.$elem;
|
||||
if ($elem!~/^\./ and $elem!~/.svn/) {
|
||||
# If the file is a directory
|
||||
if (-d $absoluteElem) {
|
||||
# Here is where we recurse.
|
||||
# This makes a new call to process_files()
|
||||
# using a new directory we just found.
|
||||
copy_policy_files ($absoluteElem);
|
||||
} else {
|
||||
# If it isn't a directory, lets just do some
|
||||
# processing on it.
|
||||
print " Import de la policy: ".$elem."\n";
|
||||
system "cp -Rf ".$absoluteElem." ".$to_soa."/policies";
|
||||
}
|
||||
}else{
|
||||
print " Element ".$absoluteElem." ignor<6F>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sub concat_query_files{
|
||||
#
|
||||
# all-queries.pl
|
||||
#
|
||||
# concat<61>ne toutes les queries en 1 seul fichier
|
||||
|
||||
my $source_dir = $_[0];
|
||||
#printf("$ARGV[0]");
|
||||
#print("--------------------------");
|
||||
|
||||
# entete du fichier genere
|
||||
opendir fh_rep, $source_dir or die "impossible d'ouvrir le r<>pertoire ".$source_dir."\n";
|
||||
my @fic_rep_list = grep { !/^\.\.?$/ } readdir fh_rep;
|
||||
closedir fh_rep or die "Impossible de fermer le r<>pertoire ".$source_dir."\n";
|
||||
|
||||
open (OUTPUTFILE, "> ".$source_dir."/all_queries.xml") || die "Can't write in ".$outputFile." : $!";
|
||||
print OUTPUTFILE "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
|
||||
print OUTPUTFILE "<plmxml_bus:PLMXMLBusinessTypes xmlns=\"http://www.plmxml.org/Schemas/PLMXMLSchema\"\n";
|
||||
print OUTPUTFILE " xmlns:plmxml_bus=\"http://www.plmxml.org/Schemas/PLMXMLBusinessSchema\"\n";
|
||||
print OUTPUTFILE " schemaVersion=\"6\" language=\"fr-fr\" date=\"2014-07-04\" languages=\"en-us fr-fr de-de it-it es-es pt-br\" time=\"14:20:53\" author=\"unset\">\n";
|
||||
|
||||
for $j (0..((scalar @fic_rep_list) -1) )
|
||||
{
|
||||
if ( $fic_rep_list[$j] eq "delete_queries.xml" || $fic_rep_list[$j] eq "all_queries.xml" || $fic_rep_list[$j] eq ".svn")
|
||||
{
|
||||
print "skipping query no ".($j+1)."/".scalar @fic_rep_list." : ".$fic_rep_list[$j]."\n";
|
||||
}
|
||||
if ($fic_rep_list[$j]!~/^\./ and $fic_rep_list[$j]!~/delete_queries.xml/ and $fic_rep_list[$j]!~/all_queries.xml/ and $fic_rep_list[$j]!~/.svn/)
|
||||
{
|
||||
print "Concat query no ".($j+1)."/".scalar @fic_rep_list." : ".$fic_rep_list[$j]."\n";
|
||||
open(F, $source_dir."/".$fic_rep_list[$j]);# || die "Probl<62>me <20> l\'ouverture : $!";
|
||||
$i = 0;
|
||||
while($line = <F>)
|
||||
{
|
||||
# doit contenir : plmxml_bus:SavedQueryDef
|
||||
# doit contenir : plmxml_bus:QueryClause
|
||||
# remplacer : <plmxml_bus:SavedQueryDef id="id1" par <plmxml_bus:SavedQueryDef id="id$i"
|
||||
# recopier le reste
|
||||
if ($line =~ m/\<plmxml_bus:SavedQueryDef/)
|
||||
{
|
||||
$line =~ s/\"id1"+/\"id$j\"/;
|
||||
$line =~ s/nameRef=\"#id.\" //;
|
||||
$line =~ s/descriptionTextRef=\"#id.\" //;
|
||||
print OUTPUTFILE $line; #On <20>crit la ligne dans le fichier r<>sultat
|
||||
}
|
||||
if ($line =~ m/\<Description\>/ )
|
||||
{
|
||||
print OUTPUTFILE $line; #On <20>crit la ligne dans le fichier r<>sultat
|
||||
}
|
||||
if ($line =~ m/\<\/Description\>/ )
|
||||
{
|
||||
print OUTPUTFILE $line; #On <20>crit la ligne dans le fichier r<>sultat
|
||||
}
|
||||
if ($line =~ m/plmxml_bus:QueryClause/ )
|
||||
{
|
||||
$k=$j+1000;
|
||||
$line =~ s/\"id."+/\"id$k\"/;
|
||||
print OUTPUTFILE $line; #On <20>crit la ligne dans le fichier r<>sultat
|
||||
}
|
||||
# if ($line =~ m/plmxml_bus:Text/ )
|
||||
# {
|
||||
# $l=$i+2000;
|
||||
# $line =~ s/\"id."+/\"id$l\"/;
|
||||
# $line =~ s/\<\/plmxml_bus:PLMXMLBusinessTypes\>//;
|
||||
# print OUTPUTFILE $line; #On <20>crit la ligne dans le fichier r<>sultat
|
||||
# }
|
||||
$i ++;
|
||||
}
|
||||
$j ++;
|
||||
#print "\nNombre de lignes : $fic_rep_list[$j] $i\n";
|
||||
close F ;#|| die "Probl<62>me <20> la fermeture : $!";
|
||||
}
|
||||
}
|
||||
|
||||
print OUTPUTFILE "</plmxml_bus:PLMXMLBusinessTypes>\n";
|
||||
|
||||
close OUTPUTFILE;
|
||||
}
|
58
distribution/pom.xml
Normal file
58
distribution/pom.xml
Normal file
@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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>
|
||||
|
||||
<artifactId>distribution</artifactId>
|
||||
<name>project distribution</name>
|
||||
<packaging>pom</packaging>
|
||||
<description>Full report package including tool and utilities</description>
|
||||
|
||||
<properties>
|
||||
<release.id>${project.parent.name}-${project.parent.version}</release.id>
|
||||
</properties>
|
||||
|
||||
<parent>
|
||||
<groupId>com.capgemini.reports</groupId>
|
||||
<artifactId>kurt</artifactId>
|
||||
<version>1.32.9</version>
|
||||
</parent>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>package-report</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
<finalName>snecma-reports-${project.parent.version}</finalName>
|
||||
<descriptors>
|
||||
<descriptor>assembly.xml</descriptor>
|
||||
</descriptors>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>release</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>com.maestrodev</groupId>
|
||||
<artifactId>collabnet-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
56
jasper/pom.xml
Normal file
56
jasper/pom.xml
Normal file
@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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>
|
||||
<artifactId>jasper</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<name>jasper</name>
|
||||
|
||||
<parent>
|
||||
<groupId>com.capgemini.reports</groupId>
|
||||
<artifactId>kurt</artifactId>
|
||||
<version>1.32.9</version>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.testng</groupId>
|
||||
<artifactId>testng</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.assertj</groupId>
|
||||
<artifactId>assertj-core</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.jboss.spec.javax.annotation</groupId>
|
||||
<artifactId>jboss-annotations-api_1.1_spec</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>javax.enterprise</groupId>
|
||||
<artifactId>cdi-api</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- ======================= -->
|
||||
<!-- Dependances spécifiques -->
|
||||
<!-- ======================= -->
|
||||
|
||||
<!-- Jasper Reports API -->
|
||||
<dependency>
|
||||
<groupId>net.sf.jasperreports</groupId>
|
||||
<artifactId>jasperreports</artifactId>
|
||||
<version>5.6.1</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
</project>
|
@ -0,0 +1,69 @@
|
||||
package com.capgemini.reports.jasper.compilers;
|
||||
|
||||
import com.capgemini.reports.jasper.fillers.MultiFiller;
|
||||
import net.sf.jasperreports.engine.JRException;
|
||||
import net.sf.jasperreports.engine.JasperCompileManager;
|
||||
import net.sf.jasperreports.engine.JasperReport;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.InputStream;
|
||||
|
||||
/**
|
||||
* This class is able to compile some template files (.jrxml) into a {@link JasperReport} object.
|
||||
*/
|
||||
public final class JasperCompiler {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(MultiFiller.class);
|
||||
|
||||
private static final String JASPER_COMPILATION = "JASPER compilation";
|
||||
private static final String JASPER_REPORT_COMPILING_TIME_XXX_MS = "JASPER report Compiling time : {} ms";
|
||||
private static final String EXCEPTION_CAUGHT = "Jasper Report Exception caught while compiling report";
|
||||
|
||||
private JasperCompiler() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds a report printer with the provided {@link InputStream} template.
|
||||
*
|
||||
* @param templateStream the template file to use for this report as an {@link InputStream}
|
||||
* @return the compiled {@link JasperReport} object
|
||||
* @throws JRException if Jasper could not compile the report
|
||||
*/
|
||||
public static JasperReport compile(final InputStream templateStream) throws JRException {
|
||||
LOGGER.debug(JASPER_COMPILATION);
|
||||
long start = System.currentTimeMillis();
|
||||
|
||||
try {
|
||||
JasperReport compiledReport = JasperCompileManager.compileReport(templateStream);
|
||||
LOGGER.debug(JASPER_REPORT_COMPILING_TIME_XXX_MS, System.currentTimeMillis() - start);
|
||||
return compiledReport;
|
||||
} catch (JRException e) {
|
||||
LOGGER.error(EXCEPTION_CAUGHT, e);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds a report printer with the provided {@link String} template.
|
||||
*
|
||||
* @param generatedTemplate the template file to use for this report in a {@link String}
|
||||
* @return the compiled {@link JasperReport} object
|
||||
* @throws JRException if Jasper could not compile the report
|
||||
*/
|
||||
public static JasperReport compile(final String generatedTemplate) throws JRException {
|
||||
LOGGER.debug(JASPER_COMPILATION);
|
||||
long start = System.currentTimeMillis();
|
||||
|
||||
try {
|
||||
InputStream templateStream = new ByteArrayInputStream(generatedTemplate.getBytes());
|
||||
JasperReport compiledReport = JasperCompileManager.compileReport(templateStream);
|
||||
LOGGER.debug(JASPER_REPORT_COMPILING_TIME_XXX_MS, System.currentTimeMillis() - start);
|
||||
return compiledReport;
|
||||
} catch (JRException e) {
|
||||
LOGGER.error(EXCEPTION_CAUGHT, e);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.capgemini.reports.jasper.fillers;
|
||||
|
||||
import net.sf.jasperreports.engine.JRException;
|
||||
import net.sf.jasperreports.engine.JasperPrint;
|
||||
import net.sf.jasperreports.engine.JasperReport;
|
||||
|
||||
/**
|
||||
* This class is able to populate a {@link JasperReport} template with some data and parameters .
|
||||
*/
|
||||
public interface JasperFiller {
|
||||
|
||||
/**
|
||||
* Returns the a {@link JasperPrint} filled report.
|
||||
*
|
||||
* @return the populated {@link JasperPrint} report
|
||||
* @throws JRException
|
||||
*/
|
||||
JasperPrint generate() throws JRException;
|
||||
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user