Révision 19b58bab
Ajouté par Remy Menard il y a presque 12 ans
.gitignore | ||
---|---|---|
IoTa-Installer/resources/omega-*.war
|
||
IoTa-Installer/resources/sigma-*.war
|
||
IoTa-Installer/resources/install.ini
|
||
#
|
||
PSi/eventSpecification/epcs.xml
|
||
|
||
# NetBeans
|
||
nbproject
|
||
nbactions.xml
|
||
build
|
||
dist
|
ALfA/ALfA-PI/LISEZMOI | ||
---|---|---|
Interface de programmation RMI commune entre ALfA et des applications de haut
|
||
niveau.
|
||
|
||
Dépendances: aucune
|
||
Dépendances:
|
||
modules IoTa:
|
||
- DSeTa-Client
|
||
- Nu-PI
|
||
- TAu
|
||
bibliothèques:
|
||
- epcis-commons
|
||
- commons-logging
|
||
|
||
Configuration: aucune
|
||
|
ALfA/ALfA-PI/README | ||
---|---|---|
|
||
Common RMI programming interface between ALfA and top-level applications.
|
||
|
||
Dependencies: none
|
||
Dependencies:
|
||
IoTa modules:
|
||
- DSeTa-Client
|
||
- Nu-PI
|
||
- TAu
|
||
libraries:
|
||
- epcis-commons
|
||
- commons-logging
|
||
|
||
Configuration: none
|
||
|
ALfA/ALfA-PI/pom.xml | ||
---|---|---|
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>alfa-pi</artifactId>
|
||
<version>1.9-mock</version>
|
||
<version>1.9</version>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>ALfA-PI</name>
|
||
... | ... | |
<version>${epcis-version}</version>
|
||
</dependency>
|
||
|
||
<!-- Log dependencies -->
|
||
<dependency>
|
||
<groupId>commons-logging</groupId>
|
||
<artifactId>commons-logging</artifactId>
|
||
<version>1.1.1</version>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
<build>
|
ALfA/ALfA-PI/src/main/java/fr/unicaen/iota/application/AccessInterface.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2012 Orange Labs
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
ALfA/ALfA-PI/src/main/java/fr/unicaen/iota/application/rmi/CallbackClient.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
ALfA/ALfA-PI/src/main/java/fr/unicaen/iota/application/rmi/RMIAccessInterface.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2012 Orange Labs
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
ALfA/ALfA-RMI/LISEZMOI | ||
---|---|---|
- ALfA-PI
|
||
- Nu
|
||
- DSeTa-Client
|
||
- ETa-Client
|
||
- ETa-Query-Client
|
||
- TAu
|
||
bibliothèques:
|
||
- epcis-commons
|
||
- dnsjava
|
||
- commons-logging
|
||
- log4j
|
||
|
ALfA/ALfA-RMI/README | ||
---|---|---|
- ALfA
|
||
- Nu
|
||
- DSeTa-Client
|
||
- ETa-Client
|
||
- ETa-Query-Client
|
||
- TAu
|
||
libraries:
|
||
- epcis-commons
|
||
- dnsjava
|
||
- commons-logging
|
||
- log4j
|
||
|
ALfA/ALfA-RMI/pom.xml | ||
---|---|---|
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>alfa-rmi</artifactId>
|
||
<version>1.9-mock</version>
|
||
<version>1.9</version>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>ALfA-RMI</name>
|
||
|
||
<properties>
|
||
<epcis-version>0.5.0</epcis-version>
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
</properties>
|
||
|
||
... | ... | |
<version>${project.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>nu</artifactId>
|
||
<version>${project.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>tau</artifactId>
|
||
<version>${project.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>dseta-client</artifactId>
|
||
<version>${project.version}</version>
|
||
</dependency>
|
||
|
||
<!-- Fosstrak dependencies -->
|
||
<dependency>
|
||
<groupId>org.fosstrak.epcis</groupId>
|
||
<artifactId>epcis-commons</artifactId>
|
||
<version>${epcis-version}</version>
|
||
</dependency>
|
||
|
||
<!-- Log dependencies -->
|
||
<dependency>
|
||
<groupId>commons-logging</groupId>
|
||
<artifactId>commons-logging</artifactId>
|
||
<version>1.1.1</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>log4j</groupId>
|
||
<artifactId>log4j</artifactId>
|
||
<version>1.2.16</version>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
<build>
|
ALfA/ALfA-RMI/src/main/java/fr/unicaen/iota/application/rmi/AccessModule.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2012 Orange Labs
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
... | ... | |
|
||
private ALfA controler;
|
||
|
||
public AccessModule() throws RemoteException {
|
||
controler = new ALfA();
|
||
public AccessModule(String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) throws RemoteException {
|
||
controler = new ALfA(pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
}
|
||
|
||
@Override
|
ALfA/ALfA-RMI/src/main/java/fr/unicaen/iota/application/rmi/Constants.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
* Copyright © 2008-2013 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
... | ... | |
private Constants() {
|
||
}
|
||
public static final String PROPERTIES_CONFIG_FILE = "/application.properties";
|
||
public static final String PKS_FILENAME;
|
||
public static final String PKS_PASSWORD;
|
||
public static final String TRUST_PKS_FILENAME;
|
||
public static final String TRUST_PKS_PASSWORD;
|
||
public static final String DEFAULT_SESSION = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
|
||
public static final String RMI_SERVER_NAME;
|
||
public static final String RMI_SERVER_HOST;
|
||
... | ... | |
} catch (IOException ex) {
|
||
LogFactory.getLog(Constants.class).fatal(null, ex);
|
||
}
|
||
PKS_FILENAME = props.getProperty("pks-filename", "privatekeys.jks");
|
||
PKS_PASSWORD = props.getProperty("pks-password", "changeit");
|
||
TRUST_PKS_FILENAME = props.getProperty("trustpks-filename", "publickeys.jks");
|
||
TRUST_PKS_PASSWORD = props.getProperty("trustpks-password", "changeit");
|
||
RMI_SERVER_NAME = props.getProperty("rmi-server-name", "alfa");
|
||
RMI_SERVER_HOST = props.getProperty("rmi-server-host", "localhost");
|
||
RMI_SERVER_PORT = Integer.parseInt(props.getProperty("rmi-server-port", "1099"));
|
ALfA/ALfA-RMI/src/main/java/fr/unicaen/iota/application/rmi/RMIServer.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2012 Orange Labs
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
... | ... | |
System.setSecurityManager(new RMISecurityManager());
|
||
}
|
||
log.info("Creating server...");
|
||
RMIAccessInterface im = new AccessModule();
|
||
RMIAccessInterface im = new AccessModule(Constants.PKS_FILENAME, Constants.PKS_PASSWORD, Constants.TRUST_PKS_FILENAME, Constants.TRUST_PKS_PASSWORD);
|
||
log.trace("Exporting...");
|
||
RMIAccessInterface ali = (RMIAccessInterface) UnicastRemoteObject.exportObject(im, Constants.RMI_SERVER_PORT);
|
||
log.trace("Locating registry...");
|
ALfA/ALfA-RMI/src/main/resources/application.properties | ||
---|---|---|
# RMI server configuration
|
||
# TLS private and public keys
|
||
pks-filename = /srv/privatekeys.jks
|
||
pks-password = changeit
|
||
trust-pks-filename = /srv/publickeys.jks
|
||
trust-pks-password = changeit
|
||
|
||
# the host will be used by the clients
|
||
rmi-server-name = ALfA
|
||
rmi-server-host = localhost
|
ALfA/ALfA/LISEZMOI | ||
---|---|---|
Dépendances:
|
||
modules IoTa:
|
||
- ALfA-PI
|
||
- TAu
|
||
- Nu
|
||
- DSeTa-Client
|
||
- ETa-Client
|
||
- ETa-Query-Client
|
||
bibliothèques:
|
||
- epcis-commons
|
||
- dnsjava
|
||
- commons-logging
|
||
- log4j
|
||
|
ALfA/ALfA/README | ||
---|---|---|
Dependencies:
|
||
IoTa modules:
|
||
- ALfA-PI
|
||
- TAu
|
||
- Nu
|
||
- DSeTa-Client
|
||
- ETa-Client
|
||
- ETa-Query-Client
|
||
libraries:
|
||
- epcis-commons
|
||
- dnsjava
|
||
- commons-logging
|
||
- log4j
|
||
|
ALfA/ALfA/pom.xml | ||
---|---|---|
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>alfa</artifactId>
|
||
<version>1.9-mock</version>
|
||
<version>1.9</version>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>ALfA</name>
|
||
... | ... | |
<version>${project.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>tau</artifactId>
|
||
<version>${project.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>nu</artifactId>
|
||
... | ... | |
|
||
<dependency>
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>eta-client</artifactId>
|
||
<artifactId>eta-query-client</artifactId>
|
||
<version>${project.version}</version>
|
||
</dependency>
|
||
|
||
<!-- Fosstrak dependencies -->
|
||
<dependency>
|
||
<groupId>org.fosstrak.epcis</groupId>
|
||
<artifactId>epcis-commons</artifactId>
|
||
<version>${epcis-version}</version>
|
||
</dependency>
|
||
|
||
<!-- Log dependencies -->
|
||
<dependency>
|
||
<groupId>commons-logging</groupId>
|
ALfA/ALfA/src/main/java/fr/unicaen/iota/application/ALfA.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2012 Orange Labs
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
... | ... | |
|
||
public class ALfA implements AccessInterface {
|
||
|
||
private final String pksFilename;
|
||
private final String pksPassword;
|
||
private final String trustPksFilename;
|
||
private final String trustPksPassword;
|
||
private static final Log LOG = LogFactory.getLog(ALfA.class);
|
||
|
||
public ALfA(String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) {
|
||
this.pksFilename = pksFilename;
|
||
this.pksPassword = pksPassword;
|
||
this.trustPksFilename = trustPksFilename;
|
||
this.trustPksPassword = trustPksPassword;
|
||
}
|
||
|
||
@Override
|
||
public Map<ONSEntryType, String> queryONS(String EPC) {
|
||
LOG.trace("[COMMAND]--[QUERY ONS]");
|
||
... | ... | |
public List<EPCISEventType> traceEPC(Identity identity, String EPC) throws RemoteException {
|
||
LOG.trace("[COMMAND]--[TRACE EPC]");
|
||
LOG.trace(EPC);
|
||
return new TraceEPC(identity).traceEPC(EPC);
|
||
return new TraceEPC(identity, pksFilename, pksPassword, trustPksFilename, trustPksPassword).traceEPC(EPC);
|
||
}
|
||
|
||
@Override
|
||
public List<EPCISEventType> traceEPC(Identity identity, String EPC, Map<String, String> filters) throws RemoteException {
|
||
LOG.trace("[COMMAND]--[FILTERED TRACE]");
|
||
LOG.trace(EPC);
|
||
return new TraceEPC(identity).filteredTrace(EPC, filters);
|
||
return new TraceEPC(identity, pksFilename, pksPassword, trustPksFilename, trustPksPassword).filteredTrace(EPC, filters);
|
||
}
|
||
|
||
@Override
|
||
... | ... | |
@Override
|
||
public void traceEPCAsync(Identity identity, String sessionID, CallbackClient client, String EPC) throws RemoteException {
|
||
LOG.trace("[COMMAND]--[TRACE EPC ASYNC]");
|
||
new TraceEPCAsync(EPC, sessionID, client, identity).start();
|
||
new TraceEPCAsync(EPC, sessionID, client, identity, pksFilename, pksPassword, trustPksFilename, trustPksPassword).start();
|
||
}
|
||
|
||
@Override
|
||
... | ... | |
EpcisOperation epcisOperation = null;
|
||
while (epcisOperation == null) {
|
||
try {
|
||
epcisOperation = new EpcisOperation(identity, EPCISAddress);
|
||
epcisOperation = new EpcisOperation(identity, EPCISAddress, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
} catch (Exception e) {
|
||
epcisOperation = null;
|
||
LOG.warn("Unable to create service proxy port! [RETRY]", e);
|
||
... | ... | |
EpcisOperation epcisOperation = null;
|
||
while (epcisOperation == null) {
|
||
try {
|
||
epcisOperation = new EpcisOperation(identity, EPCISAddress);
|
||
epcisOperation = new EpcisOperation(identity, EPCISAddress, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
} catch (Exception e) {
|
||
epcisOperation = null;
|
||
LOG.warn("Unable to create service proxy port! [RETRY]", e);
|
||
... | ... | |
@Override
|
||
public List<TEventItem> queryDS(Identity identity, String EPC, String DSAddress) throws RemoteException {
|
||
LOG.trace("[COMMAND]--[QUERY DS]");
|
||
DiscoveryOperation dsOperation = new DiscoveryOperation(identity, DSAddress);
|
||
DiscoveryOperation dsOperation = new DiscoveryOperation(identity, DSAddress, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
List<TEventItem> list = dsOperation.getDSEvents(EPC);
|
||
return list;
|
||
}
|
||
... | ... | |
public List<TEventItem> queryDS(Identity identity, String EPC, String DSAddress, TServiceType serviceType) throws RemoteException {
|
||
LOG.trace("[COMMAND]--[QUERY DS]");
|
||
try {
|
||
DiscoveryOperation dsOperation = new DiscoveryOperation(identity, DSAddress);
|
||
DiscoveryOperation dsOperation = new DiscoveryOperation(identity, DSAddress, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
List<TEventItem> list = dsOperation.getDSEvents(EPC, serviceType);
|
||
return list;
|
||
} catch (Exception e) {
|
ALfA/ALfA/src/main/java/fr/unicaen/iota/application/operations/DiscoveryOperation.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2012 Orange Labs
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
... | ... | |
private static final Log log = LogFactory.getLog(DiscoveryOperation.class);
|
||
private final Identity identity;
|
||
private String DS_SERVICE_ADDRESS;
|
||
private final String pksFilename;
|
||
private final String pksPassword;
|
||
private final String trustPksFilename;
|
||
private final String trustPksPassword;
|
||
private final CallbackClient client;
|
||
private final String sessionID;
|
||
private final Set<String> visitedSet = new HashSet<String>();
|
||
private final DSeTaClient dSClient;
|
||
|
||
public DiscoveryOperation(Identity identity, String ds_service_address) {
|
||
public DiscoveryOperation(Identity identity, String ds_service_address, String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) {
|
||
super();
|
||
this.identity = identity;
|
||
this.DS_SERVICE_ADDRESS = ds_service_address;
|
||
this.pksFilename = pksFilename;
|
||
this.pksPassword = pksPassword;
|
||
this.trustPksFilename = trustPksFilename;
|
||
this.trustPksPassword = trustPksPassword;
|
||
this.client = null;
|
||
this.sessionID = null;
|
||
this.dSClient = new DSeTaClient(identity, DS_SERVICE_ADDRESS);
|
||
this.dSClient = new DSeTaClient(identity, DS_SERVICE_ADDRESS, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
}
|
||
|
||
public DiscoveryOperation(Identity identity, String dsAddress, String sessionID, CallbackClient client) {
|
||
public DiscoveryOperation(Identity identity, String dsAddress, String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword, String sessionID, CallbackClient client) {
|
||
super();
|
||
this.identity = identity;
|
||
this.DS_SERVICE_ADDRESS = dsAddress;
|
||
this.pksFilename = pksFilename;
|
||
this.pksPassword = pksPassword;
|
||
this.trustPksFilename = trustPksFilename;
|
||
this.trustPksPassword = trustPksPassword;
|
||
this.client = client;
|
||
this.sessionID = sessionID;
|
||
this.dSClient = new DSeTaClient(identity, DS_SERVICE_ADDRESS);
|
||
this.dSClient = new DSeTaClient(identity, DS_SERVICE_ADDRESS, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
}
|
||
|
||
private List<TEventItem> getEvents(String EPC) throws RemoteException {
|
||
... | ... | |
} else if (s.getType() == TServiceType.IDED_EPCIS) {
|
||
result.add(s.getUri().toString());
|
||
if (client != null && !visitedSet.contains(s.getUri().toString())) {
|
||
new EpcisRequest(s.getUri().toString(), EPC, identity, sessionID, client).start();
|
||
new EpcisRequest(s.getUri().toString(), pksFilename, pksPassword, trustPksFilename, trustPksPassword, EPC, identity, sessionID, client).start();
|
||
visitedSet.add(s.getUri().toString());
|
||
}
|
||
} // else: do nothing
|
ALfA/ALfA/src/main/java/fr/unicaen/iota/application/operations/EpcisOperation.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2012 Orange Labs
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
... | ... | |
|
||
public class EpcisOperation {
|
||
|
||
private final String EPCIS_SERVICE_ADDRESS;
|
||
private final Identity IDENTITY;
|
||
private final ETaQueryControlClient etaClient;
|
||
private static final Log log = LogFactory.getLog(EpcisOperation.class);
|
||
|
||
public EpcisOperation(Identity identity, String epcis_service_address) {
|
||
IDENTITY = identity;
|
||
EPCIS_SERVICE_ADDRESS = epcis_service_address;
|
||
public EpcisOperation(Identity identity, String epcis_service_address, String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) {
|
||
etaClient = new ETaQueryControlClient(identity, epcis_service_address, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
}
|
||
|
||
public QueryParam createEPCISParameter(String name, String value) {
|
||
... | ... | |
public List<EPCISEventType> getFilteredEvent(Map<String, String> filters) throws RemoteException {
|
||
log.trace("getFilteredEvent");
|
||
try {
|
||
ETaQueryControlClient client = new ETaQueryControlClient(IDENTITY, EPCIS_SERVICE_ADDRESS);
|
||
QueryParams queryParams = new QueryParams();
|
||
for (Map.Entry<String, String> entry : filters.entrySet()) {
|
||
queryParams.getParam().add(createEPCISParameter(entry.getKey(), entry.getValue()));
|
||
... | ... | |
poll.setQueryName("SimpleEventQuery");
|
||
poll.setParams(queryParams);
|
||
|
||
QueryResults results = client.poll(poll);
|
||
QueryResults results = etaClient.poll(poll);
|
||
EventListType eventListType = results.getResultsBody().getEventList();
|
||
return getEvents(eventListType);
|
||
} catch (Exception ex) {
|
ALfA/ALfA/src/main/java/fr/unicaen/iota/application/operations/EpcisRequest.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2012 Orange Labs
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
... | ... | |
private final String serviceAddress;
|
||
private final String epc;
|
||
private final Identity identity;
|
||
private final String pksFilename;
|
||
private final String pksPassword;
|
||
private final String trustPksFilename;
|
||
private final String trustPksPassword;
|
||
private final String sessionID;
|
||
private final CallbackClient client;
|
||
private static final boolean isDebug = true; // TODO: hard value
|
||
private static final Log log = LogFactory.getLog(EpcisRequest.class);
|
||
|
||
public EpcisRequest(String serviceAddress, String epc, Identity identity, String sessionID, CallbackClient client) {
|
||
public EpcisRequest(String serviceAddress, String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword, String epc, Identity identity, String sessionID, CallbackClient client) {
|
||
this.identity = identity;
|
||
this.epc = epc;
|
||
this.sessionID = sessionID;
|
||
this.client = client;
|
||
this.serviceAddress = serviceAddress;
|
||
this.pksFilename = pksFilename;
|
||
this.pksPassword = pksPassword;
|
||
this.trustPksFilename = trustPksFilename;
|
||
this.trustPksPassword = trustPksPassword;
|
||
}
|
||
|
||
@Override
|
||
... | ... | |
debug.append("\n");
|
||
debug.append("Events: \n");
|
||
}
|
||
EpcisOperation epcisOperation = new EpcisOperation(identity, serviceAddress);
|
||
EpcisOperation epcisOperation = new EpcisOperation(identity, serviceAddress, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
Collection<EPCISEventType> evts = epcisOperation.getEventFromEPC(epc);
|
||
for (EPCISEventType evt : evts) {
|
||
try {
|
||
... | ... | |
AggregationEventType event = (AggregationEventType) o;
|
||
for (EPC childEpc : event.getChildEPCs().getEpc()) {
|
||
log.trace("new traceEPC: " + childEpc.getValue());
|
||
new TraceEPCAsync(childEpc.getValue(), sessionID, client, identity).start();
|
||
new TraceEPCAsync(childEpc.getValue(), sessionID, client, identity, pksFilename, pksPassword, trustPksFilename, trustPksPassword).start();
|
||
}
|
||
} else if (o instanceof TransactionEventType) {
|
||
TransactionEventType event = (TransactionEventType) o;
|
||
for (EPC childEpc : event.getEpcList().getEpc()) {
|
||
log.trace("new traceEPC: " + childEpc.getValue());
|
||
new TraceEPCAsync(childEpc.getValue(), sessionID, client, identity).start();
|
||
new TraceEPCAsync(childEpc.getValue(), sessionID, client, identity, pksFilename, pksPassword, trustPksFilename, trustPksPassword).start();
|
||
}
|
||
}
|
||
}
|
ALfA/ALfA/src/main/java/fr/unicaen/iota/application/operations/TraceEPC.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
* Copyright © 2008-2013 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
... | ... | |
public class TraceEPC {
|
||
|
||
private final Identity identity;
|
||
private final String pksFilename;
|
||
private final String pksPassword;
|
||
private final String trustPksFilename;
|
||
private final String trustPksPassword;
|
||
private final ONSOperation onsOperation;
|
||
private static final Log log = LogFactory.getLog(TraceEPC.class);
|
||
|
||
public TraceEPC(Identity identity) {
|
||
public TraceEPC(Identity identity, String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) {
|
||
this.identity = identity;
|
||
this.pksFilename = pksFilename;
|
||
this.pksPassword = pksPassword;
|
||
this.trustPksFilename = trustPksFilename;
|
||
this.trustPksPassword = trustPksPassword;
|
||
this.onsOperation = new ONSOperation();
|
||
}
|
||
|
||
... | ... | |
log.trace("referent ds address found: " + dsAddress);
|
||
}
|
||
log.trace("Start discover");
|
||
DiscoveryOperation dsOp = new DiscoveryOperation(identity, dsAddress);
|
||
DiscoveryOperation dsOp = new DiscoveryOperation(identity, dsAddress, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
return traceEPC(dsOp, EPC, filters);
|
||
}
|
||
|
||
... | ... | |
EpcisOperation epcisOperation = null;
|
||
while (epcisOperation == null) {
|
||
try {
|
||
epcisOperation = new EpcisOperation(identity, EPCIS_SERVICE_ADDRESS);
|
||
epcisOperation = new EpcisOperation(identity, EPCIS_SERVICE_ADDRESS, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
} catch (Exception ex) {
|
||
epcisOperation = null;
|
||
log.warn("Unable to create service proxy port! [RETRYING]", ex);
|
ALfA/ALfA/src/main/java/fr/unicaen/iota/application/operations/TraceEPCAsync.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
* Copyright © 2008-2013 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
... | ... | |
|
||
public class TraceEPCAsync extends Thread {
|
||
|
||
private final String pksFilename;
|
||
private final String pksPassword;
|
||
private final String trustPksFilename;
|
||
private final String trustPksPassword;
|
||
private final CallbackClient client;
|
||
private final String sessionID;
|
||
private final Identity identity;
|
||
... | ... | |
private final ONSOperation onsOperation;
|
||
private static final Log log = LogFactory.getLog(TraceEPCAsync.class);
|
||
|
||
public TraceEPCAsync(String epc, String sessionID, CallbackClient client, Identity identity) {
|
||
public TraceEPCAsync(String epc, String sessionID, CallbackClient client, Identity identity,
|
||
String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) {
|
||
this.pksFilename = pksFilename;
|
||
this.pksPassword = pksPassword;
|
||
this.trustPksFilename = trustPksFilename;
|
||
this.trustPksPassword = trustPksPassword;
|
||
this.client = client;
|
||
this.sessionID = sessionID;
|
||
this.identity = identity;
|
||
... | ... | |
log.trace("referent ds address found: " + dsAddress);
|
||
}
|
||
log.trace("Start discover");
|
||
DiscoveryOperation dsOp = new DiscoveryOperation(identity, dsAddress, sessionID, client);
|
||
DiscoveryOperation dsOp = new DiscoveryOperation(identity, dsAddress, pksFilename, pksPassword, trustPksFilename, trustPksPassword, sessionID, client);
|
||
dsOp.discover(epc);
|
||
}
|
||
}
|
ALfA/ALfA/src/main/resources/application.properties | ||
---|---|---|
# RMI server configuration
|
||
# TLS private and public keys
|
||
pks-filename = /srv/privatekeys.jks
|
||
pks-password = changeit
|
||
trust-pks-filename = /srv/publickeys.jks
|
||
trust-pks-password = changeit
|
||
|
||
# the host will be used by the clients
|
||
rmi-server-name = ALfA
|
||
rmi-server-host = localhost
|
AUTHORS | ||
---|---|---|
|
||
GREYC Université de Caen Basse-Normandie
|
||
J. Chauveau (2009)
|
||
A. Laurence (2009-2012)
|
||
A. Laurence (2009-2013)
|
||
J. Le Moulec (2008-2012)
|
||
J. Madelaine (2008-2012)
|
||
R. Ménard (2011-2012)
|
||
S. Sauvage (2012)
|
||
J. Madelaine (2008-2013)
|
||
R. Ménard (2011-2013)
|
||
S. Sauvage (2012-2013)
|
||
|
||
Orange Labs
|
||
M.-A. Mouilleron (2011-2012)
|
BETa/LISEZMOI | ||
---|---|---|
Dépendances:
|
||
modules IoTa:
|
||
- ALfA-PI
|
||
- Mu
|
||
- OmICron
|
||
- TAu
|
||
bibliothèques:
|
||
- epcis-commons
|
||
- commons-logging
|
||
- log4j
|
||
|
||
Configuration:
|
||
Voir les fichiers *.properties et java.policy dans le fichier jar ; chacun
|
BETa/README | ||
---|---|---|
Dependencies:
|
||
IoTa modules:
|
||
- ALfA-PI
|
||
- Mu
|
||
- OmICron
|
||
- TAu
|
||
librairies:
|
||
- epcis-commons
|
||
- commons-logging
|
||
- log4j
|
||
|
||
Configuration:
|
||
See the files *.properties and java.policy in the jar file (each of those
|
BETa/pom.xml | ||
---|---|---|
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>beta</artifactId>
|
||
<version>1.9-mock</version>
|
||
<version>1.9</version>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>BETa</name>
|
||
|
||
<properties>
|
||
<epcis-version>0.5.0</epcis-version>
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
</properties>
|
||
|
||
... | ... | |
<version>${project.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>tau</artifactId>
|
||
<version>${project.version}</version>
|
||
</dependency>
|
||
|
||
<!-- Fosstrak dependencies -->
|
||
<dependency>
|
||
<groupId>org.fosstrak.epcis</groupId>
|
||
<artifactId>epcis-commons</artifactId>
|
||
<version>${epcis-version}</version>
|
||
</dependency>
|
||
|
||
<!-- Log dependencies -->
|
||
<dependency>
|
||
<groupId>commons-logging</groupId>
|
||
<artifactId>commons-logging</artifactId>
|
||
<version>1.1.1</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>log4j</groupId>
|
||
<artifactId>log4j</artifactId>
|
||
<version>1.2.16</version>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
<build>
|
BETa/src/main/java/fr/unicaen/iota/application/client/CallbackClientImpl.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
BETa/src/main/java/fr/unicaen/iota/application/client/Configuration.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
* Copyright © 2008-2013 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
... | ... | |
}
|
||
public static final String PROPERTIES_CONFIG_FILE = "/application.properties";
|
||
public static String SOAP_SERVICE_URL;
|
||
public static String PKS_FILENAME;
|
||
public static String PKS_PASSWORD;
|
||
public static String TRUST_PKS_FILENAME;
|
||
public static String TRUST_PKS_PASSWORD;
|
||
public static String RMI_SERVICE_URL;
|
||
public static String RMI_CALLBACK_HOST;
|
||
public static int RMI_CALLBACK_PORT;
|
||
... | ... | |
try {
|
||
Properties props = loadProperties();
|
||
SOAP_SERVICE_URL = props.getProperty("soap-service-url", "http://localhost:8080/omega/services/IOTA_Service/");
|
||
PKS_FILENAME = props.getProperty("pks-filename", "privatekeys.jks");
|
||
PKS_PASSWORD = props.getProperty("pks-password", "changeit");
|
||
TRUST_PKS_FILENAME = props.getProperty("trustpks-filename", "publickeys.jks");
|
||
TRUST_PKS_PASSWORD = props.getProperty("trustpks-password", "changeit");
|
||
RMI_SERVICE_URL = props.getProperty("rmi-service-url", "//localhost:1099/ALfA");
|
||
RMI_CALLBACK_HOST = props.getProperty("rmi-callback-host", "localhost");
|
||
RMI_CALLBACK_PORT = Integer.parseInt(props.getProperty("rmi-callback-port", "1099"));
|
BETa/src/main/java/fr/unicaen/iota/application/client/Main.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
BETa/src/main/java/fr/unicaen/iota/application/client/TraceEPCRMIAsync.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
BETa/src/main/java/fr/unicaen/iota/application/client/gui/ClosableTabbedPane.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
BETa/src/main/java/fr/unicaen/iota/application/client/gui/EventRowEditor.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
BETa/src/main/java/fr/unicaen/iota/application/client/gui/GUI.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
* Copyright © 2008-2013 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
... | ... | |
log.trace("Processing omegaTraceEPC ...");
|
||
Identity identity = new Identity();
|
||
identity.setAsString(Configuration.DEFAULT_IDENTITY);
|
||
OmICron client = new OmICron(identity, Configuration.SOAP_SERVICE_URL);
|
||
OmICron client = new OmICron(identity, Configuration.SOAP_SERVICE_URL, Configuration.PKS_FILENAME, Configuration.PKS_PASSWORD, Configuration.TRUST_PKS_FILENAME, Configuration.TRUST_PKS_PASSWORD);
|
||
try {
|
||
List<EPCISEventType> events = client.traceEPC(epc);
|
||
if (!events.isEmpty()) {
|
BETa/src/main/java/fr/unicaen/iota/application/client/gui/IdRenderer.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
BETa/src/main/java/fr/unicaen/iota/application/client/gui/SearchArea.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
BETa/src/main/java/fr/unicaen/iota/application/client/gui/TabComponent.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
BETa/src/main/java/fr/unicaen/iota/application/client/gui/TextAreaRenderer.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
BETa/src/main/java/fr/unicaen/iota/application/client/listener/EPCEventListener.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
BETa/src/main/java/fr/unicaen/iota/application/client/listener/EventDispatcher.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
BETa/src/main/java/fr/unicaen/iota/application/util/TravelTimeTuple.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
BETa/src/main/java/fr/unicaen/iota/application/util/Utils.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
BETa/src/main/resources/application.properties | ||
---|---|---|
# TLS private and public keys
|
||
pks-filename = /srv/privatekeys.jks
|
||
pks-password = changeit
|
||
trust-pks-filename = /srv/publickeys.jks
|
||
trust-pks-password = changeit
|
||
soap-service-url = http://localhost:8080/omega
|
||
rmi-service-url = //localhost:1099/ALfA
|
||
rmi-callback-host = localhost
|
CaPPa/DS-Xi-Client/LISEZMOI | ||
---|---|---|
Bibliothèque client pour l'interfaçage avec le service web Xi pour DS.
|
||
|
||
Dépendances:
|
||
modules IoTa:
|
||
- LibXACML-DS
|
||
bibliothèques:
|
||
- sunxacml
|
||
- servlet-api
|
CaPPa/DS-Xi-Client/README | ||
---|---|---|
Common library interfacing with the xi web service for DS.
|
||
|
||
Dependencies:
|
||
IoTa modules:
|
||
- LibXACML-DS
|
||
libraries:
|
||
- sunxacml
|
||
- servlet-api
|
CaPPa/DS-Xi-Client/pom.xml | ||
---|---|---|
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>ds-xi-client</artifactId>
|
||
<version>1.9-mock</version>
|
||
<version>1.9</version>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>DS-Xi-Client</name>
|
||
... | ... | |
<version>${project.version}</version>
|
||
</dependency>
|
||
|
||
<!-- Other dependency -->
|
||
<!-- Other dependencies -->
|
||
<dependency>
|
||
<groupId>net.sf.sunxacml</groupId>
|
||
<artifactId>sunxacml</artifactId>
|
||
<version>2.0-SNAPSHOT</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>javax.servlet</groupId>
|
||
<artifactId>javax.servlet-api</artifactId>
|
CaPPa/DS-Xi-Client/src/main/java/fr/unicaen/iota/xi/client/DSPEP.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2012 Orange Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
... | ... | |
|
||
private static final Log log = LogFactory.getLog(DSPEP.class);
|
||
|
||
public DSPEP(String url) {
|
||
super(url);
|
||
public DSPEP(String url, String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) {
|
||
super(url, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
}
|
||
|
||
/**
|
CaPPa/DS-Xi-Client/src/main/java/fr/unicaen/iota/xi/client/PEP.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2012 Orange Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
... | ... | |
|
||
public class PEP {
|
||
|
||
private String url;
|
||
|
||
private final String url;
|
||
private final String pksFilename;
|
||
private final String pksPassword;
|
||
private final String trustPksFilename;
|
||
private final String trustPksPassword;
|
||
private static final Log log = LogFactory.getLog(PEP.class);
|
||
|
||
public PEP(String url) {
|
||
this(url, null, null, null, null);
|
||
}
|
||
|
||
public PEP(String url, String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) {
|
||
this.url = url;
|
||
this.pksFilename = pksFilename;
|
||
this.pksPassword = pksPassword;
|
||
this.trustPksFilename = trustPksFilename;
|
||
this.trustPksPassword = trustPksPassword;
|
||
}
|
||
|
||
/**
|
||
... | ... | |
* @throws IOException If an error occurred connecting to the XACML module.
|
||
*/
|
||
private HttpURLConnection getConnection(final String contentType, String url) throws IOException {
|
||
System.setProperty("javax.net.ssl.keyStore", pksFilename);
|
||
System.setProperty("javax.net.ssl.keyStorePassword", pksPassword);
|
||
System.setProperty("javax.net.ssl.trustStore", trustPksFilename);
|
||
System.setProperty("javax.net.ssl.trustStorePassword", trustPksPassword);
|
||
URL serviceUrl = new URL(url);
|
||
HttpURLConnection connection = (HttpURLConnection) serviceUrl.openConnection();
|
||
connection.setRequestProperty("content-type", contentType);
|
CaPPa/DS-Xi-Client/src/main/java/fr/unicaen/iota/xi/utils/Utils.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
CaPPa/EPCIS-Xi-Client/LISEZMOI | ||
---|---|---|
Bibliothèque client pour l'interfaçage avec le service web Xi pour EPCIS.
|
||
|
||
Dépendances:
|
||
modules IoTa:
|
||
- LibXACML-EPCIS
|
||
bibliothèques:
|
||
- sunxacml
|
||
- servlet-api
|
CaPPa/EPCIS-Xi-Client/README | ||
---|---|---|
Common library interfacing with the xi web service for EPCIS.
|
||
|
||
Dependencies:
|
||
IoTa modules:
|
||
- LibXACML-EPCIS
|
||
libraries:
|
||
- sunxacml
|
||
- servlet-api
|
CaPPa/EPCIS-Xi-Client/pom.xml | ||
---|---|---|
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>epcis-xi-client</artifactId>
|
||
<version>1.9-mock</version>
|
||
<version>1.9</version>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>EPCIS-Xi-Client</name>
|
||
... | ... | |
<version>${project.version}</version>
|
||
</dependency>
|
||
|
||
<!-- Other dependency -->
|
||
<!-- Other dependencies -->
|
||
<dependency>
|
||
<groupId>net.sf.sunxacml</groupId>
|
||
<artifactId>sunxacml</artifactId>
|
||
<version>2.0-SNAPSHOT</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>javax.servlet</groupId>
|
||
<artifactId>javax.servlet-api</artifactId>
|
CaPPa/EPCIS-Xi-Client/src/main/java/fr/unicaen/iota/xi/client/EPCISPEP.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2012 Oranges Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
... | ... | |
|
||
private static final Log log = LogFactory.getLog(EPCISPEP.class);
|
||
|
||
public EPCISPEP(String url) {
|
||
super(url);
|
||
public EPCISPEP(String url, String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) {
|
||
super(url, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
}
|
||
|
||
@Override
|
CaPPa/EPCIS-Xi-Client/src/main/java/fr/unicaen/iota/xi/client/PEP.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2012 Orange Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
... | ... | |
|
||
public class PEP {
|
||
|
||
private String url;
|
||
|
||
private final String url;
|
||
private final String pksFilename;
|
||
private final String pksPassword;
|
||
private final String trustPksFilename;
|
||
private final String trustPksPassword;
|
||
private static final Log log = LogFactory.getLog(PEP.class);
|
||
|
||
public PEP(String url) {
|
||
public PEP(String url, String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) {
|
||
this.url = url;
|
||
this.pksFilename = pksFilename;
|
||
this.pksPassword = pksPassword;
|
||
this.trustPksFilename = trustPksFilename;
|
||
this.trustPksPassword = trustPksPassword;
|
||
}
|
||
|
||
/**
|
||
... | ... | |
* @throws IOException If an error occurred connecting to the XACML module.
|
||
*/
|
||
private HttpURLConnection getConnection(final String contentType, String url) throws IOException {
|
||
System.setProperty("javax.net.ssl.keyStore", pksFilename);
|
||
System.setProperty("javax.net.ssl.keyStorePassword", pksPassword);
|
||
System.setProperty("javax.net.ssl.trustStore", trustPksFilename);
|
||
System.setProperty("javax.net.ssl.trustStorePassword", trustPksPassword);
|
||
URL serviceUrl = new URL(url);
|
||
HttpURLConnection connection = (HttpURLConnection) serviceUrl.openConnection();
|
||
connection.setRequestProperty("content-type", contentType);
|
CaPPa/EPCIS-Xi-Client/src/main/java/fr/unicaen/iota/xi/client/UserPEP.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2012 Orange Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
... | ... | |
|
||
private static final Log log = LogFactory.getLog(UserPEP.class);
|
||
|
||
public UserPEP(String url) {
|
||
super(url);
|
||
public UserPEP(String url, String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) {
|
||
super(url, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
}
|
||
|
||
public int userLookup(String userId, String partner) {
|
CaPPa/EPCIS-Xi-Client/src/main/java/fr/unicaen/iota/xi/utils/Utils.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
DELTa/pom.xml | ||
---|---|---|
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>delta</artifactId>
|
||
<version>1.9-mock</version>
|
||
<version>1.9</version>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>DELTa</name>
|
DELTa/src/main/java/fr/unicaen/iota/validator/AnalyserResult.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/Configuration.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/Controler.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/IOTA.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/Main.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/ResultRaw.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/AnalyseTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/CellDetailsEditor.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/ChartDialog.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/ChartType.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/ContextualMenu.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/DetailsButton.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/DetailsCellRenderer.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/DetailsDialog.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/DsEventCellRenderer.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/EPCISEventCellRenderer.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/GUI.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/IdCellRenderer.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/Preferences.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/PreferencesLeaf.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/PreferencesNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/PreferencesStatus.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/ReportCellRenderer.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/StatPanel.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/StatTreeRenderer.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/Stats.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/TreeEditorPreferences.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/TreePanel.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/gui/TreeRendererPreferences.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/listener/AnalyserListener.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/listener/AnalyserStatus.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/model/AggregationEvent.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/model/BaseEvent.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/model/DSLink.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/model/EPC.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/model/EPCISLink.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/model/Infrastructure.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/model/Link.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/model/ObjectEvent.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/model/QuantityEvent.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/model/TransactionEvent.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/operations/Analyser.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/operations/BarChartPreferences.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/operations/BoxChartPreferences.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/operations/ChartBuilder.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/operations/ChartPreferences.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/operations/DSEntryComparator.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/operations/EPCISEntryComparator.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/operations/LogAnalyser.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/operations/ThreadManager.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DELTa/src/main/java/fr/unicaen/iota/validator/operations/XYChartPreferences.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DSeTa-Client/LISEZMOI | ||
---|---|---|
Bibliothèque client pour le web service DSeTa.
|
||
|
||
Dépendances:
|
||
modules IoTa:
|
||
- TAu
|
||
- IoTa-DiscoveryWS-Client
|
||
bibliothèques:
|
||
- cxf
|
||
- commons-logging
|
||
- log4j
|
||
|
||
Dépendances d’utilisation:
|
||
- DSeTa
|
DSeTa/DSeTa-Client/README | ||
---|---|---|
Client library for the DSeTa web service.
|
||
|
||
Dependencies:
|
||
IoTa modules:
|
||
- TAu
|
||
- IoTa-DiscoveryWS-Client
|
||
libraries:
|
||
- cxf
|
||
- commons-logging
|
||
- log4j
|
||
|
||
Usage Dependencies:
|
||
- DSeTa
|
DSeTa/DSeTa-Client/pom.xml | ||
---|---|---|
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>dseta-client</artifactId>
|
||
<version>1.9-mock</version>
|
||
<version>1.9</version>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>DSeTa-Client</name>
|
||
... | ... | |
<version>1.1.1</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>log4j</groupId>
|
||
<artifactId>log4j</artifactId>
|
||
<version>1.2.16</version>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
<build>
|
DSeTa/DSeTa-Client/src/main/java/fr/unicaen/iota/dseta/client/DSeTaClient.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2012-2013 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
... | ... | |
import java.security.cert.X509Certificate;
|
||
import java.util.*;
|
||
import javax.net.ssl.KeyManagerFactory;
|
||
import javax.net.ssl.TrustManager;
|
||
import javax.net.ssl.TrustManagerFactory;
|
||
import javax.net.ssl.X509TrustManager;
|
||
import javax.xml.datatype.DatatypeConfigurationException;
|
||
import javax.xml.datatype.DatatypeFactory;
|
||
... | ... | |
import org.apache.cxf.transports.http.configuration.HTTPClientPolicy;
|
||
|
||
//import org.fosstrak.epcis.utils.AuthenticationType;
|
||
|
||
/**
|
||
*
|
||
*/
|
||
... | ... | |
private static final Log log = LogFactory.getLog(DSeTaClient.class);
|
||
|
||
public DSeTaClient(Identity id, String dsAddress) {
|
||
this(id, dsAddress, null, null);
|
||
this(id, dsAddress, null, null, null, null);
|
||
}
|
||
|
||
public DSeTaClient(Identity id, String address, String pksFilename, String pksPassword) {
|
||
|
||
public DSeTaClient(Identity id, String address, String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) {
|
||
log.trace("new DSeTaClient: " + id + " @ " + address);
|
||
this.identity = id;
|
||
// TODO: TLS
|
||
try {
|
||
configureService(address, pksFilename, pksPassword);
|
||
configureService(address, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
} catch (Exception e) {
|
||
throw new RuntimeException("Can’t configure service: " + e.getMessage(), e);
|
||
}
|
||
}
|
||
|
||
// TODO: TLS
|
||
public void configureService(String address, String pksFilename, String pksPassword) throws Exception {
|
||
public void configureService(String address, String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) throws Exception {
|
||
System.setProperty("javax.net.ssl.keyStore", pksFilename);
|
||
System.setProperty("javax.net.ssl.keyStorePassword", pksPassword);
|
||
System.setProperty("javax.net.ssl.trustStore", trustPksFilename);
|
||
System.setProperty("javax.net.ssl.trustStorePassword", trustPksPassword);
|
||
URL wsdlUrl = new URL(address + "?wsdl");
|
||
IDedDSService service = new IDedDSService(wsdlUrl);
|
||
port = service.getPort(IDedDSServicePortType.class);
|
||
... | ... | |
httpClientPolicy.setAllowChunking(false);
|
||
httpConduit.setClient(httpClientPolicy);
|
||
|
||
// TODO: TLS
|
||
if (pksFilename != null) {
|
||
//log.debug("Authenticating with certificate in file: " + pksFilename);
|
||
log.debug("Authenticating with certificate in file: " + pksFilename);
|
||
|
||
if (!wsdlUrl.getProtocol().equalsIgnoreCase("https")) {
|
||
throw new Exception("Authentication method requires the use of HTTPS");
|
||
... | ... | |
KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance("SunX509");
|
||
keyManagerFactory.init(keyStore, pksPassword.toCharArray());
|
||
|
||
KeyStore trustStore = KeyStore.getInstance(trustPksFilename.endsWith(".p12") ? "PKCS12" : "JKS");
|
||
trustStore.load(new FileInputStream(new File(trustPksFilename)), trustPksPassword.toCharArray());
|
||
TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance("SunX509");
|
||
trustManagerFactory.init(trustStore);
|
||
|
||
TLSClientParameters tlscp = new TLSClientParameters();
|
||
tlscp.setKeyManagers(keyManagerFactory.getKeyManagers());
|
||
tlscp.setSecureRandom(new SecureRandom());
|
||
tlscp.setDisableCNCheck(true);
|
||
tlscp.setTrustManagers(new TrustManager[] { this });
|
||
tlscp.setKeyManagers(keyManagerFactory.getKeyManagers());
|
||
tlscp.setTrustManagers(trustManagerFactory.getTrustManagers());
|
||
|
||
httpConduit.setTlsClientParameters(tlscp);
|
||
}
|
||
... | ... | |
TExtension exts = new TExtension();
|
||
for (Map.Entry<String, String> idval : extensions.entrySet()) {
|
||
/*
|
||
ESDS_ServiceStub.TExtension tExtension = new ESDS_ServiceStub.TExtension();
|
||
OMFactory factory = OMAbstractFactory.getOMFactory();
|
||
OMElement elemExtension = factory.createOMElement(new QName("fr:unicaen:extension"));
|
||
OMElement key = factory.createOMElement(new QName("fr:unicaen:key"));
|
||
key.setText(idval.getKey());
|
||
OMElement value = factory.createOMElement(new QName("fr:unicaen:value"));
|
||
value.setText(idval.getValue());
|
||
elemExtension.addChild(key);
|
||
elemExtension.addChild(value);
|
||
tExtension.addExtraElement(elemExtension);
|
||
*/
|
||
* ESDS_ServiceStub.TExtension tExtension = new
|
||
* ESDS_ServiceStub.TExtension(); OMFactory factory =
|
||
* OMAbstractFactory.getOMFactory(); OMElement elemExtension =
|
||
* factory.createOMElement(new QName("fr:unicaen:extension"));
|
||
* OMElement key = factory.createOMElement(new
|
||
* QName("fr:unicaen:key")); key.setText(idval.getKey());
|
||
* OMElement value = factory.createOMElement(new
|
||
* QName("fr:unicaen:value")); value.setText(idval.getValue());
|
||
* elemExtension.addChild(key); elemExtension.addChild(value);
|
||
* tExtension.addExtraElement(elemExtension);
|
||
*/
|
||
}
|
||
tObjectEvent.setExtension(exts);
|
||
}
|
DSeTa/DSeTa-Client/src/main/resources/commons-logging.properties | ||
---|---|---|
# use LOG4J as the underlying logging toolkit
|
||
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
|
DSeTa/DSeTa-Client/src/main/resources/log4j.properties | ||
---|---|---|
# LOG4J configuration
|
||
|
||
# default logging
|
||
log4j.rootCategory=INFO, LOGFILE, CONSOLE
|
||
|
||
# customize logging levels
|
||
log4j.logger.fr.unicaen.iota=INFO
|
||
|
||
# enable logging of incoming/outgoing SOAP requests/responses
|
||
#log4j.logger.org.apache.cxf.interceptor.LoggingInInterceptor=INFO
|
||
#log4j.logger.org.apache.cxf.interceptor.LoggingOutInterceptor=INFO
|
||
|
||
# logging to file
|
||
#log4j.appender.LOGFILE=org.apache.log4j.DailyRollingFileAppender
|
||
#log4j.appender.LOGFILE.File=${catalina.base}/logs/discovery-client.log
|
||
#log4j.appender.LOGFILE.File=discovery-client.log
|
||
#log4j.appender.LOGFILE.DatePattern='.'yyyy-MM-dd'.log'
|
||
#log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
|
||
#log4j.appender.LOGFILE.layout.ConversionPattern=%5p (%d{yyyy-MM-dd HH:mm:ss,SSS}) [%C:%L] - %m%n
|
||
|
||
|
||
## CONSOLE is set to be a ConsoleAppender using a PatternLayout.
|
||
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
|
||
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
|
||
log4j.appender.CONSOLE.layout.ConversionPattern=[%p] [%C{1}:%L] %m%n
|
DSeTa/DSeTa/LISEZMOI | ||
---|---|---|
modules IoTa:
|
||
- DSeTa-Client
|
||
- IoTa-DiscoveryWS-Client
|
||
- TAu
|
||
bibliothèques:
|
||
- Apache cxf
|
||
- spring
|
||
- commons-logging
|
||
- log4j
|
||
|
DSeTa/DSeTa/README | ||
---|---|---|
IoTa modules:
|
||
- DSeTa-Client
|
||
- IoTa-DiscoveryWS-Client
|
||
- TAu
|
||
libraries:
|
||
- Apache cxf
|
||
- spring
|
||
- commons-logging
|
||
- log4j
|
||
|
DSeTa/DSeTa/pom.xml | ||
---|---|---|
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>dseta-server</artifactId>
|
||
<version>1.9-mock</version>
|
||
<version>1.9</version>
|
||
<packaging>war</packaging>
|
||
<name>DSeTa Server</name>
|
||
|
||
... | ... | |
<version>${project.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>tau</artifactId>
|
||
<version>${project.version}</version>
|
||
</dependency>
|
||
|
||
<!-- Log dependencies -->
|
||
<dependency>
|
||
<groupId>commons-logging</groupId>
|
DSeTa/DSeTa/src/main/java/fr/unicaen/iota/dseta/server/Constants.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DSeTa/src/main/java/fr/unicaen/iota/dseta/server/DSeTaWebService.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DSeTa/src/main/java/fr/unicaen/iota/dseta/server/DiscoveryWebService.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/pom.xml | ||
---|---|---|
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>discovery-phi</artifactId>
|
||
<version>1.9-mock</version>
|
||
<version>1.9</version>
|
||
<packaging>war</packaging>
|
||
|
||
<name>DiscoveryPHI</name>
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/auth/Partner.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/auth/User.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/utils/HTMLUtilities.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/utils/InterfaceHelper.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/utils/MapSessions.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/utils/SessionLoader.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/Mode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/NodeType.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/TreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/factory/AccessPolicies.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/factory/ActionTargetTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/factory/ActionTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/factory/BizStepRuleTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/factory/BizStepTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/factory/EpcClassRuleTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/factory/EpcClassTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/factory/EpcTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/factory/EpcsRuleTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/factory/EventTimeRuleTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/factory/EventTimeTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/factory/GroupPolicyTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/factory/Node.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/factory/Policies.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/factory/RuleTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/factory/UserGroupRuleTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/factory/UserTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/test/AccessResponse.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/test/AccessResponseDialog.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/test/CaptureModule.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/test/TestPEP.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/servlet/Response.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/servlet/RootAccountAuth.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/servlet/ServiceErrorType.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/servlet/ServiceException.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/servlet/Services.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/servlet/XiServlet.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
DSeTa/LibXACML-DS/pom.xml | ||
---|---|---|
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>libxacml-ds</artifactId>
|
||
<version>1.9-mock</version>
|
||
<version>1.9</version>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>LibXACML-DS</name>
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/AccessPolicyManager.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/AccessPolicyManagerSession.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/DSPDP.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/MyTargetFactory.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/combine/SCGroupPolicyAlg.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/combine/SCGroupRuleAcceptAlg.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/combine/SCGroupRuleAlg.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/combine/SCGroupRuleDenyAlg.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/cond/OneOrGlobalFunction.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/configuration/Configuration.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/finder/MyPolicyCollection.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/pep/XACMLDSEvent.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/policy/DenyDefaultPolicy.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/policy/Module.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/policy/OwnerPolicies.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/policy/RuleFactory.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/policy/SCBizStepRule.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/policy/SCEPCClassRule.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/policy/SCEPCsRule.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/policy/SCEventTimeRule.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/policy/SCRule.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/policy/SCgroupRule.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/policy/function/RevertRegexpMatch.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/request/EventRequest.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/AccessPolicyManagerInterface.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/AccessPolicyManagerVue.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/ActionTargetTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/BizStepRuleTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/DateTimeAttributeTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/EpcClassRuleTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/EpcsRuleTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/EventTimeRuleTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/FilterBizStep.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/FilterBizStepInterface.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/FilterEpcClassInterface.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/FilterEpcInterface.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/FilterEventTime.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/FilterEventTimeInterface.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/FilterUser.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/FilterUserInterface.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/GroupPolicyDialog.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/GroupPolicyInterface.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/GroupPolicyTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/MouseEventHandler.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/OwnerPoliciesTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/RuleTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/StringAttributeTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
DSeTa/LibXACML-DS/src/main/java/fr/unicaen/iota/xacml/vue/UserGroupRuleTreeNode.java | ||
---|---|---|
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
ETa/ETa-Callback/ETa-Callback-Filter/LISEZMOI | ||
---|---|---|
bibliothèques:
|
||
- epcis-commons
|
||
- servlet-api
|
||
- mysql-connector
|
||
- activemq-core
|
||
- commons-logging
|
||
- log4j
|
ETa/ETa-Callback/ETa-Callback-Filter/README | ||
---|---|---|
libraries:
|
||
- epcis-commons
|
||
- servlet-api
|
||
- mysql-connector
|
||
- activemq-core
|
||
- commons-logging
|
||
- log4j
|
ETa/ETa-Callback/ETa-Callback-Filter/pom.xml | ||
---|---|---|
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>eta-callback-filter</artifactId>
|
||
<version>1.9-mock</version>
|
||
<version>1.9</version>
|
||
<packaging>war</packaging>
|
||
|
||
<name>ETa-Callback-Filter</name>
|
ETa/ETa-Callback/ETa-Callback-Filter/src/main/java/fr/unicaen/iota/eta/callback/filter/CallbackCheck.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
... | ... | |
import java.util.Date;
|
||
import java.util.Iterator;
|
||
import java.util.List;
|
||
import org.fosstrak.epcis.model.AggregationEventType;
|
||
import org.fosstrak.epcis.model.BusinessTransactionType;
|
||
import org.fosstrak.epcis.model.EPC;
|
||
import org.fosstrak.epcis.model.EPCISEventType;
|
||
import org.fosstrak.epcis.model.ObjectEventType;
|
||
import org.fosstrak.epcis.model.QuantityEventType;
|
||
import org.fosstrak.epcis.model.TransactionEventType;
|
||
import org.fosstrak.epcis.model.*;
|
||
import org.fosstrak.epcis.utils.TimeParser;
|
||
import org.w3c.dom.Element;
|
||
|
||
... | ... | |
private EPCISPEP epcisPEP;
|
||
|
||
public CallbackCheck() {
|
||
epcisPEP = new EPCISPEP(Constants.XACML_URL);
|
||
epcisPEP = new EPCISPEP(Constants.XACML_URL, Constants.PKS_FILENAME, Constants.PKS_PASSWORD, Constants.TRUST_PKS_FILENAME, Constants.TRUST_PKS_PASSWORD);
|
||
}
|
||
|
||
public boolean xacmlCheck(XACMLEPCISEvent xacmlEvent, String user) {
|
ETa/ETa-Callback/ETa-Callback-Filter/src/main/java/fr/unicaen/iota/eta/callback/filter/CallbackOperationsBackendSQL.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/ETa-Callback/ETa-Callback-Filter/src/main/java/fr/unicaen/iota/eta/callback/filter/CallbackOperationsModule.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/ETa-Callback/ETa-Callback-Filter/src/main/java/fr/unicaen/iota/eta/callback/filter/CallbackOperationsSession.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/ETa-Callback/ETa-Callback-Filter/src/main/java/fr/unicaen/iota/eta/callback/filter/Constants.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
... | ... | |
public static final String DATABASE_LOGIN;
|
||
public static final String DATABASE_PASSWORD;
|
||
public static final String XACML_URL;
|
||
public static final String PKS_FILENAME;
|
||
public static final String PKS_PASSWORD;
|
||
public static final String TRUST_PKS_FILENAME;
|
||
public static final String TRUST_PKS_PASSWORD;
|
||
public static final long STARTUP_DELAY;
|
||
public static final long POLLING_DELAY;
|
||
private static final Log LOG = LogFactory.getLog(Constants.class);
|
||
... | ... | |
XACML_URL = properties.getProperty("xacml-url");
|
||
STARTUP_DELAY = Long.parseLong(properties.getProperty("startup-delay", "10000"));
|
||
POLLING_DELAY = Long.parseLong(properties.getProperty("polling-delay", "60000"));
|
||
PKS_FILENAME = properties.getProperty("pks-filename", "privatekeys.jks");
|
||
PKS_PASSWORD = properties.getProperty("pks-password", "changeit");
|
||
TRUST_PKS_FILENAME = properties.getProperty("trustpks-filename", "publickeys.jks");
|
||
TRUST_PKS_PASSWORD = properties.getProperty("trustpks-password", "changeit");
|
||
}
|
||
}
|
ETa/ETa-Callback/ETa-Callback-Filter/src/main/java/fr/unicaen/iota/eta/callback/filter/EpcisConstants.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/ETa-Callback/ETa-Callback-Filter/src/main/java/fr/unicaen/iota/eta/callback/filter/Filter.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/ETa-Callback/ETa-Callback-Filter/src/main/java/fr/unicaen/iota/eta/callback/filter/FilterContextListener.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
ETa/ETa-Callback/ETa-Callback-Filter/src/main/java/fr/unicaen/iota/eta/callback/filter/Main.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/ETa-Callback/ETa-Callback-Filter/src/main/resources/application.properties | ||
---|---|---|
|
||
# XACML
|
||
xacml-url = http://localhost:8080/ephi/xi
|
||
|
||
# TLS private and public keys
|
||
pks-filename = /srv/privatekeys.jks
|
||
pks-password = changeit
|
||
trust-pks-filename = /srv/publickeys.jks
|
||
trust-pks-password = changeit
|
ETa/ETa-Callback/ETa-Callback-Receiver/LISEZMOI | ||
---|---|---|
|
||
Dépendances:
|
||
bibliothèques:
|
||
- epcis-commons
|
||
- servlet-api
|
||
- activemq-core
|
||
- commons-logging
|
ETa/ETa-Callback/ETa-Callback-Receiver/README | ||
---|---|---|
|
||
Dependencies:
|
||
libraries:
|
||
- epcis-commons
|
||
- servlet-api
|
||
- activemq-core
|
||
- commons-logging
|
ETa/ETa-Callback/ETa-Callback-Receiver/pom.xml | ||
---|---|---|
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>eta-callback-receiver</artifactId>
|
||
<version>1.9-mock</version>
|
||
<version>1.9</version>
|
||
<packaging>war</packaging>
|
||
|
||
<name>ETa-Callback-Receiver</name>
|
ETa/ETa-Callback/ETa-Callback-Receiver/src/main/java/fr/unicaen/iota/eta/callback/receiver/CallbackContextListener.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/ETa-Callback/ETa-Callback-Receiver/src/main/java/fr/unicaen/iota/eta/callback/receiver/CallbackOperationsModule.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/ETa-Callback/ETa-Callback-Receiver/src/main/java/fr/unicaen/iota/eta/callback/receiver/CallbackOperationsServlet.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/ETa-Callback/ETa-Callback-Receiver/src/main/java/fr/unicaen/iota/eta/callback/receiver/CallbackOperationsSession.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/ETa-Callback/ETa-Callback-Receiver/src/main/java/fr/unicaen/iota/eta/callback/receiver/Constants.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/ETa-Callback/ETa-Callback-Sender/LISEZMOI | ||
---|---|---|
|
||
Dépendances:
|
||
bibliothèques:
|
||
- mysql-connector
|
||
- activemq-core
|
||
- commons-io
|
||
- commons-logging
|
ETa/ETa-Callback/ETa-Callback-Sender/README | ||
---|---|---|
|
||
Dependencies:
|
||
libraries:
|
||
- mysql-connector
|
||
- activemq-core
|
||
- commons-io
|
||
- commons-logging
|
ETa/ETa-Callback/ETa-Callback-Sender/pom.xml | ||
---|---|---|
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>eta-callback-sender</artifactId>
|
||
<version>1.9-mock</version>
|
||
<version>1.9</version>
|
||
<packaging>war</packaging>
|
||
|
||
<name>ETa-Callback-Sender</name>
|
ETa/ETa-Callback/ETa-Callback-Sender/src/main/java/fr/unicaen/iota/eta/callback/sender/CallbackOperationsBackendSQL.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/ETa-Callback/ETa-Callback-Sender/src/main/java/fr/unicaen/iota/eta/callback/sender/CallbackOperationsModule.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
... | ... | |
private Schema schema;
|
||
private java.sql.Connection dbConnection;
|
||
private CallbackOperationsBackendSQL backend;
|
||
private boolean trustAllCertificates;
|
||
private static final Log LOG = LogFactory.getLog(CallbackOperationsModule.class);
|
||
|
||
public CallbackOperationsModule() {
|
||
this.schema = initEpcisSchema(Constants.EPCIS_SCHEMA_PATH);
|
||
this.trustAllCertificates = Boolean.parseBoolean(Constants.TRUST_ALL_CERTIFICATES);
|
||
backend = new CallbackOperationsBackendSQL();
|
||
dbConnection = loadDatabaseConnection();
|
||
LOG.info("CallbackModule sender is successfully loaded");
|
||
... | ... | |
HttpURLConnection connection;
|
||
int response = -1;
|
||
try {
|
||
if ("HTTPS".equalsIgnoreCase(serviceUrl.getProtocol()) && trustAllCertificates) {
|
||
connection = getAllTrustingConnection(serviceUrl);
|
||
} else {
|
||
connection = getConnection(serviceUrl);
|
||
}
|
||
connection.setRequestMethod("POST");
|
||
connection.setRequestProperty("content-type", "text/xml");
|
||
connection.setRequestProperty("content-length", "" + data.length());
|
||
connection.setDoOutput(true);
|
||
connection.setDoInput(true);
|
||
connection.setReadTimeout(200);
|
||
connection = getConnection(dest);
|
||
|
||
// send data
|
||
Writer out = new OutputStreamWriter(connection.getOutputStream());
|
||
... | ... | |
|
||
// disconnect and return
|
||
// TODO response code
|
||
try {
|
||
response = connection.getResponseCode();
|
||
} catch (IOException e) {
|
||
}
|
||
response = connection.getResponseCode();
|
||
connection.disconnect();
|
||
return response;
|
||
} catch (SocketTimeoutException e) {
|
||
... | ... | |
}
|
||
|
||
/**
|
||
* Opens a connection to the given URL. <p> The URL.openConnection() method
|
||
* returns an instance of javax.net.ssl.HttpsURLConnection, which extends
|
||
* java.net.HttpURLConnection, if the HTTPS protocol is used in the URL.
|
||
* Thus, we support both the HTTP and HTTPS binding of the query callback
|
||
* interface. <p> Note: By default, accessing an HTTPS URL using the URL
|
||
* class results in an exception if the destination's certificate chain
|
||
* cannot be validated. In this case you can manually import the
|
||
* destination's certificate into the Java runtime's trust store, or, if you
|
||
* want to disable the validation of certificates for testing purposes, use
|
||
* {@link getAllTrustingConnection(URL)}.
|
||
*
|
||
* @param url The URL on which a connection will be opened.
|
||
* @return A HttpURLConnection connection object.
|
||
* @throws IOException If an I/O error occurred.
|
||
*/
|
||
private HttpURLConnection getConnection(URL url) throws IOException {
|
||
return (HttpURLConnection) url.openConnection();
|
||
}
|
||
|
||
/**
|
||
* Retrieves an "all-trusting" HTTP URL connection object, by disabling the
|
||
* validation of certificates and overriding the default trust manager with
|
||
* one that trusts all certificates.
|
||
*
|
||
* @param url The URL on which a connection will be opened.
|
||
* @return A HttpURLConnection connection object.
|
||
* @throws IOException If an I/O error occurred.
|
||
* Opens a connection to the EPCIS capture interface.
|
||
* @param url The address on which a connection will be opened.
|
||
* @return The HTTP connection object.
|
||
*/
|
||
private HttpURLConnection getAllTrustingConnection(URL url) throws IOException {
|
||
// Create a trust manager that does not validate certificate chains
|
||
TrustManager[] trustAllCerts = new TrustManager[]{
|
||
new X509TrustManager() {
|
||
|
||
@Override
|
||
public java.security.cert.X509Certificate[] getAcceptedIssuers() {
|
||
return null;
|
||
}
|
||
|
||
@Override
|
||
public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) {
|
||
}
|
||
|
||
@Override
|
||
public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) {
|
||
}
|
||
}
|
||
};
|
||
|
||
// Install the all-trusting trust manager
|
||
try {
|
||
SSLContext sc = SSLContext.getInstance("SSL");
|
||
sc.init(null, trustAllCerts, new java.security.SecureRandom());
|
||
HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
|
||
} catch (Exception e) {
|
||
LOG.error("Unable to install the all-trusting trust manager", e);
|
||
}
|
||
return getConnection(url);
|
||
private HttpURLConnection getConnection(String url) throws IOException {
|
||
System.setProperty("javax.net.ssl.keyStore", Constants.PKS_FILENAME);
|
||
System.setProperty("javax.net.ssl.keyStorePassword", Constants.PKS_PASSWORD);
|
||
System.setProperty("javax.net.ssl.trustStore", Constants.TRUST_PKS_FILENAME);
|
||
System.setProperty("javax.net.ssl.trustStorePassword", Constants.TRUST_PKS_PASSWORD);
|
||
URL serviceUrl = new URL(url);
|
||
HttpURLConnection connection = (HttpURLConnection) serviceUrl.openConnection();
|
||
connection.setRequestProperty("content-type", "text/xml");
|
||
connection.setRequestMethod("POST");
|
||
connection.setReadTimeout(200);
|
||
connection.setDoInput(true);
|
||
connection.setDoOutput(true);
|
||
return connection;
|
||
}
|
||
|
||
/**
|
ETa/ETa-Callback/ETa-Callback-Sender/src/main/java/fr/unicaen/iota/eta/callback/sender/CallbackOperationsSession.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/ETa-Callback/ETa-Callback-Sender/src/main/java/fr/unicaen/iota/eta/callback/sender/Constants.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
... | ... | |
public final class Constants {
|
||
|
||
public static final String EPCIS_SCHEMA_PATH;
|
||
public static final String TRUST_ALL_CERTIFICATES;
|
||
public static final String ACTIVEMQ_QUEUE_NAME;
|
||
public static final String ACTIVEMQ_URL;
|
||
public static final String ACTIVEMQ_LOGIN;
|
||
... | ... | |
public static final String DATABASE_URL;
|
||
public static final String DATABASE_LOGIN;
|
||
public static final String DATABASE_PASSWORD;
|
||
public static final String PKS_FILENAME;
|
||
public static final String PKS_PASSWORD;
|
||
public static final String TRUST_PKS_FILENAME;
|
||
public static final String TRUST_PKS_PASSWORD;
|
||
public static final long STARTUP_DELAY;
|
||
public static final long POLLING_DELAY;
|
||
private static final Log LOG = LogFactory.getLog(Constants.class);
|
||
... | ... | |
LOG.fatal(null, ex);
|
||
}
|
||
EPCIS_SCHEMA_PATH = properties.getProperty("epcisSchemaFile", "/xsd/EPCglobal-epcis-query-1_0.xsd");
|
||
TRUST_ALL_CERTIFICATES = properties.getProperty("trustAllCertificates", "false");
|
||
ACTIVEMQ_URL = properties.getProperty("activemq-url");
|
||
ACTIVEMQ_LOGIN = properties.getProperty("activemq-login", ActiveMQConnection.DEFAULT_USER);
|
||
ACTIVEMQ_PASSWORD = properties.getProperty("activemq-password", ActiveMQConnection.DEFAULT_PASSWORD);
|
||
... | ... | |
DATABASE_PASSWORD = properties.getProperty("database-password");
|
||
STARTUP_DELAY = Long.parseLong(properties.getProperty("startup-delay", "10000"));
|
||
POLLING_DELAY = Long.parseLong(properties.getProperty("polling-delay", "60000"));
|
||
PKS_FILENAME = properties.getProperty("pks-filename", "privatekeys.jks");
|
||
PKS_PASSWORD = properties.getProperty("pks-password", "changeit");
|
||
TRUST_PKS_FILENAME = properties.getProperty("trust-pks-filename", "publickeys.jks");
|
||
TRUST_PKS_PASSWORD = properties.getProperty("trust-pks-password", "changeit");
|
||
}
|
||
}
|
ETa/ETa-Callback/ETa-Callback-Sender/src/main/java/fr/unicaen/iota/eta/callback/sender/Main.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/ETa-Callback/ETa-Callback-Sender/src/main/java/fr/unicaen/iota/eta/callback/sender/Sender.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/ETa-Callback/ETa-Callback-Sender/src/main/java/fr/unicaen/iota/eta/callback/sender/SenderContextListener.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
ETa/ETa-Callback/ETa-Callback-Sender/src/main/resources/application.properties | ||
---|---|---|
startup-delay = 10000
|
||
polling-delay = 60000
|
||
|
||
# whether to trust a certificate whose certificate chain cannot be validated
|
||
# when delivering results via Query Callback Interface
|
||
trustAllCertificates=false
|
||
|
||
database-url=jdbc:mysql://localhost:3306/eta_db?autoReconnect=true
|
||
database-login=callback_usr
|
||
database-password=callback_pwd
|
||
|
||
# TLS private and public keys
|
||
pks-filename = /srv/privatekeys.jks
|
||
pks-password = changeit
|
||
trust-pks-filename = /srv/publickeys.jks
|
||
trust-pks-password = changeit
|
ETa/ETa-Capture-Client/LICENSE | ||
---|---|---|
GNU GENERAL PUBLIC LICENSE
|
||
Version 3, 29 June 2007
|
||
|
||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||
Everyone is permitted to copy and distribute verbatim copies
|
||
of this license document, but changing it is not allowed.
|
||
|
||
Preamble
|
||
|
||
The GNU General Public License is a free, copyleft license for
|
||
software and other kinds of works.
|
||
|
||
The licenses for most software and other practical works are designed
|
||
to take away your freedom to share and change the works. By contrast,
|
||
the GNU General Public License is intended to guarantee your freedom to
|
||
share and change all versions of a program--to make sure it remains free
|
||
software for all its users. We, the Free Software Foundation, use the
|
||
GNU General Public License for most of our software; it applies also to
|
||
any other work released this way by its authors. You can apply it to
|
||
your programs, too.
|
||
|
||
When we speak of free software, we are referring to freedom, not
|
||
price. Our General Public Licenses are designed to make sure that you
|
||
have the freedom to distribute copies of free software (and charge for
|
||
them if you wish), that you receive source code or can get it if you
|
||
want it, that you can change the software or use pieces of it in new
|
||
free programs, and that you know you can do these things.
|
||
|
||
To protect your rights, we need to prevent others from denying you
|
||
these rights or asking you to surrender the rights. Therefore, you have
|
||
certain responsibilities if you distribute copies of the software, or if
|
||
you modify it: responsibilities to respect the freedom of others.
|
||
|
||
For example, if you distribute copies of such a program, whether
|
||
gratis or for a fee, you must pass on to the recipients the same
|
||
freedoms that you received. You must make sure that they, too, receive
|
||
or can get the source code. And you must show them these terms so they
|
||
know their rights.
|
||
|
||
Developers that use the GNU GPL protect your rights with two steps:
|
||
(1) assert copyright on the software, and (2) offer you this License
|
||
giving you legal permission to copy, distribute and/or modify it.
|
||
|
||
For the developers' and authors' protection, the GPL clearly explains
|
||
that there is no warranty for this free software. For both users' and
|
||
authors' sake, the GPL requires that modified versions be marked as
|
||
changed, so that their problems will not be attributed erroneously to
|
||
authors of previous versions.
|
||
|
||
Some devices are designed to deny users access to install or run
|
||
modified versions of the software inside them, although the manufacturer
|
||
can do so. This is fundamentally incompatible with the aim of
|
||
protecting users' freedom to change the software. The systematic
|
||
pattern of such abuse occurs in the area of products for individuals to
|
||
use, which is precisely where it is most unacceptable. Therefore, we
|
||
have designed this version of the GPL to prohibit the practice for those
|
||
products. If such problems arise substantially in other domains, we
|
||
stand ready to extend this provision to those domains in future versions
|
||
of the GPL, as needed to protect the freedom of users.
|
||
|
||
Finally, every program is threatened constantly by software patents.
|
||
States should not allow patents to restrict development and use of
|
||
software on general-purpose computers, but in those that do, we wish to
|
||
avoid the special danger that patents applied to a free program could
|
||
make it effectively proprietary. To prevent this, the GPL assures that
|
||
patents cannot be used to render the program non-free.
|
||
|
||
The precise terms and conditions for copying, distribution and
|
||
modification follow.
|
||
|
||
TERMS AND CONDITIONS
|
||
|
||
0. Definitions.
|
||
|
||
"This License" refers to version 3 of the GNU General Public License.
|
||
|
||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||
works, such as semiconductor masks.
|
||
|
||
"The Program" refers to any copyrightable work licensed under this
|
||
License. Each licensee is addressed as "you". "Licensees" and
|
||
"recipients" may be individuals or organizations.
|
||
|
||
To "modify" a work means to copy from or adapt all or part of the work
|
||
in a fashion requiring copyright permission, other than the making of an
|
||
exact copy. The resulting work is called a "modified version" of the
|
||
earlier work or a work "based on" the earlier work.
|
||
|
||
A "covered work" means either the unmodified Program or a work based
|
||
on the Program.
|
||
|
||
To "propagate" a work means to do anything with it that, without
|
||
permission, would make you directly or secondarily liable for
|
||
infringement under applicable copyright law, except executing it on a
|
||
computer or modifying a private copy. Propagation includes copying,
|
||
distribution (with or without modification), making available to the
|
||
public, and in some countries other activities as well.
|
||
|
||
To "convey" a work means any kind of propagation that enables other
|
||
parties to make or receive copies. Mere interaction with a user through
|
||
a computer network, with no transfer of a copy, is not conveying.
|
||
|
||
An interactive user interface displays "Appropriate Legal Notices"
|
||
to the extent that it includes a convenient and prominently visible
|
||
feature that (1) displays an appropriate copyright notice, and (2)
|
||
tells the user that there is no warranty for the work (except to the
|
||
extent that warranties are provided), that licensees may convey the
|
||
work under this License, and how to view a copy of this License. If
|
||
the interface presents a list of user commands or options, such as a
|
||
menu, a prominent item in the list meets this criterion.
|
||
|
||
1. Source Code.
|
||
|
||
The "source code" for a work means the preferred form of the work
|
||
for making modifications to it. "Object code" means any non-source
|
||
form of a work.
|
||
|
||
A "Standard Interface" means an interface that either is an official
|
||
standard defined by a recognized standards body, or, in the case of
|
||
interfaces specified for a particular programming language, one that
|
||
is widely used among developers working in that language.
|
||
|
||
The "System Libraries" of an executable work include anything, other
|
||
than the work as a whole, that (a) is included in the normal form of
|
||
packaging a Major Component, but which is not part of that Major
|
||
Component, and (b) serves only to enable use of the work with that
|
||
Major Component, or to implement a Standard Interface for which an
|
||
implementation is available to the public in source code form. A
|
||
"Major Component", in this context, means a major essential component
|
||
(kernel, window system, and so on) of the specific operating system
|
||
(if any) on which the executable work runs, or a compiler used to
|
||
produce the work, or an object code interpreter used to run it.
|
||
|
||
The "Corresponding Source" for a work in object code form means all
|
||
the source code needed to generate, install, and (for an executable
|
||
work) run the object code and to modify the work, including scripts to
|
||
control those activities. However, it does not include the work's
|
||
System Libraries, or general-purpose tools or generally available free
|
||
programs which are used unmodified in performing those activities but
|
||
which are not part of the work. For example, Corresponding Source
|
||
includes interface definition files associated with source files for
|
||
the work, and the source code for shared libraries and dynamically
|
||
linked subprograms that the work is specifically designed to require,
|
||
such as by intimate data communication or control flow between those
|
||
subprograms and other parts of the work.
|
||
|
||
The Corresponding Source need not include anything that users
|
||
can regenerate automatically from other parts of the Corresponding
|
||
Source.
|
||
|
||
The Corresponding Source for a work in source code form is that
|
||
same work.
|
||
|
||
2. Basic Permissions.
|
||
|
||
All rights granted under this License are granted for the term of
|
||
copyright on the Program, and are irrevocable provided the stated
|
||
conditions are met. This License explicitly affirms your unlimited
|
||
permission to run the unmodified Program. The output from running a
|
||
covered work is covered by this License only if the output, given its
|
||
content, constitutes a covered work. This License acknowledges your
|
||
rights of fair use or other equivalent, as provided by copyright law.
|
||
|
||
You may make, run and propagate covered works that you do not
|
||
convey, without conditions so long as your license otherwise remains
|
||
in force. You may convey covered works to others for the sole purpose
|
||
of having them make modifications exclusively for you, or provide you
|
||
with facilities for running those works, provided that you comply with
|
||
the terms of this License in conveying all material for which you do
|
||
not control copyright. Those thus making or running the covered works
|
||
for you must do so exclusively on your behalf, under your direction
|
||
and control, on terms that prohibit them from making any copies of
|
||
your copyrighted material outside their relationship with you.
|
||
|
||
Conveying under any other circumstances is permitted solely under
|
||
the conditions stated below. Sublicensing is not allowed; section 10
|
||
makes it unnecessary.
|
||
|
||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||
|
||
No covered work shall be deemed part of an effective technological
|
||
measure under any applicable law fulfilling obligations under article
|
||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||
similar laws prohibiting or restricting circumvention of such
|
||
measures.
|
||
|
||
When you convey a covered work, you waive any legal power to forbid
|
||
circumvention of technological measures to the extent such circumvention
|
||
is effected by exercising rights under this License with respect to
|
||
the covered work, and you disclaim any intention to limit operation or
|
||
modification of the work as a means of enforcing, against the work's
|
||
users, your or third parties' legal rights to forbid circumvention of
|
||
technological measures.
|
||
|
||
4. Conveying Verbatim Copies.
|
||
|
||
You may convey verbatim copies of the Program's source code as you
|
||
receive it, in any medium, provided that you conspicuously and
|
||
appropriately publish on each copy an appropriate copyright notice;
|
||
keep intact all notices stating that this License and any
|
||
non-permissive terms added in accord with section 7 apply to the code;
|
||
keep intact all notices of the absence of any warranty; and give all
|
||
recipients a copy of this License along with the Program.
|
||
|
||
You may charge any price or no price for each copy that you convey,
|
||
and you may offer support or warranty protection for a fee.
|
||
|
||
5. Conveying Modified Source Versions.
|
||
|
||
You may convey a work based on the Program, or the modifications to
|
||
produce it from the Program, in the form of source code under the
|
||
terms of section 4, provided that you also meet all of these conditions:
|
||
|
||
a) The work must carry prominent notices stating that you modified
|
||
it, and giving a relevant date.
|
||
|
||
b) The work must carry prominent notices stating that it is
|
||
released under this License and any conditions added under section
|
||
7. This requirement modifies the requirement in section 4 to
|
||
"keep intact all notices".
|
||
|
||
c) You must license the entire work, as a whole, under this
|
||
License to anyone who comes into possession of a copy. This
|
||
License will therefore apply, along with any applicable section 7
|
||
additional terms, to the whole of the work, and all its parts,
|
||
regardless of how they are packaged. This License gives no
|
||
permission to license the work in any other way, but it does not
|
||
invalidate such permission if you have separately received it.
|
||
|
||
d) If the work has interactive user interfaces, each must display
|
||
Appropriate Legal Notices; however, if the Program has interactive
|
||
interfaces that do not display Appropriate Legal Notices, your
|
||
work need not make them do so.
|
||
|
||
A compilation of a covered work with other separate and independent
|
||
works, which are not by their nature extensions of the covered work,
|
||
and which are not combined with it such as to form a larger program,
|
||
in or on a volume of a storage or distribution medium, is called an
|
||
"aggregate" if the compilation and its resulting copyright are not
|
||
used to limit the access or legal rights of the compilation's users
|
||
beyond what the individual works permit. Inclusion of a covered work
|
||
in an aggregate does not cause this License to apply to the other
|
||
parts of the aggregate.
|
||
|
||
6. Conveying Non-Source Forms.
|
||
|
||
You may convey a covered work in object code form under the terms
|
||
of sections 4 and 5, provided that you also convey the
|
||
machine-readable Corresponding Source under the terms of this License,
|
||
in one of these ways:
|
||
|
||
a) Convey the object code in, or embodied in, a physical product
|
||
(including a physical distribution medium), accompanied by the
|
||
Corresponding Source fixed on a durable physical medium
|
||
customarily used for software interchange.
|
||
|
||
b) Convey the object code in, or embodied in, a physical product
|
||
(including a physical distribution medium), accompanied by a
|
||
written offer, valid for at least three years and valid for as
|
||
long as you offer spare parts or customer support for that product
|
||
model, to give anyone who possesses the object code either (1) a
|
||
copy of the Corresponding Source for all the software in the
|
||
product that is covered by this License, on a durable physical
|
||
medium customarily used for software interchange, for a price no
|
||
more than your reasonable cost of physically performing this
|
||
conveying of source, or (2) access to copy the
|
||
Corresponding Source from a network server at no charge.
|
||
|
||
c) Convey individual copies of the object code with a copy of the
|
||
written offer to provide the Corresponding Source. This
|
||
alternative is allowed only occasionally and noncommercially, and
|
||
only if you received the object code with such an offer, in accord
|
||
with subsection 6b.
|
||
|
||
d) Convey the object code by offering access from a designated
|
||
place (gratis or for a charge), and offer equivalent access to the
|
||
Corresponding Source in the same way through the same place at no
|
||
further charge. You need not require recipients to copy the
|
||
Corresponding Source along with the object code. If the place to
|
||
copy the object code is a network server, the Corresponding Source
|
||
may be on a different server (operated by you or a third party)
|
||
that supports equivalent copying facilities, provided you maintain
|
||
clear directions next to the object code saying where to find the
|
||
Corresponding Source. Regardless of what server hosts the
|
||
Corresponding Source, you remain obligated to ensure that it is
|
||
available for as long as needed to satisfy these requirements.
|
||
|
||
e) Convey the object code using peer-to-peer transmission, provided
|
||
you inform other peers where the object code and Corresponding
|
||
Source of the work are being offered to the general public at no
|
||
charge under subsection 6d.
|
||
|
||
A separable portion of the object code, whose source code is excluded
|
||
from the Corresponding Source as a System Library, need not be
|
||
included in conveying the object code work.
|
||
|
||
A "User Product" is either (1) a "consumer product", which means any
|
||
tangible personal property which is normally used for personal, family,
|
||
or household purposes, or (2) anything designed or sold for incorporation
|
||
into a dwelling. In determining whether a product is a consumer product,
|
||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||
product received by a particular user, "normally used" refers to a
|
||
typical or common use of that class of product, regardless of the status
|
||
of the particular user or of the way in which the particular user
|
||
actually uses, or expects or is expected to use, the product. A product
|
||
is a consumer product regardless of whether the product has substantial
|
||
commercial, industrial or non-consumer uses, unless such uses represent
|
||
the only significant mode of use of the product.
|
||
|
||
"Installation Information" for a User Product means any methods,
|
||
procedures, authorization keys, or other information required to install
|
||
and execute modified versions of a covered work in that User Product from
|
||
a modified version of its Corresponding Source. The information must
|
||
suffice to ensure that the continued functioning of the modified object
|
||
code is in no case prevented or interfered with solely because
|
||
modification has been made.
|
||
|
||
If you convey an object code work under this section in, or with, or
|
||
specifically for use in, a User Product, and the conveying occurs as
|
||
part of a transaction in which the right of possession and use of the
|
||
User Product is transferred to the recipient in perpetuity or for a
|
||
fixed term (regardless of how the transaction is characterized), the
|
||
Corresponding Source conveyed under this section must be accompanied
|
||
by the Installation Information. But this requirement does not apply
|
||
if neither you nor any third party retains the ability to install
|
||
modified object code on the User Product (for example, the work has
|
||
been installed in ROM).
|
||
|
||
The requirement to provide Installation Information does not include a
|
||
requirement to continue to provide support service, warranty, or updates
|
||
for a work that has been modified or installed by the recipient, or for
|
||
the User Product in which it has been modified or installed. Access to a
|
||
network may be denied when the modification itself materially and
|
||
adversely affects the operation of the network or violates the rules and
|
||
protocols for communication across the network.
|
||
|
||
Corresponding Source conveyed, and Installation Information provided,
|
||
in accord with this section must be in a format that is publicly
|
||
documented (and with an implementation available to the public in
|
||
source code form), and must require no special password or key for
|
||
unpacking, reading or copying.
|
||
|
||
7. Additional Terms.
|
||
|
||
"Additional permissions" are terms that supplement the terms of this
|
||
License by making exceptions from one or more of its conditions.
|
||
Additional permissions that are applicable to the entire Program shall
|
||
be treated as though they were included in this License, to the extent
|
||
that they are valid under applicable law. If additional permissions
|
||
apply only to part of the Program, that part may be used separately
|
||
under those permissions, but the entire Program remains governed by
|
||
this License without regard to the additional permissions.
|
||
|
||
When you convey a copy of a covered work, you may at your option
|
||
remove any additional permissions from that copy, or from any part of
|
||
it. (Additional permissions may be written to require their own
|
||
removal in certain cases when you modify the work.) You may place
|
||
additional permissions on material, added by you to a covered work,
|
||
for which you have or can give appropriate copyright permission.
|
||
|
||
Notwithstanding any other provision of this License, for material you
|
||
add to a covered work, you may (if authorized by the copyright holders of
|
||
that material) supplement the terms of this License with terms:
|
||
|
||
a) Disclaiming warranty or limiting liability differently from the
|
||
terms of sections 15 and 16 of this License; or
|
||
|
||
b) Requiring preservation of specified reasonable legal notices or
|
||
author attributions in that material or in the Appropriate Legal
|
||
Notices displayed by works containing it; or
|
||
|
||
c) Prohibiting misrepresentation of the origin of that material, or
|
||
requiring that modified versions of such material be marked in
|
||
reasonable ways as different from the original version; or
|
||
|
||
d) Limiting the use for publicity purposes of names of licensors or
|
||
authors of the material; or
|
||
|
||
e) Declining to grant rights under trademark law for use of some
|
||
trade names, trademarks, or service marks; or
|
||
|
||
f) Requiring indemnification of licensors and authors of that
|
||
material by anyone who conveys the material (or modified versions of
|
||
it) with contractual assumptions of liability to the recipient, for
|
||
any liability that these contractual assumptions directly impose on
|
||
those licensors and authors.
|
||
|
||
All other non-permissive additional terms are considered "further
|
||
restrictions" within the meaning of section 10. If the Program as you
|
||
received it, or any part of it, contains a notice stating that it is
|
||
governed by this License along with a term that is a further
|
||
restriction, you may remove that term. If a license document contains
|
||
a further restriction but permits relicensing or conveying under this
|
||
License, you may add to a covered work material governed by the terms
|
||
of that license document, provided that the further restriction does
|
||
not survive such relicensing or conveying.
|
||
|
||
If you add terms to a covered work in accord with this section, you
|
||
must place, in the relevant source files, a statement of the
|
||
additional terms that apply to those files, or a notice indicating
|
||
where to find the applicable terms.
|
||
|
||
Additional terms, permissive or non-permissive, may be stated in the
|
||
form of a separately written license, or stated as exceptions;
|
||
the above requirements apply either way.
|
||
|
||
8. Termination.
|
||
|
||
You may not propagate or modify a covered work except as expressly
|
||
provided under this License. Any attempt otherwise to propagate or
|
||
modify it is void, and will automatically terminate your rights under
|
||
this License (including any patent licenses granted under the third
|
||
paragraph of section 11).
|
||
|
||
However, if you cease all violation of this License, then your
|
||
license from a particular copyright holder is reinstated (a)
|
||
provisionally, unless and until the copyright holder explicitly and
|
||
finally terminates your license, and (b) permanently, if the copyright
|
||
holder fails to notify you of the violation by some reasonable means
|
||
prior to 60 days after the cessation.
|
||
|
||
Moreover, your license from a particular copyright holder is
|
||
reinstated permanently if the copyright holder notifies you of the
|
||
violation by some reasonable means, this is the first time you have
|
||
received notice of violation of this License (for any work) from that
|
||
copyright holder, and you cure the violation prior to 30 days after
|
||
your receipt of the notice.
|
||
|
||
Termination of your rights under this section does not terminate the
|
||
licenses of parties who have received copies or rights from you under
|
||
this License. If your rights have been terminated and not permanently
|
||
reinstated, you do not qualify to receive new licenses for the same
|
||
material under section 10.
|
||
|
||
9. Acceptance Not Required for Having Copies.
|
||
|
||
You are not required to accept this License in order to receive or
|
||
run a copy of the Program. Ancillary propagation of a covered work
|
||
occurring solely as a consequence of using peer-to-peer transmission
|
||
to receive a copy likewise does not require acceptance. However,
|
||
nothing other than this License grants you permission to propagate or
|
||
modify any covered work. These actions infringe copyright if you do
|
||
not accept this License. Therefore, by modifying or propagating a
|
||
covered work, you indicate your acceptance of this License to do so.
|
||
|
||
10. Automatic Licensing of Downstream Recipients.
|
||
|
||
Each time you convey a covered work, the recipient automatically
|
||
receives a license from the original licensors, to run, modify and
|
||
propagate that work, subject to this License. You are not responsible
|
||
for enforcing compliance by third parties with this License.
|
||
|
||
An "entity transaction" is a transaction transferring control of an
|
||
organization, or substantially all assets of one, or subdividing an
|
||
organization, or merging organizations. If propagation of a covered
|
||
work results from an entity transaction, each party to that
|
||
transaction who receives a copy of the work also receives whatever
|
||
licenses to the work the party's predecessor in interest had or could
|
||
give under the previous paragraph, plus a right to possession of the
|
||
Corresponding Source of the work from the predecessor in interest, if
|
||
the predecessor has it or can get it with reasonable efforts.
|
||
|
||
You may not impose any further restrictions on the exercise of the
|
||
rights granted or affirmed under this License. For example, you may
|
||
not impose a license fee, royalty, or other charge for exercise of
|
||
rights granted under this License, and you may not initiate litigation
|
||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||
any patent claim is infringed by making, using, selling, offering for
|
||
sale, or importing the Program or any portion of it.
|
||
|
||
11. Patents.
|
||
|
||
A "contributor" is a copyright holder who authorizes use under this
|
||
License of the Program or a work on which the Program is based. The
|
||
work thus licensed is called the contributor's "contributor version".
|
||
|
||
A contributor's "essential patent claims" are all patent claims
|
||
owned or controlled by the contributor, whether already acquired or
|
||
hereafter acquired, that would be infringed by some manner, permitted
|
||
by this License, of making, using, or selling its contributor version,
|
||
but do not include claims that would be infringed only as a
|
||
consequence of further modification of the contributor version. For
|
||
purposes of this definition, "control" includes the right to grant
|
||
patent sublicenses in a manner consistent with the requirements of
|
||
this License.
|
||
|
||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||
patent license under the contributor's essential patent claims, to
|
||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||
propagate the contents of its contributor version.
|
||
|
||
In the following three paragraphs, a "patent license" is any express
|
||
agreement or commitment, however denominated, not to enforce a patent
|
||
(such as an express permission to practice a patent or covenant not to
|
||
sue for patent infringement). To "grant" such a patent license to a
|
||
party means to make such an agreement or commitment not to enforce a
|
||
patent against the party.
|
||
|
||
If you convey a covered work, knowingly relying on a patent license,
|
||
and the Corresponding Source of the work is not available for anyone
|
||
to copy, free of charge and under the terms of this License, through a
|
||
publicly available network server or other readily accessible means,
|
||
then you must either (1) cause the Corresponding Source to be so
|
||
available, or (2) arrange to deprive yourself of the benefit of the
|
||
patent license for this particular work, or (3) arrange, in a manner
|
||
consistent with the requirements of this License, to extend the patent
|
||
license to downstream recipients. "Knowingly relying" means you have
|
||
actual knowledge that, but for the patent license, your conveying the
|
||
covered work in a country, or your recipient's use of the covered work
|
||
in a country, would infringe one or more identifiable patents in that
|
||
country that you have reason to believe are valid.
|
||
|
||
If, pursuant to or in connection with a single transaction or
|
||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||
covered work, and grant a patent license to some of the parties
|
||
receiving the covered work authorizing them to use, propagate, modify
|
||
or convey a specific copy of the covered work, then the patent license
|
||
you grant is automatically extended to all recipients of the covered
|
||
work and works based on it.
|
||
|
||
A patent license is "discriminatory" if it does not include within
|
||
the scope of its coverage, prohibits the exercise of, or is
|
||
conditioned on the non-exercise of one or more of the rights that are
|
||
specifically granted under this License. You may not convey a covered
|
||
work if you are a party to an arrangement with a third party that is
|
||
in the business of distributing software, under which you make payment
|
||
to the third party based on the extent of your activity of conveying
|
||
the work, and under which the third party grants, to any of the
|
||
parties who would receive the covered work from you, a discriminatory
|
||
patent license (a) in connection with copies of the covered work
|
||
conveyed by you (or copies made from those copies), or (b) primarily
|
||
for and in connection with specific products or compilations that
|
||
contain the covered work, unless you entered into that arrangement,
|
||
or that patent license was granted, prior to 28 March 2007.
|
||
|
||
Nothing in this License shall be construed as excluding or limiting
|
||
any implied license or other defenses to infringement that may
|
||
otherwise be available to you under applicable patent law.
|
||
|
||
12. No Surrender of Others' Freedom.
|
||
|
||
If conditions are imposed on you (whether by court order, agreement or
|
||
otherwise) that contradict the conditions of this License, they do not
|
||
excuse you from the conditions of this License. If you cannot convey a
|
||
covered work so as to satisfy simultaneously your obligations under this
|
||
License and any other pertinent obligations, then as a consequence you may
|
||
not convey it at all. For example, if you agree to terms that obligate you
|
||
to collect a royalty for further conveying from those to whom you convey
|
||
the Program, the only way you could satisfy both those terms and this
|
||
License would be to refrain entirely from conveying the Program.
|
||
|
||
13. Use with the GNU Affero General Public License.
|
||
|
||
Notwithstanding any other provision of this License, you have
|
||
permission to link or combine any covered work with a work licensed
|
||
under version 3 of the GNU Affero General Public License into a single
|
||
combined work, and to convey the resulting work. The terms of this
|
||
License will continue to apply to the part which is the covered work,
|
||
but the special requirements of the GNU Affero General Public License,
|
||
section 13, concerning interaction through a network will apply to the
|
||
combination as such.
|
||
|
||
14. Revised Versions of this License.
|
||
|
||
The Free Software Foundation may publish revised and/or new versions of
|
||
the GNU General Public License from time to time. Such new versions will
|
||
be similar in spirit to the present version, but may differ in detail to
|
||
address new problems or concerns.
|
||
|
||
Each version is given a distinguishing version number. If the
|
||
Program specifies that a certain numbered version of the GNU General
|
||
Public License "or any later version" applies to it, you have the
|
||
option of following the terms and conditions either of that numbered
|
||
version or of any later version published by the Free Software
|
||
Foundation. If the Program does not specify a version number of the
|
||
GNU General Public License, you may choose any version ever published
|
||
by the Free Software Foundation.
|
||
|
||
If the Program specifies that a proxy can decide which future
|
||
versions of the GNU General Public License can be used, that proxy's
|
||
public statement of acceptance of a version permanently authorizes you
|
||
to choose that version for the Program.
|
||
|
||
Later license versions may give you additional or different
|
||
permissions. However, no additional obligations are imposed on any
|
||
author or copyright holder as a result of your choosing to follow a
|
||
later version.
|
||
|
||
15. Disclaimer of Warranty.
|
||
|
||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||
|
||
16. Limitation of Liability.
|
||
|
||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||
SUCH DAMAGES.
|
||
|
||
17. Interpretation of Sections 15 and 16.
|
||
|
||
If the disclaimer of warranty and limitation of liability provided
|
||
above cannot be given local legal effect according to their terms,
|
||
reviewing courts shall apply local law that most closely approximates
|
||
an absolute waiver of all civil liability in connection with the
|
||
Program, unless a warranty or assumption of liability accompanies a
|
||
copy of the Program in return for a fee.
|
||
|
||
END OF TERMS AND CONDITIONS
|
||
|
||
How to Apply These Terms to Your New Programs
|
||
|
||
If you develop a new program, and you want it to be of the greatest
|
||
possible use to the public, the best way to achieve this is to make it
|
||
free software which everyone can redistribute and change under these terms.
|
||
|
||
To do so, attach the following notices to the program. It is safest
|
||
to attach them to the start of each source file to most effectively
|
||
state the exclusion of warranty; and each file should have at least
|
||
the "copyright" line and a pointer to where the full notice is found.
|
||
|
||
<one line to give the program's name and a brief idea of what it does.>
|
||
Copyright (C) <year> <name of author>
|
||
|
||
This program is free software: you can redistribute it and/or modify
|
||
it under the terms of the GNU General Public License as published by
|
||
the Free Software Foundation, either version 3 of the License, or
|
||
(at your option) any later version.
|
||
|
||
This program is distributed in the hope that it will be useful,
|
||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
GNU General Public License for more details.
|
||
|
||
You should have received a copy of the GNU General Public License
|
||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
||
Also add information on how to contact you by electronic and paper mail.
|
||
|
||
If the program does terminal interaction, make it output a short
|
||
notice like this when it starts in an interactive mode:
|
||
|
||
<program> Copyright (C) <year> <name of author>
|
||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||
This is free software, and you are welcome to redistribute it
|
||
under certain conditions; type `show c' for details.
|
||
|
||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||
parts of the General Public License. Of course, your program's commands
|
||
might be different; for a GUI interface, you would use an "about box".
|
||
|
||
You should also get your employer (if you work as a programmer) or school,
|
||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||
For more information on this, and how to apply and follow the GNU GPL, see
|
||
<http://www.gnu.org/licenses/>.
|
||
|
||
The GNU General Public License does not permit incorporating your program
|
||
into proprietary programs. If your program is a subroutine library, you
|
||
may consider it more useful to permit linking proprietary applications with
|
||
the library. If this is what you want to do, use the GNU Lesser General
|
||
Public License instead of this License. But first, please read
|
||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
ETa/ETa-Capture-Client/LISEZMOI | ||
---|---|---|
ETa-Capture-Client
|
||
|
||
Bibliothèque client pour l'interfaçage avec le service web de capture d'ETa.
|
||
|
||
Dépendances:
|
||
bibliothèques:
|
||
- epcis-commons
|
||
- epcis-captureclient
|
||
- commons-logging
|
||
|
||
Dépendances d’utilisation:
|
||
- ETa
|
||
- un EPCIS
|
ETa/ETa-Capture-Client/README | ||
---|---|---|
ETa-Capture-Client
|
||
|
||
Common library interfacing with the capture web service of ETa.
|
||
|
||
Dependencies:
|
||
libraries:
|
||
- epcis-commons
|
||
- epcis-captureclient
|
||
- commons-logging
|
||
|
||
Usage Dependencies:
|
||
- ETa
|
||
- an EPCIS
|
ETa/ETa-Capture-Client/pom.xml | ||
---|---|---|
<?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>
|
||
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>eta-capture-client</artifactId>
|
||
<version>1.9</version>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>ETa-Capture-Client</name>
|
||
|
||
<properties>
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
<epcis-version>0.5.0</epcis-version>
|
||
</properties>
|
||
|
||
<dependencies>
|
||
|
||
<!-- Fosstrak dependencies -->
|
||
<dependency>
|
||
<groupId>org.fosstrak.epcis</groupId>
|
||
<artifactId>epcis-commons</artifactId>
|
||
<version>${epcis-version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.fosstrak.epcis</groupId>
|
||
<artifactId>epcis-captureclient</artifactId>
|
||
<version>${epcis-version}</version>
|
||
</dependency>
|
||
|
||
<!-- Log dependencies -->
|
||
<dependency>
|
||
<groupId>commons-logging</groupId>
|
||
<artifactId>commons-logging</artifactId>
|
||
<version>1.1.1</version>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
<build>
|
||
|
||
<plugins>
|
||
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
<version>2.5.1</version>
|
||
<configuration>
|
||
<source>1.6</source>
|
||
<target>1.6</target>
|
||
</configuration>
|
||
</plugin>
|
||
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-assembly-plugin</artifactId>
|
||
<version>2.3</version>
|
||
<executions>
|
||
<execution>
|
||
<id>sources</id>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>single</goal>
|
||
</goals>
|
||
<configuration>
|
||
<descriptorRefs>
|
||
<descriptorRef>src</descriptorRef>
|
||
</descriptorRefs>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
</plugins>
|
||
|
||
</build>
|
||
|
||
</project>
|
ETa/ETa-Capture-Client/src/main/java/fr/unicaen/iota/eta/capture/ETaCaptureClient.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2013 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
* (at your option) any later version.
|
||
*
|
||
* This program is distributed in the hope that it will be useful,
|
||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
* GNU General Public License for more details.
|
||
* <http://www.gnu.org/licenses/>
|
||
*
|
||
* See AUTHORS for a list of contributors.
|
||
*/
|
||
package fr.unicaen.iota.eta.capture;
|
||
|
||
import java.io.IOException;
|
||
import java.io.InputStream;
|
||
import java.io.OutputStream;
|
||
import java.io.OutputStreamWriter;
|
||
import java.io.StringWriter;
|
||
import java.net.HttpURLConnection;
|
||
import java.net.URL;
|
||
import javax.xml.bind.JAXBContext;
|
||
import javax.xml.bind.JAXBElement;
|
||
import javax.xml.bind.JAXBException;
|
||
import javax.xml.bind.Marshaller;
|
||
import org.apache.commons.logging.Log;
|
||
import org.apache.commons.logging.LogFactory;
|
||
import org.fosstrak.epcis.captureclient.CaptureClient;
|
||
import org.fosstrak.epcis.captureclient.CaptureClientException;
|
||
import org.fosstrak.epcis.model.Document;
|
||
import org.fosstrak.epcis.model.EPCISDocumentType;
|
||
import org.fosstrak.epcis.model.EPCISMasterDataDocumentType;
|
||
import org.fosstrak.epcis.model.ObjectFactory;
|
||
|
||
public class ETaCaptureClient extends CaptureClient {
|
||
|
||
private final String pksFilename;
|
||
private final String pksPassword;
|
||
private final String trustPksFilename;
|
||
private final String trustPksPassword;
|
||
private static final Log log = LogFactory.getLog(ETaCaptureClient.class);
|
||
|
||
public ETaCaptureClient(String url, Object[] authOptions,
|
||
String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) {
|
||
super(url, authOptions);
|
||
this.pksFilename = pksFilename;
|
||
this.pksPassword = pksPassword;
|
||
this.trustPksFilename = trustPksFilename;
|
||
this.trustPksPassword = trustPksPassword;
|
||
}
|
||
|
||
public ETaCaptureClient(String url, String pksFilename, String pksPassword,
|
||
String trustPksFilename, String trustPksPassword) {
|
||
super(url);
|
||
this.pksFilename = pksFilename;
|
||
this.pksPassword = pksPassword;
|
||
this.trustPksFilename = trustPksFilename;
|
||
this.trustPksPassword = trustPksPassword;
|
||
}
|
||
|
||
/**
|
||
* {@inheritDoc
|
||
*/
|
||
@Override
|
||
public int dbReset() throws CaptureClientException {
|
||
String formParam = "dbReset=true";
|
||
try {
|
||
return doPost(formParam, "application/x-www-form-urlencoded");
|
||
} catch (IOException e) {
|
||
throw new CaptureClientException("error communicating with EPCIS cpature interface: " + e.getMessage(), e);
|
||
}
|
||
}
|
||
|
||
/**
|
||
* {@inheritDoc}
|
||
*/
|
||
@Override
|
||
public int capture(final InputStream xmlStream) throws CaptureClientException {
|
||
try {
|
||
return doPost(xmlStream, "text/xml");
|
||
} catch (IOException e) {
|
||
throw new CaptureClientException("error communicating with EPCIS cpature interface: " + e.getMessage(), e);
|
||
}
|
||
}
|
||
|
||
/**
|
||
* {@inheritDoc}
|
||
*/
|
||
@Override
|
||
public int capture(final String eventXml) throws CaptureClientException {
|
||
try {
|
||
return doPost(eventXml, "text/xml");
|
||
} catch (IOException e) {
|
||
throw new CaptureClientException("error communicating with EPCIS cpature interface: " + e.getMessage(), e);
|
||
}
|
||
}
|
||
|
||
/**
|
||
* {@inheritDoc}
|
||
*/
|
||
@Override
|
||
public int capture(final Document epcisDoc) throws CaptureClientException {
|
||
StringWriter writer = new StringWriter();
|
||
ObjectFactory objectFactory = new ObjectFactory();
|
||
try {
|
||
JAXBContext context = JAXBContext.newInstance("org.fosstrak.epcis.model");
|
||
JAXBElement<? extends Document> item;
|
||
if (epcisDoc instanceof EPCISDocumentType) {
|
||
item = objectFactory.createEPCISDocument((EPCISDocumentType) epcisDoc);
|
||
} else {
|
||
item = objectFactory.createEPCISMasterDataDocument((EPCISMasterDataDocumentType) epcisDoc);
|
||
}
|
||
Marshaller marshaller = context.createMarshaller();
|
||
marshaller.setProperty(Marshaller.JAXB_ENCODING, "UTF-8");
|
||
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
|
||
marshaller.marshal(item, writer);
|
||
} catch (JAXBException e) {
|
||
throw new CaptureClientException("error serializing EPCIS Document: " + e.getMessage(), e);
|
||
}
|
||
return capture(writer.toString());
|
||
}
|
||
|
||
/**
|
||
* Send data to the repository's capture operation using HTTP POST. The data
|
||
* will be sent using the given content-type.
|
||
* @param data The data to send.
|
||
* @return The HTTP response message from the repository.
|
||
* @throws IOException If an error on the HTTP layer occurred.
|
||
* @throws CaptureClientException
|
||
*/
|
||
private int doPost(final InputStream data, final String contentType) throws IOException, CaptureClientException {
|
||
HttpURLConnection connection = getConnection(contentType);
|
||
// read from input and write to output
|
||
OutputStream os = connection.getOutputStream();
|
||
int b;
|
||
while ((b = data.read()) != -1) {
|
||
os.write(b);
|
||
}
|
||
os.flush();
|
||
os.close();
|
||
return connection.getResponseCode();
|
||
}
|
||
|
||
/**
|
||
* Send data to the repository's capture operation using HTTP POST. The data
|
||
* will be sent using the given content-type.
|
||
* @param data The data to send.
|
||
* @return The HTTP response message
|
||
* @throws IOException If an error on the HTTP layer occurred.
|
||
*/
|
||
private int doPost(final String data, final String contentType) throws CaptureClientException, IOException {
|
||
HttpURLConnection connection = getConnection(contentType);
|
||
// write the data
|
||
OutputStreamWriter wr = new OutputStreamWriter(connection.getOutputStream());
|
||
wr.write(data);
|
||
wr.flush();
|
||
wr.close();
|
||
return connection.getResponseCode();
|
||
}
|
||
|
||
/**
|
||
* Opens a connection to the EPCIS capture interface.
|
||
* @param contentType The HTTP content-type, e.g., <code>text/xml</code>
|
||
* @return The HTTP connection object.
|
||
*/
|
||
private HttpURLConnection getConnection(final String contentType) throws CaptureClientException, IOException {
|
||
System.setProperty("javax.net.ssl.keyStore", pksFilename);
|
||
System.setProperty("javax.net.ssl.keyStorePassword", pksPassword);
|
||
System.setProperty("javax.net.ssl.trustStore", trustPksFilename);
|
||
System.setProperty("javax.net.ssl.trustStorePassword", trustPksPassword);
|
||
URL serviceUrl = new URL(getCaptureUrl());
|
||
HttpURLConnection connection = (HttpURLConnection) serviceUrl.openConnection();
|
||
connection.setRequestProperty("content-type", contentType);
|
||
connection.setRequestMethod("POST");
|
||
connection.setDoInput(true);
|
||
connection.setDoOutput(true);
|
||
return connection;
|
||
}
|
||
|
||
}
|
ETa/ETa-Capture-Client/src/main/resources/META-INF/LICENSE | ||
---|---|---|
GNU GENERAL PUBLIC LICENSE
|
||
Version 3, 29 June 2007
|
||
|
||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||
Everyone is permitted to copy and distribute verbatim copies
|
||
of this license document, but changing it is not allowed.
|
||
|
||
Preamble
|
||
|
||
The GNU General Public License is a free, copyleft license for
|
||
software and other kinds of works.
|
||
|
||
The licenses for most software and other practical works are designed
|
||
to take away your freedom to share and change the works. By contrast,
|
||
the GNU General Public License is intended to guarantee your freedom to
|
||
share and change all versions of a program--to make sure it remains free
|
||
software for all its users. We, the Free Software Foundation, use the
|
||
GNU General Public License for most of our software; it applies also to
|
||
any other work released this way by its authors. You can apply it to
|
||
your programs, too.
|
||
|
||
When we speak of free software, we are referring to freedom, not
|
||
price. Our General Public Licenses are designed to make sure that you
|
||
have the freedom to distribute copies of free software (and charge for
|
||
them if you wish), that you receive source code or can get it if you
|
||
want it, that you can change the software or use pieces of it in new
|
||
free programs, and that you know you can do these things.
|
||
|
||
To protect your rights, we need to prevent others from denying you
|
||
these rights or asking you to surrender the rights. Therefore, you have
|
||
certain responsibilities if you distribute copies of the software, or if
|
||
you modify it: responsibilities to respect the freedom of others.
|
||
|
||
For example, if you distribute copies of such a program, whether
|
||
gratis or for a fee, you must pass on to the recipients the same
|
||
freedoms that you received. You must make sure that they, too, receive
|
||
or can get the source code. And you must show them these terms so they
|
||
know their rights.
|
||
|
||
Developers that use the GNU GPL protect your rights with two steps:
|
||
(1) assert copyright on the software, and (2) offer you this License
|
||
giving you legal permission to copy, distribute and/or modify it.
|
||
|
||
For the developers' and authors' protection, the GPL clearly explains
|
||
that there is no warranty for this free software. For both users' and
|
||
authors' sake, the GPL requires that modified versions be marked as
|
||
changed, so that their problems will not be attributed erroneously to
|
||
authors of previous versions.
|
||
|
||
Some devices are designed to deny users access to install or run
|
||
modified versions of the software inside them, although the manufacturer
|
||
can do so. This is fundamentally incompatible with the aim of
|
||
protecting users' freedom to change the software. The systematic
|
||
pattern of such abuse occurs in the area of products for individuals to
|
||
use, which is precisely where it is most unacceptable. Therefore, we
|
||
have designed this version of the GPL to prohibit the practice for those
|
||
products. If such problems arise substantially in other domains, we
|
||
stand ready to extend this provision to those domains in future versions
|
||
of the GPL, as needed to protect the freedom of users.
|
||
|
||
Finally, every program is threatened constantly by software patents.
|
||
States should not allow patents to restrict development and use of
|
||
software on general-purpose computers, but in those that do, we wish to
|
||
avoid the special danger that patents applied to a free program could
|
||
make it effectively proprietary. To prevent this, the GPL assures that
|
||
patents cannot be used to render the program non-free.
|
||
|
||
The precise terms and conditions for copying, distribution and
|
||
modification follow.
|
||
|
||
TERMS AND CONDITIONS
|
||
|
||
0. Definitions.
|
||
|
||
"This License" refers to version 3 of the GNU General Public License.
|
||
|
||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||
works, such as semiconductor masks.
|
||
|
||
"The Program" refers to any copyrightable work licensed under this
|
||
License. Each licensee is addressed as "you". "Licensees" and
|
||
"recipients" may be individuals or organizations.
|
||
|
||
To "modify" a work means to copy from or adapt all or part of the work
|
||
in a fashion requiring copyright permission, other than the making of an
|
||
exact copy. The resulting work is called a "modified version" of the
|
||
earlier work or a work "based on" the earlier work.
|
||
|
||
A "covered work" means either the unmodified Program or a work based
|
||
on the Program.
|
||
|
||
To "propagate" a work means to do anything with it that, without
|
||
permission, would make you directly or secondarily liable for
|
||
infringement under applicable copyright law, except executing it on a
|
||
computer or modifying a private copy. Propagation includes copying,
|
||
distribution (with or without modification), making available to the
|
||
public, and in some countries other activities as well.
|
||
|
||
To "convey" a work means any kind of propagation that enables other
|
||
parties to make or receive copies. Mere interaction with a user through
|
||
a computer network, with no transfer of a copy, is not conveying.
|
||
|
||
An interactive user interface displays "Appropriate Legal Notices"
|
||
to the extent that it includes a convenient and prominently visible
|
||
feature that (1) displays an appropriate copyright notice, and (2)
|
||
tells the user that there is no warranty for the work (except to the
|
||
extent that warranties are provided), that licensees may convey the
|
||
work under this License, and how to view a copy of this License. If
|
||
the interface presents a list of user commands or options, such as a
|
||
menu, a prominent item in the list meets this criterion.
|
||
|
||
1. Source Code.
|
||
|
||
The "source code" for a work means the preferred form of the work
|
||
for making modifications to it. "Object code" means any non-source
|
||
form of a work.
|
||
|
||
A "Standard Interface" means an interface that either is an official
|
||
standard defined by a recognized standards body, or, in the case of
|
||
interfaces specified for a particular programming language, one that
|
||
is widely used among developers working in that language.
|
||
|
||
The "System Libraries" of an executable work include anything, other
|
||
than the work as a whole, that (a) is included in the normal form of
|
||
packaging a Major Component, but which is not part of that Major
|
||
Component, and (b) serves only to enable use of the work with that
|
||
Major Component, or to implement a Standard Interface for which an
|
||
implementation is available to the public in source code form. A
|
||
"Major Component", in this context, means a major essential component
|
||
(kernel, window system, and so on) of the specific operating system
|
||
(if any) on which the executable work runs, or a compiler used to
|
||
produce the work, or an object code interpreter used to run it.
|
||
|
||
The "Corresponding Source" for a work in object code form means all
|
||
the source code needed to generate, install, and (for an executable
|
||
work) run the object code and to modify the work, including scripts to
|
||
control those activities. However, it does not include the work's
|
||
System Libraries, or general-purpose tools or generally available free
|
||
programs which are used unmodified in performing those activities but
|
||
which are not part of the work. For example, Corresponding Source
|
||
includes interface definition files associated with source files for
|
||
the work, and the source code for shared libraries and dynamically
|
||
linked subprograms that the work is specifically designed to require,
|
||
such as by intimate data communication or control flow between those
|
||
subprograms and other parts of the work.
|
||
|
||
The Corresponding Source need not include anything that users
|
||
can regenerate automatically from other parts of the Corresponding
|
||
Source.
|
||
|
||
The Corresponding Source for a work in source code form is that
|
||
same work.
|
||
|
||
2. Basic Permissions.
|
||
|
||
All rights granted under this License are granted for the term of
|
||
copyright on the Program, and are irrevocable provided the stated
|
||
conditions are met. This License explicitly affirms your unlimited
|
||
permission to run the unmodified Program. The output from running a
|
||
covered work is covered by this License only if the output, given its
|
||
content, constitutes a covered work. This License acknowledges your
|
||
rights of fair use or other equivalent, as provided by copyright law.
|
||
|
||
You may make, run and propagate covered works that you do not
|
||
convey, without conditions so long as your license otherwise remains
|
||
in force. You may convey covered works to others for the sole purpose
|
||
of having them make modifications exclusively for you, or provide you
|
||
with facilities for running those works, provided that you comply with
|
||
the terms of this License in conveying all material for which you do
|
||
not control copyright. Those thus making or running the covered works
|
||
for you must do so exclusively on your behalf, under your direction
|
||
and control, on terms that prohibit them from making any copies of
|
||
your copyrighted material outside their relationship with you.
|
||
|
||
Conveying under any other circumstances is permitted solely under
|
||
the conditions stated below. Sublicensing is not allowed; section 10
|
||
makes it unnecessary.
|
||
|
||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||
|
||
No covered work shall be deemed part of an effective technological
|
||
measure under any applicable law fulfilling obligations under article
|
||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||
similar laws prohibiting or restricting circumvention of such
|
||
measures.
|
||
|
||
When you convey a covered work, you waive any legal power to forbid
|
||
circumvention of technological measures to the extent such circumvention
|
||
is effected by exercising rights under this License with respect to
|
||
the covered work, and you disclaim any intention to limit operation or
|
||
modification of the work as a means of enforcing, against the work's
|
||
users, your or third parties' legal rights to forbid circumvention of
|
||
technological measures.
|
||
|
||
4. Conveying Verbatim Copies.
|
||
|
||
You may convey verbatim copies of the Program's source code as you
|
||
receive it, in any medium, provided that you conspicuously and
|
||
appropriately publish on each copy an appropriate copyright notice;
|
||
keep intact all notices stating that this License and any
|
||
non-permissive terms added in accord with section 7 apply to the code;
|
||
keep intact all notices of the absence of any warranty; and give all
|
||
recipients a copy of this License along with the Program.
|
||
|
||
You may charge any price or no price for each copy that you convey,
|
||
and you may offer support or warranty protection for a fee.
|
||
|
||
5. Conveying Modified Source Versions.
|
||
|
||
You may convey a work based on the Program, or the modifications to
|
||
produce it from the Program, in the form of source code under the
|
||
terms of section 4, provided that you also meet all of these conditions:
|
||
|
||
a) The work must carry prominent notices stating that you modified
|
||
it, and giving a relevant date.
|
||
|
||
b) The work must carry prominent notices stating that it is
|
||
released under this License and any conditions added under section
|
||
7. This requirement modifies the requirement in section 4 to
|
||
"keep intact all notices".
|
||
|
||
c) You must license the entire work, as a whole, under this
|
||
License to anyone who comes into possession of a copy. This
|
||
License will therefore apply, along with any applicable section 7
|
||
additional terms, to the whole of the work, and all its parts,
|
||
regardless of how they are packaged. This License gives no
|
||
permission to license the work in any other way, but it does not
|
||
invalidate such permission if you have separately received it.
|
||
|
||
d) If the work has interactive user interfaces, each must display
|
||
Appropriate Legal Notices; however, if the Program has interactive
|
||
interfaces that do not display Appropriate Legal Notices, your
|
||
work need not make them do so.
|
||
|
||
A compilation of a covered work with other separate and independent
|
||
works, which are not by their nature extensions of the covered work,
|
||
and which are not combined with it such as to form a larger program,
|
||
in or on a volume of a storage or distribution medium, is called an
|
||
"aggregate" if the compilation and its resulting copyright are not
|
||
used to limit the access or legal rights of the compilation's users
|
||
beyond what the individual works permit. Inclusion of a covered work
|
||
in an aggregate does not cause this License to apply to the other
|
||
parts of the aggregate.
|
||
|
||
6. Conveying Non-Source Forms.
|
||
|
||
You may convey a covered work in object code form under the terms
|
||
of sections 4 and 5, provided that you also convey the
|
||
machine-readable Corresponding Source under the terms of this License,
|
||
in one of these ways:
|
||
|
||
a) Convey the object code in, or embodied in, a physical product
|
||
(including a physical distribution medium), accompanied by the
|
||
Corresponding Source fixed on a durable physical medium
|
||
customarily used for software interchange.
|
||
|
||
b) Convey the object code in, or embodied in, a physical product
|
||
(including a physical distribution medium), accompanied by a
|
||
written offer, valid for at least three years and valid for as
|
||
long as you offer spare parts or customer support for that product
|
||
model, to give anyone who possesses the object code either (1) a
|
||
copy of the Corresponding Source for all the software in the
|
||
product that is covered by this License, on a durable physical
|
||
medium customarily used for software interchange, for a price no
|
||
more than your reasonable cost of physically performing this
|
||
conveying of source, or (2) access to copy the
|
||
Corresponding Source from a network server at no charge.
|
||
|
||
c) Convey individual copies of the object code with a copy of the
|
||
written offer to provide the Corresponding Source. This
|
||
alternative is allowed only occasionally and noncommercially, and
|
||
only if you received the object code with such an offer, in accord
|
||
with subsection 6b.
|
||
|
||
d) Convey the object code by offering access from a designated
|
||
place (gratis or for a charge), and offer equivalent access to the
|
||
Corresponding Source in the same way through the same place at no
|
||
further charge. You need not require recipients to copy the
|
||
Corresponding Source along with the object code. If the place to
|
||
copy the object code is a network server, the Corresponding Source
|
||
may be on a different server (operated by you or a third party)
|
||
that supports equivalent copying facilities, provided you maintain
|
||
clear directions next to the object code saying where to find the
|
||
Corresponding Source. Regardless of what server hosts the
|
||
Corresponding Source, you remain obligated to ensure that it is
|
||
available for as long as needed to satisfy these requirements.
|
||
|
||
e) Convey the object code using peer-to-peer transmission, provided
|
||
you inform other peers where the object code and Corresponding
|
||
Source of the work are being offered to the general public at no
|
||
charge under subsection 6d.
|
||
|
||
A separable portion of the object code, whose source code is excluded
|
||
from the Corresponding Source as a System Library, need not be
|
||
included in conveying the object code work.
|
||
|
||
A "User Product" is either (1) a "consumer product", which means any
|
||
tangible personal property which is normally used for personal, family,
|
||
or household purposes, or (2) anything designed or sold for incorporation
|
||
into a dwelling. In determining whether a product is a consumer product,
|
||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||
product received by a particular user, "normally used" refers to a
|
||
typical or common use of that class of product, regardless of the status
|
||
of the particular user or of the way in which the particular user
|
||
actually uses, or expects or is expected to use, the product. A product
|
||
is a consumer product regardless of whether the product has substantial
|
||
commercial, industrial or non-consumer uses, unless such uses represent
|
||
the only significant mode of use of the product.
|
||
|
||
"Installation Information" for a User Product means any methods,
|
||
procedures, authorization keys, or other information required to install
|
||
and execute modified versions of a covered work in that User Product from
|
||
a modified version of its Corresponding Source. The information must
|
||
suffice to ensure that the continued functioning of the modified object
|
||
code is in no case prevented or interfered with solely because
|
||
modification has been made.
|
||
|
||
If you convey an object code work under this section in, or with, or
|
||
specifically for use in, a User Product, and the conveying occurs as
|
||
part of a transaction in which the right of possession and use of the
|
||
User Product is transferred to the recipient in perpetuity or for a
|
||
fixed term (regardless of how the transaction is characterized), the
|
||
Corresponding Source conveyed under this section must be accompanied
|
||
by the Installation Information. But this requirement does not apply
|
||
if neither you nor any third party retains the ability to install
|
||
modified object code on the User Product (for example, the work has
|
||
been installed in ROM).
|
||
|
||
The requirement to provide Installation Information does not include a
|
||
requirement to continue to provide support service, warranty, or updates
|
||
for a work that has been modified or installed by the recipient, or for
|
||
the User Product in which it has been modified or installed. Access to a
|
||
network may be denied when the modification itself materially and
|
||
adversely affects the operation of the network or violates the rules and
|
||
protocols for communication across the network.
|
||
|
||
Corresponding Source conveyed, and Installation Information provided,
|
||
in accord with this section must be in a format that is publicly
|
||
documented (and with an implementation available to the public in
|
||
source code form), and must require no special password or key for
|
||
unpacking, reading or copying.
|
||
|
||
7. Additional Terms.
|
||
|
||
"Additional permissions" are terms that supplement the terms of this
|
||
License by making exceptions from one or more of its conditions.
|
||
Additional permissions that are applicable to the entire Program shall
|
||
be treated as though they were included in this License, to the extent
|
||
that they are valid under applicable law. If additional permissions
|
||
apply only to part of the Program, that part may be used separately
|
||
under those permissions, but the entire Program remains governed by
|
||
this License without regard to the additional permissions.
|
||
|
||
When you convey a copy of a covered work, you may at your option
|
||
remove any additional permissions from that copy, or from any part of
|
||
it. (Additional permissions may be written to require their own
|
||
removal in certain cases when you modify the work.) You may place
|
||
additional permissions on material, added by you to a covered work,
|
||
for which you have or can give appropriate copyright permission.
|
||
|
||
Notwithstanding any other provision of this License, for material you
|
||
add to a covered work, you may (if authorized by the copyright holders of
|
||
that material) supplement the terms of this License with terms:
|
||
|
||
a) Disclaiming warranty or limiting liability differently from the
|
||
terms of sections 15 and 16 of this License; or
|
||
|
||
b) Requiring preservation of specified reasonable legal notices or
|
||
author attributions in that material or in the Appropriate Legal
|
||
Notices displayed by works containing it; or
|
||
|
||
c) Prohibiting misrepresentation of the origin of that material, or
|
||
requiring that modified versions of such material be marked in
|
||
reasonable ways as different from the original version; or
|
||
|
||
d) Limiting the use for publicity purposes of names of licensors or
|
||
authors of the material; or
|
||
|
||
e) Declining to grant rights under trademark law for use of some
|
||
trade names, trademarks, or service marks; or
|
||
|
||
f) Requiring indemnification of licensors and authors of that
|
||
material by anyone who conveys the material (or modified versions of
|
||
it) with contractual assumptions of liability to the recipient, for
|
||
any liability that these contractual assumptions directly impose on
|
||
those licensors and authors.
|
||
|
||
All other non-permissive additional terms are considered "further
|
||
restrictions" within the meaning of section 10. If the Program as you
|
||
received it, or any part of it, contains a notice stating that it is
|
||
governed by this License along with a term that is a further
|
||
restriction, you may remove that term. If a license document contains
|
||
a further restriction but permits relicensing or conveying under this
|
||
License, you may add to a covered work material governed by the terms
|
||
of that license document, provided that the further restriction does
|
||
not survive such relicensing or conveying.
|
||
|
||
If you add terms to a covered work in accord with this section, you
|
||
must place, in the relevant source files, a statement of the
|
||
additional terms that apply to those files, or a notice indicating
|
||
where to find the applicable terms.
|
||
|
||
Additional terms, permissive or non-permissive, may be stated in the
|
||
form of a separately written license, or stated as exceptions;
|
||
the above requirements apply either way.
|
||
|
||
8. Termination.
|
||
|
||
You may not propagate or modify a covered work except as expressly
|
||
provided under this License. Any attempt otherwise to propagate or
|
||
modify it is void, and will automatically terminate your rights under
|
||
this License (including any patent licenses granted under the third
|
||
paragraph of section 11).
|
||
|
||
However, if you cease all violation of this License, then your
|
||
license from a particular copyright holder is reinstated (a)
|
||
provisionally, unless and until the copyright holder explicitly and
|
||
finally terminates your license, and (b) permanently, if the copyright
|
||
holder fails to notify you of the violation by some reasonable means
|
||
prior to 60 days after the cessation.
|
||
|
||
Moreover, your license from a particular copyright holder is
|
||
reinstated permanently if the copyright holder notifies you of the
|
||
violation by some reasonable means, this is the first time you have
|
||
received notice of violation of this License (for any work) from that
|
||
copyright holder, and you cure the violation prior to 30 days after
|
||
your receipt of the notice.
|
||
|
||
Termination of your rights under this section does not terminate the
|
||
licenses of parties who have received copies or rights from you under
|
||
this License. If your rights have been terminated and not permanently
|
||
reinstated, you do not qualify to receive new licenses for the same
|
||
material under section 10.
|
||
|
||
9. Acceptance Not Required for Having Copies.
|
||
|
||
You are not required to accept this License in order to receive or
|
||
run a copy of the Program. Ancillary propagation of a covered work
|
||
occurring solely as a consequence of using peer-to-peer transmission
|
||
to receive a copy likewise does not require acceptance. However,
|
||
nothing other than this License grants you permission to propagate or
|
||
modify any covered work. These actions infringe copyright if you do
|
||
not accept this License. Therefore, by modifying or propagating a
|
||
covered work, you indicate your acceptance of this License to do so.
|
||
|
||
10. Automatic Licensing of Downstream Recipients.
|
||
|
||
Each time you convey a covered work, the recipient automatically
|
||
receives a license from the original licensors, to run, modify and
|
||
propagate that work, subject to this License. You are not responsible
|
||
for enforcing compliance by third parties with this License.
|
||
|
||
An "entity transaction" is a transaction transferring control of an
|
||
organization, or substantially all assets of one, or subdividing an
|
||
organization, or merging organizations. If propagation of a covered
|
||
work results from an entity transaction, each party to that
|
||
transaction who receives a copy of the work also receives whatever
|
||
licenses to the work the party's predecessor in interest had or could
|
||
give under the previous paragraph, plus a right to possession of the
|
||
Corresponding Source of the work from the predecessor in interest, if
|
||
the predecessor has it or can get it with reasonable efforts.
|
||
|
||
You may not impose any further restrictions on the exercise of the
|
||
rights granted or affirmed under this License. For example, you may
|
||
not impose a license fee, royalty, or other charge for exercise of
|
||
rights granted under this License, and you may not initiate litigation
|
||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||
any patent claim is infringed by making, using, selling, offering for
|
||
sale, or importing the Program or any portion of it.
|
||
|
||
11. Patents.
|
||
|
||
A "contributor" is a copyright holder who authorizes use under this
|
||
License of the Program or a work on which the Program is based. The
|
||
work thus licensed is called the contributor's "contributor version".
|
||
|
||
A contributor's "essential patent claims" are all patent claims
|
||
owned or controlled by the contributor, whether already acquired or
|
||
hereafter acquired, that would be infringed by some manner, permitted
|
||
by this License, of making, using, or selling its contributor version,
|
||
but do not include claims that would be infringed only as a
|
||
consequence of further modification of the contributor version. For
|
||
purposes of this definition, "control" includes the right to grant
|
||
patent sublicenses in a manner consistent with the requirements of
|
||
this License.
|
||
|
||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||
patent license under the contributor's essential patent claims, to
|
||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||
propagate the contents of its contributor version.
|
||
|
||
In the following three paragraphs, a "patent license" is any express
|
||
agreement or commitment, however denominated, not to enforce a patent
|
||
(such as an express permission to practice a patent or covenant not to
|
||
sue for patent infringement). To "grant" such a patent license to a
|
||
party means to make such an agreement or commitment not to enforce a
|
||
patent against the party.
|
||
|
||
If you convey a covered work, knowingly relying on a patent license,
|
||
and the Corresponding Source of the work is not available for anyone
|
||
to copy, free of charge and under the terms of this License, through a
|
||
publicly available network server or other readily accessible means,
|
||
then you must either (1) cause the Corresponding Source to be so
|
||
available, or (2) arrange to deprive yourself of the benefit of the
|
||
patent license for this particular work, or (3) arrange, in a manner
|
||
consistent with the requirements of this License, to extend the patent
|
||
license to downstream recipients. "Knowingly relying" means you have
|
||
actual knowledge that, but for the patent license, your conveying the
|
||
covered work in a country, or your recipient's use of the covered work
|
||
in a country, would infringe one or more identifiable patents in that
|
||
country that you have reason to believe are valid.
|
||
|
||
If, pursuant to or in connection with a single transaction or
|
||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||
covered work, and grant a patent license to some of the parties
|
||
receiving the covered work authorizing them to use, propagate, modify
|
||
or convey a specific copy of the covered work, then the patent license
|
||
you grant is automatically extended to all recipients of the covered
|
||
work and works based on it.
|
||
|
||
A patent license is "discriminatory" if it does not include within
|
||
the scope of its coverage, prohibits the exercise of, or is
|
||
conditioned on the non-exercise of one or more of the rights that are
|
||
specifically granted under this License. You may not convey a covered
|
||
work if you are a party to an arrangement with a third party that is
|
||
in the business of distributing software, under which you make payment
|
||
to the third party based on the extent of your activity of conveying
|
||
the work, and under which the third party grants, to any of the
|
||
parties who would receive the covered work from you, a discriminatory
|
||
patent license (a) in connection with copies of the covered work
|
||
conveyed by you (or copies made from those copies), or (b) primarily
|
||
for and in connection with specific products or compilations that
|
||
contain the covered work, unless you entered into that arrangement,
|
||
or that patent license was granted, prior to 28 March 2007.
|
||
|
||
Nothing in this License shall be construed as excluding or limiting
|
||
any implied license or other defenses to infringement that may
|
||
otherwise be available to you under applicable patent law.
|
||
|
||
12. No Surrender of Others' Freedom.
|
||
|
||
If conditions are imposed on you (whether by court order, agreement or
|
||
otherwise) that contradict the conditions of this License, they do not
|
||
excuse you from the conditions of this License. If you cannot convey a
|
||
covered work so as to satisfy simultaneously your obligations under this
|
||
License and any other pertinent obligations, then as a consequence you may
|
||
not convey it at all. For example, if you agree to terms that obligate you
|
||
to collect a royalty for further conveying from those to whom you convey
|
||
the Program, the only way you could satisfy both those terms and this
|
||
License would be to refrain entirely from conveying the Program.
|
||
|
||
13. Use with the GNU Affero General Public License.
|
||
|
||
Notwithstanding any other provision of this License, you have
|
||
permission to link or combine any covered work with a work licensed
|
||
under version 3 of the GNU Affero General Public License into a single
|
||
combined work, and to convey the resulting work. The terms of this
|
||
License will continue to apply to the part which is the covered work,
|
||
but the special requirements of the GNU Affero General Public License,
|
||
section 13, concerning interaction through a network will apply to the
|
||
combination as such.
|
||
|
||
14. Revised Versions of this License.
|
||
|
||
The Free Software Foundation may publish revised and/or new versions of
|
||
the GNU General Public License from time to time. Such new versions will
|
||
be similar in spirit to the present version, but may differ in detail to
|
||
address new problems or concerns.
|
||
|
||
Each version is given a distinguishing version number. If the
|
||
Program specifies that a certain numbered version of the GNU General
|
||
Public License "or any later version" applies to it, you have the
|
||
option of following the terms and conditions either of that numbered
|
||
version or of any later version published by the Free Software
|
||
Foundation. If the Program does not specify a version number of the
|
||
GNU General Public License, you may choose any version ever published
|
||
by the Free Software Foundation.
|
||
|
||
If the Program specifies that a proxy can decide which future
|
||
versions of the GNU General Public License can be used, that proxy's
|
||
public statement of acceptance of a version permanently authorizes you
|
||
to choose that version for the Program.
|
||
|
||
Later license versions may give you additional or different
|
||
permissions. However, no additional obligations are imposed on any
|
||
author or copyright holder as a result of your choosing to follow a
|
||
later version.
|
||
|
||
15. Disclaimer of Warranty.
|
||
|
||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||
|
||
16. Limitation of Liability.
|
||
|
||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||
SUCH DAMAGES.
|
||
|
||
17. Interpretation of Sections 15 and 16.
|
||
|
||
If the disclaimer of warranty and limitation of liability provided
|
||
above cannot be given local legal effect according to their terms,
|
||
reviewing courts shall apply local law that most closely approximates
|
||
an absolute waiver of all civil liability in connection with the
|
||
Program, unless a warranty or assumption of liability accompanies a
|
||
copy of the Program in return for a fee.
|
||
|
||
END OF TERMS AND CONDITIONS
|
||
|
||
How to Apply These Terms to Your New Programs
|
||
|
||
If you develop a new program, and you want it to be of the greatest
|
||
possible use to the public, the best way to achieve this is to make it
|
||
free software which everyone can redistribute and change under these terms.
|
||
|
||
To do so, attach the following notices to the program. It is safest
|
||
to attach them to the start of each source file to most effectively
|
||
state the exclusion of warranty; and each file should have at least
|
||
the "copyright" line and a pointer to where the full notice is found.
|
||
|
||
<one line to give the program's name and a brief idea of what it does.>
|
||
Copyright (C) <year> <name of author>
|
||
|
||
This program is free software: you can redistribute it and/or modify
|
||
it under the terms of the GNU General Public License as published by
|
||
the Free Software Foundation, either version 3 of the License, or
|
||
(at your option) any later version.
|
||
|
||
This program is distributed in the hope that it will be useful,
|
||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
GNU General Public License for more details.
|
||
|
||
You should have received a copy of the GNU General Public License
|
||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
||
Also add information on how to contact you by electronic and paper mail.
|
||
|
||
If the program does terminal interaction, make it output a short
|
||
notice like this when it starts in an interactive mode:
|
||
|
||
<program> Copyright (C) <year> <name of author>
|
||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||
This is free software, and you are welcome to redistribute it
|
||
under certain conditions; type `show c' for details.
|
||
|
||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||
parts of the General Public License. Of course, your program's commands
|
||
might be different; for a GUI interface, you would use an "about box".
|
||
|
||
You should also get your employer (if you work as a programmer) or school,
|
||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||
For more information on this, and how to apply and follow the GNU GPL, see
|
||
<http://www.gnu.org/licenses/>.
|
||
|
||
The GNU General Public License does not permit incorporating your program
|
||
into proprietary programs. If your program is a subroutine library, you
|
||
may consider it more useful to permit linking proprietary applications with
|
||
the library. If this is what you want to do, use the GNU Lesser General
|
||
Public License instead of this License. But first, please read
|
||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
ETa/ETa-Client/LICENSE | ||
---|---|---|
GNU GENERAL PUBLIC LICENSE
|
||
Version 3, 29 June 2007
|
||
|
||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||
Everyone is permitted to copy and distribute verbatim copies
|
||
of this license document, but changing it is not allowed.
|
||
|
||
Preamble
|
||
|
||
The GNU General Public License is a free, copyleft license for
|
||
software and other kinds of works.
|
||
|
||
The licenses for most software and other practical works are designed
|
||
to take away your freedom to share and change the works. By contrast,
|
||
the GNU General Public License is intended to guarantee your freedom to
|
||
share and change all versions of a program--to make sure it remains free
|
||
software for all its users. We, the Free Software Foundation, use the
|
||
GNU General Public License for most of our software; it applies also to
|
||
any other work released this way by its authors. You can apply it to
|
||
your programs, too.
|
||
|
||
When we speak of free software, we are referring to freedom, not
|
||
price. Our General Public Licenses are designed to make sure that you
|
||
have the freedom to distribute copies of free software (and charge for
|
||
them if you wish), that you receive source code or can get it if you
|
||
want it, that you can change the software or use pieces of it in new
|
||
free programs, and that you know you can do these things.
|
||
|
||
To protect your rights, we need to prevent others from denying you
|
||
these rights or asking you to surrender the rights. Therefore, you have
|
||
certain responsibilities if you distribute copies of the software, or if
|
||
you modify it: responsibilities to respect the freedom of others.
|
||
|
||
For example, if you distribute copies of such a program, whether
|
||
gratis or for a fee, you must pass on to the recipients the same
|
||
freedoms that you received. You must make sure that they, too, receive
|
||
or can get the source code. And you must show them these terms so they
|
||
know their rights.
|
||
|
||
Developers that use the GNU GPL protect your rights with two steps:
|
||
(1) assert copyright on the software, and (2) offer you this License
|
||
giving you legal permission to copy, distribute and/or modify it.
|
||
|
||
For the developers' and authors' protection, the GPL clearly explains
|
||
that there is no warranty for this free software. For both users' and
|
||
authors' sake, the GPL requires that modified versions be marked as
|
||
changed, so that their problems will not be attributed erroneously to
|
||
authors of previous versions.
|
||
|
||
Some devices are designed to deny users access to install or run
|
||
modified versions of the software inside them, although the manufacturer
|
||
can do so. This is fundamentally incompatible with the aim of
|
||
protecting users' freedom to change the software. The systematic
|
||
pattern of such abuse occurs in the area of products for individuals to
|
||
use, which is precisely where it is most unacceptable. Therefore, we
|
||
have designed this version of the GPL to prohibit the practice for those
|
||
products. If such problems arise substantially in other domains, we
|
||
stand ready to extend this provision to those domains in future versions
|
||
of the GPL, as needed to protect the freedom of users.
|
||
|
||
Finally, every program is threatened constantly by software patents.
|
||
States should not allow patents to restrict development and use of
|
||
software on general-purpose computers, but in those that do, we wish to
|
||
avoid the special danger that patents applied to a free program could
|
||
make it effectively proprietary. To prevent this, the GPL assures that
|
||
patents cannot be used to render the program non-free.
|
||
|
||
The precise terms and conditions for copying, distribution and
|
||
modification follow.
|
||
|
||
TERMS AND CONDITIONS
|
||
|
||
0. Definitions.
|
||
|
||
"This License" refers to version 3 of the GNU General Public License.
|
||
|
||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||
works, such as semiconductor masks.
|
||
|
||
"The Program" refers to any copyrightable work licensed under this
|
||
License. Each licensee is addressed as "you". "Licensees" and
|
||
"recipients" may be individuals or organizations.
|
||
|
||
To "modify" a work means to copy from or adapt all or part of the work
|
||
in a fashion requiring copyright permission, other than the making of an
|
||
exact copy. The resulting work is called a "modified version" of the
|
||
earlier work or a work "based on" the earlier work.
|
||
|
||
A "covered work" means either the unmodified Program or a work based
|
||
on the Program.
|
||
|
||
To "propagate" a work means to do anything with it that, without
|
||
permission, would make you directly or secondarily liable for
|
||
infringement under applicable copyright law, except executing it on a
|
||
computer or modifying a private copy. Propagation includes copying,
|
||
distribution (with or without modification), making available to the
|
||
public, and in some countries other activities as well.
|
||
|
||
To "convey" a work means any kind of propagation that enables other
|
||
parties to make or receive copies. Mere interaction with a user through
|
||
a computer network, with no transfer of a copy, is not conveying.
|
||
|
||
An interactive user interface displays "Appropriate Legal Notices"
|
||
to the extent that it includes a convenient and prominently visible
|
||
feature that (1) displays an appropriate copyright notice, and (2)
|
||
tells the user that there is no warranty for the work (except to the
|
||
extent that warranties are provided), that licensees may convey the
|
||
work under this License, and how to view a copy of this License. If
|
||
the interface presents a list of user commands or options, such as a
|
||
menu, a prominent item in the list meets this criterion.
|
||
|
||
1. Source Code.
|
||
|
||
The "source code" for a work means the preferred form of the work
|
||
for making modifications to it. "Object code" means any non-source
|
||
form of a work.
|
||
|
||
A "Standard Interface" means an interface that either is an official
|
||
standard defined by a recognized standards body, or, in the case of
|
||
interfaces specified for a particular programming language, one that
|
||
is widely used among developers working in that language.
|
||
|
||
The "System Libraries" of an executable work include anything, other
|
||
than the work as a whole, that (a) is included in the normal form of
|
||
packaging a Major Component, but which is not part of that Major
|
||
Component, and (b) serves only to enable use of the work with that
|
||
Major Component, or to implement a Standard Interface for which an
|
||
implementation is available to the public in source code form. A
|
||
"Major Component", in this context, means a major essential component
|
||
(kernel, window system, and so on) of the specific operating system
|
||
(if any) on which the executable work runs, or a compiler used to
|
||
produce the work, or an object code interpreter used to run it.
|
||
|
||
The "Corresponding Source" for a work in object code form means all
|
||
the source code needed to generate, install, and (for an executable
|
||
work) run the object code and to modify the work, including scripts to
|
||
control those activities. However, it does not include the work's
|
||
System Libraries, or general-purpose tools or generally available free
|
||
programs which are used unmodified in performing those activities but
|
||
which are not part of the work. For example, Corresponding Source
|
||
includes interface definition files associated with source files for
|
||
the work, and the source code for shared libraries and dynamically
|
||
linked subprograms that the work is specifically designed to require,
|
||
such as by intimate data communication or control flow between those
|
||
subprograms and other parts of the work.
|
||
|
||
The Corresponding Source need not include anything that users
|
||
can regenerate automatically from other parts of the Corresponding
|
||
Source.
|
||
|
||
The Corresponding Source for a work in source code form is that
|
||
same work.
|
||
|
||
2. Basic Permissions.
|
||
|
||
All rights granted under this License are granted for the term of
|
||
copyright on the Program, and are irrevocable provided the stated
|
||
conditions are met. This License explicitly affirms your unlimited
|
||
permission to run the unmodified Program. The output from running a
|
||
covered work is covered by this License only if the output, given its
|
||
content, constitutes a covered work. This License acknowledges your
|
||
rights of fair use or other equivalent, as provided by copyright law.
|
||
|
||
You may make, run and propagate covered works that you do not
|
||
convey, without conditions so long as your license otherwise remains
|
||
in force. You may convey covered works to others for the sole purpose
|
||
of having them make modifications exclusively for you, or provide you
|
||
with facilities for running those works, provided that you comply with
|
||
the terms of this License in conveying all material for which you do
|
||
not control copyright. Those thus making or running the covered works
|
||
for you must do so exclusively on your behalf, under your direction
|
||
and control, on terms that prohibit them from making any copies of
|
||
your copyrighted material outside their relationship with you.
|
||
|
||
Conveying under any other circumstances is permitted solely under
|
||
the conditions stated below. Sublicensing is not allowed; section 10
|
||
makes it unnecessary.
|
||
|
||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||
|
||
No covered work shall be deemed part of an effective technological
|
||
measure under any applicable law fulfilling obligations under article
|
||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||
similar laws prohibiting or restricting circumvention of such
|
||
measures.
|
||
|
||
When you convey a covered work, you waive any legal power to forbid
|
||
circumvention of technological measures to the extent such circumvention
|
||
is effected by exercising rights under this License with respect to
|
||
the covered work, and you disclaim any intention to limit operation or
|
||
modification of the work as a means of enforcing, against the work's
|
||
users, your or third parties' legal rights to forbid circumvention of
|
||
technological measures.
|
||
|
||
4. Conveying Verbatim Copies.
|
||
|
||
You may convey verbatim copies of the Program's source code as you
|
||
receive it, in any medium, provided that you conspicuously and
|
||
appropriately publish on each copy an appropriate copyright notice;
|
||
keep intact all notices stating that this License and any
|
||
non-permissive terms added in accord with section 7 apply to the code;
|
||
keep intact all notices of the absence of any warranty; and give all
|
||
recipients a copy of this License along with the Program.
|
||
|
||
You may charge any price or no price for each copy that you convey,
|
||
and you may offer support or warranty protection for a fee.
|
||
|
||
5. Conveying Modified Source Versions.
|
||
|
||
You may convey a work based on the Program, or the modifications to
|
||
produce it from the Program, in the form of source code under the
|
||
terms of section 4, provided that you also meet all of these conditions:
|
||
|
||
a) The work must carry prominent notices stating that you modified
|
||
it, and giving a relevant date.
|
||
|
||
b) The work must carry prominent notices stating that it is
|
||
released under this License and any conditions added under section
|
||
7. This requirement modifies the requirement in section 4 to
|
||
"keep intact all notices".
|
||
|
||
c) You must license the entire work, as a whole, under this
|
||
License to anyone who comes into possession of a copy. This
|
||
License will therefore apply, along with any applicable section 7
|
||
additional terms, to the whole of the work, and all its parts,
|
||
regardless of how they are packaged. This License gives no
|
||
permission to license the work in any other way, but it does not
|
||
invalidate such permission if you have separately received it.
|
||
|
||
d) If the work has interactive user interfaces, each must display
|
||
Appropriate Legal Notices; however, if the Program has interactive
|
||
interfaces that do not display Appropriate Legal Notices, your
|
||
work need not make them do so.
|
||
|
||
A compilation of a covered work with other separate and independent
|
||
works, which are not by their nature extensions of the covered work,
|
||
and which are not combined with it such as to form a larger program,
|
||
in or on a volume of a storage or distribution medium, is called an
|
||
"aggregate" if the compilation and its resulting copyright are not
|
||
used to limit the access or legal rights of the compilation's users
|
||
beyond what the individual works permit. Inclusion of a covered work
|
||
in an aggregate does not cause this License to apply to the other
|
||
parts of the aggregate.
|
||
|
||
6. Conveying Non-Source Forms.
|
||
|
||
You may convey a covered work in object code form under the terms
|
||
of sections 4 and 5, provided that you also convey the
|
||
machine-readable Corresponding Source under the terms of this License,
|
||
in one of these ways:
|
||
|
||
a) Convey the object code in, or embodied in, a physical product
|
||
(including a physical distribution medium), accompanied by the
|
||
Corresponding Source fixed on a durable physical medium
|
||
customarily used for software interchange.
|
||
|
||
b) Convey the object code in, or embodied in, a physical product
|
||
(including a physical distribution medium), accompanied by a
|
||
written offer, valid for at least three years and valid for as
|
||
long as you offer spare parts or customer support for that product
|
||
model, to give anyone who possesses the object code either (1) a
|
||
copy of the Corresponding Source for all the software in the
|
||
product that is covered by this License, on a durable physical
|
||
medium customarily used for software interchange, for a price no
|
||
more than your reasonable cost of physically performing this
|
||
conveying of source, or (2) access to copy the
|
||
Corresponding Source from a network server at no charge.
|
||
|
||
c) Convey individual copies of the object code with a copy of the
|
||
written offer to provide the Corresponding Source. This
|
||
alternative is allowed only occasionally and noncommercially, and
|
||
only if you received the object code with such an offer, in accord
|
||
with subsection 6b.
|
||
|
||
d) Convey the object code by offering access from a designated
|
||
place (gratis or for a charge), and offer equivalent access to the
|
||
Corresponding Source in the same way through the same place at no
|
||
further charge. You need not require recipients to copy the
|
||
Corresponding Source along with the object code. If the place to
|
||
copy the object code is a network server, the Corresponding Source
|
||
may be on a different server (operated by you or a third party)
|
||
that supports equivalent copying facilities, provided you maintain
|
||
clear directions next to the object code saying where to find the
|
||
Corresponding Source. Regardless of what server hosts the
|
||
Corresponding Source, you remain obligated to ensure that it is
|
||
available for as long as needed to satisfy these requirements.
|
||
|
||
e) Convey the object code using peer-to-peer transmission, provided
|
||
you inform other peers where the object code and Corresponding
|
||
Source of the work are being offered to the general public at no
|
||
charge under subsection 6d.
|
||
|
||
A separable portion of the object code, whose source code is excluded
|
||
from the Corresponding Source as a System Library, need not be
|
||
included in conveying the object code work.
|
||
|
||
A "User Product" is either (1) a "consumer product", which means any
|
||
tangible personal property which is normally used for personal, family,
|
||
or household purposes, or (2) anything designed or sold for incorporation
|
||
into a dwelling. In determining whether a product is a consumer product,
|
||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||
product received by a particular user, "normally used" refers to a
|
||
typical or common use of that class of product, regardless of the status
|
||
of the particular user or of the way in which the particular user
|
||
actually uses, or expects or is expected to use, the product. A product
|
||
is a consumer product regardless of whether the product has substantial
|
||
commercial, industrial or non-consumer uses, unless such uses represent
|
||
the only significant mode of use of the product.
|
||
|
||
"Installation Information" for a User Product means any methods,
|
||
procedures, authorization keys, or other information required to install
|
||
and execute modified versions of a covered work in that User Product from
|
||
a modified version of its Corresponding Source. The information must
|
||
suffice to ensure that the continued functioning of the modified object
|
||
code is in no case prevented or interfered with solely because
|
||
modification has been made.
|
||
|
||
If you convey an object code work under this section in, or with, or
|
||
specifically for use in, a User Product, and the conveying occurs as
|
||
part of a transaction in which the right of possession and use of the
|
||
User Product is transferred to the recipient in perpetuity or for a
|
||
fixed term (regardless of how the transaction is characterized), the
|
||
Corresponding Source conveyed under this section must be accompanied
|
||
by the Installation Information. But this requirement does not apply
|
||
if neither you nor any third party retains the ability to install
|
||
modified object code on the User Product (for example, the work has
|
||
been installed in ROM).
|
||
|
||
The requirement to provide Installation Information does not include a
|
||
requirement to continue to provide support service, warranty, or updates
|
||
for a work that has been modified or installed by the recipient, or for
|
||
the User Product in which it has been modified or installed. Access to a
|
||
network may be denied when the modification itself materially and
|
||
adversely affects the operation of the network or violates the rules and
|
||
protocols for communication across the network.
|
||
|
||
Corresponding Source conveyed, and Installation Information provided,
|
||
in accord with this section must be in a format that is publicly
|
||
documented (and with an implementation available to the public in
|
||
source code form), and must require no special password or key for
|
||
unpacking, reading or copying.
|
||
|
||
7. Additional Terms.
|
||
|
||
"Additional permissions" are terms that supplement the terms of this
|
||
License by making exceptions from one or more of its conditions.
|
||
Additional permissions that are applicable to the entire Program shall
|
||
be treated as though they were included in this License, to the extent
|
||
that they are valid under applicable law. If additional permissions
|
||
apply only to part of the Program, that part may be used separately
|
||
under those permissions, but the entire Program remains governed by
|
||
this License without regard to the additional permissions.
|
||
|
||
When you convey a copy of a covered work, you may at your option
|
||
remove any additional permissions from that copy, or from any part of
|
||
it. (Additional permissions may be written to require their own
|
||
removal in certain cases when you modify the work.) You may place
|
||
additional permissions on material, added by you to a covered work,
|
||
for which you have or can give appropriate copyright permission.
|
||
|
||
Notwithstanding any other provision of this License, for material you
|
||
add to a covered work, you may (if authorized by the copyright holders of
|
||
that material) supplement the terms of this License with terms:
|
||
|
||
a) Disclaiming warranty or limiting liability differently from the
|
||
terms of sections 15 and 16 of this License; or
|
||
|
||
b) Requiring preservation of specified reasonable legal notices or
|
||
author attributions in that material or in the Appropriate Legal
|
||
Notices displayed by works containing it; or
|
||
|
||
c) Prohibiting misrepresentation of the origin of that material, or
|
||
requiring that modified versions of such material be marked in
|
||
reasonable ways as different from the original version; or
|
||
|
||
d) Limiting the use for publicity purposes of names of licensors or
|
||
authors of the material; or
|
||
|
||
e) Declining to grant rights under trademark law for use of some
|
||
trade names, trademarks, or service marks; or
|
||
|
||
f) Requiring indemnification of licensors and authors of that
|
||
material by anyone who conveys the material (or modified versions of
|
||
it) with contractual assumptions of liability to the recipient, for
|
||
any liability that these contractual assumptions directly impose on
|
||
those licensors and authors.
|
||
|
||
All other non-permissive additional terms are considered "further
|
||
restrictions" within the meaning of section 10. If the Program as you
|
||
received it, or any part of it, contains a notice stating that it is
|
||
governed by this License along with a term that is a further
|
||
restriction, you may remove that term. If a license document contains
|
||
a further restriction but permits relicensing or conveying under this
|
||
License, you may add to a covered work material governed by the terms
|
||
of that license document, provided that the further restriction does
|
||
not survive such relicensing or conveying.
|
||
|
||
If you add terms to a covered work in accord with this section, you
|
||
must place, in the relevant source files, a statement of the
|
||
additional terms that apply to those files, or a notice indicating
|
||
where to find the applicable terms.
|
||
|
||
Additional terms, permissive or non-permissive, may be stated in the
|
||
form of a separately written license, or stated as exceptions;
|
||
the above requirements apply either way.
|
||
|
||
8. Termination.
|
||
|
||
You may not propagate or modify a covered work except as expressly
|
||
provided under this License. Any attempt otherwise to propagate or
|
||
modify it is void, and will automatically terminate your rights under
|
||
this License (including any patent licenses granted under the third
|
||
paragraph of section 11).
|
||
|
||
However, if you cease all violation of this License, then your
|
||
license from a particular copyright holder is reinstated (a)
|
||
provisionally, unless and until the copyright holder explicitly and
|
||
finally terminates your license, and (b) permanently, if the copyright
|
||
holder fails to notify you of the violation by some reasonable means
|
||
prior to 60 days after the cessation.
|
||
|
||
Moreover, your license from a particular copyright holder is
|
||
reinstated permanently if the copyright holder notifies you of the
|
||
violation by some reasonable means, this is the first time you have
|
||
received notice of violation of this License (for any work) from that
|
||
copyright holder, and you cure the violation prior to 30 days after
|
||
your receipt of the notice.
|
||
|
||
Termination of your rights under this section does not terminate the
|
||
licenses of parties who have received copies or rights from you under
|
||
this License. If your rights have been terminated and not permanently
|
||
reinstated, you do not qualify to receive new licenses for the same
|
||
material under section 10.
|
||
|
||
9. Acceptance Not Required for Having Copies.
|
||
|
||
You are not required to accept this License in order to receive or
|
||
run a copy of the Program. Ancillary propagation of a covered work
|
||
occurring solely as a consequence of using peer-to-peer transmission
|
||
to receive a copy likewise does not require acceptance. However,
|
||
nothing other than this License grants you permission to propagate or
|
||
modify any covered work. These actions infringe copyright if you do
|
||
not accept this License. Therefore, by modifying or propagating a
|
||
covered work, you indicate your acceptance of this License to do so.
|
||
|
||
10. Automatic Licensing of Downstream Recipients.
|
||
|
||
Each time you convey a covered work, the recipient automatically
|
||
receives a license from the original licensors, to run, modify and
|
||
propagate that work, subject to this License. You are not responsible
|
||
for enforcing compliance by third parties with this License.
|
||
|
||
An "entity transaction" is a transaction transferring control of an
|
||
organization, or substantially all assets of one, or subdividing an
|
||
organization, or merging organizations. If propagation of a covered
|
||
work results from an entity transaction, each party to that
|
||
transaction who receives a copy of the work also receives whatever
|
||
licenses to the work the party's predecessor in interest had or could
|
||
give under the previous paragraph, plus a right to possession of the
|
||
Corresponding Source of the work from the predecessor in interest, if
|
||
the predecessor has it or can get it with reasonable efforts.
|
||
|
||
You may not impose any further restrictions on the exercise of the
|
||
rights granted or affirmed under this License. For example, you may
|
||
not impose a license fee, royalty, or other charge for exercise of
|
||
rights granted under this License, and you may not initiate litigation
|
||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||
any patent claim is infringed by making, using, selling, offering for
|
||
sale, or importing the Program or any portion of it.
|
||
|
||
11. Patents.
|
||
|
||
A "contributor" is a copyright holder who authorizes use under this
|
||
License of the Program or a work on which the Program is based. The
|
||
work thus licensed is called the contributor's "contributor version".
|
||
|
||
A contributor's "essential patent claims" are all patent claims
|
||
owned or controlled by the contributor, whether already acquired or
|
||
hereafter acquired, that would be infringed by some manner, permitted
|
||
by this License, of making, using, or selling its contributor version,
|
||
but do not include claims that would be infringed only as a
|
||
consequence of further modification of the contributor version. For
|
||
purposes of this definition, "control" includes the right to grant
|
||
patent sublicenses in a manner consistent with the requirements of
|
||
this License.
|
||
|
||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||
patent license under the contributor's essential patent claims, to
|
||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||
propagate the contents of its contributor version.
|
||
|
||
In the following three paragraphs, a "patent license" is any express
|
||
agreement or commitment, however denominated, not to enforce a patent
|
||
(such as an express permission to practice a patent or covenant not to
|
||
sue for patent infringement). To "grant" such a patent license to a
|
||
party means to make such an agreement or commitment not to enforce a
|
||
patent against the party.
|
||
|
||
If you convey a covered work, knowingly relying on a patent license,
|
||
and the Corresponding Source of the work is not available for anyone
|
||
to copy, free of charge and under the terms of this License, through a
|
||
publicly available network server or other readily accessible means,
|
||
then you must either (1) cause the Corresponding Source to be so
|
||
available, or (2) arrange to deprive yourself of the benefit of the
|
||
patent license for this particular work, or (3) arrange, in a manner
|
||
consistent with the requirements of this License, to extend the patent
|
||
license to downstream recipients. "Knowingly relying" means you have
|
||
actual knowledge that, but for the patent license, your conveying the
|
||
covered work in a country, or your recipient's use of the covered work
|
||
in a country, would infringe one or more identifiable patents in that
|
||
country that you have reason to believe are valid.
|
||
|
||
If, pursuant to or in connection with a single transaction or
|
||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||
covered work, and grant a patent license to some of the parties
|
||
receiving the covered work authorizing them to use, propagate, modify
|
||
or convey a specific copy of the covered work, then the patent license
|
||
you grant is automatically extended to all recipients of the covered
|
||
work and works based on it.
|
||
|
||
A patent license is "discriminatory" if it does not include within
|
||
the scope of its coverage, prohibits the exercise of, or is
|
||
conditioned on the non-exercise of one or more of the rights that are
|
||
specifically granted under this License. You may not convey a covered
|
||
work if you are a party to an arrangement with a third party that is
|
||
in the business of distributing software, under which you make payment
|
||
to the third party based on the extent of your activity of conveying
|
||
the work, and under which the third party grants, to any of the
|
||
parties who would receive the covered work from you, a discriminatory
|
||
patent license (a) in connection with copies of the covered work
|
||
conveyed by you (or copies made from those copies), or (b) primarily
|
||
for and in connection with specific products or compilations that
|
||
contain the covered work, unless you entered into that arrangement,
|
||
or that patent license was granted, prior to 28 March 2007.
|
||
|
||
Nothing in this License shall be construed as excluding or limiting
|
||
any implied license or other defenses to infringement that may
|
||
otherwise be available to you under applicable patent law.
|
||
|
||
12. No Surrender of Others' Freedom.
|
||
|
||
If conditions are imposed on you (whether by court order, agreement or
|
||
otherwise) that contradict the conditions of this License, they do not
|
||
excuse you from the conditions of this License. If you cannot convey a
|
||
covered work so as to satisfy simultaneously your obligations under this
|
||
License and any other pertinent obligations, then as a consequence you may
|
||
not convey it at all. For example, if you agree to terms that obligate you
|
||
to collect a royalty for further conveying from those to whom you convey
|
||
the Program, the only way you could satisfy both those terms and this
|
||
License would be to refrain entirely from conveying the Program.
|
||
|
||
13. Use with the GNU Affero General Public License.
|
||
|
||
Notwithstanding any other provision of this License, you have
|
||
permission to link or combine any covered work with a work licensed
|
||
under version 3 of the GNU Affero General Public License into a single
|
||
combined work, and to convey the resulting work. The terms of this
|
||
License will continue to apply to the part which is the covered work,
|
||
but the special requirements of the GNU Affero General Public License,
|
||
section 13, concerning interaction through a network will apply to the
|
||
combination as such.
|
||
|
||
14. Revised Versions of this License.
|
||
|
||
The Free Software Foundation may publish revised and/or new versions of
|
||
the GNU General Public License from time to time. Such new versions will
|
||
be similar in spirit to the present version, but may differ in detail to
|
||
address new problems or concerns.
|
||
|
||
Each version is given a distinguishing version number. If the
|
||
Program specifies that a certain numbered version of the GNU General
|
||
Public License "or any later version" applies to it, you have the
|
||
option of following the terms and conditions either of that numbered
|
||
version or of any later version published by the Free Software
|
||
Foundation. If the Program does not specify a version number of the
|
||
GNU General Public License, you may choose any version ever published
|
||
by the Free Software Foundation.
|
||
|
||
If the Program specifies that a proxy can decide which future
|
||
versions of the GNU General Public License can be used, that proxy's
|
||
public statement of acceptance of a version permanently authorizes you
|
||
to choose that version for the Program.
|
||
|
||
Later license versions may give you additional or different
|
||
permissions. However, no additional obligations are imposed on any
|
||
author or copyright holder as a result of your choosing to follow a
|
||
later version.
|
||
|
||
15. Disclaimer of Warranty.
|
||
|
||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||
|
||
16. Limitation of Liability.
|
||
|
||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||
SUCH DAMAGES.
|
||
|
||
17. Interpretation of Sections 15 and 16.
|
||
|
||
If the disclaimer of warranty and limitation of liability provided
|
||
above cannot be given local legal effect according to their terms,
|
||
reviewing courts shall apply local law that most closely approximates
|
||
an absolute waiver of all civil liability in connection with the
|
||
Program, unless a warranty or assumption of liability accompanies a
|
||
copy of the Program in return for a fee.
|
||
|
||
END OF TERMS AND CONDITIONS
|
||
|
||
How to Apply These Terms to Your New Programs
|
||
|
||
If you develop a new program, and you want it to be of the greatest
|
||
possible use to the public, the best way to achieve this is to make it
|
||
free software which everyone can redistribute and change under these terms.
|
||
|
||
To do so, attach the following notices to the program. It is safest
|
||
to attach them to the start of each source file to most effectively
|
||
state the exclusion of warranty; and each file should have at least
|
||
the "copyright" line and a pointer to where the full notice is found.
|
||
|
||
<one line to give the program's name and a brief idea of what it does.>
|
||
Copyright (C) <year> <name of author>
|
||
|
||
This program is free software: you can redistribute it and/or modify
|
||
it under the terms of the GNU General Public License as published by
|
||
the Free Software Foundation, either version 3 of the License, or
|
||
(at your option) any later version.
|
||
|
||
This program is distributed in the hope that it will be useful,
|
||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
GNU General Public License for more details.
|
||
|
||
You should have received a copy of the GNU General Public License
|
||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
||
Also add information on how to contact you by electronic and paper mail.
|
||
|
||
If the program does terminal interaction, make it output a short
|
||
notice like this when it starts in an interactive mode:
|
||
|
||
<program> Copyright (C) <year> <name of author>
|
||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||
This is free software, and you are welcome to redistribute it
|
||
under certain conditions; type `show c' for details.
|
||
|
||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||
parts of the General Public License. Of course, your program's commands
|
||
might be different; for a GUI interface, you would use an "about box".
|
||
|
||
You should also get your employer (if you work as a programmer) or school,
|
||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||
For more information on this, and how to apply and follow the GNU GPL, see
|
||
<http://www.gnu.org/licenses/>.
|
||
|
||
The GNU General Public License does not permit incorporating your program
|
||
into proprietary programs. If your program is a subroutine library, you
|
||
may consider it more useful to permit linking proprietary applications with
|
||
the library. If this is what you want to do, use the GNU Lesser General
|
||
Public License instead of this License. But first, please read
|
||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
ETa/ETa-Client/LISEZMOI | ||
---|---|---|
ETa-Client
|
||
|
||
Bibliothèque cliente pour l’interfaçage avec le web service ETa (gestion des
|
||
utilisateurs).
|
||
|
||
Dépendances:
|
||
modules IoTa:
|
||
- Tau
|
||
bibliothèques:
|
||
- Apache cxf
|
||
- epcis-queryclient
|
||
- servlet-api
|
||
- commons-logging
|
||
- log4j
|
||
|
||
Configuration:
|
||
(application.properties pour cette application,
|
||
commons-logging.properties et log4j.properties pour les journaux)
|
||
|
||
Dépendances d’utilisation:
|
||
- ETa
|
ETa/ETa-Client/README | ||
---|---|---|
ETa-Client
|
||
|
||
Common library for interfacing with the ETa web service (user management).
|
||
|
||
Dependencies:
|
||
IoTa modules:
|
||
- Tau
|
||
libraries:
|
||
- Apache cxf
|
||
- epcis-queryclient
|
||
- servlet-api
|
||
- commons-logging
|
||
- log4j
|
||
|
||
Configuration: ?
|
||
|
||
Usage Dependencies:
|
||
- ETa
|
ETa/ETa-Client/pom.xml | ||
---|---|---|
<?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>
|
||
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>eta-client</artifactId>
|
||
<version>1.9-mock</version>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>ETa-Client</name>
|
||
|
||
<properties>
|
||
<lib-cxf-version>2.2.12</lib-cxf-version>
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
<epcis-version>0.5.0</epcis-version>
|
||
</properties>
|
||
|
||
<dependencies>
|
||
|
||
<!-- IoTa dependencies -->
|
||
<dependency>
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>tau</artifactId>
|
||
<version>${project.version}</version>
|
||
</dependency>
|
||
|
||
<!-- Fosstrak dependencies -->
|
||
<dependency>
|
||
<groupId>org.fosstrak.epcis</groupId>
|
||
<artifactId>epcis-queryclient</artifactId>
|
||
<version>${epcis-version}</version>
|
||
</dependency>
|
||
|
||
<!-- CXF dependencies -->
|
||
<dependency>
|
||
<groupId>org.apache.cxf</groupId>
|
||
<artifactId>cxf-rt-frontend-jaxws</artifactId>
|
||
<version>${lib-cxf-version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.apache.cxf</groupId>
|
||
<artifactId>cxf-rt-transports-http</artifactId>
|
||
<version>${lib-cxf-version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.apache.cxf</groupId>
|
||
<artifactId>cxf-rt-transports-local</artifactId>
|
||
<version>${lib-cxf-version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.apache.cxf</groupId>
|
||
<artifactId>cxf-rt-databinding-jaxb</artifactId>
|
||
<version>${lib-cxf-version}</version>
|
||
</dependency>
|
||
|
||
<!-- Other dependencies -->
|
||
<dependency>
|
||
<groupId>javax.servlet</groupId>
|
||
<artifactId>javax.servlet-api</artifactId>
|
||
<version>3.0.1</version>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
|
||
<!-- Log dependencies -->
|
||
<dependency>
|
||
<groupId>commons-logging</groupId>
|
||
<artifactId>commons-logging</artifactId>
|
||
<version>1.1.1</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>log4j</groupId>
|
||
<artifactId>log4j</artifactId>
|
||
<version>1.2.16</version>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
<build>
|
||
|
||
<plugins>
|
||
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
<version>2.5.1</version>
|
||
<configuration>
|
||
<source>1.6</source>
|
||
<target>1.6</target>
|
||
</configuration>
|
||
</plugin>
|
||
|
||
<plugin>
|
||
<groupId>org.apache.cxf</groupId>
|
||
<artifactId>cxf-codegen-plugin</artifactId>
|
||
<version>2.6.1</version>
|
||
<executions>
|
||
<execution>
|
||
<id>generate-sources</id>
|
||
<phase>generate-sources</phase>
|
||
<configuration>
|
||
<sourceRoot>${project.build.directory}/generated-sources/cxf</sourceRoot>
|
||
<defaultOptions>
|
||
<packagenames>
|
||
<packagename>urn:unicaen:iota:tau:xsd=fr.unicaen.iota.tau.model</packagename>
|
||
<packagename>urn:unicaen:iota:eta:wsdl=fr.unicaen.iota.eta.soap</packagename>
|
||
<packagename>urn:epcglobal:xsd:1=org.fosstrak.epcis.model</packagename>
|
||
<packagename>urn:epcglobal:epcis:wsdl:1=org.fosstrak.epcis.soap</packagename>
|
||
<packagename>urn:epcglobal:epcis:xsd:1=org.fosstrak.epcis.model</packagename>
|
||
<packagename>urn:epcglobal:epcis-query:xsd:1=org.fosstrak.epcis.model</packagename>
|
||
<packagename>urn:epcglobal:epcis-masterdata:xsd:1=org.fosstrak.epcis.model</packagename>
|
||
<packagename>http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader=org.fosstrak.epcis.model</packagename>
|
||
</packagenames>
|
||
</defaultOptions>
|
||
<wsdlOptions>
|
||
<wsdlOption>
|
||
<wsdl>${basedir}/src/main/resources/wsdl/tau-epcis.wsdl</wsdl>
|
||
<wsdlLocation>classpath:wsdl/tau-epcis.wsdl</wsdlLocation>
|
||
</wsdlOption>
|
||
<wsdlOption>
|
||
<wsdl>${basedir}/src/main/resources/wsdl/EPCglobal-epcis-query-1_0.wsdl</wsdl>
|
||
<wsdlLocation>classpath:wsdl/EPCglobal-epcis-query-1_0.wsdl</wsdlLocation>
|
||
</wsdlOption>
|
||
</wsdlOptions>
|
||
</configuration>
|
||
<goals>
|
||
<goal>wsdl2java</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-assembly-plugin</artifactId>
|
||
<version>2.3</version>
|
||
<executions>
|
||
<execution>
|
||
<id>sources</id>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>single</goal>
|
||
</goals>
|
||
<configuration>
|
||
<descriptorRefs>
|
||
<descriptorRef>src</descriptorRef>
|
||
</descriptorRefs>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
</plugins>
|
||
|
||
</build>
|
||
|
||
</project>
|
ETa/ETa-Client/src/main/java/fr/unicaen/iota/eta/query/ETaQueryControlClient.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
*
|
||
* Copyright © 2012 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
* (at your option) any later version.
|
||
*
|
||
* This program is distributed in the hope that it will be useful,
|
||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
* GNU General Public License for more details.
|
||
* <http://www.gnu.org/licenses/>
|
||
*
|
||
* See AUTHORS for a list of contributors.
|
||
*/
|
||
package fr.unicaen.iota.eta.query;
|
||
|
||
import fr.unicaen.iota.eta.soap.IDedEPCISServicePortType;
|
||
import fr.unicaen.iota.eta.soap.IDedEPCglobalEPCISService;
|
||
import fr.unicaen.iota.tau.model.Identity;
|
||
import java.io.File;
|
||
import java.io.FileInputStream;
|
||
import java.net.URL;
|
||
import java.security.KeyStore;
|
||
import java.security.SecureRandom;
|
||
import java.security.cert.CertificateException;
|
||
import java.security.cert.X509Certificate;
|
||
import java.util.List;
|
||
import javax.net.ssl.KeyManagerFactory;
|
||
import javax.net.ssl.TrustManager;
|
||
import javax.net.ssl.X509TrustManager;
|
||
import org.apache.commons.logging.Log;
|
||
import org.apache.commons.logging.LogFactory;
|
||
import org.apache.cxf.configuration.jsse.TLSClientParameters;
|
||
import org.apache.cxf.endpoint.Client;
|
||
import org.apache.cxf.frontend.ClientProxy;
|
||
import org.apache.cxf.transport.http.HTTPConduit;
|
||
import org.apache.cxf.transports.http.configuration.HTTPClientPolicy;
|
||
import org.fosstrak.epcis.model.*;
|
||
import org.fosstrak.epcis.queryclient.QueryControlClient;
|
||
import org.fosstrak.epcis.queryclient.QueryControlInterface;
|
||
import org.fosstrak.epcis.soap.*;
|
||
//import org.fosstrak.epcis.utils.AuthenticationType;
|
||
|
||
/**
|
||
*
|
||
*/
|
||
public class ETaQueryControlClient implements QueryControlInterface, X509TrustManager {
|
||
|
||
private Identity identity;
|
||
private IDedEPCISServicePortType port;
|
||
private QueryControlClient epcisClient;
|
||
private static final Log log = LogFactory.getLog(ETaQueryControlClient.class);
|
||
|
||
public ETaQueryControlClient(Identity id, String address) {
|
||
this(id, address, null, null);
|
||
}
|
||
|
||
public ETaQueryControlClient(Identity id, String address, String pksFilename, String pksPassword) {
|
||
log.trace("new ETaClient: " + id + " @ " + address);
|
||
this.identity = id;
|
||
// TODO: TLS
|
||
//this.epcisClient = new QueryControlClient(address, new Object[] { AuthenticationType.HTTPS_WITH_CLIENT_CERT, pksFilename, pksPassword });
|
||
this.epcisClient = new QueryControlClient(address, null);
|
||
try {
|
||
configureService(address, pksFilename, pksPassword);
|
||
} catch (Exception e) {
|
||
throw new RuntimeException("Can’t configure service: " + e.getMessage(), e);
|
||
}
|
||
}
|
||
|
||
// TODO: TLS
|
||
public void configureService(String address, String pksFilename, String pksPassword) throws Exception {
|
||
URL wsdlUrl = new URL(address + "?wsdl");
|
||
IDedEPCglobalEPCISService service = new IDedEPCglobalEPCISService(wsdlUrl);
|
||
port = service.getPort(IDedEPCISServicePortType.class);
|
||
|
||
// turn off chunked transfer encoding
|
||
Client client = ClientProxy.getClient(port);
|
||
HTTPConduit httpConduit = (HTTPConduit) client.getConduit();
|
||
HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
|
||
httpClientPolicy.setAllowChunking(false);
|
||
httpConduit.setClient(httpClientPolicy);
|
||
|
||
// TODO: TLS
|
||
if (pksFilename != null) {
|
||
//log.debug("Authenticating with certificate in file: " + pksFilename);
|
||
|
||
if (!wsdlUrl.getProtocol().equalsIgnoreCase("https")) {
|
||
throw new Exception("Authentication method requires the use of HTTPS");
|
||
}
|
||
|
||
KeyStore keyStore = KeyStore.getInstance(pksFilename.endsWith(".p12") ? "PKCS12" : "JKS");
|
||
keyStore.load(new FileInputStream(new File(pksFilename)), pksPassword.toCharArray());
|
||
KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance("SunX509");
|
||
keyManagerFactory.init(keyStore, pksPassword.toCharArray());
|
||
|
||
TLSClientParameters tlscp = new TLSClientParameters();
|
||
tlscp.setKeyManagers(keyManagerFactory.getKeyManagers());
|
||
tlscp.setSecureRandom(new SecureRandom());
|
||
tlscp.setDisableCNCheck(true);
|
||
tlscp.setTrustManagers(new TrustManager[]{this});
|
||
|
||
httpConduit.setTlsClientParameters(tlscp);
|
||
}
|
||
}
|
||
|
||
public Identity getIdentity() {
|
||
return identity;
|
||
}
|
||
|
||
public void setIdentity(Identity id) {
|
||
this.identity = id;
|
||
}
|
||
|
||
@Override
|
||
public QueryResults poll(Poll poll) throws ImplementationExceptionResponse, QueryTooComplexExceptionResponse, QueryTooLargeExceptionResponse, SecurityExceptionResponse, ValidationExceptionResponse, NoSuchNameExceptionResponse, QueryParameterExceptionResponse {
|
||
return port.iDedPoll(poll, identity);
|
||
}
|
||
|
||
@Override
|
||
public void subscribe(Subscribe subscribe) throws DuplicateSubscriptionExceptionResponse, ImplementationExceptionResponse, QueryTooComplexExceptionResponse, SecurityExceptionResponse, InvalidURIExceptionResponse, ValidationExceptionResponse, SubscribeNotPermittedExceptionResponse, NoSuchNameExceptionResponse, SubscriptionControlsExceptionResponse, QueryParameterExceptionResponse {
|
||
port.iDedSubscribe(subscribe, identity);
|
||
}
|
||
|
||
@Override
|
||
public void unsubscribe(String subscriptionId) throws ImplementationExceptionResponse, SecurityExceptionResponse, ValidationExceptionResponse, NoSuchSubscriptionExceptionResponse {
|
||
Unsubscribe unsubscribe = new Unsubscribe();
|
||
unsubscribe.setSubscriptionID(subscriptionId);
|
||
port.iDedUnsubscribe(unsubscribe, identity);
|
||
}
|
||
|
||
@Override
|
||
public List<String> getQueryNames() throws ImplementationExceptionResponse, SecurityExceptionResponse, ValidationExceptionResponse {
|
||
return epcisClient.getQueryNames();
|
||
}
|
||
|
||
@Override
|
||
public List<String> getSubscriptionIds(String queryName) throws ImplementationExceptionResponse, SecurityExceptionResponse, ValidationExceptionResponse, NoSuchNameExceptionResponse {
|
||
GetSubscriptionIDs gsubids = new GetSubscriptionIDs();
|
||
gsubids.setQueryName(queryName);
|
||
return port.iDedGetSubscriptionIDs(gsubids, identity).getString();
|
||
}
|
||
|
||
@Override
|
||
public String getStandardVersion() throws ImplementationExceptionResponse, SecurityExceptionResponse, ValidationExceptionResponse {
|
||
return epcisClient.getStandardVersion();
|
||
}
|
||
|
||
@Override
|
||
public String getVendorVersion() throws ImplementationExceptionResponse, SecurityExceptionResponse, ValidationExceptionResponse {
|
||
return epcisClient.getVendorVersion();
|
||
}
|
||
|
||
// TODO: TLS
|
||
@Override
|
||
public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {
|
||
epcisClient.checkClientTrusted(arg0, arg1);
|
||
}
|
||
|
||
// TODO: TLS
|
||
@Override
|
||
public void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {
|
||
epcisClient.checkServerTrusted(arg0, arg1);
|
||
}
|
||
|
||
// TODO: TLS
|
||
@Override
|
||
public X509Certificate[] getAcceptedIssuers() {
|
||
return epcisClient.getAcceptedIssuers();
|
||
}
|
||
}
|
ETa/ETa-Client/src/main/resources/META-INF/LICENSE | ||
---|---|---|
GNU GENERAL PUBLIC LICENSE
|
||
Version 3, 29 June 2007
|
||
|
||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||
Everyone is permitted to copy and distribute verbatim copies
|
||
of this license document, but changing it is not allowed.
|
||
|
||
Preamble
|
||
|
||
The GNU General Public License is a free, copyleft license for
|
||
software and other kinds of works.
|
||
|
||
The licenses for most software and other practical works are designed
|
||
to take away your freedom to share and change the works. By contrast,
|
||
the GNU General Public License is intended to guarantee your freedom to
|
||
share and change all versions of a program--to make sure it remains free
|
||
software for all its users. We, the Free Software Foundation, use the
|
||
GNU General Public License for most of our software; it applies also to
|
||
any other work released this way by its authors. You can apply it to
|
||
your programs, too.
|
||
|
||
When we speak of free software, we are referring to freedom, not
|
||
price. Our General Public Licenses are designed to make sure that you
|
||
have the freedom to distribute copies of free software (and charge for
|
||
them if you wish), that you receive source code or can get it if you
|
||
want it, that you can change the software or use pieces of it in new
|
||
free programs, and that you know you can do these things.
|
||
|
||
To protect your rights, we need to prevent others from denying you
|
||
these rights or asking you to surrender the rights. Therefore, you have
|
||
certain responsibilities if you distribute copies of the software, or if
|
||
you modify it: responsibilities to respect the freedom of others.
|
||
|
||
For example, if you distribute copies of such a program, whether
|
||
gratis or for a fee, you must pass on to the recipients the same
|
||
freedoms that you received. You must make sure that they, too, receive
|
||
or can get the source code. And you must show them these terms so they
|
||
know their rights.
|
||
|
||
Developers that use the GNU GPL protect your rights with two steps:
|
||
(1) assert copyright on the software, and (2) offer you this License
|
||
giving you legal permission to copy, distribute and/or modify it.
|
||
|
||
For the developers' and authors' protection, the GPL clearly explains
|
||
that there is no warranty for this free software. For both users' and
|
||
authors' sake, the GPL requires that modified versions be marked as
|
||
changed, so that their problems will not be attributed erroneously to
|
||
authors of previous versions.
|
||
|
||
Some devices are designed to deny users access to install or run
|
||
modified versions of the software inside them, although the manufacturer
|
||
can do so. This is fundamentally incompatible with the aim of
|
||
protecting users' freedom to change the software. The systematic
|
||
pattern of such abuse occurs in the area of products for individuals to
|
||
use, which is precisely where it is most unacceptable. Therefore, we
|
||
have designed this version of the GPL to prohibit the practice for those
|
||
products. If such problems arise substantially in other domains, we
|
||
stand ready to extend this provision to those domains in future versions
|
||
of the GPL, as needed to protect the freedom of users.
|
||
|
||
Finally, every program is threatened constantly by software patents.
|
||
States should not allow patents to restrict development and use of
|
||
software on general-purpose computers, but in those that do, we wish to
|
||
avoid the special danger that patents applied to a free program could
|
||
make it effectively proprietary. To prevent this, the GPL assures that
|
||
patents cannot be used to render the program non-free.
|
||
|
||
The precise terms and conditions for copying, distribution and
|
||
modification follow.
|
||
|
||
TERMS AND CONDITIONS
|
||
|
||
0. Definitions.
|
||
|
||
"This License" refers to version 3 of the GNU General Public License.
|
||
|
||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||
works, such as semiconductor masks.
|
||
|
||
"The Program" refers to any copyrightable work licensed under this
|
||
License. Each licensee is addressed as "you". "Licensees" and
|
||
"recipients" may be individuals or organizations.
|
||
|
||
To "modify" a work means to copy from or adapt all or part of the work
|
||
in a fashion requiring copyright permission, other than the making of an
|
||
exact copy. The resulting work is called a "modified version" of the
|
||
earlier work or a work "based on" the earlier work.
|
||
|
||
A "covered work" means either the unmodified Program or a work based
|
||
on the Program.
|
||
|
||
To "propagate" a work means to do anything with it that, without
|
||
permission, would make you directly or secondarily liable for
|
||
infringement under applicable copyright law, except executing it on a
|
||
computer or modifying a private copy. Propagation includes copying,
|
||
distribution (with or without modification), making available to the
|
||
public, and in some countries other activities as well.
|
||
|
||
To "convey" a work means any kind of propagation that enables other
|
||
parties to make or receive copies. Mere interaction with a user through
|
||
a computer network, with no transfer of a copy, is not conveying.
|
||
|
||
An interactive user interface displays "Appropriate Legal Notices"
|
||
to the extent that it includes a convenient and prominently visible
|
||
feature that (1) displays an appropriate copyright notice, and (2)
|
||
tells the user that there is no warranty for the work (except to the
|
||
extent that warranties are provided), that licensees may convey the
|
||
work under this License, and how to view a copy of this License. If
|
||
the interface presents a list of user commands or options, such as a
|
||
menu, a prominent item in the list meets this criterion.
|
||
|
||
1. Source Code.
|
||
|
||
The "source code" for a work means the preferred form of the work
|
||
for making modifications to it. "Object code" means any non-source
|
||
form of a work.
|
||
|
||
A "Standard Interface" means an interface that either is an official
|
||
standard defined by a recognized standards body, or, in the case of
|
||
interfaces specified for a particular programming language, one that
|
||
is widely used among developers working in that language.
|
||
|
||
The "System Libraries" of an executable work include anything, other
|
||
than the work as a whole, that (a) is included in the normal form of
|
||
packaging a Major Component, but which is not part of that Major
|
||
Component, and (b) serves only to enable use of the work with that
|
||
Major Component, or to implement a Standard Interface for which an
|
||
implementation is available to the public in source code form. A
|
||
"Major Component", in this context, means a major essential component
|
||
(kernel, window system, and so on) of the specific operating system
|
||
(if any) on which the executable work runs, or a compiler used to
|
||
produce the work, or an object code interpreter used to run it.
|
||
|
||
The "Corresponding Source" for a work in object code form means all
|
||
the source code needed to generate, install, and (for an executable
|
||
work) run the object code and to modify the work, including scripts to
|
||
control those activities. However, it does not include the work's
|
||
System Libraries, or general-purpose tools or generally available free
|
||
programs which are used unmodified in performing those activities but
|
||
which are not part of the work. For example, Corresponding Source
|
||
includes interface definition files associated with source files for
|
||
the work, and the source code for shared libraries and dynamically
|
||
linked subprograms that the work is specifically designed to require,
|
||
such as by intimate data communication or control flow between those
|
||
subprograms and other parts of the work.
|
||
|
||
The Corresponding Source need not include anything that users
|
||
can regenerate automatically from other parts of the Corresponding
|
||
Source.
|
||
|
||
The Corresponding Source for a work in source code form is that
|
||
same work.
|
||
|
||
2. Basic Permissions.
|
||
|
||
All rights granted under this License are granted for the term of
|
||
copyright on the Program, and are irrevocable provided the stated
|
||
conditions are met. This License explicitly affirms your unlimited
|
||
permission to run the unmodified Program. The output from running a
|
||
covered work is covered by this License only if the output, given its
|
||
content, constitutes a covered work. This License acknowledges your
|
||
rights of fair use or other equivalent, as provided by copyright law.
|
||
|
||
You may make, run and propagate covered works that you do not
|
||
convey, without conditions so long as your license otherwise remains
|
||
in force. You may convey covered works to others for the sole purpose
|
||
of having them make modifications exclusively for you, or provide you
|
||
with facilities for running those works, provided that you comply with
|
||
the terms of this License in conveying all material for which you do
|
||
not control copyright. Those thus making or running the covered works
|
||
for you must do so exclusively on your behalf, under your direction
|
||
and control, on terms that prohibit them from making any copies of
|
||
your copyrighted material outside their relationship with you.
|
||
|
||
Conveying under any other circumstances is permitted solely under
|
||
the conditions stated below. Sublicensing is not allowed; section 10
|
||
makes it unnecessary.
|
||
|
||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||
|
||
No covered work shall be deemed part of an effective technological
|
||
measure under any applicable law fulfilling obligations under article
|
||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||
similar laws prohibiting or restricting circumvention of such
|
||
measures.
|
||
|
||
When you convey a covered work, you waive any legal power to forbid
|
||
circumvention of technological measures to the extent such circumvention
|
||
is effected by exercising rights under this License with respect to
|
||
the covered work, and you disclaim any intention to limit operation or
|
||
modification of the work as a means of enforcing, against the work's
|
||
users, your or third parties' legal rights to forbid circumvention of
|
||
technological measures.
|
||
|
||
4. Conveying Verbatim Copies.
|
||
|
||
You may convey verbatim copies of the Program's source code as you
|
||
receive it, in any medium, provided that you conspicuously and
|
||
appropriately publish on each copy an appropriate copyright notice;
|
||
keep intact all notices stating that this License and any
|
||
non-permissive terms added in accord with section 7 apply to the code;
|
||
keep intact all notices of the absence of any warranty; and give all
|
||
recipients a copy of this License along with the Program.
|
||
|
||
You may charge any price or no price for each copy that you convey,
|
||
and you may offer support or warranty protection for a fee.
|
||
|
||
5. Conveying Modified Source Versions.
|
||
|
||
You may convey a work based on the Program, or the modifications to
|
||
produce it from the Program, in the form of source code under the
|
||
terms of section 4, provided that you also meet all of these conditions:
|
||
|
||
a) The work must carry prominent notices stating that you modified
|
||
it, and giving a relevant date.
|
||
|
||
b) The work must carry prominent notices stating that it is
|
||
released under this License and any conditions added under section
|
||
7. This requirement modifies the requirement in section 4 to
|
||
"keep intact all notices".
|
||
|
||
c) You must license the entire work, as a whole, under this
|
||
License to anyone who comes into possession of a copy. This
|
||
License will therefore apply, along with any applicable section 7
|
||
additional terms, to the whole of the work, and all its parts,
|
||
regardless of how they are packaged. This License gives no
|
||
permission to license the work in any other way, but it does not
|
||
invalidate such permission if you have separately received it.
|
||
|
||
d) If the work has interactive user interfaces, each must display
|
||
Appropriate Legal Notices; however, if the Program has interactive
|
||
interfaces that do not display Appropriate Legal Notices, your
|
||
work need not make them do so.
|
||
|
||
A compilation of a covered work with other separate and independent
|
||
works, which are not by their nature extensions of the covered work,
|
||
and which are not combined with it such as to form a larger program,
|
||
in or on a volume of a storage or distribution medium, is called an
|
||
"aggregate" if the compilation and its resulting copyright are not
|
||
used to limit the access or legal rights of the compilation's users
|
||
beyond what the individual works permit. Inclusion of a covered work
|
||
in an aggregate does not cause this License to apply to the other
|
||
parts of the aggregate.
|
||
|
||
6. Conveying Non-Source Forms.
|
||
|
||
You may convey a covered work in object code form under the terms
|
||
of sections 4 and 5, provided that you also convey the
|
||
machine-readable Corresponding Source under the terms of this License,
|
||
in one of these ways:
|
||
|
||
a) Convey the object code in, or embodied in, a physical product
|
||
(including a physical distribution medium), accompanied by the
|
||
Corresponding Source fixed on a durable physical medium
|
||
customarily used for software interchange.
|
||
|
||
b) Convey the object code in, or embodied in, a physical product
|
||
(including a physical distribution medium), accompanied by a
|
||
written offer, valid for at least three years and valid for as
|
||
long as you offer spare parts or customer support for that product
|
||
model, to give anyone who possesses the object code either (1) a
|
||
copy of the Corresponding Source for all the software in the
|
||
product that is covered by this License, on a durable physical
|
||
medium customarily used for software interchange, for a price no
|
||
more than your reasonable cost of physically performing this
|
||
conveying of source, or (2) access to copy the
|
||
Corresponding Source from a network server at no charge.
|
||
|
||
c) Convey individual copies of the object code with a copy of the
|
||
written offer to provide the Corresponding Source. This
|
||
alternative is allowed only occasionally and noncommercially, and
|
||
only if you received the object code with such an offer, in accord
|
||
with subsection 6b.
|
||
|
||
d) Convey the object code by offering access from a designated
|
||
place (gratis or for a charge), and offer equivalent access to the
|
||
Corresponding Source in the same way through the same place at no
|
||
further charge. You need not require recipients to copy the
|
||
Corresponding Source along with the object code. If the place to
|
||
copy the object code is a network server, the Corresponding Source
|
||
may be on a different server (operated by you or a third party)
|
||
that supports equivalent copying facilities, provided you maintain
|
||
clear directions next to the object code saying where to find the
|
||
Corresponding Source. Regardless of what server hosts the
|
||
Corresponding Source, you remain obligated to ensure that it is
|
||
available for as long as needed to satisfy these requirements.
|
||
|
||
e) Convey the object code using peer-to-peer transmission, provided
|
||
you inform other peers where the object code and Corresponding
|
||
Source of the work are being offered to the general public at no
|
||
charge under subsection 6d.
|
||
|
||
A separable portion of the object code, whose source code is excluded
|
||
from the Corresponding Source as a System Library, need not be
|
||
included in conveying the object code work.
|
||
|
||
A "User Product" is either (1) a "consumer product", which means any
|
||
tangible personal property which is normally used for personal, family,
|
||
or household purposes, or (2) anything designed or sold for incorporation
|
||
into a dwelling. In determining whether a product is a consumer product,
|
||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||
product received by a particular user, "normally used" refers to a
|
||
typical or common use of that class of product, regardless of the status
|
||
of the particular user or of the way in which the particular user
|
||
actually uses, or expects or is expected to use, the product. A product
|
||
is a consumer product regardless of whether the product has substantial
|
||
commercial, industrial or non-consumer uses, unless such uses represent
|
||
the only significant mode of use of the product.
|
||
|
||
"Installation Information" for a User Product means any methods,
|
||
procedures, authorization keys, or other information required to install
|
||
and execute modified versions of a covered work in that User Product from
|
||
a modified version of its Corresponding Source. The information must
|
||
suffice to ensure that the continued functioning of the modified object
|
||
code is in no case prevented or interfered with solely because
|
||
modification has been made.
|
||
|
||
If you convey an object code work under this section in, or with, or
|
||
specifically for use in, a User Product, and the conveying occurs as
|
||
part of a transaction in which the right of possession and use of the
|
||
User Product is transferred to the recipient in perpetuity or for a
|
||
fixed term (regardless of how the transaction is characterized), the
|
||
Corresponding Source conveyed under this section must be accompanied
|
||
by the Installation Information. But this requirement does not apply
|
||
if neither you nor any third party retains the ability to install
|
||
modified object code on the User Product (for example, the work has
|
||
been installed in ROM).
|
||
|
||
The requirement to provide Installation Information does not include a
|
||
requirement to continue to provide support service, warranty, or updates
|
||
for a work that has been modified or installed by the recipient, or for
|
||
the User Product in which it has been modified or installed. Access to a
|
||
network may be denied when the modification itself materially and
|
||
adversely affects the operation of the network or violates the rules and
|
||
protocols for communication across the network.
|
||
|
||
Corresponding Source conveyed, and Installation Information provided,
|
||
in accord with this section must be in a format that is publicly
|
||
documented (and with an implementation available to the public in
|
||
source code form), and must require no special password or key for
|
||
unpacking, reading or copying.
|
||
|
||
7. Additional Terms.
|
||
|
||
"Additional permissions" are terms that supplement the terms of this
|
||
License by making exceptions from one or more of its conditions.
|
||
Additional permissions that are applicable to the entire Program shall
|
||
be treated as though they were included in this License, to the extent
|
||
that they are valid under applicable law. If additional permissions
|
||
apply only to part of the Program, that part may be used separately
|
||
under those permissions, but the entire Program remains governed by
|
||
this License without regard to the additional permissions.
|
||
|
||
When you convey a copy of a covered work, you may at your option
|
||
remove any additional permissions from that copy, or from any part of
|
||
it. (Additional permissions may be written to require their own
|
||
removal in certain cases when you modify the work.) You may place
|
||
additional permissions on material, added by you to a covered work,
|
||
for which you have or can give appropriate copyright permission.
|
||
|
||
Notwithstanding any other provision of this License, for material you
|
||
add to a covered work, you may (if authorized by the copyright holders of
|
||
that material) supplement the terms of this License with terms:
|
||
|
||
a) Disclaiming warranty or limiting liability differently from the
|
||
terms of sections 15 and 16 of this License; or
|
||
|
||
b) Requiring preservation of specified reasonable legal notices or
|
||
author attributions in that material or in the Appropriate Legal
|
||
Notices displayed by works containing it; or
|
||
|
||
c) Prohibiting misrepresentation of the origin of that material, or
|
||
requiring that modified versions of such material be marked in
|
||
reasonable ways as different from the original version; or
|
||
|
||
d) Limiting the use for publicity purposes of names of licensors or
|
||
authors of the material; or
|
||
|
||
e) Declining to grant rights under trademark law for use of some
|
||
trade names, trademarks, or service marks; or
|
||
|
||
f) Requiring indemnification of licensors and authors of that
|
||
material by anyone who conveys the material (or modified versions of
|
||
it) with contractual assumptions of liability to the recipient, for
|
||
any liability that these contractual assumptions directly impose on
|
||
those licensors and authors.
|
||
|
||
All other non-permissive additional terms are considered "further
|
||
restrictions" within the meaning of section 10. If the Program as you
|
||
received it, or any part of it, contains a notice stating that it is
|
||
governed by this License along with a term that is a further
|
||
restriction, you may remove that term. If a license document contains
|
||
a further restriction but permits relicensing or conveying under this
|
||
License, you may add to a covered work material governed by the terms
|
||
of that license document, provided that the further restriction does
|
||
not survive such relicensing or conveying.
|
||
|
||
If you add terms to a covered work in accord with this section, you
|
||
must place, in the relevant source files, a statement of the
|
||
additional terms that apply to those files, or a notice indicating
|
||
where to find the applicable terms.
|
||
|
||
Additional terms, permissive or non-permissive, may be stated in the
|
||
form of a separately written license, or stated as exceptions;
|
||
the above requirements apply either way.
|
||
|
||
8. Termination.
|
||
|
||
You may not propagate or modify a covered work except as expressly
|
||
provided under this License. Any attempt otherwise to propagate or
|
||
modify it is void, and will automatically terminate your rights under
|
||
this License (including any patent licenses granted under the third
|
||
paragraph of section 11).
|
||
|
||
However, if you cease all violation of this License, then your
|
||
license from a particular copyright holder is reinstated (a)
|
||
provisionally, unless and until the copyright holder explicitly and
|
||
finally terminates your license, and (b) permanently, if the copyright
|
||
holder fails to notify you of the violation by some reasonable means
|
||
prior to 60 days after the cessation.
|
||
|
||
Moreover, your license from a particular copyright holder is
|
||
reinstated permanently if the copyright holder notifies you of the
|
||
violation by some reasonable means, this is the first time you have
|
||
received notice of violation of this License (for any work) from that
|
||
copyright holder, and you cure the violation prior to 30 days after
|
||
your receipt of the notice.
|
||
|
||
Termination of your rights under this section does not terminate the
|
||
licenses of parties who have received copies or rights from you under
|
||
this License. If your rights have been terminated and not permanently
|
||
reinstated, you do not qualify to receive new licenses for the same
|
||
material under section 10.
|
||
|
||
9. Acceptance Not Required for Having Copies.
|
||
|
||
You are not required to accept this License in order to receive or
|
||
run a copy of the Program. Ancillary propagation of a covered work
|
||
occurring solely as a consequence of using peer-to-peer transmission
|
||
to receive a copy likewise does not require acceptance. However,
|
||
nothing other than this License grants you permission to propagate or
|
||
modify any covered work. These actions infringe copyright if you do
|
||
not accept this License. Therefore, by modifying or propagating a
|
||
covered work, you indicate your acceptance of this License to do so.
|
||
|
||
10. Automatic Licensing of Downstream Recipients.
|
||
|
||
Each time you convey a covered work, the recipient automatically
|
||
receives a license from the original licensors, to run, modify and
|
||
propagate that work, subject to this License. You are not responsible
|
||
for enforcing compliance by third parties with this License.
|
||
|
||
An "entity transaction" is a transaction transferring control of an
|
||
organization, or substantially all assets of one, or subdividing an
|
||
organization, or merging organizations. If propagation of a covered
|
||
work results from an entity transaction, each party to that
|
||
transaction who receives a copy of the work also receives whatever
|
||
licenses to the work the party's predecessor in interest had or could
|
||
give under the previous paragraph, plus a right to possession of the
|
||
Corresponding Source of the work from the predecessor in interest, if
|
||
the predecessor has it or can get it with reasonable efforts.
|
||
|
||
You may not impose any further restrictions on the exercise of the
|
||
rights granted or affirmed under this License. For example, you may
|
||
not impose a license fee, royalty, or other charge for exercise of
|
||
rights granted under this License, and you may not initiate litigation
|
||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||
any patent claim is infringed by making, using, selling, offering for
|
||
sale, or importing the Program or any portion of it.
|
||
|
||
11. Patents.
|
||
|
||
A "contributor" is a copyright holder who authorizes use under this
|
||
License of the Program or a work on which the Program is based. The
|
||
work thus licensed is called the contributor's "contributor version".
|
||
|
||
A contributor's "essential patent claims" are all patent claims
|
||
owned or controlled by the contributor, whether already acquired or
|
||
hereafter acquired, that would be infringed by some manner, permitted
|
||
by this License, of making, using, or selling its contributor version,
|
||
but do not include claims that would be infringed only as a
|
||
consequence of further modification of the contributor version. For
|
||
purposes of this definition, "control" includes the right to grant
|
||
patent sublicenses in a manner consistent with the requirements of
|
||
this License.
|
||
|
||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||
patent license under the contributor's essential patent claims, to
|
||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||
propagate the contents of its contributor version.
|
||
|
||
In the following three paragraphs, a "patent license" is any express
|
||
agreement or commitment, however denominated, not to enforce a patent
|
||
(such as an express permission to practice a patent or covenant not to
|
||
sue for patent infringement). To "grant" such a patent license to a
|
||
party means to make such an agreement or commitment not to enforce a
|
||
patent against the party.
|
||
|
||
If you convey a covered work, knowingly relying on a patent license,
|
||
and the Corresponding Source of the work is not available for anyone
|
||
to copy, free of charge and under the terms of this License, through a
|
||
publicly available network server or other readily accessible means,
|
||
then you must either (1) cause the Corresponding Source to be so
|
||
available, or (2) arrange to deprive yourself of the benefit of the
|
||
patent license for this particular work, or (3) arrange, in a manner
|
||
consistent with the requirements of this License, to extend the patent
|
||
license to downstream recipients. "Knowingly relying" means you have
|
||
actual knowledge that, but for the patent license, your conveying the
|
||
covered work in a country, or your recipient's use of the covered work
|
||
in a country, would infringe one or more identifiable patents in that
|
||
country that you have reason to believe are valid.
|
||
|
||
If, pursuant to or in connection with a single transaction or
|
||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||
covered work, and grant a patent license to some of the parties
|
||
receiving the covered work authorizing them to use, propagate, modify
|
||
or convey a specific copy of the covered work, then the patent license
|
||
you grant is automatically extended to all recipients of the covered
|
||
work and works based on it.
|
||
|
||
A patent license is "discriminatory" if it does not include within
|
||
the scope of its coverage, prohibits the exercise of, or is
|
||
conditioned on the non-exercise of one or more of the rights that are
|
||
specifically granted under this License. You may not convey a covered
|
||
work if you are a party to an arrangement with a third party that is
|
||
in the business of distributing software, under which you make payment
|
||
to the third party based on the extent of your activity of conveying
|
||
the work, and under which the third party grants, to any of the
|
||
parties who would receive the covered work from you, a discriminatory
|
||
patent license (a) in connection with copies of the covered work
|
||
conveyed by you (or copies made from those copies), or (b) primarily
|
||
for and in connection with specific products or compilations that
|
||
contain the covered work, unless you entered into that arrangement,
|
||
or that patent license was granted, prior to 28 March 2007.
|
||
|
||
Nothing in this License shall be construed as excluding or limiting
|
||
any implied license or other defenses to infringement that may
|
||
otherwise be available to you under applicable patent law.
|
||
|
||
12. No Surrender of Others' Freedom.
|
||
|
||
If conditions are imposed on you (whether by court order, agreement or
|
||
otherwise) that contradict the conditions of this License, they do not
|
||
excuse you from the conditions of this License. If you cannot convey a
|
||
covered work so as to satisfy simultaneously your obligations under this
|
||
License and any other pertinent obligations, then as a consequence you may
|
||
not convey it at all. For example, if you agree to terms that obligate you
|
||
to collect a royalty for further conveying from those to whom you convey
|
||
the Program, the only way you could satisfy both those terms and this
|
||
License would be to refrain entirely from conveying the Program.
|
||
|
||
13. Use with the GNU Affero General Public License.
|
||
|
||
Notwithstanding any other provision of this License, you have
|
||
permission to link or combine any covered work with a work licensed
|
||
under version 3 of the GNU Affero General Public License into a single
|
||
combined work, and to convey the resulting work. The terms of this
|
||
License will continue to apply to the part which is the covered work,
|
||
but the special requirements of the GNU Affero General Public License,
|
||
section 13, concerning interaction through a network will apply to the
|
||
combination as such.
|
||
|
||
14. Revised Versions of this License.
|
||
|
||
The Free Software Foundation may publish revised and/or new versions of
|
||
the GNU General Public License from time to time. Such new versions will
|
||
be similar in spirit to the present version, but may differ in detail to
|
||
address new problems or concerns.
|
||
|
||
Each version is given a distinguishing version number. If the
|
||
Program specifies that a certain numbered version of the GNU General
|
||
Public License "or any later version" applies to it, you have the
|
||
option of following the terms and conditions either of that numbered
|
||
version or of any later version published by the Free Software
|
||
Foundation. If the Program does not specify a version number of the
|
||
GNU General Public License, you may choose any version ever published
|
||
by the Free Software Foundation.
|
||
|
||
If the Program specifies that a proxy can decide which future
|
||
versions of the GNU General Public License can be used, that proxy's
|
||
public statement of acceptance of a version permanently authorizes you
|
||
to choose that version for the Program.
|
||
|
||
Later license versions may give you additional or different
|
||
permissions. However, no additional obligations are imposed on any
|
||
author or copyright holder as a result of your choosing to follow a
|
||
later version.
|
||
|
||
15. Disclaimer of Warranty.
|
||
|
||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||
|
||
16. Limitation of Liability.
|
||
|
||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||
SUCH DAMAGES.
|
||
|
||
17. Interpretation of Sections 15 and 16.
|
||
|
||
If the disclaimer of warranty and limitation of liability provided
|
||
above cannot be given local legal effect according to their terms,
|
||
reviewing courts shall apply local law that most closely approximates
|
||
an absolute waiver of all civil liability in connection with the
|
||
Program, unless a warranty or assumption of liability accompanies a
|
||
copy of the Program in return for a fee.
|
||
|
||
END OF TERMS AND CONDITIONS
|
||
|
||
How to Apply These Terms to Your New Programs
|
||
|
||
If you develop a new program, and you want it to be of the greatest
|
||
possible use to the public, the best way to achieve this is to make it
|
||
free software which everyone can redistribute and change under these terms.
|
||
|
||
To do so, attach the following notices to the program. It is safest
|
||
to attach them to the start of each source file to most effectively
|
||
state the exclusion of warranty; and each file should have at least
|
||
the "copyright" line and a pointer to where the full notice is found.
|
||
|
||
<one line to give the program's name and a brief idea of what it does.>
|
||
Copyright (C) <year> <name of author>
|
||
|
||
This program is free software: you can redistribute it and/or modify
|
||
it under the terms of the GNU General Public License as published by
|
||
the Free Software Foundation, either version 3 of the License, or
|
||
(at your option) any later version.
|
||
|
||
This program is distributed in the hope that it will be useful,
|
||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
GNU General Public License for more details.
|
||
|
||
You should have received a copy of the GNU General Public License
|
||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
||
Also add information on how to contact you by electronic and paper mail.
|
||
|
||
If the program does terminal interaction, make it output a short
|
||
notice like this when it starts in an interactive mode:
|
||
|
||
<program> Copyright (C) <year> <name of author>
|
||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||
This is free software, and you are welcome to redistribute it
|
||
under certain conditions; type `show c' for details.
|
||
|
||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||
parts of the General Public License. Of course, your program's commands
|
||
might be different; for a GUI interface, you would use an "about box".
|
||
|
||
You should also get your employer (if you work as a programmer) or school,
|
||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||
For more information on this, and how to apply and follow the GNU GPL, see
|
||
<http://www.gnu.org/licenses/>.
|
||
|
||
The GNU General Public License does not permit incorporating your program
|
||
into proprietary programs. If your program is a subroutine library, you
|
||
may consider it more useful to permit linking proprietary applications with
|
||
the library. If this is what you want to do, use the GNU Lesser General
|
||
Public License instead of this License. But first, please read
|
||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
ETa/ETa-Client/src/main/resources/wsdl/BasicTypes.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" targetNamespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||
|
||
<xs:simpleType name="MimeTypeQualifier">
|
||
<xs:annotation>
|
||
<xs:documentation>The MIME type as defined by IANA. Please refer to
|
||
http://www.iana.org/assignments/media-types/ for a list of types.
|
||
</xs:documentation>
|
||
</xs:annotation>
|
||
<xs:restriction base="xs:string"/>
|
||
</xs:simpleType>
|
||
|
||
<xs:simpleType name="Language">
|
||
<xs:annotation>
|
||
<xs:documentation>ISO 639-2; 1998 representation of Language name. Refer to http://www.loc.gov/standards/iso639-2/iso639jac.html to get the latest version of the standard.
|
||
</xs:documentation>
|
||
</xs:annotation>
|
||
<xs:restriction base="xs:string"/>
|
||
</xs:simpleType>
|
||
</xs:schema>
|
ETa/ETa-Client/src/main/resources/wsdl/BusinessScope.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" targetNamespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||
<xs:complexType name="BusinessScope">
|
||
<xs:sequence>
|
||
<xs:element name="Scope" type="Scope" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
<xs:complexType name="Scope">
|
||
<xs:sequence>
|
||
<xs:group ref="ScopeAttributes"/>
|
||
<xs:element ref="ScopeInformation" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
<xs:group name="ScopeAttributes">
|
||
<xs:sequence>
|
||
<xs:element name="Type" type="xs:string"/>
|
||
<xs:element name="InstanceIdentifier" type="xs:string"/>
|
||
<xs:element name="Identifier" type="xs:string" minOccurs="0"/>
|
||
</xs:sequence>
|
||
</xs:group>
|
||
<xs:element name="ScopeInformation" type="xs:anyType" abstract="true"/>
|
||
<xs:element name="CorrelationInformation" type="CorrelationInformation" substitutionGroup="ScopeInformation"/>
|
||
<xs:complexType name="CorrelationInformation">
|
||
<xs:sequence>
|
||
<xs:element name="RequestingDocumentCreationDateTime" type="xs:dateTime" minOccurs="0"/>
|
||
<xs:element name="RequestingDocumentInstanceIdentifier" type="xs:string" minOccurs="0"/>
|
||
<xs:element name="ExpectedResponseDateTime" type="xs:dateTime" minOccurs="0"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
<xs:element name="BusinessService" type="BusinessService" substitutionGroup="ScopeInformation"/>
|
||
<xs:complexType name="BusinessService">
|
||
<xs:sequence>
|
||
<xs:element name="BusinessServiceName" type="xs:string" minOccurs="0"/>
|
||
<xs:element name="ServiceTransaction" type="ServiceTransaction" minOccurs="0"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
<xs:complexType name="ServiceTransaction">
|
||
<xs:attribute name="TypeOfServiceTransaction" type="TypeOfServiceTransaction" use="optional"/>
|
||
<xs:attribute name="IsNonRepudiationRequired" type="xs:string"/>
|
||
<xs:attribute name="IsAuthenticationRequired" type="xs:string"/>
|
||
<xs:attribute name="IsNonRepudiationOfReceiptRequired" type="xs:string"/>
|
||
<xs:attribute name="IsIntegrityCheckRequired" type="xs:string"/>
|
||
<xs:attribute name="IsApplicationErrorResponseRequested" type="xs:string"/>
|
||
<xs:attribute name="TimeToAcknowledgeReceipt" type="xs:string"/>
|
||
<xs:attribute name="TimeToAcknowledgeAcceptance" type="xs:string"/>
|
||
<xs:attribute name="TimeToPerform" type="xs:string"/>
|
||
<xs:attribute name="Recurrence" type="xs:string"/>
|
||
</xs:complexType>
|
||
<xs:simpleType name="TypeOfServiceTransaction">
|
||
<xs:restriction base="xs:string">
|
||
<xs:enumeration value="RequestingServiceTransaction"/>
|
||
<xs:enumeration value="RespondingServiceTransaction"/>
|
||
</xs:restriction>
|
||
</xs:simpleType>
|
||
</xs:schema>
|
ETa/ETa-Client/src/main/resources/wsdl/DocumentIdentification.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" targetNamespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||
|
||
<xs:complexType name="DocumentIdentification">
|
||
<xs:sequence>
|
||
<xs:element name="Standard" type="xs:string"/>
|
||
<xs:element name="TypeVersion" type="xs:string"/>
|
||
<xs:element name="InstanceIdentifier" type="xs:string"/>
|
||
<xs:element name="Type" type="xs:string"/>
|
||
<xs:element name="MultipleType" type="xs:boolean" minOccurs="0"/>
|
||
<xs:element name="CreationDateAndTime" type="xs:dateTime"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
</xs:schema>
|
ETa/ETa-Client/src/main/resources/wsdl/EPCglobal-epcis-1_0.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xsd:schema xmlns:epcis="urn:epcglobal:epcis:xsd:1" xmlns:sbdh="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" xmlns:epcglobal="urn:epcglobal:xsd:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:epcglobal:epcis:xsd:1" elementFormDefault="unqualified" attributeFormDefault="unqualified" version="1.0">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
<epcglobal:copyright>Copyright (C) 2006, 2005, 2004 EPCglobal Inc., All Rights Reserved.</epcglobal:copyright>
|
||
<epcglobal:disclaimer>EPCglobal Inc., its members, officers, directors, employees, or agents shall not be liable for any injury, loss, damages, financial or otherwise, arising from, related to, or caused by the use of this document. The use of said document shall constitute your express consent to the foregoing exculpation.</epcglobal:disclaimer>
|
||
<epcglobal:specification>EPC INFORMATION SERVICE (EPCIS) Version 1.0</epcglobal:specification>
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:import namespace="urn:epcglobal:xsd:1" schemaLocation="./EPCglobal.xsd"/>
|
||
<xsd:import namespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" schemaLocation="./StandardBusinessDocumentHeader.xsd"/>
|
||
<!-- EPCIS CORE ELEMENTS -->
|
||
<xsd:element name="EPCISDocument" type="epcis:EPCISDocumentType"/>
|
||
<xsd:complexType name="EPCISDocumentType">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
document that contains a Header and a Body.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcglobal:Document">
|
||
<xsd:sequence>
|
||
<xsd:element name="EPCISHeader" type="epcis:EPCISHeaderType" minOccurs="0"/>
|
||
<xsd:element name="EPCISBody" type="epcis:EPCISBodyType"/>
|
||
<xsd:element name="extension" type="epcis:EPCISDocumentExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISHeaderType">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
specific header(s) including the Standard Business Document Header.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:sequence>
|
||
<xsd:element ref="sbdh:StandardBusinessDocumentHeader"/>
|
||
<xsd:element name="extension" type="epcis:EPCISHeaderExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISBodyType">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
specific body that contains EPCIS related Events.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:sequence>
|
||
<xsd:element name="EventList" type="epcis:EventListType" minOccurs="0"/>
|
||
<xsd:element name="extension" type="epcis:EPCISBodyExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<!-- EPCIS CORE ELEMENT TYPES -->
|
||
<xsd:complexType name="EventListType">
|
||
<xsd:choice minOccurs="0" maxOccurs="unbounded">
|
||
<xsd:element name="ObjectEvent" type="epcis:ObjectEventType" minOccurs="0" maxOccurs="unbounded"/>
|
||
<xsd:element name="AggregationEvent" type="epcis:AggregationEventType" minOccurs="0" maxOccurs="unbounded"/>
|
||
<xsd:element name="QuantityEvent" type="epcis:QuantityEventType" minOccurs="0" maxOccurs="unbounded"/>
|
||
<xsd:element name="TransactionEvent" type="epcis:TransactionEventType" minOccurs="0" maxOccurs="unbounded"/>
|
||
<xsd:element name="extension" type="epcis:EPCISEventListExtensionType"/>
|
||
<xsd:any namespace="##other" processContents="lax"/>
|
||
</xsd:choice>
|
||
<!-- Note: the use of "unbounded" in both the xsd:choice element
|
||
and the enclosed xsd:element elements is, strictly speaking,
|
||
redundant. However, this was found to avoid problems with
|
||
certain XML processing tools, and so is retained here.
|
||
-->
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCListType">
|
||
<xsd:sequence>
|
||
<xsd:element name="epc" type="epcglobal:EPC" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:simpleType name="ActionType">
|
||
<xsd:restriction base="xsd:string">
|
||
<xsd:enumeration value="ADD"/>
|
||
<xsd:enumeration value="OBSERVE"/>
|
||
<xsd:enumeration value="DELETE"/>
|
||
</xsd:restriction>
|
||
</xsd:simpleType>
|
||
<xsd:simpleType name="ParentIDType">
|
||
<xsd:restriction base="xsd:anyURI"/>
|
||
</xsd:simpleType>
|
||
<!-- Standard Vocabulary -->
|
||
<xsd:simpleType name="BusinessStepIDType">
|
||
<xsd:restriction base="xsd:anyURI"/>
|
||
</xsd:simpleType>
|
||
<!-- Standard Vocabulary -->
|
||
<xsd:simpleType name="DispositionIDType">
|
||
<xsd:restriction base="xsd:anyURI"/>
|
||
</xsd:simpleType>
|
||
<!-- User Vocabulary -->
|
||
<xsd:simpleType name="EPCClassType">
|
||
<xsd:restriction base="xsd:anyURI"/>
|
||
</xsd:simpleType>
|
||
<!-- User Vocabulary -->
|
||
<xsd:simpleType name="ReadPointIDType">
|
||
<xsd:restriction base="xsd:anyURI"/>
|
||
</xsd:simpleType>
|
||
<xsd:complexType name="ReadPointType">
|
||
<xsd:sequence>
|
||
<xsd:element name="id" type="epcis:ReadPointIDType"/>
|
||
<xsd:element name="extension" type="epcis:ReadPointExtensionType" minOccurs="0"/>
|
||
<!-- The wildcard below provides the extension mechanism described in Section 9.4 -->
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="ReadPointExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<!-- User Vocabulary -->
|
||
<xsd:simpleType name="BusinessLocationIDType">
|
||
<xsd:restriction base="xsd:anyURI"/>
|
||
</xsd:simpleType>
|
||
<xsd:complexType name="BusinessLocationType">
|
||
<xsd:sequence>
|
||
<xsd:element name="id" type="epcis:BusinessLocationIDType"/>
|
||
<xsd:element name="extension" type="epcis:BusinessLocationExtensionType" minOccurs="0"/>
|
||
<!-- The wildcard below provides the extension mechanism described in Section 9.4 -->
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="BusinessLocationExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<!-- User Vocabulary -->
|
||
<xsd:simpleType name="BusinessTransactionIDType">
|
||
<xsd:restriction base="xsd:anyURI"/>
|
||
</xsd:simpleType>
|
||
<!-- Standard Vocabulary -->
|
||
<xsd:simpleType name="BusinessTransactionTypeIDType">
|
||
<xsd:restriction base="xsd:anyURI"/>
|
||
</xsd:simpleType>
|
||
<xsd:complexType name="BusinessTransactionType">
|
||
<xsd:simpleContent>
|
||
<xsd:extension base="epcis:BusinessTransactionIDType">
|
||
<xsd:attribute name="type" type="epcis:BusinessTransactionTypeIDType" use="optional"/>
|
||
</xsd:extension>
|
||
</xsd:simpleContent>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="BusinessTransactionListType">
|
||
<xsd:sequence>
|
||
<xsd:element name="bizTransaction" type="epcis:BusinessTransactionType" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<!-- items listed alphabetically by name -->
|
||
<!-- Some element types accommodate extensibility in the manner of
|
||
"Versioning XML Vocabularies" by David Orchard (see
|
||
http://www.xml.com/pub/a/2003/12/03/versioning.html).
|
||
|
||
In this approach, an optional <extension> element is defined
|
||
for each extensible element type, where an <extension> element
|
||
may contain future elements defined in the target namespace.
|
||
|
||
In addition to the optional <extension> element, extensible element
|
||
types are declared with a final xsd:any wildcard to accommodate
|
||
future elements defined by third parties (as denoted by the ##other
|
||
namespace).
|
||
|
||
Finally, the xsd:anyAttribute facility is used to allow arbitrary
|
||
attributes to be added to extensible element types. -->
|
||
<xsd:complexType name="EPCISEventType" abstract="true">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
base type for all EPCIS events.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:sequence>
|
||
<xsd:element name="eventTime" type="xsd:dateTime"/>
|
||
<xsd:element name="recordTime" type="xsd:dateTime" minOccurs="0"/>
|
||
<xsd:element name="eventTimeZoneOffset" type="xsd:string"/>
|
||
<xsd:element name="baseExtension" type="epcis:EPCISEventExtensionType" minOccurs="0"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="ObjectEventType">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
Object Event captures information about an event pertaining to one or more
|
||
objects identified by EPCs.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcis:EPCISEventType">
|
||
<xsd:sequence>
|
||
<xsd:element name="epcList" type="epcis:EPCListType"/>
|
||
<xsd:element name="action" type="epcis:ActionType"/>
|
||
<xsd:element name="bizStep" type="epcis:BusinessStepIDType" minOccurs="0"/>
|
||
<xsd:element name="disposition" type="epcis:DispositionIDType" minOccurs="0"/>
|
||
<xsd:element name="readPoint" type="epcis:ReadPointType" minOccurs="0"/>
|
||
<xsd:element name="bizLocation" type="epcis:BusinessLocationType" minOccurs="0"/>
|
||
<xsd:element name="bizTransactionList" type="epcis:BusinessTransactionListType" minOccurs="0"/>
|
||
<xsd:element name="extension" type="epcis:ObjectEventExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="AggregationEventType">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
Aggregation Event captures an event that applies to objects that
|
||
have a physical association with one another.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcis:EPCISEventType">
|
||
<xsd:sequence>
|
||
<xsd:element name="parentID" type="epcis:ParentIDType" minOccurs="0"/>
|
||
<xsd:element name="childEPCs" type="epcis:EPCListType"/>
|
||
<xsd:element name="action" type="epcis:ActionType"/>
|
||
<xsd:element name="bizStep" type="epcis:BusinessStepIDType" minOccurs="0"/>
|
||
<xsd:element name="disposition" type="epcis:DispositionIDType" minOccurs="0"/>
|
||
<xsd:element name="readPoint" type="epcis:ReadPointType" minOccurs="0"/>
|
||
<xsd:element name="bizLocation" type="epcis:BusinessLocationType" minOccurs="0"/>
|
||
<xsd:element name="bizTransactionList" type="epcis:BusinessTransactionListType" minOccurs="0"/>
|
||
<xsd:element name="extension" type="epcis:AggregationEventExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="QuantityEventType">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
Quantity Event captures an event that takes place with respect to a specified quantity of
|
||
object class.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcis:EPCISEventType">
|
||
<xsd:sequence>
|
||
<xsd:element name="epcClass" type="epcis:EPCClassType"/>
|
||
<xsd:element name="quantity" type="xsd:int"/>
|
||
<xsd:element name="bizStep" type="epcis:BusinessStepIDType" minOccurs="0"/>
|
||
<xsd:element name="disposition" type="epcis:DispositionIDType" minOccurs="0"/>
|
||
<xsd:element name="readPoint" type="epcis:ReadPointType" minOccurs="0"/>
|
||
<xsd:element name="bizLocation" type="epcis:BusinessLocationType" minOccurs="0"/>
|
||
<xsd:element name="bizTransactionList" type="epcis:BusinessTransactionListType" minOccurs="0"/>
|
||
<xsd:element name="extension" type="epcis:QuantityEventExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="TransactionEventType">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
Transaction Event describes the association or disassociation of physical objects to one or more business
|
||
transactions.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcis:EPCISEventType">
|
||
<xsd:sequence>
|
||
<xsd:element name="bizTransactionList" type="epcis:BusinessTransactionListType"/>
|
||
<xsd:element name="parentID" type="epcis:ParentIDType" minOccurs="0"/>
|
||
<xsd:element name="epcList" type="epcis:EPCListType"/>
|
||
<xsd:element name="action" type="epcis:ActionType"/>
|
||
<xsd:element name="bizStep" type="epcis:BusinessStepIDType" minOccurs="0"/>
|
||
<xsd:element name="disposition" type="epcis:DispositionIDType" minOccurs="0"/>
|
||
<xsd:element name="readPoint" type="epcis:ReadPointType" minOccurs="0"/>
|
||
<xsd:element name="bizLocation" type="epcis:BusinessLocationType" minOccurs="0"/>
|
||
<xsd:element name="extension" type="epcis:TransactionEventExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISDocumentExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISHeaderExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISBodyExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISEventListExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISEventExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="ObjectEventExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="AggregationEventExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="QuantityEventExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="TransactionEventExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
</xsd:schema>
|
ETa/ETa-Client/src/main/resources/wsdl/EPCglobal-epcis-masterdata-1_0.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xsd:schema xmlns:epcismd="urn:epcglobal:epcis-masterdata:xsd:1" xmlns:sbdh="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" xmlns:epcglobal="urn:epcglobal:xsd:1" xmlns:epcis="urn:epcglobal:epcis:xsd:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:epcglobal:epcis-masterdata:xsd:1" elementFormDefault="unqualified" attributeFormDefault="unqualified" version="1.0">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
<epcglobal:copyright>Copyright (C) 2006, 2005, 2004 EPCglobal Inc., All Rights Reserved.</epcglobal:copyright>
|
||
<epcglobal:disclaimer>EPCglobal Inc., its members, officers, directors, employees, or agents shall not be liable for any injury, loss, damages, financial or otherwise, arising from, related to, or caused by the use of this document. The use of said document shall constitute your express consent to the foregoing exculpation.</epcglobal:disclaimer>
|
||
<epcglobal:specification>EPC INFORMATION SERVICE (EPCIS) Version 1.0</epcglobal:specification>
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:import namespace="urn:epcglobal:xsd:1" schemaLocation="./EPCglobal.xsd"/>
|
||
<xsd:import namespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" schemaLocation="./StandardBusinessDocumentHeader.xsd"/>
|
||
<xsd:import namespace="urn:epcglobal:epcis:xsd:1" schemaLocation="./EPCglobal-epcis-1_0.xsd"/>
|
||
<!-- MasterData CORE ELEMENTS -->
|
||
<xsd:element name="EPCISMasterDataDocument" type="epcismd:EPCISMasterDataDocumentType"/>
|
||
<xsd:complexType name="EPCISMasterDataDocumentType">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
MasterData document that contains a Header and a Body.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcglobal:Document">
|
||
<xsd:sequence>
|
||
<xsd:element name="EPCISHeader" type="epcis:EPCISHeaderType" minOccurs="0"/>
|
||
<xsd:element name="EPCISBody" type="epcismd:EPCISMasterDataBodyType"/>
|
||
<xsd:element name="extension" type="epcismd:EPCISMasterDataDocumentExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISMasterDataBodyType">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
MasterData specific body that contains Vocabularies.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:sequence>
|
||
<xsd:element name="VocabularyList" type="epcismd:VocabularyListType" minOccurs="0"/>
|
||
<xsd:element name="extension" type="epcismd:EPCISMasterDataBodyExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<!-- MasterData CORE ELEMENT TYPES -->
|
||
<xsd:complexType name="VocabularyListType">
|
||
<xsd:sequence>
|
||
<xsd:element name="Vocabulary" type="epcismd:VocabularyType" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="VocabularyType">
|
||
<xsd:sequence>
|
||
<xsd:element name="VocabularyElementList" type="epcismd:VocabularyElementListType" minOccurs="0"/>
|
||
<xsd:element name="extension" type="epcismd:VocabularyExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:attribute name="type" type="xsd:anyURI" use="required"/>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="VocabularyElementListType">
|
||
<xsd:sequence>
|
||
<xsd:element name="VocabularyElement" type="epcismd:VocabularyElementType" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<!-- Implementations SHALL treat a <children list containing zero elements
|
||
in the same way as if the <children> element were omitted altogether.
|
||
-->
|
||
<xsd:complexType name="VocabularyElementType">
|
||
<xsd:sequence>
|
||
<xsd:element name="attribute" type="epcismd:AttributeType" minOccurs="0" maxOccurs="unbounded"/>
|
||
<xsd:element name="children" type="epcismd:IDListType" minOccurs="0"/>
|
||
<xsd:element name="extension" type="epcismd:VocabularyElementExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:attribute name="id" type="xsd:anyURI" use="required"/>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="AttributeType">
|
||
<xsd:complexContent mixed="true">
|
||
<xsd:extension base="xsd:anyType">
|
||
<xsd:attribute name="id" type="xsd:anyURI" use="required"/>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="IDListType">
|
||
<xsd:sequence>
|
||
<xsd:element name="id" type="xsd:anyURI" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISMasterDataDocumentExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISMasterDataHeaderExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISMasterDataBodyExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="VocabularyExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="VocabularyElementExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
</xsd:schema>
|
ETa/ETa-Client/src/main/resources/wsdl/EPCglobal-epcis-query-1_0.wsdl | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<!-- EPCIS QUERY SERVICE DEFINITIONS -->
|
||
<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:epcis="urn:epcglobal:epcis:xsd:1" xmlns:epcisq="urn:epcglobal:epcis-query:xsd:1" xmlns:epcglobal="urn:epcglobal:xsd:1" xmlns:impl="urn:epcglobal:epcis:wsdl:1" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:epcglobal:epcis:wsdl:1">
|
||
<wsdl:documentation>
|
||
<epcglobal:copyright>
|
||
Copyright (C) 2006, 2005 EPCglobal Inc., All Rights Reserved.
|
||
</epcglobal:copyright>
|
||
<epcglobal:disclaimer>
|
||
EPCglobal Inc., its members, officers, directors, employees, or agents shall not be liable for any injury, loss, damages, financial or otherwise, arising from, related to, or caused by the use of this document. The use of said document shall constitute your express consent to the foregoing exculpation.
|
||
</epcglobal:disclaimer>
|
||
<epcglobal:specification>
|
||
</epcglobal:specification>
|
||
</wsdl:documentation>
|
||
<wsdl:types>
|
||
<xsd:schema targetNamespace="urn:epcglobal:epcis:wsdl:1" xmlns:impl="urn:epcglobal:epcis:wsdl:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||
<xsd:import namespace="urn:epcglobal:xsd:1" schemaLocation="EPCglobal.xsd"/>
|
||
<xsd:import namespace="urn:epcglobal:epcis:xsd:1" schemaLocation="EPCglobal-epcis-1_0.xsd"/>
|
||
<xsd:import namespace="urn:epcglobal:epcis-query:xsd:1" schemaLocation="EPCglobal-epcis-query-1_0.xsd"/>
|
||
</xsd:schema>
|
||
</wsdl:types>
|
||
<wsdl:message name="getQueryNamesRequest">
|
||
<wsdl:part name="parms" element="epcisq:GetQueryNames"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="getQueryNamesResponse">
|
||
<wsdl:part name="getQueryNamesReturn" element="epcisq:GetQueryNamesResult"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="subscribeRequest">
|
||
<wsdl:part name="parms" element="epcisq:Subscribe"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="subscribeResponse">
|
||
<wsdl:part name="subscribeReturn" element="epcisq:SubscribeResult"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="unsubscribeRequest">
|
||
<wsdl:part name="parms" element="epcisq:Unsubscribe"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="unsubscribeResponse">
|
||
<wsdl:part name="unsubscribeReturn" element="epcisq:UnsubscribeResult"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="getSubscriptionIDsRequest">
|
||
<wsdl:part name="parms" element="epcisq:GetSubscriptionIDs"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="getSubscriptionIDsResponse">
|
||
<wsdl:part name="getSubscriptionIDsReturn" element="epcisq:GetSubscriptionIDsResult"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="pollRequest">
|
||
<wsdl:part name="parms" element="epcisq:Poll"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="pollResponse">
|
||
<wsdl:part name="pollReturn" element="epcisq:QueryResults"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="getStandardVersionRequest">
|
||
<wsdl:part name="parms" element="epcisq:GetStandardVersion"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="getStandardVersionResponse">
|
||
<wsdl:part name="getStandardVersionReturn" element="epcisq:GetStandardVersionResult"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="getVendorVersionRequest">
|
||
<wsdl:part name="parms" element="epcisq:GetVendorVersion"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="getVendorVersionResponse">
|
||
<wsdl:part name="getVendorVersionReturn" element="epcisq:GetVendorVersionResult"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="DuplicateNameExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:DuplicateNameException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="InvalidURIExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:InvalidURIException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="NoSuchNameExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:NoSuchNameException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="NoSuchSubscriptionExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:NoSuchSubscriptionException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="DuplicateSubscriptionExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:DuplicateSubscriptionException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="QueryParameterExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:QueryParameterException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="QueryTooLargeExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:QueryTooLargeException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="QueryTooComplexExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:QueryTooComplexException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="SubscriptionControlsExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:SubscriptionControlsException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="SubscribeNotPermittedExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:SubscribeNotPermittedException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="SecurityExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:SecurityException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="ValidationExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:ValidationException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="ImplementationExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:ImplementationException"/>
|
||
</wsdl:message>
|
||
<wsdl:portType name="EPCISServicePortType">
|
||
<wsdl:operation name="getQueryNames">
|
||
<wsdl:input name="getQueryNamesRequest" message="impl:getQueryNamesRequest"/>
|
||
<wsdl:output name="getQueryNamesResponse" message="impl:getQueryNamesResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="subscribe">
|
||
<wsdl:input name="subscribeRequest" message="impl:subscribeRequest"/>
|
||
<wsdl:output name="subscribeResponse" message="impl:subscribeResponse"/>
|
||
<wsdl:fault name="NoSuchNameExceptionFault" message="impl:NoSuchNameExceptionResponse"/>
|
||
<wsdl:fault name="InvalidURIExceptionFault" message="impl:InvalidURIExceptionResponse"/>
|
||
<wsdl:fault name="DuplicateSubscriptionExceptionFault" message="impl:DuplicateSubscriptionExceptionResponse"/>
|
||
<wsdl:fault name="QueryParameterExceptionFault" message="impl:QueryParameterExceptionResponse"/>
|
||
<wsdl:fault name="QueryTooComplexExceptionFault" message="impl:QueryTooComplexExceptionResponse"/>
|
||
<wsdl:fault name="SubscriptionControlsExceptionFault" message="impl:SubscriptionControlsExceptionResponse"/>
|
||
<wsdl:fault name="SubscribeNotPermittedExceptionFault" message="impl:SubscribeNotPermittedExceptionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="unsubscribe">
|
||
<wsdl:input name="unsubscribeRequest" message="impl:unsubscribeRequest"/>
|
||
<wsdl:output name="unsubscribeResponse" message="impl:unsubscribeResponse"/>
|
||
<wsdl:fault name="NoSuchSubscriptionExceptionFault" message="impl:NoSuchSubscriptionExceptionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="getSubscriptionIDs">
|
||
<wsdl:input name="getSubscriptionIDsRequest" message="impl:getSubscriptionIDsRequest"/>
|
||
<wsdl:output name="getSubscriptionIDsResponse" message="impl:getSubscriptionIDsResponse"/>
|
||
<wsdl:fault name="NoSuchNameExceptionFault" message="impl:NoSuchNameExceptionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="poll">
|
||
<wsdl:input name="pollRequest" message="impl:pollRequest"/>
|
||
<wsdl:output name="pollResponse" message="impl:pollResponse"/>
|
||
<wsdl:fault name="QueryParameterExceptionFault" message="impl:QueryParameterExceptionResponse"/>
|
||
<wsdl:fault name="QueryTooLargeExceptionFault" message="impl:QueryTooLargeExceptionResponse"/>
|
||
<wsdl:fault name="QueryTooComplexExceptionFault" message="impl:QueryTooComplexExceptionResponse"/>
|
||
<wsdl:fault name="NoSuchNameExceptionFault" message="impl:NoSuchNameExceptionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="getStandardVersion">
|
||
<wsdl:input name="getStandardVersionRequest" message="impl:getStandardVersionRequest"/>
|
||
<wsdl:output name="getStandardVersionResponse" message="impl:getStandardVersionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="getVendorVersion">
|
||
<wsdl:input name="getVendorVersionRequest" message="impl:getVendorVersionRequest"/>
|
||
<wsdl:output name="getVendorVersionResponse" message="impl:getVendorVersionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
</wsdl:portType>
|
||
<wsdl:binding name="EPCISServiceBinding" type="impl:EPCISServicePortType">
|
||
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
||
<wsdl:operation name="getQueryNames">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="subscribe">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="NoSuchNameExceptionFault">
|
||
<wsdlsoap:fault name="NoSuchNameExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="InvalidURIExceptionFault">
|
||
<wsdlsoap:fault name="InvalidURIExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="DuplicateSubscriptionExceptionFault">
|
||
<wsdlsoap:fault name="DuplicateSubscriptionExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="QueryParameterExceptionFault">
|
||
<wsdlsoap:fault name="QueryParameterExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="QueryTooComplexExceptionFault">
|
||
<wsdlsoap:fault name="QueryTooComplexExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SubscribeNotPermittedExceptionFault">
|
||
<wsdlsoap:fault name="SubscribeNotPermittedExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SubscriptionControlsExceptionFault">
|
||
<wsdlsoap:fault name="SubscriptionControlsExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="unsubscribe">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="NoSuchSubscriptionExceptionFault">
|
||
<wsdlsoap:fault name="NoSuchSubscriptionExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="getSubscriptionIDs">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="NoSuchNameExceptionFault">
|
||
<wsdlsoap:fault name="NoSuchNameExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="poll">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="QueryParameterExceptionFault">
|
||
<wsdlsoap:fault name="QueryParameterExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="QueryTooComplexExceptionFault">
|
||
<wsdlsoap:fault name="QueryTooComplexExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="QueryTooLargeExceptionFault">
|
||
<wsdlsoap:fault name="QueryTooLargeExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="NoSuchNameExceptionFault">
|
||
<wsdlsoap:fault name="NoSuchNameExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="getStandardVersion">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="getVendorVersion">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
</wsdl:binding>
|
||
<wsdl:service name="EPCglobalEPCISService">
|
||
<wsdl:port name="EPCglobalEPCISServicePort" binding="impl:EPCISServiceBinding">
|
||
<!-- The address shown below is an example (default); an implementation MAY specify any port it wishes -->
|
||
<wsdlsoap:address location="http://localhost:8080/eta/query"/>
|
||
</wsdl:port>
|
||
</wsdl:service>
|
||
<!-- EPCISSERVICE TYPES -->
|
||
<!-- EPCIS QUERY SERVICE MESSAGES -->
|
||
<!-- EPCISSERVICE FAULT EXCEPTIONS -->
|
||
<!-- QueryValidationException not implemented in EPCIS 1.0
|
||
<wsdl:message name="QueryValidationExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:QueryValidationException"/>
|
||
</wsdl:message>
|
||
-->
|
||
<!-- EPCISSERVICE PORTTYPE -->
|
||
<!-- EPCISSERVICE BINDING -->
|
||
<!-- EPCISSERVICE -->
|
||
</wsdl:definitions>
|
ETa/ETa-Client/src/main/resources/wsdl/EPCglobal-epcis-query-1_0.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xsd:schema xmlns:epcis="urn:epcglobal:epcis:xsd:1" xmlns:epcismd="urn:epcglobal:epcis-masterdata:xsd:1" xmlns:epcisq="urn:epcglobal:epcis-query:xsd:1" xmlns:epcglobal="urn:epcglobal:xsd:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:epcglobal:epcis-query:xsd:1" elementFormDefault="unqualified" attributeFormDefault="unqualified" version="1.0">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
<epcglobal:copyright>
|
||
Copyright (C) 2006, 2005 EPCglobal Inc., All Rights Reserved.
|
||
</epcglobal:copyright>
|
||
<epcglobal:disclaimer>
|
||
EPCglobal Inc., its members, officers, directors, employees, or
|
||
agents shall not be liable for any injury, loss, damages, financial
|
||
or otherwise, arising from, related to, or caused by the use of
|
||
this document. The use of said document shall constitute your
|
||
express consent to the foregoing exculpation.
|
||
</epcglobal:disclaimer>
|
||
<epcglobal:specification>
|
||
EPCIS Query 1.0
|
||
</epcglobal:specification>
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:import namespace="urn:epcglobal:xsd:1" schemaLocation="./EPCglobal.xsd"/>
|
||
<xsd:import namespace="urn:epcglobal:epcis:xsd:1" schemaLocation="./EPCglobal-epcis-1_0.xsd"/>
|
||
<xsd:import namespace="urn:epcglobal:epcis-masterdata:xsd:1" schemaLocation="./EPCglobal-epcis-masterdata-1_0.xsd"/>
|
||
<xsd:element name="EPCISQueryDocument" type="epcisq:EPCISQueryDocumentType"/>
|
||
<xsd:complexType name="EPCISQueryDocumentType">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcglobal:Document">
|
||
<xsd:sequence>
|
||
<xsd:element name="EPCISHeader" type="epcis:EPCISHeaderType" minOccurs="0"/>
|
||
<xsd:element name="EPCISBody" type="epcisq:EPCISQueryBodyType"/>
|
||
<xsd:element name="extension" type="epcisq:EPCISQueryDocumentExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISQueryDocumentExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISQueryBodyType">
|
||
<xsd:choice>
|
||
<xsd:element ref="epcisq:GetQueryNames"/>
|
||
<xsd:element ref="epcisq:GetQueryNamesResult"/>
|
||
<xsd:element ref="epcisq:Subscribe"/>
|
||
<xsd:element ref="epcisq:SubscribeResult"/>
|
||
<xsd:element ref="epcisq:Unsubscribe"/>
|
||
<xsd:element ref="epcisq:UnsubscribeResult"/>
|
||
<xsd:element ref="epcisq:GetSubscriptionIDs"/>
|
||
<xsd:element ref="epcisq:GetSubscriptionIDsResult"/>
|
||
<xsd:element ref="epcisq:Poll"/>
|
||
<xsd:element ref="epcisq:GetStandardVersion"/>
|
||
<xsd:element ref="epcisq:GetStandardVersionResult"/>
|
||
<xsd:element ref="epcisq:GetVendorVersion"/>
|
||
<xsd:element ref="epcisq:GetVendorVersionResult"/>
|
||
<xsd:element ref="epcisq:DuplicateNameException"/>
|
||
<!-- queryValidationException unimplemented in EPCIS 1.0
|
||
<xsd:element ref="epcisq:QueryValidationException"/>
|
||
-->
|
||
<xsd:element ref="epcisq:InvalidURIException"/>
|
||
<xsd:element ref="epcisq:NoSuchNameException"/>
|
||
<xsd:element ref="epcisq:NoSuchSubscriptionException"/>
|
||
<xsd:element ref="epcisq:DuplicateSubscriptionException"/>
|
||
<xsd:element ref="epcisq:QueryParameterException"/>
|
||
<xsd:element ref="epcisq:QueryTooLargeException"/>
|
||
<xsd:element ref="epcisq:QueryTooComplexException"/>
|
||
<xsd:element ref="epcisq:SubscriptionControlsException"/>
|
||
<xsd:element ref="epcisq:SubscribeNotPermittedException"/>
|
||
<xsd:element ref="epcisq:SecurityException"/>
|
||
<xsd:element ref="epcisq:ValidationException"/>
|
||
<xsd:element ref="epcisq:ImplementationException"/>
|
||
<xsd:element ref="epcisq:QueryResults"/>
|
||
</xsd:choice>
|
||
</xsd:complexType>
|
||
<!-- EPCISSERVICE MESSAGE WRAPPERS -->
|
||
<xsd:element name="GetQueryNames" type="epcisq:EmptyParms"/>
|
||
<xsd:element name="GetQueryNamesResult" type="epcisq:ArrayOfString"/>
|
||
<xsd:element name="Subscribe" type="epcisq:Subscribe"/>
|
||
<xsd:complexType name="Subscribe">
|
||
<xsd:sequence>
|
||
<xsd:element name="queryName" type="xsd:string"/>
|
||
<xsd:element name="params" type="epcisq:QueryParams"/>
|
||
<xsd:element name="dest" type="xsd:anyURI"/>
|
||
<xsd:element name="controls" type="epcisq:SubscriptionControls"/>
|
||
<xsd:element name="subscriptionID" type="xsd:string"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:element name="SubscribeResult" type="epcisq:VoidHolder"/>
|
||
<xsd:element name="Unsubscribe" type="epcisq:Unsubscribe"/>
|
||
<xsd:complexType name="Unsubscribe">
|
||
<xsd:sequence>
|
||
<xsd:element name="subscriptionID" type="xsd:string"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:element name="UnsubscribeResult" type="epcisq:VoidHolder"/>
|
||
<xsd:element name="GetSubscriptionIDs" type="epcisq:GetSubscriptionIDs"/>
|
||
<xsd:complexType name="GetSubscriptionIDs">
|
||
<xsd:sequence>
|
||
<xsd:element name="queryName" type="xsd:string"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:element name="GetSubscriptionIDsResult" type="epcisq:ArrayOfString"/>
|
||
<xsd:element name="Poll" type="epcisq:Poll"/>
|
||
<xsd:complexType name="Poll">
|
||
<xsd:sequence>
|
||
<xsd:element name="queryName" type="xsd:string"/>
|
||
<xsd:element name="params" type="epcisq:QueryParams"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<!-- The response from a Poll method is the QueryResults element, defined below.
|
||
The QueryResults element is also used to deliver standing query results
|
||
through the Query Callback Interface -->
|
||
<xsd:element name="GetStandardVersion" type="epcisq:EmptyParms"/>
|
||
<xsd:element name="GetStandardVersionResult" type="xsd:string"/>
|
||
<xsd:element name="GetVendorVersion" type="epcisq:EmptyParms"/>
|
||
<xsd:element name="GetVendorVersionResult" type="xsd:string"/>
|
||
<xsd:element name="VoidHolder" type="epcisq:VoidHolder"/>
|
||
<xsd:complexType name="VoidHolder">
|
||
<xsd:sequence/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EmptyParms"/>
|
||
<xsd:complexType name="ArrayOfString">
|
||
<xsd:sequence>
|
||
<xsd:element name="string" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="SubscriptionControls">
|
||
<xsd:sequence>
|
||
<xsd:element name="schedule" type="epcisq:QuerySchedule" minOccurs="0"/>
|
||
<xsd:element name="trigger" type="xsd:anyURI" minOccurs="0"/>
|
||
<xsd:element name="initialRecordTime" type="xsd:dateTime" minOccurs="0"/>
|
||
<xsd:element name="reportIfEmpty" type="xsd:boolean"/>
|
||
<xsd:element name="extension" type="epcisq:SubscriptionControlsExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="SubscriptionControlsExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="QuerySchedule">
|
||
<xsd:sequence>
|
||
<xsd:element name="second" type="xsd:string" minOccurs="0"/>
|
||
<xsd:element name="minute" type="xsd:string" minOccurs="0"/>
|
||
<xsd:element name="hour" type="xsd:string" minOccurs="0"/>
|
||
<xsd:element name="dayOfMonth" type="xsd:string" minOccurs="0"/>
|
||
<xsd:element name="month" type="xsd:string" minOccurs="0"/>
|
||
<xsd:element name="dayOfWeek" type="xsd:string" minOccurs="0"/>
|
||
<xsd:element name="extension" type="epcisq:QueryScheduleExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="QueryScheduleExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="QueryParams">
|
||
<xsd:sequence>
|
||
<xsd:element name="param" type="epcisq:QueryParam" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="QueryParam">
|
||
<xsd:sequence>
|
||
<xsd:element name="name" type="xsd:string"/>
|
||
<!-- See note in EPCIS spec text regarding the value for this element -->
|
||
<xsd:element name="value" type="xsd:anyType"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:element name="QueryResults" type="epcisq:QueryResults"/>
|
||
<xsd:complexType name="QueryResults">
|
||
<xsd:sequence>
|
||
<xsd:element name="queryName" type="xsd:string"/>
|
||
<xsd:element name="subscriptionID" type="xsd:string" minOccurs="0"/>
|
||
<xsd:element name="resultsBody" type="epcisq:QueryResultsBody"/>
|
||
<xsd:element name="extension" type="epcisq:QueryResultsExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="QueryResultsExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="QueryResultsBody">
|
||
<xsd:choice>
|
||
<xsd:element name="EventList" type="epcis:EventListType"/>
|
||
<xsd:element name="VocabularyList" type="epcismd:VocabularyListType"/>
|
||
</xsd:choice>
|
||
</xsd:complexType>
|
||
<!-- EPCIS EXCEPTIONS -->
|
||
<xsd:element name="EPCISException" type="epcisq:EPCISException"/>
|
||
<xsd:complexType name="EPCISException">
|
||
<xsd:sequence>
|
||
<xsd:element name="reason" type="xsd:string"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:element name="DuplicateNameException" type="epcisq:DuplicateNameException"/>
|
||
<xsd:complexType name="DuplicateNameException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<!-- QueryValidationException not implemented in EPCIS 1.0
|
||
<xsd:element name="QueryValidationException" type="epcisq:QueryValidationException"/>
|
||
<xsd:complexType name="QueryValidationException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
-->
|
||
<xsd:element name="InvalidURIException" type="epcisq:InvalidURIException"/>
|
||
<xsd:complexType name="InvalidURIException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="NoSuchNameException" type="epcisq:NoSuchNameException"/>
|
||
<xsd:complexType name="NoSuchNameException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="NoSuchSubscriptionException" type="epcisq:NoSuchSubscriptionException"/>
|
||
<xsd:complexType name="NoSuchSubscriptionException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="DuplicateSubscriptionException" type="epcisq:DuplicateSubscriptionException"/>
|
||
<xsd:complexType name="DuplicateSubscriptionException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="QueryParameterException" type="epcisq:QueryParameterException"/>
|
||
<xsd:complexType name="QueryParameterException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="QueryTooLargeException" type="epcisq:QueryTooLargeException"/>
|
||
<xsd:complexType name="QueryTooLargeException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence>
|
||
<xsd:element name="queryName" type="xsd:string" minOccurs="0"/>
|
||
<xsd:element name="subscriptionID" type="xsd:string" minOccurs="0"/>
|
||
</xsd:sequence>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="QueryTooComplexException" type="epcisq:QueryTooComplexException"/>
|
||
<xsd:complexType name="QueryTooComplexException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="SubscriptionControlsException" type="epcisq:SubscriptionControlsException"/>
|
||
<xsd:complexType name="SubscriptionControlsException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="SubscribeNotPermittedException" type="epcisq:SubscribeNotPermittedException"/>
|
||
<xsd:complexType name="SubscribeNotPermittedException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="SecurityException" type="epcisq:SecurityException"/>
|
||
<xsd:complexType name="SecurityException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="ValidationException" type="epcisq:ValidationException"/>
|
||
<xsd:complexType name="ValidationException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="ImplementationException" type="epcisq:ImplementationException"/>
|
||
<xsd:complexType name="ImplementationException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence>
|
||
<xsd:element name="severity" type="epcisq:ImplementationExceptionSeverity"/>
|
||
<xsd:element name="queryName" type="xsd:string" minOccurs="0"/>
|
||
<xsd:element name="subscriptionID" type="xsd:string" minOccurs="0"/>
|
||
</xsd:sequence>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:simpleType name="ImplementationExceptionSeverity">
|
||
<xsd:restriction base="xsd:NCName">
|
||
<xsd:enumeration value="ERROR"/>
|
||
<xsd:enumeration value="SEVERE"/>
|
||
</xsd:restriction>
|
||
</xsd:simpleType>
|
||
</xsd:schema>
|
ETa/ETa-Client/src/main/resources/wsdl/EPCglobal.xsd | ||
---|---|---|
<xsd:schema xmlns:epcglobal="urn:epcglobal:xsd:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:epcglobal:xsd:1" elementFormDefault="unqualified" attributeFormDefault="unqualified" version="1.0">
|
||
<xsd:annotation>
|
||
<xsd:documentation>
|
||
<epcglobal:copyright>Copyright (C) 2004 Epcglobal Inc., All Rights Reserved.</epcglobal:copyright>
|
||
<epcglobal:disclaimer>EPCglobal Inc., its members, officers, directors, employees, or agents shall not be liable for any injury, loss, damages, financial or otherwise, arising from, related to, or caused by the use of this document. The use of said document shall constitute your express consent to the foregoing exculpation.</epcglobal:disclaimer>
|
||
<epcglobal:specification>EPCglobal common components Version 1.0</epcglobal:specification>
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:complexType name="Document" abstract="true">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
EPCglobal document properties for all messages.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:attribute name="schemaVersion" type="xsd:decimal" use="required">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
The version of the schema corresponding to which the instance conforms.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
</xsd:attribute>
|
||
<xsd:attribute name="creationDate" type="xsd:dateTime" use="required">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
The date the message was created. Used for auditing and logging.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
</xsd:attribute>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPC">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
EPC represents the Electronic Product Code.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:simpleContent>
|
||
<xsd:extension base="xsd:string"/>
|
||
</xsd:simpleContent>
|
||
</xsd:complexType>
|
||
</xsd:schema>
|
ETa/ETa-Client/src/main/resources/wsdl/Manifest.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" targetNamespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||
<xs:include schemaLocation="BasicTypes.xsd"/>
|
||
|
||
<xs:complexType name="Manifest">
|
||
<xs:sequence>
|
||
<xs:element name="NumberOfItems" type="xs:integer"/>
|
||
<xs:element name="ManifestItem" type="ManifestItem" maxOccurs="unbounded"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
<xs:complexType name="ManifestItem">
|
||
<xs:sequence>
|
||
<xs:element name="MimeTypeQualifierCode" type="MimeTypeQualifier"/>
|
||
<xs:element name="UniformResourceIdentifier" type="xs:anyURI"/>
|
||
<xs:element name="Description" type="xs:string" minOccurs="0"/>
|
||
<xs:element name="LanguageCode" type="Language" minOccurs="0"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
</xs:schema>
|
ETa/ETa-Client/src/main/resources/wsdl/Partner.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" targetNamespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||
|
||
<xs:complexType name="Partner">
|
||
<xs:sequence>
|
||
<xs:element name="Identifier" type="PartnerIdentification"/>
|
||
<xs:element name="ContactInformation" type="ContactInformation" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
<xs:complexType name="PartnerIdentification">
|
||
<xs:simpleContent>
|
||
<xs:extension base="xs:string">
|
||
<xs:attribute name="Authority" type="xs:string"/>
|
||
</xs:extension>
|
||
</xs:simpleContent>
|
||
</xs:complexType>
|
||
<xs:complexType name="ContactInformation">
|
||
<xs:sequence>
|
||
<xs:element name="Contact" type="xs:string"/>
|
||
<xs:element name="EmailAddress" type="xs:string" minOccurs="0"/>
|
||
<xs:element name="FaxNumber" type="xs:string" minOccurs="0"/>
|
||
<xs:element name="TelephoneNumber" type="xs:string" minOccurs="0"/>
|
||
<xs:element name="ContactTypeIdentifier" type="xs:string" minOccurs="0"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
</xs:schema>
|
ETa/ETa-Client/src/main/resources/wsdl/StandardBusinessDocumentHeader.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" targetNamespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||
<xs:include schemaLocation="DocumentIdentification.xsd"/>
|
||
<xs:include schemaLocation="Partner.xsd"/>
|
||
<xs:include schemaLocation="Manifest.xsd"/>
|
||
<xs:include schemaLocation="BusinessScope.xsd"/>
|
||
<xs:complexType name="StandardBusinessDocumentHeader">
|
||
<xs:sequence>
|
||
<xs:element name="HeaderVersion" type="xs:string"/>
|
||
<xs:element name="Sender" type="Partner" maxOccurs="unbounded"/>
|
||
<xs:element name="Receiver" type="Partner" maxOccurs="unbounded"/>
|
||
<xs:element name="DocumentIdentification" type="DocumentIdentification"/>
|
||
<xs:element name="Manifest" type="Manifest" minOccurs="0"/>
|
||
<xs:element name="BusinessScope" type="BusinessScope" minOccurs="0"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
<xs:element name="StandardBusinessDocumentHeader" type="StandardBusinessDocumentHeader"/>
|
||
<xs:element name="StandardBusinessDocument" type="StandardBusinessDocument"/>
|
||
<xs:complexType name="StandardBusinessDocument">
|
||
<xs:sequence>
|
||
<xs:element ref="StandardBusinessDocumentHeader" minOccurs="0"/>
|
||
<xs:any namespace="##other" processContents="lax"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
</xs:schema>
|
ETa/ETa-Client/src/main/resources/wsdl/tau-epcis.wsdl | ||
---|---|---|
<?xml version="1.0" encoding="utf-8"?>
|
||
<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
|
||
xmlns:apachesoap="http://xml.apache.org/xml-soap"
|
||
xmlns:epcis="urn:epcglobal:epcis:xsd:1"
|
||
xmlns:epcisq="urn:epcglobal:epcis-query:xsd:1"
|
||
xmlns:epcglobal="urn:epcglobal:xsd:1"
|
||
xmlns:impl="urn:epcglobal:epcis:wsdl:1"
|
||
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
|
||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
|
||
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||
targetNamespace="urn:unicaen:iota:eta:wsdl"
|
||
xmlns:eta="urn:unicaen:iota:eta:wsdl"
|
||
xmlns:tau="urn:unicaen:iota:tau:xsd">
|
||
<wsdl:import namespace="urn:epcglobal:epcis:wsdl:1" location="EPCglobal-epcis-query-1_0.wsdl" />
|
||
<wsdl:types>
|
||
<xsd:schema xmlns:impl="urn:epcglobal:epcis:wsdl:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:epcglobal:epcis:wsdl:1">
|
||
<xsd:import namespace="urn:unicaen:iota:tau:xsd" schemaLocation="tau.xsd"/>
|
||
</xsd:schema>
|
||
</wsdl:types>
|
||
<wsdl:message name="IDed_subscribeRequest">
|
||
<wsdl:part name="parms" element="epcisq:Subscribe"/>
|
||
<wsdl:part name="id" element="tau:identity"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="IDed_unsubscribeRequest">
|
||
<wsdl:part name="parms" element="epcisq:Unsubscribe"/>
|
||
<wsdl:part name="id" element="tau:identity"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="IDed_getSubscriptionIDsRequest">
|
||
<wsdl:part name="parms" element="epcisq:GetSubscriptionIDs"/>
|
||
<wsdl:part name="id" element="tau:identity"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="IDed_pollRequest">
|
||
<wsdl:part name="parms" element="epcisq:Poll"/>
|
||
<wsdl:part name="id" element="tau:identity"/>
|
||
</wsdl:message>
|
||
<wsdl:portType name="IDed_EPCISServicePortType">
|
||
<wsdl:operation name="IDed_subscribe">
|
||
<wsdl:input name="IDed_subscribeRequest" message="eta:IDed_subscribeRequest"/>
|
||
<wsdl:output name="subscribeResponse" message="impl:subscribeResponse"/>
|
||
<wsdl:fault name="NoSuchNameExceptionFault" message="impl:NoSuchNameExceptionResponse"/>
|
||
<wsdl:fault name="InvalidURIExceptionFault" message="impl:InvalidURIExceptionResponse"/>
|
||
<wsdl:fault name="DuplicateSubscriptionExceptionFault" message="impl:DuplicateSubscriptionExceptionResponse"/>
|
||
<wsdl:fault name="QueryParameterExceptionFault" message="impl:QueryParameterExceptionResponse"/>
|
||
<wsdl:fault name="QueryTooComplexExceptionFault" message="impl:QueryTooComplexExceptionResponse"/>
|
||
<wsdl:fault name="SubscriptionControlsExceptionFault" message="impl:SubscriptionControlsExceptionResponse"/>
|
||
<wsdl:fault name="SubscribeNotPermittedExceptionFault" message="impl:SubscribeNotPermittedExceptionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="IDed_unsubscribe">
|
||
<wsdl:input name="IDed_unsubscribeRequest" message="eta:IDed_unsubscribeRequest"/>
|
||
<wsdl:output name="unsubscribeResponse" message="impl:unsubscribeResponse"/>
|
||
<wsdl:fault name="NoSuchSubscriptionExceptionFault" message="impl:NoSuchSubscriptionExceptionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="IDed_getSubscriptionIDs">
|
||
<wsdl:input name="IDed_getSubscriptionIDsRequest" message="eta:IDed_getSubscriptionIDsRequest"/>
|
||
<wsdl:output name="getSubscriptionIDsResponse" message="impl:getSubscriptionIDsResponse"/>
|
||
<wsdl:fault name="NoSuchNameExceptionFault" message="impl:NoSuchNameExceptionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="IDed_poll">
|
||
<wsdl:input name="IDed_pollRequest" message="eta:IDed_pollRequest"/>
|
||
<wsdl:output name="pollResponse" message="impl:pollResponse"/>
|
||
<wsdl:fault name="QueryParameterExceptionFault" message="impl:QueryParameterExceptionResponse"/>
|
||
<wsdl:fault name="QueryTooLargeExceptionFault" message="impl:QueryTooLargeExceptionResponse"/>
|
||
<wsdl:fault name="QueryTooComplexExceptionFault" message="impl:QueryTooComplexExceptionResponse"/>
|
||
<wsdl:fault name="NoSuchNameExceptionFault" message="impl:NoSuchNameExceptionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
</wsdl:portType>
|
||
<wsdl:binding name="IDed_EPCISServiceBinding" type="eta:IDed_EPCISServicePortType">
|
||
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
||
<wsdl:operation name="IDed_subscribe">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="NoSuchNameExceptionFault">
|
||
<wsdlsoap:fault name="NoSuchNameExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="InvalidURIExceptionFault">
|
||
<wsdlsoap:fault name="InvalidURIExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="DuplicateSubscriptionExceptionFault">
|
||
<wsdlsoap:fault name="DuplicateSubscriptionExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="QueryParameterExceptionFault">
|
||
<wsdlsoap:fault name="QueryParameterExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="QueryTooComplexExceptionFault">
|
||
<wsdlsoap:fault name="QueryTooComplexExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SubscribeNotPermittedExceptionFault">
|
||
<wsdlsoap:fault name="SubscribeNotPermittedExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SubscriptionControlsExceptionFault">
|
||
<wsdlsoap:fault name="SubscriptionControlsExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="IDed_unsubscribe">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="NoSuchSubscriptionExceptionFault">
|
||
<wsdlsoap:fault name="NoSuchSubscriptionExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="IDed_getSubscriptionIDs">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="NoSuchNameExceptionFault">
|
||
<wsdlsoap:fault name="NoSuchNameExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="IDed_poll">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="QueryParameterExceptionFault">
|
||
<wsdlsoap:fault name="QueryParameterExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="QueryTooComplexExceptionFault">
|
||
<wsdlsoap:fault name="QueryTooComplexExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="QueryTooLargeExceptionFault">
|
||
<wsdlsoap:fault name="QueryTooLargeExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="NoSuchNameExceptionFault">
|
||
<wsdlsoap:fault name="NoSuchNameExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
</wsdl:binding>
|
||
<wsdl:service name="IDed_EPCglobalEPCISService">
|
||
<wsdl:port name="IDed_EPCglobalEPCISServicePort" binding="eta:IDed_EPCISServiceBinding">
|
||
<!-- The address shown below is an example (default); an implementation MAY specify any port it wishes -->
|
||
<wsdlsoap:address location="http://localhost:8080/eta/ided_query"/>
|
||
</wsdl:port>
|
||
</wsdl:service>
|
||
</wsdl:definitions>
|
ETa/ETa-Client/src/main/resources/wsdl/tau.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||
xmlns:tau="urn:unicaen:iota:tau:xsd"
|
||
targetNamespace="urn:unicaen:iota:tau:xsd"
|
||
elementFormDefault="unqualified" attributeFormDefault="unqualified">
|
||
|
||
<xs:element name="identity" type="tau:Identity"/>
|
||
|
||
<xs:complexType name="Identity">
|
||
<xs:sequence>
|
||
<xs:element name="asString" type="xs:string"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
|
||
<xs:element name="principal" type="tau:Principal"/>
|
||
|
||
<xs:complexType name="Principal">
|
||
<xs:sequence>
|
||
<xs:element name="name" type="xs:string"/>
|
||
<xs:element name="asString" type="xs:string"/>
|
||
<xs:element name="hashCode" type="xs:int"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
|
||
</xs:schema>
|
ETa/ETa-Query-Client/LICENSE | ||
---|---|---|
GNU GENERAL PUBLIC LICENSE
|
||
Version 3, 29 June 2007
|
||
|
||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||
Everyone is permitted to copy and distribute verbatim copies
|
||
of this license document, but changing it is not allowed.
|
||
|
||
Preamble
|
||
|
||
The GNU General Public License is a free, copyleft license for
|
||
software and other kinds of works.
|
||
|
||
The licenses for most software and other practical works are designed
|
||
to take away your freedom to share and change the works. By contrast,
|
||
the GNU General Public License is intended to guarantee your freedom to
|
||
share and change all versions of a program--to make sure it remains free
|
||
software for all its users. We, the Free Software Foundation, use the
|
||
GNU General Public License for most of our software; it applies also to
|
||
any other work released this way by its authors. You can apply it to
|
||
your programs, too.
|
||
|
||
When we speak of free software, we are referring to freedom, not
|
||
price. Our General Public Licenses are designed to make sure that you
|
||
have the freedom to distribute copies of free software (and charge for
|
||
them if you wish), that you receive source code or can get it if you
|
||
want it, that you can change the software or use pieces of it in new
|
||
free programs, and that you know you can do these things.
|
||
|
||
To protect your rights, we need to prevent others from denying you
|
||
these rights or asking you to surrender the rights. Therefore, you have
|
||
certain responsibilities if you distribute copies of the software, or if
|
||
you modify it: responsibilities to respect the freedom of others.
|
||
|
||
For example, if you distribute copies of such a program, whether
|
||
gratis or for a fee, you must pass on to the recipients the same
|
||
freedoms that you received. You must make sure that they, too, receive
|
||
or can get the source code. And you must show them these terms so they
|
||
know their rights.
|
||
|
||
Developers that use the GNU GPL protect your rights with two steps:
|
||
(1) assert copyright on the software, and (2) offer you this License
|
||
giving you legal permission to copy, distribute and/or modify it.
|
||
|
||
For the developers' and authors' protection, the GPL clearly explains
|
||
that there is no warranty for this free software. For both users' and
|
||
authors' sake, the GPL requires that modified versions be marked as
|
||
changed, so that their problems will not be attributed erroneously to
|
||
authors of previous versions.
|
||
|
||
Some devices are designed to deny users access to install or run
|
||
modified versions of the software inside them, although the manufacturer
|
||
can do so. This is fundamentally incompatible with the aim of
|
||
protecting users' freedom to change the software. The systematic
|
||
pattern of such abuse occurs in the area of products for individuals to
|
||
use, which is precisely where it is most unacceptable. Therefore, we
|
||
have designed this version of the GPL to prohibit the practice for those
|
||
products. If such problems arise substantially in other domains, we
|
||
stand ready to extend this provision to those domains in future versions
|
||
of the GPL, as needed to protect the freedom of users.
|
||
|
||
Finally, every program is threatened constantly by software patents.
|
||
States should not allow patents to restrict development and use of
|
||
software on general-purpose computers, but in those that do, we wish to
|
||
avoid the special danger that patents applied to a free program could
|
||
make it effectively proprietary. To prevent this, the GPL assures that
|
||
patents cannot be used to render the program non-free.
|
||
|
||
The precise terms and conditions for copying, distribution and
|
||
modification follow.
|
||
|
||
TERMS AND CONDITIONS
|
||
|
||
0. Definitions.
|
||
|
||
"This License" refers to version 3 of the GNU General Public License.
|
||
|
||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||
works, such as semiconductor masks.
|
||
|
||
"The Program" refers to any copyrightable work licensed under this
|
||
License. Each licensee is addressed as "you". "Licensees" and
|
||
"recipients" may be individuals or organizations.
|
||
|
||
To "modify" a work means to copy from or adapt all or part of the work
|
||
in a fashion requiring copyright permission, other than the making of an
|
||
exact copy. The resulting work is called a "modified version" of the
|
||
earlier work or a work "based on" the earlier work.
|
||
|
||
A "covered work" means either the unmodified Program or a work based
|
||
on the Program.
|
||
|
||
To "propagate" a work means to do anything with it that, without
|
||
permission, would make you directly or secondarily liable for
|
||
infringement under applicable copyright law, except executing it on a
|
||
computer or modifying a private copy. Propagation includes copying,
|
||
distribution (with or without modification), making available to the
|
||
public, and in some countries other activities as well.
|
||
|
||
To "convey" a work means any kind of propagation that enables other
|
||
parties to make or receive copies. Mere interaction with a user through
|
||
a computer network, with no transfer of a copy, is not conveying.
|
||
|
||
An interactive user interface displays "Appropriate Legal Notices"
|
||
to the extent that it includes a convenient and prominently visible
|
||
feature that (1) displays an appropriate copyright notice, and (2)
|
||
tells the user that there is no warranty for the work (except to the
|
||
extent that warranties are provided), that licensees may convey the
|
||
work under this License, and how to view a copy of this License. If
|
||
the interface presents a list of user commands or options, such as a
|
||
menu, a prominent item in the list meets this criterion.
|
||
|
||
1. Source Code.
|
||
|
||
The "source code" for a work means the preferred form of the work
|
||
for making modifications to it. "Object code" means any non-source
|
||
form of a work.
|
||
|
||
A "Standard Interface" means an interface that either is an official
|
||
standard defined by a recognized standards body, or, in the case of
|
||
interfaces specified for a particular programming language, one that
|
||
is widely used among developers working in that language.
|
||
|
||
The "System Libraries" of an executable work include anything, other
|
||
than the work as a whole, that (a) is included in the normal form of
|
||
packaging a Major Component, but which is not part of that Major
|
||
Component, and (b) serves only to enable use of the work with that
|
||
Major Component, or to implement a Standard Interface for which an
|
||
implementation is available to the public in source code form. A
|
||
"Major Component", in this context, means a major essential component
|
||
(kernel, window system, and so on) of the specific operating system
|
||
(if any) on which the executable work runs, or a compiler used to
|
||
produce the work, or an object code interpreter used to run it.
|
||
|
||
The "Corresponding Source" for a work in object code form means all
|
||
the source code needed to generate, install, and (for an executable
|
||
work) run the object code and to modify the work, including scripts to
|
||
control those activities. However, it does not include the work's
|
||
System Libraries, or general-purpose tools or generally available free
|
||
programs which are used unmodified in performing those activities but
|
||
which are not part of the work. For example, Corresponding Source
|
||
includes interface definition files associated with source files for
|
||
the work, and the source code for shared libraries and dynamically
|
||
linked subprograms that the work is specifically designed to require,
|
||
such as by intimate data communication or control flow between those
|
||
subprograms and other parts of the work.
|
||
|
||
The Corresponding Source need not include anything that users
|
||
can regenerate automatically from other parts of the Corresponding
|
||
Source.
|
||
|
||
The Corresponding Source for a work in source code form is that
|
||
same work.
|
||
|
||
2. Basic Permissions.
|
||
|
||
All rights granted under this License are granted for the term of
|
||
copyright on the Program, and are irrevocable provided the stated
|
||
conditions are met. This License explicitly affirms your unlimited
|
||
permission to run the unmodified Program. The output from running a
|
||
covered work is covered by this License only if the output, given its
|
||
content, constitutes a covered work. This License acknowledges your
|
||
rights of fair use or other equivalent, as provided by copyright law.
|
||
|
||
You may make, run and propagate covered works that you do not
|
||
convey, without conditions so long as your license otherwise remains
|
||
in force. You may convey covered works to others for the sole purpose
|
||
of having them make modifications exclusively for you, or provide you
|
||
with facilities for running those works, provided that you comply with
|
||
the terms of this License in conveying all material for which you do
|
||
not control copyright. Those thus making or running the covered works
|
||
for you must do so exclusively on your behalf, under your direction
|
||
and control, on terms that prohibit them from making any copies of
|
||
your copyrighted material outside their relationship with you.
|
||
|
||
Conveying under any other circumstances is permitted solely under
|
||
the conditions stated below. Sublicensing is not allowed; section 10
|
||
makes it unnecessary.
|
||
|
||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||
|
||
No covered work shall be deemed part of an effective technological
|
||
measure under any applicable law fulfilling obligations under article
|
||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||
similar laws prohibiting or restricting circumvention of such
|
||
measures.
|
||
|
||
When you convey a covered work, you waive any legal power to forbid
|
||
circumvention of technological measures to the extent such circumvention
|
||
is effected by exercising rights under this License with respect to
|
||
the covered work, and you disclaim any intention to limit operation or
|
||
modification of the work as a means of enforcing, against the work's
|
||
users, your or third parties' legal rights to forbid circumvention of
|
||
technological measures.
|
||
|
||
4. Conveying Verbatim Copies.
|
||
|
||
You may convey verbatim copies of the Program's source code as you
|
||
receive it, in any medium, provided that you conspicuously and
|
||
appropriately publish on each copy an appropriate copyright notice;
|
||
keep intact all notices stating that this License and any
|
||
non-permissive terms added in accord with section 7 apply to the code;
|
||
keep intact all notices of the absence of any warranty; and give all
|
||
recipients a copy of this License along with the Program.
|
||
|
||
You may charge any price or no price for each copy that you convey,
|
||
and you may offer support or warranty protection for a fee.
|
||
|
||
5. Conveying Modified Source Versions.
|
||
|
||
You may convey a work based on the Program, or the modifications to
|
||
produce it from the Program, in the form of source code under the
|
||
terms of section 4, provided that you also meet all of these conditions:
|
||
|
||
a) The work must carry prominent notices stating that you modified
|
||
it, and giving a relevant date.
|
||
|
||
b) The work must carry prominent notices stating that it is
|
||
released under this License and any conditions added under section
|
||
7. This requirement modifies the requirement in section 4 to
|
||
"keep intact all notices".
|
||
|
||
c) You must license the entire work, as a whole, under this
|
||
License to anyone who comes into possession of a copy. This
|
||
License will therefore apply, along with any applicable section 7
|
||
additional terms, to the whole of the work, and all its parts,
|
||
regardless of how they are packaged. This License gives no
|
||
permission to license the work in any other way, but it does not
|
||
invalidate such permission if you have separately received it.
|
||
|
||
d) If the work has interactive user interfaces, each must display
|
||
Appropriate Legal Notices; however, if the Program has interactive
|
||
interfaces that do not display Appropriate Legal Notices, your
|
||
work need not make them do so.
|
||
|
||
A compilation of a covered work with other separate and independent
|
||
works, which are not by their nature extensions of the covered work,
|
||
and which are not combined with it such as to form a larger program,
|
||
in or on a volume of a storage or distribution medium, is called an
|
||
"aggregate" if the compilation and its resulting copyright are not
|
||
used to limit the access or legal rights of the compilation's users
|
||
beyond what the individual works permit. Inclusion of a covered work
|
||
in an aggregate does not cause this License to apply to the other
|
||
parts of the aggregate.
|
||
|
||
6. Conveying Non-Source Forms.
|
||
|
||
You may convey a covered work in object code form under the terms
|
||
of sections 4 and 5, provided that you also convey the
|
||
machine-readable Corresponding Source under the terms of this License,
|
||
in one of these ways:
|
||
|
||
a) Convey the object code in, or embodied in, a physical product
|
||
(including a physical distribution medium), accompanied by the
|
||
Corresponding Source fixed on a durable physical medium
|
||
customarily used for software interchange.
|
||
|
||
b) Convey the object code in, or embodied in, a physical product
|
||
(including a physical distribution medium), accompanied by a
|
||
written offer, valid for at least three years and valid for as
|
||
long as you offer spare parts or customer support for that product
|
||
model, to give anyone who possesses the object code either (1) a
|
||
copy of the Corresponding Source for all the software in the
|
||
product that is covered by this License, on a durable physical
|
||
medium customarily used for software interchange, for a price no
|
||
more than your reasonable cost of physically performing this
|
||
conveying of source, or (2) access to copy the
|
||
Corresponding Source from a network server at no charge.
|
||
|
||
c) Convey individual copies of the object code with a copy of the
|
||
written offer to provide the Corresponding Source. This
|
||
alternative is allowed only occasionally and noncommercially, and
|
||
only if you received the object code with such an offer, in accord
|
||
with subsection 6b.
|
||
|
||
d) Convey the object code by offering access from a designated
|
||
place (gratis or for a charge), and offer equivalent access to the
|
||
Corresponding Source in the same way through the same place at no
|
||
further charge. You need not require recipients to copy the
|
||
Corresponding Source along with the object code. If the place to
|
||
copy the object code is a network server, the Corresponding Source
|
||
may be on a different server (operated by you or a third party)
|
||
that supports equivalent copying facilities, provided you maintain
|
||
clear directions next to the object code saying where to find the
|
||
Corresponding Source. Regardless of what server hosts the
|
||
Corresponding Source, you remain obligated to ensure that it is
|
||
available for as long as needed to satisfy these requirements.
|
||
|
||
e) Convey the object code using peer-to-peer transmission, provided
|
||
you inform other peers where the object code and Corresponding
|
||
Source of the work are being offered to the general public at no
|
||
charge under subsection 6d.
|
||
|
||
A separable portion of the object code, whose source code is excluded
|
||
from the Corresponding Source as a System Library, need not be
|
||
included in conveying the object code work.
|
||
|
||
A "User Product" is either (1) a "consumer product", which means any
|
||
tangible personal property which is normally used for personal, family,
|
||
or household purposes, or (2) anything designed or sold for incorporation
|
||
into a dwelling. In determining whether a product is a consumer product,
|
||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||
product received by a particular user, "normally used" refers to a
|
||
typical or common use of that class of product, regardless of the status
|
||
of the particular user or of the way in which the particular user
|
||
actually uses, or expects or is expected to use, the product. A product
|
||
is a consumer product regardless of whether the product has substantial
|
||
commercial, industrial or non-consumer uses, unless such uses represent
|
||
the only significant mode of use of the product.
|
||
|
||
"Installation Information" for a User Product means any methods,
|
||
procedures, authorization keys, or other information required to install
|
||
and execute modified versions of a covered work in that User Product from
|
||
a modified version of its Corresponding Source. The information must
|
||
suffice to ensure that the continued functioning of the modified object
|
||
code is in no case prevented or interfered with solely because
|
||
modification has been made.
|
||
|
||
If you convey an object code work under this section in, or with, or
|
||
specifically for use in, a User Product, and the conveying occurs as
|
||
part of a transaction in which the right of possession and use of the
|
||
User Product is transferred to the recipient in perpetuity or for a
|
||
fixed term (regardless of how the transaction is characterized), the
|
||
Corresponding Source conveyed under this section must be accompanied
|
||
by the Installation Information. But this requirement does not apply
|
||
if neither you nor any third party retains the ability to install
|
||
modified object code on the User Product (for example, the work has
|
||
been installed in ROM).
|
||
|
||
The requirement to provide Installation Information does not include a
|
||
requirement to continue to provide support service, warranty, or updates
|
||
for a work that has been modified or installed by the recipient, or for
|
||
the User Product in which it has been modified or installed. Access to a
|
||
network may be denied when the modification itself materially and
|
||
adversely affects the operation of the network or violates the rules and
|
||
protocols for communication across the network.
|
||
|
||
Corresponding Source conveyed, and Installation Information provided,
|
||
in accord with this section must be in a format that is publicly
|
||
documented (and with an implementation available to the public in
|
||
source code form), and must require no special password or key for
|
||
unpacking, reading or copying.
|
||
|
||
7. Additional Terms.
|
||
|
||
"Additional permissions" are terms that supplement the terms of this
|
||
License by making exceptions from one or more of its conditions.
|
||
Additional permissions that are applicable to the entire Program shall
|
||
be treated as though they were included in this License, to the extent
|
||
that they are valid under applicable law. If additional permissions
|
||
apply only to part of the Program, that part may be used separately
|
||
under those permissions, but the entire Program remains governed by
|
||
this License without regard to the additional permissions.
|
||
|
||
When you convey a copy of a covered work, you may at your option
|
||
remove any additional permissions from that copy, or from any part of
|
||
it. (Additional permissions may be written to require their own
|
||
removal in certain cases when you modify the work.) You may place
|
||
additional permissions on material, added by you to a covered work,
|
||
for which you have or can give appropriate copyright permission.
|
||
|
||
Notwithstanding any other provision of this License, for material you
|
||
add to a covered work, you may (if authorized by the copyright holders of
|
||
that material) supplement the terms of this License with terms:
|
||
|
||
a) Disclaiming warranty or limiting liability differently from the
|
||
terms of sections 15 and 16 of this License; or
|
||
|
||
b) Requiring preservation of specified reasonable legal notices or
|
||
author attributions in that material or in the Appropriate Legal
|
||
Notices displayed by works containing it; or
|
||
|
||
c) Prohibiting misrepresentation of the origin of that material, or
|
||
requiring that modified versions of such material be marked in
|
||
reasonable ways as different from the original version; or
|
||
|
||
d) Limiting the use for publicity purposes of names of licensors or
|
||
authors of the material; or
|
||
|
||
e) Declining to grant rights under trademark law for use of some
|
||
trade names, trademarks, or service marks; or
|
||
|
||
f) Requiring indemnification of licensors and authors of that
|
||
material by anyone who conveys the material (or modified versions of
|
||
it) with contractual assumptions of liability to the recipient, for
|
||
any liability that these contractual assumptions directly impose on
|
||
those licensors and authors.
|
||
|
||
All other non-permissive additional terms are considered "further
|
||
restrictions" within the meaning of section 10. If the Program as you
|
||
received it, or any part of it, contains a notice stating that it is
|
||
governed by this License along with a term that is a further
|
||
restriction, you may remove that term. If a license document contains
|
||
a further restriction but permits relicensing or conveying under this
|
||
License, you may add to a covered work material governed by the terms
|
||
of that license document, provided that the further restriction does
|
||
not survive such relicensing or conveying.
|
||
|
||
If you add terms to a covered work in accord with this section, you
|
||
must place, in the relevant source files, a statement of the
|
||
additional terms that apply to those files, or a notice indicating
|
||
where to find the applicable terms.
|
||
|
||
Additional terms, permissive or non-permissive, may be stated in the
|
||
form of a separately written license, or stated as exceptions;
|
||
the above requirements apply either way.
|
||
|
||
8. Termination.
|
||
|
||
You may not propagate or modify a covered work except as expressly
|
||
provided under this License. Any attempt otherwise to propagate or
|
||
modify it is void, and will automatically terminate your rights under
|
||
this License (including any patent licenses granted under the third
|
||
paragraph of section 11).
|
||
|
||
However, if you cease all violation of this License, then your
|
||
license from a particular copyright holder is reinstated (a)
|
||
provisionally, unless and until the copyright holder explicitly and
|
||
finally terminates your license, and (b) permanently, if the copyright
|
||
holder fails to notify you of the violation by some reasonable means
|
||
prior to 60 days after the cessation.
|
||
|
||
Moreover, your license from a particular copyright holder is
|
||
reinstated permanently if the copyright holder notifies you of the
|
||
violation by some reasonable means, this is the first time you have
|
||
received notice of violation of this License (for any work) from that
|
||
copyright holder, and you cure the violation prior to 30 days after
|
||
your receipt of the notice.
|
||
|
||
Termination of your rights under this section does not terminate the
|
||
licenses of parties who have received copies or rights from you under
|
||
this License. If your rights have been terminated and not permanently
|
||
reinstated, you do not qualify to receive new licenses for the same
|
||
material under section 10.
|
||
|
||
9. Acceptance Not Required for Having Copies.
|
||
|
||
You are not required to accept this License in order to receive or
|
||
run a copy of the Program. Ancillary propagation of a covered work
|
||
occurring solely as a consequence of using peer-to-peer transmission
|
||
to receive a copy likewise does not require acceptance. However,
|
||
nothing other than this License grants you permission to propagate or
|
||
modify any covered work. These actions infringe copyright if you do
|
||
not accept this License. Therefore, by modifying or propagating a
|
||
covered work, you indicate your acceptance of this License to do so.
|
||
|
||
10. Automatic Licensing of Downstream Recipients.
|
||
|
||
Each time you convey a covered work, the recipient automatically
|
||
receives a license from the original licensors, to run, modify and
|
||
propagate that work, subject to this License. You are not responsible
|
||
for enforcing compliance by third parties with this License.
|
||
|
||
An "entity transaction" is a transaction transferring control of an
|
||
organization, or substantially all assets of one, or subdividing an
|
||
organization, or merging organizations. If propagation of a covered
|
||
work results from an entity transaction, each party to that
|
||
transaction who receives a copy of the work also receives whatever
|
||
licenses to the work the party's predecessor in interest had or could
|
||
give under the previous paragraph, plus a right to possession of the
|
||
Corresponding Source of the work from the predecessor in interest, if
|
||
the predecessor has it or can get it with reasonable efforts.
|
||
|
||
You may not impose any further restrictions on the exercise of the
|
||
rights granted or affirmed under this License. For example, you may
|
||
not impose a license fee, royalty, or other charge for exercise of
|
||
rights granted under this License, and you may not initiate litigation
|
||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||
any patent claim is infringed by making, using, selling, offering for
|
||
sale, or importing the Program or any portion of it.
|
||
|
||
11. Patents.
|
||
|
||
A "contributor" is a copyright holder who authorizes use under this
|
||
License of the Program or a work on which the Program is based. The
|
||
work thus licensed is called the contributor's "contributor version".
|
||
|
||
A contributor's "essential patent claims" are all patent claims
|
||
owned or controlled by the contributor, whether already acquired or
|
||
hereafter acquired, that would be infringed by some manner, permitted
|
||
by this License, of making, using, or selling its contributor version,
|
||
but do not include claims that would be infringed only as a
|
||
consequence of further modification of the contributor version. For
|
||
purposes of this definition, "control" includes the right to grant
|
||
patent sublicenses in a manner consistent with the requirements of
|
||
this License.
|
||
|
||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||
patent license under the contributor's essential patent claims, to
|
||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||
propagate the contents of its contributor version.
|
||
|
||
In the following three paragraphs, a "patent license" is any express
|
||
agreement or commitment, however denominated, not to enforce a patent
|
||
(such as an express permission to practice a patent or covenant not to
|
||
sue for patent infringement). To "grant" such a patent license to a
|
||
party means to make such an agreement or commitment not to enforce a
|
||
patent against the party.
|
||
|
||
If you convey a covered work, knowingly relying on a patent license,
|
||
and the Corresponding Source of the work is not available for anyone
|
||
to copy, free of charge and under the terms of this License, through a
|
||
publicly available network server or other readily accessible means,
|
||
then you must either (1) cause the Corresponding Source to be so
|
||
available, or (2) arrange to deprive yourself of the benefit of the
|
||
patent license for this particular work, or (3) arrange, in a manner
|
||
consistent with the requirements of this License, to extend the patent
|
||
license to downstream recipients. "Knowingly relying" means you have
|
||
actual knowledge that, but for the patent license, your conveying the
|
||
covered work in a country, or your recipient's use of the covered work
|
||
in a country, would infringe one or more identifiable patents in that
|
||
country that you have reason to believe are valid.
|
||
|
||
If, pursuant to or in connection with a single transaction or
|
||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||
covered work, and grant a patent license to some of the parties
|
||
receiving the covered work authorizing them to use, propagate, modify
|
||
or convey a specific copy of the covered work, then the patent license
|
||
you grant is automatically extended to all recipients of the covered
|
||
work and works based on it.
|
||
|
||
A patent license is "discriminatory" if it does not include within
|
||
the scope of its coverage, prohibits the exercise of, or is
|
||
conditioned on the non-exercise of one or more of the rights that are
|
||
specifically granted under this License. You may not convey a covered
|
||
work if you are a party to an arrangement with a third party that is
|
||
in the business of distributing software, under which you make payment
|
||
to the third party based on the extent of your activity of conveying
|
||
the work, and under which the third party grants, to any of the
|
||
parties who would receive the covered work from you, a discriminatory
|
||
patent license (a) in connection with copies of the covered work
|
||
conveyed by you (or copies made from those copies), or (b) primarily
|
||
for and in connection with specific products or compilations that
|
||
contain the covered work, unless you entered into that arrangement,
|
||
or that patent license was granted, prior to 28 March 2007.
|
||
|
||
Nothing in this License shall be construed as excluding or limiting
|
||
any implied license or other defenses to infringement that may
|
||
otherwise be available to you under applicable patent law.
|
||
|
||
12. No Surrender of Others' Freedom.
|
||
|
||
If conditions are imposed on you (whether by court order, agreement or
|
||
otherwise) that contradict the conditions of this License, they do not
|
||
excuse you from the conditions of this License. If you cannot convey a
|
||
covered work so as to satisfy simultaneously your obligations under this
|
||
License and any other pertinent obligations, then as a consequence you may
|
||
not convey it at all. For example, if you agree to terms that obligate you
|
||
to collect a royalty for further conveying from those to whom you convey
|
||
the Program, the only way you could satisfy both those terms and this
|
||
License would be to refrain entirely from conveying the Program.
|
||
|
||
13. Use with the GNU Affero General Public License.
|
||
|
||
Notwithstanding any other provision of this License, you have
|
||
permission to link or combine any covered work with a work licensed
|
||
under version 3 of the GNU Affero General Public License into a single
|
||
combined work, and to convey the resulting work. The terms of this
|
||
License will continue to apply to the part which is the covered work,
|
||
but the special requirements of the GNU Affero General Public License,
|
||
section 13, concerning interaction through a network will apply to the
|
||
combination as such.
|
||
|
||
14. Revised Versions of this License.
|
||
|
||
The Free Software Foundation may publish revised and/or new versions of
|
||
the GNU General Public License from time to time. Such new versions will
|
||
be similar in spirit to the present version, but may differ in detail to
|
||
address new problems or concerns.
|
||
|
||
Each version is given a distinguishing version number. If the
|
||
Program specifies that a certain numbered version of the GNU General
|
||
Public License "or any later version" applies to it, you have the
|
||
option of following the terms and conditions either of that numbered
|
||
version or of any later version published by the Free Software
|
||
Foundation. If the Program does not specify a version number of the
|
||
GNU General Public License, you may choose any version ever published
|
||
by the Free Software Foundation.
|
||
|
||
If the Program specifies that a proxy can decide which future
|
||
versions of the GNU General Public License can be used, that proxy's
|
||
public statement of acceptance of a version permanently authorizes you
|
||
to choose that version for the Program.
|
||
|
||
Later license versions may give you additional or different
|
||
permissions. However, no additional obligations are imposed on any
|
||
author or copyright holder as a result of your choosing to follow a
|
||
later version.
|
||
|
||
15. Disclaimer of Warranty.
|
||
|
||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||
|
||
16. Limitation of Liability.
|
||
|
||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||
SUCH DAMAGES.
|
||
|
||
17. Interpretation of Sections 15 and 16.
|
||
|
||
If the disclaimer of warranty and limitation of liability provided
|
||
above cannot be given local legal effect according to their terms,
|
||
reviewing courts shall apply local law that most closely approximates
|
||
an absolute waiver of all civil liability in connection with the
|
||
Program, unless a warranty or assumption of liability accompanies a
|
||
copy of the Program in return for a fee.
|
||
|
||
END OF TERMS AND CONDITIONS
|
||
|
||
How to Apply These Terms to Your New Programs
|
||
|
||
If you develop a new program, and you want it to be of the greatest
|
||
possible use to the public, the best way to achieve this is to make it
|
||
free software which everyone can redistribute and change under these terms.
|
||
|
||
To do so, attach the following notices to the program. It is safest
|
||
to attach them to the start of each source file to most effectively
|
||
state the exclusion of warranty; and each file should have at least
|
||
the "copyright" line and a pointer to where the full notice is found.
|
||
|
||
<one line to give the program's name and a brief idea of what it does.>
|
||
Copyright (C) <year> <name of author>
|
||
|
||
This program is free software: you can redistribute it and/or modify
|
||
it under the terms of the GNU General Public License as published by
|
||
the Free Software Foundation, either version 3 of the License, or
|
||
(at your option) any later version.
|
||
|
||
This program is distributed in the hope that it will be useful,
|
||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
GNU General Public License for more details.
|
||
|
||
You should have received a copy of the GNU General Public License
|
||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
||
Also add information on how to contact you by electronic and paper mail.
|
||
|
||
If the program does terminal interaction, make it output a short
|
||
notice like this when it starts in an interactive mode:
|
||
|
||
<program> Copyright (C) <year> <name of author>
|
||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||
This is free software, and you are welcome to redistribute it
|
||
under certain conditions; type `show c' for details.
|
||
|
||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||
parts of the General Public License. Of course, your program's commands
|
||
might be different; for a GUI interface, you would use an "about box".
|
||
|
||
You should also get your employer (if you work as a programmer) or school,
|
||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||
For more information on this, and how to apply and follow the GNU GPL, see
|
||
<http://www.gnu.org/licenses/>.
|
||
|
||
The GNU General Public License does not permit incorporating your program
|
||
into proprietary programs. If your program is a subroutine library, you
|
||
may consider it more useful to permit linking proprietary applications with
|
||
the library. If this is what you want to do, use the GNU Lesser General
|
||
Public License instead of this License. But first, please read
|
||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
ETa/ETa-Query-Client/LISEZMOI | ||
---|---|---|
ETa-Query-Client
|
||
|
||
Bibliothèque cliente pour l’interfaçage avec le web service de requêtes d'ETa.
|
||
|
||
Dépendances:
|
||
modules IoTa:
|
||
- Tau
|
||
bibliothèques:
|
||
- Apache cxf
|
||
- epcis-commons
|
||
- epcis-queryclient
|
||
- servlet-api
|
||
- commons-logging
|
||
|
||
Configuration:
|
||
(application.properties pour cette application,
|
||
commons-logging.properties et log4j.properties pour les journaux)
|
||
|
||
Dépendances d’utilisation:
|
||
- ETa
|
ETa/ETa-Query-Client/README | ||
---|---|---|
ETa-Query-Client
|
||
|
||
Common library for interfacing with the query web service of ETa.
|
||
|
||
Dependencies:
|
||
IoTa modules:
|
||
- Tau
|
||
libraries:
|
||
- Apache cxf
|
||
- epcis-commons
|
||
- epcis-queryclient
|
||
- servlet-api
|
||
- commons-logging
|
||
|
||
Configuration: ?
|
||
|
||
Usage Dependencies:
|
||
- ETa
|
ETa/ETa-Query-Client/pom.xml | ||
---|---|---|
<?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>
|
||
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>eta-query-client</artifactId>
|
||
<version>1.9</version>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>ETa-Query-Client</name>
|
||
|
||
<properties>
|
||
<lib-cxf-version>2.2.12</lib-cxf-version>
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
<epcis-version>0.5.0</epcis-version>
|
||
</properties>
|
||
|
||
<dependencies>
|
||
|
||
<!-- IoTa dependencies -->
|
||
<dependency>
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>tau</artifactId>
|
||
<version>${project.version}</version>
|
||
</dependency>
|
||
|
||
<!-- Fosstrak dependencies -->
|
||
<dependency>
|
||
<groupId>org.fosstrak.epcis</groupId>
|
||
<artifactId>epcis-commons</artifactId>
|
||
<version>${epcis-version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.fosstrak.epcis</groupId>
|
||
<artifactId>epcis-queryclient</artifactId>
|
||
<version>${epcis-version}</version>
|
||
</dependency>
|
||
|
||
<!-- CXF dependencies -->
|
||
<dependency>
|
||
<groupId>org.apache.cxf</groupId>
|
||
<artifactId>cxf-rt-frontend-jaxws</artifactId>
|
||
<version>${lib-cxf-version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.apache.cxf</groupId>
|
||
<artifactId>cxf-rt-transports-http</artifactId>
|
||
<version>${lib-cxf-version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.apache.cxf</groupId>
|
||
<artifactId>cxf-rt-transports-local</artifactId>
|
||
<version>${lib-cxf-version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.apache.cxf</groupId>
|
||
<artifactId>cxf-rt-databinding-jaxb</artifactId>
|
||
<version>${lib-cxf-version}</version>
|
||
</dependency>
|
||
|
||
<!-- Other dependencies -->
|
||
<dependency>
|
||
<groupId>javax.servlet</groupId>
|
||
<artifactId>javax.servlet-api</artifactId>
|
||
<version>3.0.1</version>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
|
||
<!-- Log dependencies -->
|
||
<dependency>
|
||
<groupId>commons-logging</groupId>
|
||
<artifactId>commons-logging</artifactId>
|
||
<version>1.1.1</version>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
<build>
|
||
|
||
<plugins>
|
||
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
<version>2.5.1</version>
|
||
<configuration>
|
||
<source>1.6</source>
|
||
<target>1.6</target>
|
||
</configuration>
|
||
</plugin>
|
||
|
||
<plugin>
|
||
<groupId>org.apache.cxf</groupId>
|
||
<artifactId>cxf-codegen-plugin</artifactId>
|
||
<version>2.6.1</version>
|
||
<executions>
|
||
<execution>
|
||
<id>generate-sources</id>
|
||
<phase>generate-sources</phase>
|
||
<configuration>
|
||
<sourceRoot>${project.build.directory}/generated-sources/cxf</sourceRoot>
|
||
<defaultOptions>
|
||
<packagenames>
|
||
<packagename>urn:unicaen:iota:tau:xsd=fr.unicaen.iota.tau.model</packagename>
|
||
<packagename>urn:unicaen:iota:eta:wsdl=fr.unicaen.iota.eta.soap</packagename>
|
||
<packagename>urn:epcglobal:xsd:1=org.fosstrak.epcis.model</packagename>
|
||
<packagename>urn:epcglobal:epcis:wsdl:1=org.fosstrak.epcis.soap</packagename>
|
||
<packagename>urn:epcglobal:epcis:xsd:1=org.fosstrak.epcis.model</packagename>
|
||
<packagename>urn:epcglobal:epcis-query:xsd:1=org.fosstrak.epcis.model</packagename>
|
||
<packagename>urn:epcglobal:epcis-masterdata:xsd:1=org.fosstrak.epcis.model</packagename>
|
||
<packagename>http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader=org.fosstrak.epcis.model</packagename>
|
||
</packagenames>
|
||
</defaultOptions>
|
||
<wsdlOptions>
|
||
<wsdlOption>
|
||
<wsdl>${basedir}/src/main/resources/wsdl/tau-epcis.wsdl</wsdl>
|
||
<wsdlLocation>classpath:wsdl/tau-epcis.wsdl</wsdlLocation>
|
||
</wsdlOption>
|
||
<wsdlOption>
|
||
<wsdl>${basedir}/src/main/resources/wsdl/EPCglobal-epcis-query-1_0.wsdl</wsdl>
|
||
<wsdlLocation>classpath:wsdl/EPCglobal-epcis-query-1_0.wsdl</wsdlLocation>
|
||
</wsdlOption>
|
||
</wsdlOptions>
|
||
</configuration>
|
||
<goals>
|
||
<goal>wsdl2java</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-assembly-plugin</artifactId>
|
||
<version>2.3</version>
|
||
<executions>
|
||
<execution>
|
||
<id>sources</id>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>single</goal>
|
||
</goals>
|
||
<configuration>
|
||
<descriptorRefs>
|
||
<descriptorRef>src</descriptorRef>
|
||
</descriptorRefs>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
</plugins>
|
||
|
||
</build>
|
||
|
||
</project>
|
ETa/ETa-Query-Client/src/main/java/fr/unicaen/iota/eta/query/ETaQueryControlClient.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2012-2013 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
* (at your option) any later version.
|
||
*
|
||
* This program is distributed in the hope that it will be useful,
|
||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
* GNU General Public License for more details.
|
||
* <http://www.gnu.org/licenses/>
|
||
*
|
||
* See AUTHORS for a list of contributors.
|
||
*/
|
||
package fr.unicaen.iota.eta.query;
|
||
|
||
import fr.unicaen.iota.eta.soap.IDedEPCISServicePortType;
|
||
import fr.unicaen.iota.eta.soap.IDedEPCglobalEPCISService;
|
||
import fr.unicaen.iota.tau.model.Identity;
|
||
import java.io.File;
|
||
import java.io.FileInputStream;
|
||
import java.net.URL;
|
||
import java.security.KeyStore;
|
||
import java.security.SecureRandom;
|
||
import java.util.List;
|
||
import javax.net.ssl.KeyManagerFactory;
|
||
import javax.net.ssl.TrustManagerFactory;
|
||
import org.apache.commons.logging.Log;
|
||
import org.apache.commons.logging.LogFactory;
|
||
import org.apache.cxf.configuration.jsse.TLSClientParameters;
|
||
import org.apache.cxf.endpoint.Client;
|
||
import org.apache.cxf.frontend.ClientProxy;
|
||
import org.apache.cxf.transport.http.HTTPConduit;
|
||
import org.apache.cxf.transports.http.configuration.HTTPClientPolicy;
|
||
import org.fosstrak.epcis.model.*;
|
||
import org.fosstrak.epcis.queryclient.QueryControlClient;
|
||
import org.fosstrak.epcis.queryclient.QueryControlInterface;
|
||
import org.fosstrak.epcis.soap.*;
|
||
|
||
/**
|
||
*
|
||
*/
|
||
public class ETaQueryControlClient implements QueryControlInterface {
|
||
|
||
private Identity identity;
|
||
private IDedEPCISServicePortType port;
|
||
private QueryControlClient epcisClient;
|
||
private static final Log log = LogFactory.getLog(ETaQueryControlClient.class);
|
||
|
||
public ETaQueryControlClient(Identity id, String address) {
|
||
this(id, address, null, null, null, null);
|
||
}
|
||
|
||
public ETaQueryControlClient(Identity id, String address, String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) {
|
||
log.trace("new ETaClient: " + id + " @ " + address);
|
||
this.identity = id;
|
||
try {
|
||
this.epcisClient = new QueryControlClientTLS(address, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
configureService(address, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
} catch (Exception e) {
|
||
throw new RuntimeException("Can’t configure service: " + e.getMessage(), e);
|
||
}
|
||
}
|
||
|
||
public void configureService(String address, String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) throws Exception {
|
||
System.setProperty("javax.net.ssl.keyStore", pksFilename);
|
||
System.setProperty("javax.net.ssl.keyStorePassword", pksPassword);
|
||
System.setProperty("javax.net.ssl.trustStore", trustPksFilename);
|
||
System.setProperty("javax.net.ssl.trustStorePassword", trustPksPassword);
|
||
URL wsdlUrl = new URL(address + "?wsdl");
|
||
IDedEPCglobalEPCISService service = new IDedEPCglobalEPCISService(wsdlUrl);
|
||
port = service.getPort(IDedEPCISServicePortType.class);
|
||
|
||
// turn off chunked transfer encoding
|
||
Client client = ClientProxy.getClient(port);
|
||
HTTPConduit httpConduit = (HTTPConduit) client.getConduit();
|
||
HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
|
||
httpClientPolicy.setAllowChunking(false);
|
||
httpConduit.setClient(httpClientPolicy);
|
||
|
||
if (pksFilename != null) {
|
||
log.debug("Authenticating with certificate in file: " + pksFilename);
|
||
|
||
if (!wsdlUrl.getProtocol().equalsIgnoreCase("https")) {
|
||
throw new Exception("Authentication method requires the use of HTTPS");
|
||
}
|
||
|
||
KeyStore keyStore = KeyStore.getInstance(pksFilename.endsWith(".p12") ? "PKCS12" : "JKS");
|
||
keyStore.load(new FileInputStream(new File(pksFilename)), pksPassword.toCharArray());
|
||
KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance("SunX509");
|
||
keyManagerFactory.init(keyStore, pksPassword.toCharArray());
|
||
|
||
KeyStore trustStore = KeyStore.getInstance(trustPksFilename.endsWith(".p12") ? "PKCS12" : "JKS");
|
||
trustStore.load(new FileInputStream(new File(trustPksFilename)), trustPksPassword.toCharArray());
|
||
TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance("SunX509");
|
||
trustManagerFactory.init(trustStore);
|
||
|
||
TLSClientParameters tlscp = new TLSClientParameters();
|
||
tlscp.setSecureRandom(new SecureRandom());
|
||
tlscp.setKeyManagers(keyManagerFactory.getKeyManagers());
|
||
tlscp.setTrustManagers(trustManagerFactory.getTrustManagers());
|
||
|
||
httpConduit.setTlsClientParameters(tlscp);
|
||
}
|
||
}
|
||
|
||
public Identity getIdentity() {
|
||
return identity;
|
||
}
|
||
|
||
public void setIdentity(Identity id) {
|
||
this.identity = id;
|
||
}
|
||
|
||
@Override
|
||
public QueryResults poll(Poll poll) throws ImplementationExceptionResponse, QueryTooComplexExceptionResponse, QueryTooLargeExceptionResponse, SecurityExceptionResponse, ValidationExceptionResponse, NoSuchNameExceptionResponse, QueryParameterExceptionResponse {
|
||
return port.iDedPoll(poll, identity);
|
||
}
|
||
|
||
@Override
|
||
public void subscribe(Subscribe subscribe) throws DuplicateSubscriptionExceptionResponse, ImplementationExceptionResponse, QueryTooComplexExceptionResponse, SecurityExceptionResponse, InvalidURIExceptionResponse, ValidationExceptionResponse, SubscribeNotPermittedExceptionResponse, NoSuchNameExceptionResponse, SubscriptionControlsExceptionResponse, QueryParameterExceptionResponse {
|
||
port.iDedSubscribe(subscribe, identity);
|
||
}
|
||
|
||
@Override
|
||
public void unsubscribe(String subscriptionId) throws ImplementationExceptionResponse, SecurityExceptionResponse, ValidationExceptionResponse, NoSuchSubscriptionExceptionResponse {
|
||
Unsubscribe unsubscribe = new Unsubscribe();
|
||
unsubscribe.setSubscriptionID(subscriptionId);
|
||
port.iDedUnsubscribe(unsubscribe, identity);
|
||
}
|
||
|
||
@Override
|
||
public List<String> getQueryNames() throws ImplementationExceptionResponse, SecurityExceptionResponse, ValidationExceptionResponse {
|
||
return epcisClient.getQueryNames();
|
||
}
|
||
|
||
@Override
|
||
public List<String> getSubscriptionIds(String queryName) throws ImplementationExceptionResponse, SecurityExceptionResponse, ValidationExceptionResponse, NoSuchNameExceptionResponse {
|
||
GetSubscriptionIDs gsubids = new GetSubscriptionIDs();
|
||
gsubids.setQueryName(queryName);
|
||
return port.iDedGetSubscriptionIDs(gsubids, identity).getString();
|
||
}
|
||
|
||
@Override
|
||
public String getStandardVersion() throws ImplementationExceptionResponse, SecurityExceptionResponse, ValidationExceptionResponse {
|
||
return epcisClient.getStandardVersion();
|
||
}
|
||
|
||
@Override
|
||
public String getVendorVersion() throws ImplementationExceptionResponse, SecurityExceptionResponse, ValidationExceptionResponse {
|
||
return epcisClient.getVendorVersion();
|
||
}
|
||
}
|
ETa/ETa-Query-Client/src/main/java/fr/unicaen/iota/eta/query/QueryControlClientTLS.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2013 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
* (at your option) any later version.
|
||
*
|
||
* This program is distributed in the hope that it will be useful,
|
||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
* GNU General Public License for more details.
|
||
* <http://www.gnu.org/licenses/>
|
||
*
|
||
* See AUTHORS for a list of contributors.
|
||
*/
|
||
package fr.unicaen.iota.eta.query;
|
||
|
||
import java.io.File;
|
||
import java.io.FileInputStream;
|
||
import java.security.KeyStore;
|
||
import java.security.KeyStoreException;
|
||
import java.security.NoSuchAlgorithmException;
|
||
import java.security.cert.CertificateException;
|
||
import java.security.cert.X509Certificate;
|
||
import javax.net.ssl.TrustManager;
|
||
import javax.net.ssl.TrustManagerFactory;
|
||
import javax.net.ssl.X509TrustManager;
|
||
import org.apache.commons.logging.Log;
|
||
import org.apache.commons.logging.LogFactory;
|
||
import org.fosstrak.epcis.queryclient.QueryControlClient;
|
||
import org.fosstrak.epcis.utils.AuthenticationType;
|
||
|
||
/**
|
||
*
|
||
*/
|
||
public class QueryControlClientTLS extends QueryControlClient {
|
||
|
||
private static final Log log = LogFactory.getLog(QueryControlClientTLS.class);
|
||
private final X509TrustManager x509TrustManager;
|
||
|
||
public QueryControlClientTLS(String address, String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) throws KeyStoreException {
|
||
super(address, new Object[]{AuthenticationType.HTTPS_WITH_CLIENT_CERT, pksFilename, pksPassword});
|
||
KeyStore trustStore = KeyStore.getInstance(trustPksFilename.endsWith(".p12") ? "PKCS12" : "JKS");
|
||
try {
|
||
trustStore.load(new FileInputStream(new File(trustPksFilename)), trustPksPassword.toCharArray());
|
||
} catch (Exception ex) {
|
||
log.fatal("Couldn’t load the TrustStore " + trustPksFilename, ex);
|
||
}
|
||
TrustManagerFactory trustManagerFactory = null;
|
||
try {
|
||
trustManagerFactory = TrustManagerFactory.getInstance("SunX509");
|
||
} catch (NoSuchAlgorithmException ex) {
|
||
log.fatal("Couldn’t find SunX509", ex);
|
||
}
|
||
trustManagerFactory.init(trustStore);
|
||
TrustManager[] trustManagers = trustManagerFactory.getTrustManagers();
|
||
|
||
X509TrustManager found = null;
|
||
for (TrustManager trustManager : trustManagers) {
|
||
if (trustManager instanceof X509TrustManager) {
|
||
found = (X509TrustManager) trustManager;
|
||
break;
|
||
}
|
||
}
|
||
if (found == null) {
|
||
log.fatal("Couldn’t find a X509TrustManager");
|
||
}
|
||
x509TrustManager = found;
|
||
}
|
||
|
||
@Override
|
||
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {
|
||
x509TrustManager.checkServerTrusted(chain, authType);
|
||
}
|
||
|
||
@Override
|
||
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {
|
||
x509TrustManager.checkServerTrusted(chain, authType);
|
||
}
|
||
|
||
@Override
|
||
public X509Certificate[] getAcceptedIssuers() {
|
||
return x509TrustManager.getAcceptedIssuers();
|
||
}
|
||
}
|
ETa/ETa-Query-Client/src/main/resources/META-INF/LICENSE | ||
---|---|---|
GNU GENERAL PUBLIC LICENSE
|
||
Version 3, 29 June 2007
|
||
|
||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||
Everyone is permitted to copy and distribute verbatim copies
|
||
of this license document, but changing it is not allowed.
|
||
|
||
Preamble
|
||
|
||
The GNU General Public License is a free, copyleft license for
|
||
software and other kinds of works.
|
||
|
||
The licenses for most software and other practical works are designed
|
||
to take away your freedom to share and change the works. By contrast,
|
||
the GNU General Public License is intended to guarantee your freedom to
|
||
share and change all versions of a program--to make sure it remains free
|
||
software for all its users. We, the Free Software Foundation, use the
|
||
GNU General Public License for most of our software; it applies also to
|
||
any other work released this way by its authors. You can apply it to
|
||
your programs, too.
|
||
|
||
When we speak of free software, we are referring to freedom, not
|
||
price. Our General Public Licenses are designed to make sure that you
|
||
have the freedom to distribute copies of free software (and charge for
|
||
them if you wish), that you receive source code or can get it if you
|
||
want it, that you can change the software or use pieces of it in new
|
||
free programs, and that you know you can do these things.
|
||
|
||
To protect your rights, we need to prevent others from denying you
|
||
these rights or asking you to surrender the rights. Therefore, you have
|
||
certain responsibilities if you distribute copies of the software, or if
|
||
you modify it: responsibilities to respect the freedom of others.
|
||
|
||
For example, if you distribute copies of such a program, whether
|
||
gratis or for a fee, you must pass on to the recipients the same
|
||
freedoms that you received. You must make sure that they, too, receive
|
||
or can get the source code. And you must show them these terms so they
|
||
know their rights.
|
||
|
||
Developers that use the GNU GPL protect your rights with two steps:
|
||
(1) assert copyright on the software, and (2) offer you this License
|
||
giving you legal permission to copy, distribute and/or modify it.
|
||
|
||
For the developers' and authors' protection, the GPL clearly explains
|
||
that there is no warranty for this free software. For both users' and
|
||
authors' sake, the GPL requires that modified versions be marked as
|
||
changed, so that their problems will not be attributed erroneously to
|
||
authors of previous versions.
|
||
|
||
Some devices are designed to deny users access to install or run
|
||
modified versions of the software inside them, although the manufacturer
|
||
can do so. This is fundamentally incompatible with the aim of
|
||
protecting users' freedom to change the software. The systematic
|
||
pattern of such abuse occurs in the area of products for individuals to
|
||
use, which is precisely where it is most unacceptable. Therefore, we
|
||
have designed this version of the GPL to prohibit the practice for those
|
||
products. If such problems arise substantially in other domains, we
|
||
stand ready to extend this provision to those domains in future versions
|
||
of the GPL, as needed to protect the freedom of users.
|
||
|
||
Finally, every program is threatened constantly by software patents.
|
||
States should not allow patents to restrict development and use of
|
||
software on general-purpose computers, but in those that do, we wish to
|
||
avoid the special danger that patents applied to a free program could
|
||
make it effectively proprietary. To prevent this, the GPL assures that
|
||
patents cannot be used to render the program non-free.
|
||
|
||
The precise terms and conditions for copying, distribution and
|
||
modification follow.
|
||
|
||
TERMS AND CONDITIONS
|
||
|
||
0. Definitions.
|
||
|
||
"This License" refers to version 3 of the GNU General Public License.
|
||
|
||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||
works, such as semiconductor masks.
|
||
|
||
"The Program" refers to any copyrightable work licensed under this
|
||
License. Each licensee is addressed as "you". "Licensees" and
|
||
"recipients" may be individuals or organizations.
|
||
|
||
To "modify" a work means to copy from or adapt all or part of the work
|
||
in a fashion requiring copyright permission, other than the making of an
|
||
exact copy. The resulting work is called a "modified version" of the
|
||
earlier work or a work "based on" the earlier work.
|
||
|
||
A "covered work" means either the unmodified Program or a work based
|
||
on the Program.
|
||
|
||
To "propagate" a work means to do anything with it that, without
|
||
permission, would make you directly or secondarily liable for
|
||
infringement under applicable copyright law, except executing it on a
|
||
computer or modifying a private copy. Propagation includes copying,
|
||
distribution (with or without modification), making available to the
|
||
public, and in some countries other activities as well.
|
||
|
||
To "convey" a work means any kind of propagation that enables other
|
||
parties to make or receive copies. Mere interaction with a user through
|
||
a computer network, with no transfer of a copy, is not conveying.
|
||
|
||
An interactive user interface displays "Appropriate Legal Notices"
|
||
to the extent that it includes a convenient and prominently visible
|
||
feature that (1) displays an appropriate copyright notice, and (2)
|
||
tells the user that there is no warranty for the work (except to the
|
||
extent that warranties are provided), that licensees may convey the
|
||
work under this License, and how to view a copy of this License. If
|
||
the interface presents a list of user commands or options, such as a
|
||
menu, a prominent item in the list meets this criterion.
|
||
|
||
1. Source Code.
|
||
|
||
The "source code" for a work means the preferred form of the work
|
||
for making modifications to it. "Object code" means any non-source
|
||
form of a work.
|
||
|
||
A "Standard Interface" means an interface that either is an official
|
||
standard defined by a recognized standards body, or, in the case of
|
||
interfaces specified for a particular programming language, one that
|
||
is widely used among developers working in that language.
|
||
|
||
The "System Libraries" of an executable work include anything, other
|
||
than the work as a whole, that (a) is included in the normal form of
|
||
packaging a Major Component, but which is not part of that Major
|
||
Component, and (b) serves only to enable use of the work with that
|
||
Major Component, or to implement a Standard Interface for which an
|
||
implementation is available to the public in source code form. A
|
||
"Major Component", in this context, means a major essential component
|
||
(kernel, window system, and so on) of the specific operating system
|
||
(if any) on which the executable work runs, or a compiler used to
|
||
produce the work, or an object code interpreter used to run it.
|
||
|
||
The "Corresponding Source" for a work in object code form means all
|
||
the source code needed to generate, install, and (for an executable
|
||
work) run the object code and to modify the work, including scripts to
|
||
control those activities. However, it does not include the work's
|
||
System Libraries, or general-purpose tools or generally available free
|
||
programs which are used unmodified in performing those activities but
|
||
which are not part of the work. For example, Corresponding Source
|
||
includes interface definition files associated with source files for
|
||
the work, and the source code for shared libraries and dynamically
|
||
linked subprograms that the work is specifically designed to require,
|
||
such as by intimate data communication or control flow between those
|
||
subprograms and other parts of the work.
|
||
|
||
The Corresponding Source need not include anything that users
|
||
can regenerate automatically from other parts of the Corresponding
|
||
Source.
|
||
|
||
The Corresponding Source for a work in source code form is that
|
||
same work.
|
||
|
||
2. Basic Permissions.
|
||
|
||
All rights granted under this License are granted for the term of
|
||
copyright on the Program, and are irrevocable provided the stated
|
||
conditions are met. This License explicitly affirms your unlimited
|
||
permission to run the unmodified Program. The output from running a
|
||
covered work is covered by this License only if the output, given its
|
||
content, constitutes a covered work. This License acknowledges your
|
||
rights of fair use or other equivalent, as provided by copyright law.
|
||
|
||
You may make, run and propagate covered works that you do not
|
||
convey, without conditions so long as your license otherwise remains
|
||
in force. You may convey covered works to others for the sole purpose
|
||
of having them make modifications exclusively for you, or provide you
|
||
with facilities for running those works, provided that you comply with
|
||
the terms of this License in conveying all material for which you do
|
||
not control copyright. Those thus making or running the covered works
|
||
for you must do so exclusively on your behalf, under your direction
|
||
and control, on terms that prohibit them from making any copies of
|
||
your copyrighted material outside their relationship with you.
|
||
|
||
Conveying under any other circumstances is permitted solely under
|
||
the conditions stated below. Sublicensing is not allowed; section 10
|
||
makes it unnecessary.
|
||
|
||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||
|
||
No covered work shall be deemed part of an effective technological
|
||
measure under any applicable law fulfilling obligations under article
|
||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||
similar laws prohibiting or restricting circumvention of such
|
||
measures.
|
||
|
||
When you convey a covered work, you waive any legal power to forbid
|
||
circumvention of technological measures to the extent such circumvention
|
||
is effected by exercising rights under this License with respect to
|
||
the covered work, and you disclaim any intention to limit operation or
|
||
modification of the work as a means of enforcing, against the work's
|
||
users, your or third parties' legal rights to forbid circumvention of
|
||
technological measures.
|
||
|
||
4. Conveying Verbatim Copies.
|
||
|
||
You may convey verbatim copies of the Program's source code as you
|
||
receive it, in any medium, provided that you conspicuously and
|
||
appropriately publish on each copy an appropriate copyright notice;
|
||
keep intact all notices stating that this License and any
|
||
non-permissive terms added in accord with section 7 apply to the code;
|
||
keep intact all notices of the absence of any warranty; and give all
|
||
recipients a copy of this License along with the Program.
|
||
|
||
You may charge any price or no price for each copy that you convey,
|
||
and you may offer support or warranty protection for a fee.
|
||
|
||
5. Conveying Modified Source Versions.
|
||
|
||
You may convey a work based on the Program, or the modifications to
|
||
produce it from the Program, in the form of source code under the
|
||
terms of section 4, provided that you also meet all of these conditions:
|
||
|
||
a) The work must carry prominent notices stating that you modified
|
||
it, and giving a relevant date.
|
||
|
||
b) The work must carry prominent notices stating that it is
|
||
released under this License and any conditions added under section
|
||
7. This requirement modifies the requirement in section 4 to
|
||
"keep intact all notices".
|
||
|
||
c) You must license the entire work, as a whole, under this
|
||
License to anyone who comes into possession of a copy. This
|
||
License will therefore apply, along with any applicable section 7
|
||
additional terms, to the whole of the work, and all its parts,
|
||
regardless of how they are packaged. This License gives no
|
||
permission to license the work in any other way, but it does not
|
||
invalidate such permission if you have separately received it.
|
||
|
||
d) If the work has interactive user interfaces, each must display
|
||
Appropriate Legal Notices; however, if the Program has interactive
|
||
interfaces that do not display Appropriate Legal Notices, your
|
||
work need not make them do so.
|
||
|
||
A compilation of a covered work with other separate and independent
|
||
works, which are not by their nature extensions of the covered work,
|
||
and which are not combined with it such as to form a larger program,
|
||
in or on a volume of a storage or distribution medium, is called an
|
||
"aggregate" if the compilation and its resulting copyright are not
|
||
used to limit the access or legal rights of the compilation's users
|
||
beyond what the individual works permit. Inclusion of a covered work
|
||
in an aggregate does not cause this License to apply to the other
|
||
parts of the aggregate.
|
||
|
||
6. Conveying Non-Source Forms.
|
||
|
||
You may convey a covered work in object code form under the terms
|
||
of sections 4 and 5, provided that you also convey the
|
||
machine-readable Corresponding Source under the terms of this License,
|
||
in one of these ways:
|
||
|
||
a) Convey the object code in, or embodied in, a physical product
|
||
(including a physical distribution medium), accompanied by the
|
||
Corresponding Source fixed on a durable physical medium
|
||
customarily used for software interchange.
|
||
|
||
b) Convey the object code in, or embodied in, a physical product
|
||
(including a physical distribution medium), accompanied by a
|
||
written offer, valid for at least three years and valid for as
|
||
long as you offer spare parts or customer support for that product
|
||
model, to give anyone who possesses the object code either (1) a
|
||
copy of the Corresponding Source for all the software in the
|
||
product that is covered by this License, on a durable physical
|
||
medium customarily used for software interchange, for a price no
|
||
more than your reasonable cost of physically performing this
|
||
conveying of source, or (2) access to copy the
|
||
Corresponding Source from a network server at no charge.
|
||
|
||
c) Convey individual copies of the object code with a copy of the
|
||
written offer to provide the Corresponding Source. This
|
||
alternative is allowed only occasionally and noncommercially, and
|
||
only if you received the object code with such an offer, in accord
|
||
with subsection 6b.
|
||
|
||
d) Convey the object code by offering access from a designated
|
||
place (gratis or for a charge), and offer equivalent access to the
|
||
Corresponding Source in the same way through the same place at no
|
||
further charge. You need not require recipients to copy the
|
||
Corresponding Source along with the object code. If the place to
|
||
copy the object code is a network server, the Corresponding Source
|
||
may be on a different server (operated by you or a third party)
|
||
that supports equivalent copying facilities, provided you maintain
|
||
clear directions next to the object code saying where to find the
|
||
Corresponding Source. Regardless of what server hosts the
|
||
Corresponding Source, you remain obligated to ensure that it is
|
||
available for as long as needed to satisfy these requirements.
|
||
|
||
e) Convey the object code using peer-to-peer transmission, provided
|
||
you inform other peers where the object code and Corresponding
|
||
Source of the work are being offered to the general public at no
|
||
charge under subsection 6d.
|
||
|
||
A separable portion of the object code, whose source code is excluded
|
||
from the Corresponding Source as a System Library, need not be
|
||
included in conveying the object code work.
|
||
|
||
A "User Product" is either (1) a "consumer product", which means any
|
||
tangible personal property which is normally used for personal, family,
|
||
or household purposes, or (2) anything designed or sold for incorporation
|
||
into a dwelling. In determining whether a product is a consumer product,
|
||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||
product received by a particular user, "normally used" refers to a
|
||
typical or common use of that class of product, regardless of the status
|
||
of the particular user or of the way in which the particular user
|
||
actually uses, or expects or is expected to use, the product. A product
|
||
is a consumer product regardless of whether the product has substantial
|
||
commercial, industrial or non-consumer uses, unless such uses represent
|
||
the only significant mode of use of the product.
|
||
|
||
"Installation Information" for a User Product means any methods,
|
||
procedures, authorization keys, or other information required to install
|
||
and execute modified versions of a covered work in that User Product from
|
||
a modified version of its Corresponding Source. The information must
|
||
suffice to ensure that the continued functioning of the modified object
|
||
code is in no case prevented or interfered with solely because
|
||
modification has been made.
|
||
|
||
If you convey an object code work under this section in, or with, or
|
||
specifically for use in, a User Product, and the conveying occurs as
|
||
part of a transaction in which the right of possession and use of the
|
||
User Product is transferred to the recipient in perpetuity or for a
|
||
fixed term (regardless of how the transaction is characterized), the
|
||
Corresponding Source conveyed under this section must be accompanied
|
||
by the Installation Information. But this requirement does not apply
|
||
if neither you nor any third party retains the ability to install
|
||
modified object code on the User Product (for example, the work has
|
||
been installed in ROM).
|
||
|
||
The requirement to provide Installation Information does not include a
|
||
requirement to continue to provide support service, warranty, or updates
|
||
for a work that has been modified or installed by the recipient, or for
|
||
the User Product in which it has been modified or installed. Access to a
|
||
network may be denied when the modification itself materially and
|
||
adversely affects the operation of the network or violates the rules and
|
||
protocols for communication across the network.
|
||
|
||
Corresponding Source conveyed, and Installation Information provided,
|
||
in accord with this section must be in a format that is publicly
|
||
documented (and with an implementation available to the public in
|
||
source code form), and must require no special password or key for
|
||
unpacking, reading or copying.
|
||
|
||
7. Additional Terms.
|
||
|
||
"Additional permissions" are terms that supplement the terms of this
|
||
License by making exceptions from one or more of its conditions.
|
||
Additional permissions that are applicable to the entire Program shall
|
||
be treated as though they were included in this License, to the extent
|
||
that they are valid under applicable law. If additional permissions
|
||
apply only to part of the Program, that part may be used separately
|
||
under those permissions, but the entire Program remains governed by
|
||
this License without regard to the additional permissions.
|
||
|
||
When you convey a copy of a covered work, you may at your option
|
||
remove any additional permissions from that copy, or from any part of
|
||
it. (Additional permissions may be written to require their own
|
||
removal in certain cases when you modify the work.) You may place
|
||
additional permissions on material, added by you to a covered work,
|
||
for which you have or can give appropriate copyright permission.
|
||
|
||
Notwithstanding any other provision of this License, for material you
|
||
add to a covered work, you may (if authorized by the copyright holders of
|
||
that material) supplement the terms of this License with terms:
|
||
|
||
a) Disclaiming warranty or limiting liability differently from the
|
||
terms of sections 15 and 16 of this License; or
|
||
|
||
b) Requiring preservation of specified reasonable legal notices or
|
||
author attributions in that material or in the Appropriate Legal
|
||
Notices displayed by works containing it; or
|
||
|
||
c) Prohibiting misrepresentation of the origin of that material, or
|
||
requiring that modified versions of such material be marked in
|
||
reasonable ways as different from the original version; or
|
||
|
||
d) Limiting the use for publicity purposes of names of licensors or
|
||
authors of the material; or
|
||
|
||
e) Declining to grant rights under trademark law for use of some
|
||
trade names, trademarks, or service marks; or
|
||
|
||
f) Requiring indemnification of licensors and authors of that
|
||
material by anyone who conveys the material (or modified versions of
|
||
it) with contractual assumptions of liability to the recipient, for
|
||
any liability that these contractual assumptions directly impose on
|
||
those licensors and authors.
|
||
|
||
All other non-permissive additional terms are considered "further
|
||
restrictions" within the meaning of section 10. If the Program as you
|
||
received it, or any part of it, contains a notice stating that it is
|
||
governed by this License along with a term that is a further
|
||
restriction, you may remove that term. If a license document contains
|
||
a further restriction but permits relicensing or conveying under this
|
||
License, you may add to a covered work material governed by the terms
|
||
of that license document, provided that the further restriction does
|
||
not survive such relicensing or conveying.
|
||
|
||
If you add terms to a covered work in accord with this section, you
|
||
must place, in the relevant source files, a statement of the
|
||
additional terms that apply to those files, or a notice indicating
|
||
where to find the applicable terms.
|
||
|
||
Additional terms, permissive or non-permissive, may be stated in the
|
||
form of a separately written license, or stated as exceptions;
|
||
the above requirements apply either way.
|
||
|
||
8. Termination.
|
||
|
||
You may not propagate or modify a covered work except as expressly
|
||
provided under this License. Any attempt otherwise to propagate or
|
||
modify it is void, and will automatically terminate your rights under
|
||
this License (including any patent licenses granted under the third
|
||
paragraph of section 11).
|
||
|
||
However, if you cease all violation of this License, then your
|
||
license from a particular copyright holder is reinstated (a)
|
||
provisionally, unless and until the copyright holder explicitly and
|
||
finally terminates your license, and (b) permanently, if the copyright
|
||
holder fails to notify you of the violation by some reasonable means
|
||
prior to 60 days after the cessation.
|
||
|
||
Moreover, your license from a particular copyright holder is
|
||
reinstated permanently if the copyright holder notifies you of the
|
||
violation by some reasonable means, this is the first time you have
|
||
received notice of violation of this License (for any work) from that
|
||
copyright holder, and you cure the violation prior to 30 days after
|
||
your receipt of the notice.
|
||
|
||
Termination of your rights under this section does not terminate the
|
||
licenses of parties who have received copies or rights from you under
|
||
this License. If your rights have been terminated and not permanently
|
||
reinstated, you do not qualify to receive new licenses for the same
|
||
material under section 10.
|
||
|
||
9. Acceptance Not Required for Having Copies.
|
||
|
||
You are not required to accept this License in order to receive or
|
||
run a copy of the Program. Ancillary propagation of a covered work
|
||
occurring solely as a consequence of using peer-to-peer transmission
|
||
to receive a copy likewise does not require acceptance. However,
|
||
nothing other than this License grants you permission to propagate or
|
||
modify any covered work. These actions infringe copyright if you do
|
||
not accept this License. Therefore, by modifying or propagating a
|
||
covered work, you indicate your acceptance of this License to do so.
|
||
|
||
10. Automatic Licensing of Downstream Recipients.
|
||
|
||
Each time you convey a covered work, the recipient automatically
|
||
receives a license from the original licensors, to run, modify and
|
||
propagate that work, subject to this License. You are not responsible
|
||
for enforcing compliance by third parties with this License.
|
||
|
||
An "entity transaction" is a transaction transferring control of an
|
||
organization, or substantially all assets of one, or subdividing an
|
||
organization, or merging organizations. If propagation of a covered
|
||
work results from an entity transaction, each party to that
|
||
transaction who receives a copy of the work also receives whatever
|
||
licenses to the work the party's predecessor in interest had or could
|
||
give under the previous paragraph, plus a right to possession of the
|
||
Corresponding Source of the work from the predecessor in interest, if
|
||
the predecessor has it or can get it with reasonable efforts.
|
||
|
||
You may not impose any further restrictions on the exercise of the
|
||
rights granted or affirmed under this License. For example, you may
|
||
not impose a license fee, royalty, or other charge for exercise of
|
||
rights granted under this License, and you may not initiate litigation
|
||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||
any patent claim is infringed by making, using, selling, offering for
|
||
sale, or importing the Program or any portion of it.
|
||
|
||
11. Patents.
|
||
|
||
A "contributor" is a copyright holder who authorizes use under this
|
||
License of the Program or a work on which the Program is based. The
|
||
work thus licensed is called the contributor's "contributor version".
|
||
|
||
A contributor's "essential patent claims" are all patent claims
|
||
owned or controlled by the contributor, whether already acquired or
|
||
hereafter acquired, that would be infringed by some manner, permitted
|
||
by this License, of making, using, or selling its contributor version,
|
||
but do not include claims that would be infringed only as a
|
||
consequence of further modification of the contributor version. For
|
||
purposes of this definition, "control" includes the right to grant
|
||
patent sublicenses in a manner consistent with the requirements of
|
||
this License.
|
||
|
||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||
patent license under the contributor's essential patent claims, to
|
||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||
propagate the contents of its contributor version.
|
||
|
||
In the following three paragraphs, a "patent license" is any express
|
||
agreement or commitment, however denominated, not to enforce a patent
|
||
(such as an express permission to practice a patent or covenant not to
|
||
sue for patent infringement). To "grant" such a patent license to a
|
||
party means to make such an agreement or commitment not to enforce a
|
||
patent against the party.
|
||
|
||
If you convey a covered work, knowingly relying on a patent license,
|
||
and the Corresponding Source of the work is not available for anyone
|
||
to copy, free of charge and under the terms of this License, through a
|
||
publicly available network server or other readily accessible means,
|
||
then you must either (1) cause the Corresponding Source to be so
|
||
available, or (2) arrange to deprive yourself of the benefit of the
|
||
patent license for this particular work, or (3) arrange, in a manner
|
||
consistent with the requirements of this License, to extend the patent
|
||
license to downstream recipients. "Knowingly relying" means you have
|
||
actual knowledge that, but for the patent license, your conveying the
|
||
covered work in a country, or your recipient's use of the covered work
|
||
in a country, would infringe one or more identifiable patents in that
|
||
country that you have reason to believe are valid.
|
||
|
||
If, pursuant to or in connection with a single transaction or
|
||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||
covered work, and grant a patent license to some of the parties
|
||
receiving the covered work authorizing them to use, propagate, modify
|
||
or convey a specific copy of the covered work, then the patent license
|
||
you grant is automatically extended to all recipients of the covered
|
||
work and works based on it.
|
||
|
||
A patent license is "discriminatory" if it does not include within
|
||
the scope of its coverage, prohibits the exercise of, or is
|
||
conditioned on the non-exercise of one or more of the rights that are
|
||
specifically granted under this License. You may not convey a covered
|
||
work if you are a party to an arrangement with a third party that is
|
||
in the business of distributing software, under which you make payment
|
||
to the third party based on the extent of your activity of conveying
|
||
the work, and under which the third party grants, to any of the
|
||
parties who would receive the covered work from you, a discriminatory
|
||
patent license (a) in connection with copies of the covered work
|
||
conveyed by you (or copies made from those copies), or (b) primarily
|
||
for and in connection with specific products or compilations that
|
||
contain the covered work, unless you entered into that arrangement,
|
||
or that patent license was granted, prior to 28 March 2007.
|
||
|
||
Nothing in this License shall be construed as excluding or limiting
|
||
any implied license or other defenses to infringement that may
|
||
otherwise be available to you under applicable patent law.
|
||
|
||
12. No Surrender of Others' Freedom.
|
||
|
||
If conditions are imposed on you (whether by court order, agreement or
|
||
otherwise) that contradict the conditions of this License, they do not
|
||
excuse you from the conditions of this License. If you cannot convey a
|
||
covered work so as to satisfy simultaneously your obligations under this
|
||
License and any other pertinent obligations, then as a consequence you may
|
||
not convey it at all. For example, if you agree to terms that obligate you
|
||
to collect a royalty for further conveying from those to whom you convey
|
||
the Program, the only way you could satisfy both those terms and this
|
||
License would be to refrain entirely from conveying the Program.
|
||
|
||
13. Use with the GNU Affero General Public License.
|
||
|
||
Notwithstanding any other provision of this License, you have
|
||
permission to link or combine any covered work with a work licensed
|
||
under version 3 of the GNU Affero General Public License into a single
|
||
combined work, and to convey the resulting work. The terms of this
|
||
License will continue to apply to the part which is the covered work,
|
||
but the special requirements of the GNU Affero General Public License,
|
||
section 13, concerning interaction through a network will apply to the
|
||
combination as such.
|
||
|
||
14. Revised Versions of this License.
|
||
|
||
The Free Software Foundation may publish revised and/or new versions of
|
||
the GNU General Public License from time to time. Such new versions will
|
||
be similar in spirit to the present version, but may differ in detail to
|
||
address new problems or concerns.
|
||
|
||
Each version is given a distinguishing version number. If the
|
||
Program specifies that a certain numbered version of the GNU General
|
||
Public License "or any later version" applies to it, you have the
|
||
option of following the terms and conditions either of that numbered
|
||
version or of any later version published by the Free Software
|
||
Foundation. If the Program does not specify a version number of the
|
||
GNU General Public License, you may choose any version ever published
|
||
by the Free Software Foundation.
|
||
|
||
If the Program specifies that a proxy can decide which future
|
||
versions of the GNU General Public License can be used, that proxy's
|
||
public statement of acceptance of a version permanently authorizes you
|
||
to choose that version for the Program.
|
||
|
||
Later license versions may give you additional or different
|
||
permissions. However, no additional obligations are imposed on any
|
||
author or copyright holder as a result of your choosing to follow a
|
||
later version.
|
||
|
||
15. Disclaimer of Warranty.
|
||
|
||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||
|
||
16. Limitation of Liability.
|
||
|
||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||
SUCH DAMAGES.
|
||
|
||
17. Interpretation of Sections 15 and 16.
|
||
|
||
If the disclaimer of warranty and limitation of liability provided
|
||
above cannot be given local legal effect according to their terms,
|
||
reviewing courts shall apply local law that most closely approximates
|
||
an absolute waiver of all civil liability in connection with the
|
||
Program, unless a warranty or assumption of liability accompanies a
|
||
copy of the Program in return for a fee.
|
||
|
||
END OF TERMS AND CONDITIONS
|
||
|
||
How to Apply These Terms to Your New Programs
|
||
|
||
If you develop a new program, and you want it to be of the greatest
|
||
possible use to the public, the best way to achieve this is to make it
|
||
free software which everyone can redistribute and change under these terms.
|
||
|
||
To do so, attach the following notices to the program. It is safest
|
||
to attach them to the start of each source file to most effectively
|
||
state the exclusion of warranty; and each file should have at least
|
||
the "copyright" line and a pointer to where the full notice is found.
|
||
|
||
<one line to give the program's name and a brief idea of what it does.>
|
||
Copyright (C) <year> <name of author>
|
||
|
||
This program is free software: you can redistribute it and/or modify
|
||
it under the terms of the GNU General Public License as published by
|
||
the Free Software Foundation, either version 3 of the License, or
|
||
(at your option) any later version.
|
||
|
||
This program is distributed in the hope that it will be useful,
|
||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
GNU General Public License for more details.
|
||
|
||
You should have received a copy of the GNU General Public License
|
||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
||
Also add information on how to contact you by electronic and paper mail.
|
||
|
||
If the program does terminal interaction, make it output a short
|
||
notice like this when it starts in an interactive mode:
|
||
|
||
<program> Copyright (C) <year> <name of author>
|
||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||
This is free software, and you are welcome to redistribute it
|
||
under certain conditions; type `show c' for details.
|
||
|
||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||
parts of the General Public License. Of course, your program's commands
|
||
might be different; for a GUI interface, you would use an "about box".
|
||
|
||
You should also get your employer (if you work as a programmer) or school,
|
||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||
For more information on this, and how to apply and follow the GNU GPL, see
|
||
<http://www.gnu.org/licenses/>.
|
||
|
||
The GNU General Public License does not permit incorporating your program
|
||
into proprietary programs. If your program is a subroutine library, you
|
||
may consider it more useful to permit linking proprietary applications with
|
||
the library. If this is what you want to do, use the GNU Lesser General
|
||
Public License instead of this License. But first, please read
|
||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
ETa/ETa-Query-Client/src/main/resources/wsdl/BasicTypes.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" targetNamespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||
|
||
<xs:simpleType name="MimeTypeQualifier">
|
||
<xs:annotation>
|
||
<xs:documentation>The MIME type as defined by IANA. Please refer to
|
||
http://www.iana.org/assignments/media-types/ for a list of types.
|
||
</xs:documentation>
|
||
</xs:annotation>
|
||
<xs:restriction base="xs:string"/>
|
||
</xs:simpleType>
|
||
|
||
<xs:simpleType name="Language">
|
||
<xs:annotation>
|
||
<xs:documentation>ISO 639-2; 1998 representation of Language name. Refer to http://www.loc.gov/standards/iso639-2/iso639jac.html to get the latest version of the standard.
|
||
</xs:documentation>
|
||
</xs:annotation>
|
||
<xs:restriction base="xs:string"/>
|
||
</xs:simpleType>
|
||
</xs:schema>
|
ETa/ETa-Query-Client/src/main/resources/wsdl/BusinessScope.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" targetNamespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||
<xs:complexType name="BusinessScope">
|
||
<xs:sequence>
|
||
<xs:element name="Scope" type="Scope" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
<xs:complexType name="Scope">
|
||
<xs:sequence>
|
||
<xs:group ref="ScopeAttributes"/>
|
||
<xs:element ref="ScopeInformation" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
<xs:group name="ScopeAttributes">
|
||
<xs:sequence>
|
||
<xs:element name="Type" type="xs:string"/>
|
||
<xs:element name="InstanceIdentifier" type="xs:string"/>
|
||
<xs:element name="Identifier" type="xs:string" minOccurs="0"/>
|
||
</xs:sequence>
|
||
</xs:group>
|
||
<xs:element name="ScopeInformation" type="xs:anyType" abstract="true"/>
|
||
<xs:element name="CorrelationInformation" type="CorrelationInformation" substitutionGroup="ScopeInformation"/>
|
||
<xs:complexType name="CorrelationInformation">
|
||
<xs:sequence>
|
||
<xs:element name="RequestingDocumentCreationDateTime" type="xs:dateTime" minOccurs="0"/>
|
||
<xs:element name="RequestingDocumentInstanceIdentifier" type="xs:string" minOccurs="0"/>
|
||
<xs:element name="ExpectedResponseDateTime" type="xs:dateTime" minOccurs="0"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
<xs:element name="BusinessService" type="BusinessService" substitutionGroup="ScopeInformation"/>
|
||
<xs:complexType name="BusinessService">
|
||
<xs:sequence>
|
||
<xs:element name="BusinessServiceName" type="xs:string" minOccurs="0"/>
|
||
<xs:element name="ServiceTransaction" type="ServiceTransaction" minOccurs="0"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
<xs:complexType name="ServiceTransaction">
|
||
<xs:attribute name="TypeOfServiceTransaction" type="TypeOfServiceTransaction" use="optional"/>
|
||
<xs:attribute name="IsNonRepudiationRequired" type="xs:string"/>
|
||
<xs:attribute name="IsAuthenticationRequired" type="xs:string"/>
|
||
<xs:attribute name="IsNonRepudiationOfReceiptRequired" type="xs:string"/>
|
||
<xs:attribute name="IsIntegrityCheckRequired" type="xs:string"/>
|
||
<xs:attribute name="IsApplicationErrorResponseRequested" type="xs:string"/>
|
||
<xs:attribute name="TimeToAcknowledgeReceipt" type="xs:string"/>
|
||
<xs:attribute name="TimeToAcknowledgeAcceptance" type="xs:string"/>
|
||
<xs:attribute name="TimeToPerform" type="xs:string"/>
|
||
<xs:attribute name="Recurrence" type="xs:string"/>
|
||
</xs:complexType>
|
||
<xs:simpleType name="TypeOfServiceTransaction">
|
||
<xs:restriction base="xs:string">
|
||
<xs:enumeration value="RequestingServiceTransaction"/>
|
||
<xs:enumeration value="RespondingServiceTransaction"/>
|
||
</xs:restriction>
|
||
</xs:simpleType>
|
||
</xs:schema>
|
ETa/ETa-Query-Client/src/main/resources/wsdl/DocumentIdentification.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" targetNamespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||
|
||
<xs:complexType name="DocumentIdentification">
|
||
<xs:sequence>
|
||
<xs:element name="Standard" type="xs:string"/>
|
||
<xs:element name="TypeVersion" type="xs:string"/>
|
||
<xs:element name="InstanceIdentifier" type="xs:string"/>
|
||
<xs:element name="Type" type="xs:string"/>
|
||
<xs:element name="MultipleType" type="xs:boolean" minOccurs="0"/>
|
||
<xs:element name="CreationDateAndTime" type="xs:dateTime"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
</xs:schema>
|
ETa/ETa-Query-Client/src/main/resources/wsdl/EPCglobal-epcis-1_0.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xsd:schema xmlns:epcis="urn:epcglobal:epcis:xsd:1" xmlns:sbdh="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" xmlns:epcglobal="urn:epcglobal:xsd:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:epcglobal:epcis:xsd:1" elementFormDefault="unqualified" attributeFormDefault="unqualified" version="1.0">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
<epcglobal:copyright>Copyright (C) 2006, 2005, 2004 EPCglobal Inc., All Rights Reserved.</epcglobal:copyright>
|
||
<epcglobal:disclaimer>EPCglobal Inc., its members, officers, directors, employees, or agents shall not be liable for any injury, loss, damages, financial or otherwise, arising from, related to, or caused by the use of this document. The use of said document shall constitute your express consent to the foregoing exculpation.</epcglobal:disclaimer>
|
||
<epcglobal:specification>EPC INFORMATION SERVICE (EPCIS) Version 1.0</epcglobal:specification>
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:import namespace="urn:epcglobal:xsd:1" schemaLocation="./EPCglobal.xsd"/>
|
||
<xsd:import namespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" schemaLocation="./StandardBusinessDocumentHeader.xsd"/>
|
||
<!-- EPCIS CORE ELEMENTS -->
|
||
<xsd:element name="EPCISDocument" type="epcis:EPCISDocumentType"/>
|
||
<xsd:complexType name="EPCISDocumentType">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
document that contains a Header and a Body.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcglobal:Document">
|
||
<xsd:sequence>
|
||
<xsd:element name="EPCISHeader" type="epcis:EPCISHeaderType" minOccurs="0"/>
|
||
<xsd:element name="EPCISBody" type="epcis:EPCISBodyType"/>
|
||
<xsd:element name="extension" type="epcis:EPCISDocumentExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISHeaderType">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
specific header(s) including the Standard Business Document Header.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:sequence>
|
||
<xsd:element ref="sbdh:StandardBusinessDocumentHeader"/>
|
||
<xsd:element name="extension" type="epcis:EPCISHeaderExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISBodyType">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
specific body that contains EPCIS related Events.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:sequence>
|
||
<xsd:element name="EventList" type="epcis:EventListType" minOccurs="0"/>
|
||
<xsd:element name="extension" type="epcis:EPCISBodyExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<!-- EPCIS CORE ELEMENT TYPES -->
|
||
<xsd:complexType name="EventListType">
|
||
<xsd:choice minOccurs="0" maxOccurs="unbounded">
|
||
<xsd:element name="ObjectEvent" type="epcis:ObjectEventType" minOccurs="0" maxOccurs="unbounded"/>
|
||
<xsd:element name="AggregationEvent" type="epcis:AggregationEventType" minOccurs="0" maxOccurs="unbounded"/>
|
||
<xsd:element name="QuantityEvent" type="epcis:QuantityEventType" minOccurs="0" maxOccurs="unbounded"/>
|
||
<xsd:element name="TransactionEvent" type="epcis:TransactionEventType" minOccurs="0" maxOccurs="unbounded"/>
|
||
<xsd:element name="extension" type="epcis:EPCISEventListExtensionType"/>
|
||
<xsd:any namespace="##other" processContents="lax"/>
|
||
</xsd:choice>
|
||
<!-- Note: the use of "unbounded" in both the xsd:choice element
|
||
and the enclosed xsd:element elements is, strictly speaking,
|
||
redundant. However, this was found to avoid problems with
|
||
certain XML processing tools, and so is retained here.
|
||
-->
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCListType">
|
||
<xsd:sequence>
|
||
<xsd:element name="epc" type="epcglobal:EPC" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:simpleType name="ActionType">
|
||
<xsd:restriction base="xsd:string">
|
||
<xsd:enumeration value="ADD"/>
|
||
<xsd:enumeration value="OBSERVE"/>
|
||
<xsd:enumeration value="DELETE"/>
|
||
</xsd:restriction>
|
||
</xsd:simpleType>
|
||
<xsd:simpleType name="ParentIDType">
|
||
<xsd:restriction base="xsd:anyURI"/>
|
||
</xsd:simpleType>
|
||
<!-- Standard Vocabulary -->
|
||
<xsd:simpleType name="BusinessStepIDType">
|
||
<xsd:restriction base="xsd:anyURI"/>
|
||
</xsd:simpleType>
|
||
<!-- Standard Vocabulary -->
|
||
<xsd:simpleType name="DispositionIDType">
|
||
<xsd:restriction base="xsd:anyURI"/>
|
||
</xsd:simpleType>
|
||
<!-- User Vocabulary -->
|
||
<xsd:simpleType name="EPCClassType">
|
||
<xsd:restriction base="xsd:anyURI"/>
|
||
</xsd:simpleType>
|
||
<!-- User Vocabulary -->
|
||
<xsd:simpleType name="ReadPointIDType">
|
||
<xsd:restriction base="xsd:anyURI"/>
|
||
</xsd:simpleType>
|
||
<xsd:complexType name="ReadPointType">
|
||
<xsd:sequence>
|
||
<xsd:element name="id" type="epcis:ReadPointIDType"/>
|
||
<xsd:element name="extension" type="epcis:ReadPointExtensionType" minOccurs="0"/>
|
||
<!-- The wildcard below provides the extension mechanism described in Section 9.4 -->
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="ReadPointExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<!-- User Vocabulary -->
|
||
<xsd:simpleType name="BusinessLocationIDType">
|
||
<xsd:restriction base="xsd:anyURI"/>
|
||
</xsd:simpleType>
|
||
<xsd:complexType name="BusinessLocationType">
|
||
<xsd:sequence>
|
||
<xsd:element name="id" type="epcis:BusinessLocationIDType"/>
|
||
<xsd:element name="extension" type="epcis:BusinessLocationExtensionType" minOccurs="0"/>
|
||
<!-- The wildcard below provides the extension mechanism described in Section 9.4 -->
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="BusinessLocationExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<!-- User Vocabulary -->
|
||
<xsd:simpleType name="BusinessTransactionIDType">
|
||
<xsd:restriction base="xsd:anyURI"/>
|
||
</xsd:simpleType>
|
||
<!-- Standard Vocabulary -->
|
||
<xsd:simpleType name="BusinessTransactionTypeIDType">
|
||
<xsd:restriction base="xsd:anyURI"/>
|
||
</xsd:simpleType>
|
||
<xsd:complexType name="BusinessTransactionType">
|
||
<xsd:simpleContent>
|
||
<xsd:extension base="epcis:BusinessTransactionIDType">
|
||
<xsd:attribute name="type" type="epcis:BusinessTransactionTypeIDType" use="optional"/>
|
||
</xsd:extension>
|
||
</xsd:simpleContent>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="BusinessTransactionListType">
|
||
<xsd:sequence>
|
||
<xsd:element name="bizTransaction" type="epcis:BusinessTransactionType" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<!-- items listed alphabetically by name -->
|
||
<!-- Some element types accommodate extensibility in the manner of
|
||
"Versioning XML Vocabularies" by David Orchard (see
|
||
http://www.xml.com/pub/a/2003/12/03/versioning.html).
|
||
|
||
In this approach, an optional <extension> element is defined
|
||
for each extensible element type, where an <extension> element
|
||
may contain future elements defined in the target namespace.
|
||
|
||
In addition to the optional <extension> element, extensible element
|
||
types are declared with a final xsd:any wildcard to accommodate
|
||
future elements defined by third parties (as denoted by the ##other
|
||
namespace).
|
||
|
||
Finally, the xsd:anyAttribute facility is used to allow arbitrary
|
||
attributes to be added to extensible element types. -->
|
||
<xsd:complexType name="EPCISEventType" abstract="true">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
base type for all EPCIS events.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:sequence>
|
||
<xsd:element name="eventTime" type="xsd:dateTime"/>
|
||
<xsd:element name="recordTime" type="xsd:dateTime" minOccurs="0"/>
|
||
<xsd:element name="eventTimeZoneOffset" type="xsd:string"/>
|
||
<xsd:element name="baseExtension" type="epcis:EPCISEventExtensionType" minOccurs="0"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="ObjectEventType">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
Object Event captures information about an event pertaining to one or more
|
||
objects identified by EPCs.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcis:EPCISEventType">
|
||
<xsd:sequence>
|
||
<xsd:element name="epcList" type="epcis:EPCListType"/>
|
||
<xsd:element name="action" type="epcis:ActionType"/>
|
||
<xsd:element name="bizStep" type="epcis:BusinessStepIDType" minOccurs="0"/>
|
||
<xsd:element name="disposition" type="epcis:DispositionIDType" minOccurs="0"/>
|
||
<xsd:element name="readPoint" type="epcis:ReadPointType" minOccurs="0"/>
|
||
<xsd:element name="bizLocation" type="epcis:BusinessLocationType" minOccurs="0"/>
|
||
<xsd:element name="bizTransactionList" type="epcis:BusinessTransactionListType" minOccurs="0"/>
|
||
<xsd:element name="extension" type="epcis:ObjectEventExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="AggregationEventType">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
Aggregation Event captures an event that applies to objects that
|
||
have a physical association with one another.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcis:EPCISEventType">
|
||
<xsd:sequence>
|
||
<xsd:element name="parentID" type="epcis:ParentIDType" minOccurs="0"/>
|
||
<xsd:element name="childEPCs" type="epcis:EPCListType"/>
|
||
<xsd:element name="action" type="epcis:ActionType"/>
|
||
<xsd:element name="bizStep" type="epcis:BusinessStepIDType" minOccurs="0"/>
|
||
<xsd:element name="disposition" type="epcis:DispositionIDType" minOccurs="0"/>
|
||
<xsd:element name="readPoint" type="epcis:ReadPointType" minOccurs="0"/>
|
||
<xsd:element name="bizLocation" type="epcis:BusinessLocationType" minOccurs="0"/>
|
||
<xsd:element name="bizTransactionList" type="epcis:BusinessTransactionListType" minOccurs="0"/>
|
||
<xsd:element name="extension" type="epcis:AggregationEventExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="QuantityEventType">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
Quantity Event captures an event that takes place with respect to a specified quantity of
|
||
object class.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcis:EPCISEventType">
|
||
<xsd:sequence>
|
||
<xsd:element name="epcClass" type="epcis:EPCClassType"/>
|
||
<xsd:element name="quantity" type="xsd:int"/>
|
||
<xsd:element name="bizStep" type="epcis:BusinessStepIDType" minOccurs="0"/>
|
||
<xsd:element name="disposition" type="epcis:DispositionIDType" minOccurs="0"/>
|
||
<xsd:element name="readPoint" type="epcis:ReadPointType" minOccurs="0"/>
|
||
<xsd:element name="bizLocation" type="epcis:BusinessLocationType" minOccurs="0"/>
|
||
<xsd:element name="bizTransactionList" type="epcis:BusinessTransactionListType" minOccurs="0"/>
|
||
<xsd:element name="extension" type="epcis:QuantityEventExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="TransactionEventType">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
Transaction Event describes the association or disassociation of physical objects to one or more business
|
||
transactions.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcis:EPCISEventType">
|
||
<xsd:sequence>
|
||
<xsd:element name="bizTransactionList" type="epcis:BusinessTransactionListType"/>
|
||
<xsd:element name="parentID" type="epcis:ParentIDType" minOccurs="0"/>
|
||
<xsd:element name="epcList" type="epcis:EPCListType"/>
|
||
<xsd:element name="action" type="epcis:ActionType"/>
|
||
<xsd:element name="bizStep" type="epcis:BusinessStepIDType" minOccurs="0"/>
|
||
<xsd:element name="disposition" type="epcis:DispositionIDType" minOccurs="0"/>
|
||
<xsd:element name="readPoint" type="epcis:ReadPointType" minOccurs="0"/>
|
||
<xsd:element name="bizLocation" type="epcis:BusinessLocationType" minOccurs="0"/>
|
||
<xsd:element name="extension" type="epcis:TransactionEventExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISDocumentExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISHeaderExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISBodyExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISEventListExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISEventExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="ObjectEventExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="AggregationEventExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="QuantityEventExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="TransactionEventExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
</xsd:schema>
|
ETa/ETa-Query-Client/src/main/resources/wsdl/EPCglobal-epcis-masterdata-1_0.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xsd:schema xmlns:epcismd="urn:epcglobal:epcis-masterdata:xsd:1" xmlns:sbdh="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" xmlns:epcglobal="urn:epcglobal:xsd:1" xmlns:epcis="urn:epcglobal:epcis:xsd:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:epcglobal:epcis-masterdata:xsd:1" elementFormDefault="unqualified" attributeFormDefault="unqualified" version="1.0">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
<epcglobal:copyright>Copyright (C) 2006, 2005, 2004 EPCglobal Inc., All Rights Reserved.</epcglobal:copyright>
|
||
<epcglobal:disclaimer>EPCglobal Inc., its members, officers, directors, employees, or agents shall not be liable for any injury, loss, damages, financial or otherwise, arising from, related to, or caused by the use of this document. The use of said document shall constitute your express consent to the foregoing exculpation.</epcglobal:disclaimer>
|
||
<epcglobal:specification>EPC INFORMATION SERVICE (EPCIS) Version 1.0</epcglobal:specification>
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:import namespace="urn:epcglobal:xsd:1" schemaLocation="./EPCglobal.xsd"/>
|
||
<xsd:import namespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" schemaLocation="./StandardBusinessDocumentHeader.xsd"/>
|
||
<xsd:import namespace="urn:epcglobal:epcis:xsd:1" schemaLocation="./EPCglobal-epcis-1_0.xsd"/>
|
||
<!-- MasterData CORE ELEMENTS -->
|
||
<xsd:element name="EPCISMasterDataDocument" type="epcismd:EPCISMasterDataDocumentType"/>
|
||
<xsd:complexType name="EPCISMasterDataDocumentType">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
MasterData document that contains a Header and a Body.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcglobal:Document">
|
||
<xsd:sequence>
|
||
<xsd:element name="EPCISHeader" type="epcis:EPCISHeaderType" minOccurs="0"/>
|
||
<xsd:element name="EPCISBody" type="epcismd:EPCISMasterDataBodyType"/>
|
||
<xsd:element name="extension" type="epcismd:EPCISMasterDataDocumentExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISMasterDataBodyType">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
MasterData specific body that contains Vocabularies.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:sequence>
|
||
<xsd:element name="VocabularyList" type="epcismd:VocabularyListType" minOccurs="0"/>
|
||
<xsd:element name="extension" type="epcismd:EPCISMasterDataBodyExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<!-- MasterData CORE ELEMENT TYPES -->
|
||
<xsd:complexType name="VocabularyListType">
|
||
<xsd:sequence>
|
||
<xsd:element name="Vocabulary" type="epcismd:VocabularyType" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="VocabularyType">
|
||
<xsd:sequence>
|
||
<xsd:element name="VocabularyElementList" type="epcismd:VocabularyElementListType" minOccurs="0"/>
|
||
<xsd:element name="extension" type="epcismd:VocabularyExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:attribute name="type" type="xsd:anyURI" use="required"/>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="VocabularyElementListType">
|
||
<xsd:sequence>
|
||
<xsd:element name="VocabularyElement" type="epcismd:VocabularyElementType" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<!-- Implementations SHALL treat a <children list containing zero elements
|
||
in the same way as if the <children> element were omitted altogether.
|
||
-->
|
||
<xsd:complexType name="VocabularyElementType">
|
||
<xsd:sequence>
|
||
<xsd:element name="attribute" type="epcismd:AttributeType" minOccurs="0" maxOccurs="unbounded"/>
|
||
<xsd:element name="children" type="epcismd:IDListType" minOccurs="0"/>
|
||
<xsd:element name="extension" type="epcismd:VocabularyElementExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:attribute name="id" type="xsd:anyURI" use="required"/>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="AttributeType">
|
||
<xsd:complexContent mixed="true">
|
||
<xsd:extension base="xsd:anyType">
|
||
<xsd:attribute name="id" type="xsd:anyURI" use="required"/>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="IDListType">
|
||
<xsd:sequence>
|
||
<xsd:element name="id" type="xsd:anyURI" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISMasterDataDocumentExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISMasterDataHeaderExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISMasterDataBodyExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="VocabularyExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="VocabularyElementExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
</xsd:schema>
|
ETa/ETa-Query-Client/src/main/resources/wsdl/EPCglobal-epcis-query-1_0.wsdl | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<!-- EPCIS QUERY SERVICE DEFINITIONS -->
|
||
<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:epcis="urn:epcglobal:epcis:xsd:1" xmlns:epcisq="urn:epcglobal:epcis-query:xsd:1" xmlns:epcglobal="urn:epcglobal:xsd:1" xmlns:impl="urn:epcglobal:epcis:wsdl:1" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:epcglobal:epcis:wsdl:1">
|
||
<wsdl:documentation>
|
||
<epcglobal:copyright>
|
||
Copyright (C) 2006, 2005 EPCglobal Inc., All Rights Reserved.
|
||
</epcglobal:copyright>
|
||
<epcglobal:disclaimer>
|
||
EPCglobal Inc., its members, officers, directors, employees, or agents shall not be liable for any injury, loss, damages, financial or otherwise, arising from, related to, or caused by the use of this document. The use of said document shall constitute your express consent to the foregoing exculpation.
|
||
</epcglobal:disclaimer>
|
||
<epcglobal:specification>
|
||
</epcglobal:specification>
|
||
</wsdl:documentation>
|
||
<wsdl:types>
|
||
<xsd:schema targetNamespace="urn:epcglobal:epcis:wsdl:1" xmlns:impl="urn:epcglobal:epcis:wsdl:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||
<xsd:import namespace="urn:epcglobal:xsd:1" schemaLocation="EPCglobal.xsd"/>
|
||
<xsd:import namespace="urn:epcglobal:epcis:xsd:1" schemaLocation="EPCglobal-epcis-1_0.xsd"/>
|
||
<xsd:import namespace="urn:epcglobal:epcis-query:xsd:1" schemaLocation="EPCglobal-epcis-query-1_0.xsd"/>
|
||
</xsd:schema>
|
||
</wsdl:types>
|
||
<wsdl:message name="getQueryNamesRequest">
|
||
<wsdl:part name="parms" element="epcisq:GetQueryNames"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="getQueryNamesResponse">
|
||
<wsdl:part name="getQueryNamesReturn" element="epcisq:GetQueryNamesResult"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="subscribeRequest">
|
||
<wsdl:part name="parms" element="epcisq:Subscribe"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="subscribeResponse">
|
||
<wsdl:part name="subscribeReturn" element="epcisq:SubscribeResult"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="unsubscribeRequest">
|
||
<wsdl:part name="parms" element="epcisq:Unsubscribe"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="unsubscribeResponse">
|
||
<wsdl:part name="unsubscribeReturn" element="epcisq:UnsubscribeResult"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="getSubscriptionIDsRequest">
|
||
<wsdl:part name="parms" element="epcisq:GetSubscriptionIDs"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="getSubscriptionIDsResponse">
|
||
<wsdl:part name="getSubscriptionIDsReturn" element="epcisq:GetSubscriptionIDsResult"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="pollRequest">
|
||
<wsdl:part name="parms" element="epcisq:Poll"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="pollResponse">
|
||
<wsdl:part name="pollReturn" element="epcisq:QueryResults"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="getStandardVersionRequest">
|
||
<wsdl:part name="parms" element="epcisq:GetStandardVersion"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="getStandardVersionResponse">
|
||
<wsdl:part name="getStandardVersionReturn" element="epcisq:GetStandardVersionResult"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="getVendorVersionRequest">
|
||
<wsdl:part name="parms" element="epcisq:GetVendorVersion"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="getVendorVersionResponse">
|
||
<wsdl:part name="getVendorVersionReturn" element="epcisq:GetVendorVersionResult"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="DuplicateNameExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:DuplicateNameException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="InvalidURIExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:InvalidURIException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="NoSuchNameExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:NoSuchNameException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="NoSuchSubscriptionExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:NoSuchSubscriptionException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="DuplicateSubscriptionExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:DuplicateSubscriptionException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="QueryParameterExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:QueryParameterException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="QueryTooLargeExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:QueryTooLargeException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="QueryTooComplexExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:QueryTooComplexException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="SubscriptionControlsExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:SubscriptionControlsException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="SubscribeNotPermittedExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:SubscribeNotPermittedException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="SecurityExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:SecurityException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="ValidationExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:ValidationException"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="ImplementationExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:ImplementationException"/>
|
||
</wsdl:message>
|
||
<wsdl:portType name="EPCISServicePortType">
|
||
<wsdl:operation name="getQueryNames">
|
||
<wsdl:input name="getQueryNamesRequest" message="impl:getQueryNamesRequest"/>
|
||
<wsdl:output name="getQueryNamesResponse" message="impl:getQueryNamesResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="subscribe">
|
||
<wsdl:input name="subscribeRequest" message="impl:subscribeRequest"/>
|
||
<wsdl:output name="subscribeResponse" message="impl:subscribeResponse"/>
|
||
<wsdl:fault name="NoSuchNameExceptionFault" message="impl:NoSuchNameExceptionResponse"/>
|
||
<wsdl:fault name="InvalidURIExceptionFault" message="impl:InvalidURIExceptionResponse"/>
|
||
<wsdl:fault name="DuplicateSubscriptionExceptionFault" message="impl:DuplicateSubscriptionExceptionResponse"/>
|
||
<wsdl:fault name="QueryParameterExceptionFault" message="impl:QueryParameterExceptionResponse"/>
|
||
<wsdl:fault name="QueryTooComplexExceptionFault" message="impl:QueryTooComplexExceptionResponse"/>
|
||
<wsdl:fault name="SubscriptionControlsExceptionFault" message="impl:SubscriptionControlsExceptionResponse"/>
|
||
<wsdl:fault name="SubscribeNotPermittedExceptionFault" message="impl:SubscribeNotPermittedExceptionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="unsubscribe">
|
||
<wsdl:input name="unsubscribeRequest" message="impl:unsubscribeRequest"/>
|
||
<wsdl:output name="unsubscribeResponse" message="impl:unsubscribeResponse"/>
|
||
<wsdl:fault name="NoSuchSubscriptionExceptionFault" message="impl:NoSuchSubscriptionExceptionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="getSubscriptionIDs">
|
||
<wsdl:input name="getSubscriptionIDsRequest" message="impl:getSubscriptionIDsRequest"/>
|
||
<wsdl:output name="getSubscriptionIDsResponse" message="impl:getSubscriptionIDsResponse"/>
|
||
<wsdl:fault name="NoSuchNameExceptionFault" message="impl:NoSuchNameExceptionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="poll">
|
||
<wsdl:input name="pollRequest" message="impl:pollRequest"/>
|
||
<wsdl:output name="pollResponse" message="impl:pollResponse"/>
|
||
<wsdl:fault name="QueryParameterExceptionFault" message="impl:QueryParameterExceptionResponse"/>
|
||
<wsdl:fault name="QueryTooLargeExceptionFault" message="impl:QueryTooLargeExceptionResponse"/>
|
||
<wsdl:fault name="QueryTooComplexExceptionFault" message="impl:QueryTooComplexExceptionResponse"/>
|
||
<wsdl:fault name="NoSuchNameExceptionFault" message="impl:NoSuchNameExceptionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="getStandardVersion">
|
||
<wsdl:input name="getStandardVersionRequest" message="impl:getStandardVersionRequest"/>
|
||
<wsdl:output name="getStandardVersionResponse" message="impl:getStandardVersionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="getVendorVersion">
|
||
<wsdl:input name="getVendorVersionRequest" message="impl:getVendorVersionRequest"/>
|
||
<wsdl:output name="getVendorVersionResponse" message="impl:getVendorVersionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
</wsdl:portType>
|
||
<wsdl:binding name="EPCISServiceBinding" type="impl:EPCISServicePortType">
|
||
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
||
<wsdl:operation name="getQueryNames">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="subscribe">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="NoSuchNameExceptionFault">
|
||
<wsdlsoap:fault name="NoSuchNameExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="InvalidURIExceptionFault">
|
||
<wsdlsoap:fault name="InvalidURIExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="DuplicateSubscriptionExceptionFault">
|
||
<wsdlsoap:fault name="DuplicateSubscriptionExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="QueryParameterExceptionFault">
|
||
<wsdlsoap:fault name="QueryParameterExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="QueryTooComplexExceptionFault">
|
||
<wsdlsoap:fault name="QueryTooComplexExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SubscribeNotPermittedExceptionFault">
|
||
<wsdlsoap:fault name="SubscribeNotPermittedExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SubscriptionControlsExceptionFault">
|
||
<wsdlsoap:fault name="SubscriptionControlsExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="unsubscribe">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="NoSuchSubscriptionExceptionFault">
|
||
<wsdlsoap:fault name="NoSuchSubscriptionExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="getSubscriptionIDs">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="NoSuchNameExceptionFault">
|
||
<wsdlsoap:fault name="NoSuchNameExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="poll">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="QueryParameterExceptionFault">
|
||
<wsdlsoap:fault name="QueryParameterExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="QueryTooComplexExceptionFault">
|
||
<wsdlsoap:fault name="QueryTooComplexExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="QueryTooLargeExceptionFault">
|
||
<wsdlsoap:fault name="QueryTooLargeExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="NoSuchNameExceptionFault">
|
||
<wsdlsoap:fault name="NoSuchNameExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="getStandardVersion">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="getVendorVersion">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
</wsdl:binding>
|
||
<wsdl:service name="EPCglobalEPCISService">
|
||
<wsdl:port name="EPCglobalEPCISServicePort" binding="impl:EPCISServiceBinding">
|
||
<!-- The address shown below is an example (default); an implementation MAY specify any port it wishes -->
|
||
<wsdlsoap:address location="http://localhost:8080/eta/query"/>
|
||
</wsdl:port>
|
||
</wsdl:service>
|
||
<!-- EPCISSERVICE TYPES -->
|
||
<!-- EPCIS QUERY SERVICE MESSAGES -->
|
||
<!-- EPCISSERVICE FAULT EXCEPTIONS -->
|
||
<!-- QueryValidationException not implemented in EPCIS 1.0
|
||
<wsdl:message name="QueryValidationExceptionResponse">
|
||
<wsdl:part name="fault" element="epcisq:QueryValidationException"/>
|
||
</wsdl:message>
|
||
-->
|
||
<!-- EPCISSERVICE PORTTYPE -->
|
||
<!-- EPCISSERVICE BINDING -->
|
||
<!-- EPCISSERVICE -->
|
||
</wsdl:definitions>
|
ETa/ETa-Query-Client/src/main/resources/wsdl/EPCglobal-epcis-query-1_0.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xsd:schema xmlns:epcis="urn:epcglobal:epcis:xsd:1" xmlns:epcismd="urn:epcglobal:epcis-masterdata:xsd:1" xmlns:epcisq="urn:epcglobal:epcis-query:xsd:1" xmlns:epcglobal="urn:epcglobal:xsd:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:epcglobal:epcis-query:xsd:1" elementFormDefault="unqualified" attributeFormDefault="unqualified" version="1.0">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
<epcglobal:copyright>
|
||
Copyright (C) 2006, 2005 EPCglobal Inc., All Rights Reserved.
|
||
</epcglobal:copyright>
|
||
<epcglobal:disclaimer>
|
||
EPCglobal Inc., its members, officers, directors, employees, or
|
||
agents shall not be liable for any injury, loss, damages, financial
|
||
or otherwise, arising from, related to, or caused by the use of
|
||
this document. The use of said document shall constitute your
|
||
express consent to the foregoing exculpation.
|
||
</epcglobal:disclaimer>
|
||
<epcglobal:specification>
|
||
EPCIS Query 1.0
|
||
</epcglobal:specification>
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:import namespace="urn:epcglobal:xsd:1" schemaLocation="./EPCglobal.xsd"/>
|
||
<xsd:import namespace="urn:epcglobal:epcis:xsd:1" schemaLocation="./EPCglobal-epcis-1_0.xsd"/>
|
||
<xsd:import namespace="urn:epcglobal:epcis-masterdata:xsd:1" schemaLocation="./EPCglobal-epcis-masterdata-1_0.xsd"/>
|
||
<xsd:element name="EPCISQueryDocument" type="epcisq:EPCISQueryDocumentType"/>
|
||
<xsd:complexType name="EPCISQueryDocumentType">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcglobal:Document">
|
||
<xsd:sequence>
|
||
<xsd:element name="EPCISHeader" type="epcis:EPCISHeaderType" minOccurs="0"/>
|
||
<xsd:element name="EPCISBody" type="epcisq:EPCISQueryBodyType"/>
|
||
<xsd:element name="extension" type="epcisq:EPCISQueryDocumentExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISQueryDocumentExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPCISQueryBodyType">
|
||
<xsd:choice>
|
||
<xsd:element ref="epcisq:GetQueryNames"/>
|
||
<xsd:element ref="epcisq:GetQueryNamesResult"/>
|
||
<xsd:element ref="epcisq:Subscribe"/>
|
||
<xsd:element ref="epcisq:SubscribeResult"/>
|
||
<xsd:element ref="epcisq:Unsubscribe"/>
|
||
<xsd:element ref="epcisq:UnsubscribeResult"/>
|
||
<xsd:element ref="epcisq:GetSubscriptionIDs"/>
|
||
<xsd:element ref="epcisq:GetSubscriptionIDsResult"/>
|
||
<xsd:element ref="epcisq:Poll"/>
|
||
<xsd:element ref="epcisq:GetStandardVersion"/>
|
||
<xsd:element ref="epcisq:GetStandardVersionResult"/>
|
||
<xsd:element ref="epcisq:GetVendorVersion"/>
|
||
<xsd:element ref="epcisq:GetVendorVersionResult"/>
|
||
<xsd:element ref="epcisq:DuplicateNameException"/>
|
||
<!-- queryValidationException unimplemented in EPCIS 1.0
|
||
<xsd:element ref="epcisq:QueryValidationException"/>
|
||
-->
|
||
<xsd:element ref="epcisq:InvalidURIException"/>
|
||
<xsd:element ref="epcisq:NoSuchNameException"/>
|
||
<xsd:element ref="epcisq:NoSuchSubscriptionException"/>
|
||
<xsd:element ref="epcisq:DuplicateSubscriptionException"/>
|
||
<xsd:element ref="epcisq:QueryParameterException"/>
|
||
<xsd:element ref="epcisq:QueryTooLargeException"/>
|
||
<xsd:element ref="epcisq:QueryTooComplexException"/>
|
||
<xsd:element ref="epcisq:SubscriptionControlsException"/>
|
||
<xsd:element ref="epcisq:SubscribeNotPermittedException"/>
|
||
<xsd:element ref="epcisq:SecurityException"/>
|
||
<xsd:element ref="epcisq:ValidationException"/>
|
||
<xsd:element ref="epcisq:ImplementationException"/>
|
||
<xsd:element ref="epcisq:QueryResults"/>
|
||
</xsd:choice>
|
||
</xsd:complexType>
|
||
<!-- EPCISSERVICE MESSAGE WRAPPERS -->
|
||
<xsd:element name="GetQueryNames" type="epcisq:EmptyParms"/>
|
||
<xsd:element name="GetQueryNamesResult" type="epcisq:ArrayOfString"/>
|
||
<xsd:element name="Subscribe" type="epcisq:Subscribe"/>
|
||
<xsd:complexType name="Subscribe">
|
||
<xsd:sequence>
|
||
<xsd:element name="queryName" type="xsd:string"/>
|
||
<xsd:element name="params" type="epcisq:QueryParams"/>
|
||
<xsd:element name="dest" type="xsd:anyURI"/>
|
||
<xsd:element name="controls" type="epcisq:SubscriptionControls"/>
|
||
<xsd:element name="subscriptionID" type="xsd:string"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:element name="SubscribeResult" type="epcisq:VoidHolder"/>
|
||
<xsd:element name="Unsubscribe" type="epcisq:Unsubscribe"/>
|
||
<xsd:complexType name="Unsubscribe">
|
||
<xsd:sequence>
|
||
<xsd:element name="subscriptionID" type="xsd:string"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:element name="UnsubscribeResult" type="epcisq:VoidHolder"/>
|
||
<xsd:element name="GetSubscriptionIDs" type="epcisq:GetSubscriptionIDs"/>
|
||
<xsd:complexType name="GetSubscriptionIDs">
|
||
<xsd:sequence>
|
||
<xsd:element name="queryName" type="xsd:string"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:element name="GetSubscriptionIDsResult" type="epcisq:ArrayOfString"/>
|
||
<xsd:element name="Poll" type="epcisq:Poll"/>
|
||
<xsd:complexType name="Poll">
|
||
<xsd:sequence>
|
||
<xsd:element name="queryName" type="xsd:string"/>
|
||
<xsd:element name="params" type="epcisq:QueryParams"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<!-- The response from a Poll method is the QueryResults element, defined below.
|
||
The QueryResults element is also used to deliver standing query results
|
||
through the Query Callback Interface -->
|
||
<xsd:element name="GetStandardVersion" type="epcisq:EmptyParms"/>
|
||
<xsd:element name="GetStandardVersionResult" type="xsd:string"/>
|
||
<xsd:element name="GetVendorVersion" type="epcisq:EmptyParms"/>
|
||
<xsd:element name="GetVendorVersionResult" type="xsd:string"/>
|
||
<xsd:element name="VoidHolder" type="epcisq:VoidHolder"/>
|
||
<xsd:complexType name="VoidHolder">
|
||
<xsd:sequence/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EmptyParms"/>
|
||
<xsd:complexType name="ArrayOfString">
|
||
<xsd:sequence>
|
||
<xsd:element name="string" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="SubscriptionControls">
|
||
<xsd:sequence>
|
||
<xsd:element name="schedule" type="epcisq:QuerySchedule" minOccurs="0"/>
|
||
<xsd:element name="trigger" type="xsd:anyURI" minOccurs="0"/>
|
||
<xsd:element name="initialRecordTime" type="xsd:dateTime" minOccurs="0"/>
|
||
<xsd:element name="reportIfEmpty" type="xsd:boolean"/>
|
||
<xsd:element name="extension" type="epcisq:SubscriptionControlsExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="SubscriptionControlsExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="QuerySchedule">
|
||
<xsd:sequence>
|
||
<xsd:element name="second" type="xsd:string" minOccurs="0"/>
|
||
<xsd:element name="minute" type="xsd:string" minOccurs="0"/>
|
||
<xsd:element name="hour" type="xsd:string" minOccurs="0"/>
|
||
<xsd:element name="dayOfMonth" type="xsd:string" minOccurs="0"/>
|
||
<xsd:element name="month" type="xsd:string" minOccurs="0"/>
|
||
<xsd:element name="dayOfWeek" type="xsd:string" minOccurs="0"/>
|
||
<xsd:element name="extension" type="epcisq:QueryScheduleExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="QueryScheduleExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="QueryParams">
|
||
<xsd:sequence>
|
||
<xsd:element name="param" type="epcisq:QueryParam" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="QueryParam">
|
||
<xsd:sequence>
|
||
<xsd:element name="name" type="xsd:string"/>
|
||
<!-- See note in EPCIS spec text regarding the value for this element -->
|
||
<xsd:element name="value" type="xsd:anyType"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:element name="QueryResults" type="epcisq:QueryResults"/>
|
||
<xsd:complexType name="QueryResults">
|
||
<xsd:sequence>
|
||
<xsd:element name="queryName" type="xsd:string"/>
|
||
<xsd:element name="subscriptionID" type="xsd:string" minOccurs="0"/>
|
||
<xsd:element name="resultsBody" type="epcisq:QueryResultsBody"/>
|
||
<xsd:element name="extension" type="epcisq:QueryResultsExtensionType" minOccurs="0"/>
|
||
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="QueryResultsExtensionType">
|
||
<xsd:sequence>
|
||
<xsd:any namespace="##local" processContents="lax" maxOccurs="unbounded"/>
|
||
</xsd:sequence>
|
||
<xsd:anyAttribute processContents="lax"/>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="QueryResultsBody">
|
||
<xsd:choice>
|
||
<xsd:element name="EventList" type="epcis:EventListType"/>
|
||
<xsd:element name="VocabularyList" type="epcismd:VocabularyListType"/>
|
||
</xsd:choice>
|
||
</xsd:complexType>
|
||
<!-- EPCIS EXCEPTIONS -->
|
||
<xsd:element name="EPCISException" type="epcisq:EPCISException"/>
|
||
<xsd:complexType name="EPCISException">
|
||
<xsd:sequence>
|
||
<xsd:element name="reason" type="xsd:string"/>
|
||
</xsd:sequence>
|
||
</xsd:complexType>
|
||
<xsd:element name="DuplicateNameException" type="epcisq:DuplicateNameException"/>
|
||
<xsd:complexType name="DuplicateNameException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<!-- QueryValidationException not implemented in EPCIS 1.0
|
||
<xsd:element name="QueryValidationException" type="epcisq:QueryValidationException"/>
|
||
<xsd:complexType name="QueryValidationException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
-->
|
||
<xsd:element name="InvalidURIException" type="epcisq:InvalidURIException"/>
|
||
<xsd:complexType name="InvalidURIException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="NoSuchNameException" type="epcisq:NoSuchNameException"/>
|
||
<xsd:complexType name="NoSuchNameException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="NoSuchSubscriptionException" type="epcisq:NoSuchSubscriptionException"/>
|
||
<xsd:complexType name="NoSuchSubscriptionException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="DuplicateSubscriptionException" type="epcisq:DuplicateSubscriptionException"/>
|
||
<xsd:complexType name="DuplicateSubscriptionException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="QueryParameterException" type="epcisq:QueryParameterException"/>
|
||
<xsd:complexType name="QueryParameterException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="QueryTooLargeException" type="epcisq:QueryTooLargeException"/>
|
||
<xsd:complexType name="QueryTooLargeException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence>
|
||
<xsd:element name="queryName" type="xsd:string" minOccurs="0"/>
|
||
<xsd:element name="subscriptionID" type="xsd:string" minOccurs="0"/>
|
||
</xsd:sequence>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="QueryTooComplexException" type="epcisq:QueryTooComplexException"/>
|
||
<xsd:complexType name="QueryTooComplexException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="SubscriptionControlsException" type="epcisq:SubscriptionControlsException"/>
|
||
<xsd:complexType name="SubscriptionControlsException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="SubscribeNotPermittedException" type="epcisq:SubscribeNotPermittedException"/>
|
||
<xsd:complexType name="SubscribeNotPermittedException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="SecurityException" type="epcisq:SecurityException"/>
|
||
<xsd:complexType name="SecurityException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="ValidationException" type="epcisq:ValidationException"/>
|
||
<xsd:complexType name="ValidationException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence/>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:element name="ImplementationException" type="epcisq:ImplementationException"/>
|
||
<xsd:complexType name="ImplementationException">
|
||
<xsd:complexContent>
|
||
<xsd:extension base="epcisq:EPCISException">
|
||
<xsd:sequence>
|
||
<xsd:element name="severity" type="epcisq:ImplementationExceptionSeverity"/>
|
||
<xsd:element name="queryName" type="xsd:string" minOccurs="0"/>
|
||
<xsd:element name="subscriptionID" type="xsd:string" minOccurs="0"/>
|
||
</xsd:sequence>
|
||
</xsd:extension>
|
||
</xsd:complexContent>
|
||
</xsd:complexType>
|
||
<xsd:simpleType name="ImplementationExceptionSeverity">
|
||
<xsd:restriction base="xsd:NCName">
|
||
<xsd:enumeration value="ERROR"/>
|
||
<xsd:enumeration value="SEVERE"/>
|
||
</xsd:restriction>
|
||
</xsd:simpleType>
|
||
</xsd:schema>
|
ETa/ETa-Query-Client/src/main/resources/wsdl/EPCglobal.xsd | ||
---|---|---|
<xsd:schema xmlns:epcglobal="urn:epcglobal:xsd:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:epcglobal:xsd:1" elementFormDefault="unqualified" attributeFormDefault="unqualified" version="1.0">
|
||
<xsd:annotation>
|
||
<xsd:documentation>
|
||
<epcglobal:copyright>Copyright (C) 2004 Epcglobal Inc., All Rights Reserved.</epcglobal:copyright>
|
||
<epcglobal:disclaimer>EPCglobal Inc., its members, officers, directors, employees, or agents shall not be liable for any injury, loss, damages, financial or otherwise, arising from, related to, or caused by the use of this document. The use of said document shall constitute your express consent to the foregoing exculpation.</epcglobal:disclaimer>
|
||
<epcglobal:specification>EPCglobal common components Version 1.0</epcglobal:specification>
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:complexType name="Document" abstract="true">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
EPCglobal document properties for all messages.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:attribute name="schemaVersion" type="xsd:decimal" use="required">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
The version of the schema corresponding to which the instance conforms.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
</xsd:attribute>
|
||
<xsd:attribute name="creationDate" type="xsd:dateTime" use="required">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
The date the message was created. Used for auditing and logging.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
</xsd:attribute>
|
||
</xsd:complexType>
|
||
<xsd:complexType name="EPC">
|
||
<xsd:annotation>
|
||
<xsd:documentation xml:lang="en">
|
||
EPC represents the Electronic Product Code.
|
||
</xsd:documentation>
|
||
</xsd:annotation>
|
||
<xsd:simpleContent>
|
||
<xsd:extension base="xsd:string"/>
|
||
</xsd:simpleContent>
|
||
</xsd:complexType>
|
||
</xsd:schema>
|
ETa/ETa-Query-Client/src/main/resources/wsdl/Manifest.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" targetNamespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||
<xs:include schemaLocation="BasicTypes.xsd"/>
|
||
|
||
<xs:complexType name="Manifest">
|
||
<xs:sequence>
|
||
<xs:element name="NumberOfItems" type="xs:integer"/>
|
||
<xs:element name="ManifestItem" type="ManifestItem" maxOccurs="unbounded"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
<xs:complexType name="ManifestItem">
|
||
<xs:sequence>
|
||
<xs:element name="MimeTypeQualifierCode" type="MimeTypeQualifier"/>
|
||
<xs:element name="UniformResourceIdentifier" type="xs:anyURI"/>
|
||
<xs:element name="Description" type="xs:string" minOccurs="0"/>
|
||
<xs:element name="LanguageCode" type="Language" minOccurs="0"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
</xs:schema>
|
ETa/ETa-Query-Client/src/main/resources/wsdl/Partner.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" targetNamespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||
|
||
<xs:complexType name="Partner">
|
||
<xs:sequence>
|
||
<xs:element name="Identifier" type="PartnerIdentification"/>
|
||
<xs:element name="ContactInformation" type="ContactInformation" minOccurs="0" maxOccurs="unbounded"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
<xs:complexType name="PartnerIdentification">
|
||
<xs:simpleContent>
|
||
<xs:extension base="xs:string">
|
||
<xs:attribute name="Authority" type="xs:string"/>
|
||
</xs:extension>
|
||
</xs:simpleContent>
|
||
</xs:complexType>
|
||
<xs:complexType name="ContactInformation">
|
||
<xs:sequence>
|
||
<xs:element name="Contact" type="xs:string"/>
|
||
<xs:element name="EmailAddress" type="xs:string" minOccurs="0"/>
|
||
<xs:element name="FaxNumber" type="xs:string" minOccurs="0"/>
|
||
<xs:element name="TelephoneNumber" type="xs:string" minOccurs="0"/>
|
||
<xs:element name="ContactTypeIdentifier" type="xs:string" minOccurs="0"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
</xs:schema>
|
ETa/ETa-Query-Client/src/main/resources/wsdl/StandardBusinessDocumentHeader.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" targetNamespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||
<xs:include schemaLocation="DocumentIdentification.xsd"/>
|
||
<xs:include schemaLocation="Partner.xsd"/>
|
||
<xs:include schemaLocation="Manifest.xsd"/>
|
||
<xs:include schemaLocation="BusinessScope.xsd"/>
|
||
<xs:complexType name="StandardBusinessDocumentHeader">
|
||
<xs:sequence>
|
||
<xs:element name="HeaderVersion" type="xs:string"/>
|
||
<xs:element name="Sender" type="Partner" maxOccurs="unbounded"/>
|
||
<xs:element name="Receiver" type="Partner" maxOccurs="unbounded"/>
|
||
<xs:element name="DocumentIdentification" type="DocumentIdentification"/>
|
||
<xs:element name="Manifest" type="Manifest" minOccurs="0"/>
|
||
<xs:element name="BusinessScope" type="BusinessScope" minOccurs="0"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
<xs:element name="StandardBusinessDocumentHeader" type="StandardBusinessDocumentHeader"/>
|
||
<xs:element name="StandardBusinessDocument" type="StandardBusinessDocument"/>
|
||
<xs:complexType name="StandardBusinessDocument">
|
||
<xs:sequence>
|
||
<xs:element ref="StandardBusinessDocumentHeader" minOccurs="0"/>
|
||
<xs:any namespace="##other" processContents="lax"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
</xs:schema>
|
ETa/ETa-Query-Client/src/main/resources/wsdl/tau-epcis.wsdl | ||
---|---|---|
<?xml version="1.0" encoding="utf-8"?>
|
||
<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
|
||
xmlns:apachesoap="http://xml.apache.org/xml-soap"
|
||
xmlns:epcis="urn:epcglobal:epcis:xsd:1"
|
||
xmlns:epcisq="urn:epcglobal:epcis-query:xsd:1"
|
||
xmlns:epcglobal="urn:epcglobal:xsd:1"
|
||
xmlns:impl="urn:epcglobal:epcis:wsdl:1"
|
||
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
|
||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
|
||
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||
targetNamespace="urn:unicaen:iota:eta:wsdl"
|
||
xmlns:eta="urn:unicaen:iota:eta:wsdl"
|
||
xmlns:tau="urn:unicaen:iota:tau:xsd">
|
||
<wsdl:import namespace="urn:epcglobal:epcis:wsdl:1" location="EPCglobal-epcis-query-1_0.wsdl" />
|
||
<wsdl:types>
|
||
<xsd:schema xmlns:impl="urn:epcglobal:epcis:wsdl:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:epcglobal:epcis:wsdl:1">
|
||
<xsd:import namespace="urn:unicaen:iota:tau:xsd" schemaLocation="tau.xsd"/>
|
||
</xsd:schema>
|
||
</wsdl:types>
|
||
<wsdl:message name="IDed_subscribeRequest">
|
||
<wsdl:part name="parms" element="epcisq:Subscribe"/>
|
||
<wsdl:part name="id" element="tau:identity"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="IDed_unsubscribeRequest">
|
||
<wsdl:part name="parms" element="epcisq:Unsubscribe"/>
|
||
<wsdl:part name="id" element="tau:identity"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="IDed_getSubscriptionIDsRequest">
|
||
<wsdl:part name="parms" element="epcisq:GetSubscriptionIDs"/>
|
||
<wsdl:part name="id" element="tau:identity"/>
|
||
</wsdl:message>
|
||
<wsdl:message name="IDed_pollRequest">
|
||
<wsdl:part name="parms" element="epcisq:Poll"/>
|
||
<wsdl:part name="id" element="tau:identity"/>
|
||
</wsdl:message>
|
||
<wsdl:portType name="IDed_EPCISServicePortType">
|
||
<wsdl:operation name="IDed_subscribe">
|
||
<wsdl:input name="IDed_subscribeRequest" message="eta:IDed_subscribeRequest"/>
|
||
<wsdl:output name="subscribeResponse" message="impl:subscribeResponse"/>
|
||
<wsdl:fault name="NoSuchNameExceptionFault" message="impl:NoSuchNameExceptionResponse"/>
|
||
<wsdl:fault name="InvalidURIExceptionFault" message="impl:InvalidURIExceptionResponse"/>
|
||
<wsdl:fault name="DuplicateSubscriptionExceptionFault" message="impl:DuplicateSubscriptionExceptionResponse"/>
|
||
<wsdl:fault name="QueryParameterExceptionFault" message="impl:QueryParameterExceptionResponse"/>
|
||
<wsdl:fault name="QueryTooComplexExceptionFault" message="impl:QueryTooComplexExceptionResponse"/>
|
||
<wsdl:fault name="SubscriptionControlsExceptionFault" message="impl:SubscriptionControlsExceptionResponse"/>
|
||
<wsdl:fault name="SubscribeNotPermittedExceptionFault" message="impl:SubscribeNotPermittedExceptionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="IDed_unsubscribe">
|
||
<wsdl:input name="IDed_unsubscribeRequest" message="eta:IDed_unsubscribeRequest"/>
|
||
<wsdl:output name="unsubscribeResponse" message="impl:unsubscribeResponse"/>
|
||
<wsdl:fault name="NoSuchSubscriptionExceptionFault" message="impl:NoSuchSubscriptionExceptionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="IDed_getSubscriptionIDs">
|
||
<wsdl:input name="IDed_getSubscriptionIDsRequest" message="eta:IDed_getSubscriptionIDsRequest"/>
|
||
<wsdl:output name="getSubscriptionIDsResponse" message="impl:getSubscriptionIDsResponse"/>
|
||
<wsdl:fault name="NoSuchNameExceptionFault" message="impl:NoSuchNameExceptionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="IDed_poll">
|
||
<wsdl:input name="IDed_pollRequest" message="eta:IDed_pollRequest"/>
|
||
<wsdl:output name="pollResponse" message="impl:pollResponse"/>
|
||
<wsdl:fault name="QueryParameterExceptionFault" message="impl:QueryParameterExceptionResponse"/>
|
||
<wsdl:fault name="QueryTooLargeExceptionFault" message="impl:QueryTooLargeExceptionResponse"/>
|
||
<wsdl:fault name="QueryTooComplexExceptionFault" message="impl:QueryTooComplexExceptionResponse"/>
|
||
<wsdl:fault name="NoSuchNameExceptionFault" message="impl:NoSuchNameExceptionResponse"/>
|
||
<wsdl:fault name="SecurityExceptionFault" message="impl:SecurityExceptionResponse"/>
|
||
<wsdl:fault name="ValidationExceptionFault" message="impl:ValidationExceptionResponse"/>
|
||
<wsdl:fault name="ImplementationExceptionFault" message="impl:ImplementationExceptionResponse"/>
|
||
</wsdl:operation>
|
||
</wsdl:portType>
|
||
<wsdl:binding name="IDed_EPCISServiceBinding" type="eta:IDed_EPCISServicePortType">
|
||
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
||
<wsdl:operation name="IDed_subscribe">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="NoSuchNameExceptionFault">
|
||
<wsdlsoap:fault name="NoSuchNameExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="InvalidURIExceptionFault">
|
||
<wsdlsoap:fault name="InvalidURIExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="DuplicateSubscriptionExceptionFault">
|
||
<wsdlsoap:fault name="DuplicateSubscriptionExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="QueryParameterExceptionFault">
|
||
<wsdlsoap:fault name="QueryParameterExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="QueryTooComplexExceptionFault">
|
||
<wsdlsoap:fault name="QueryTooComplexExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SubscribeNotPermittedExceptionFault">
|
||
<wsdlsoap:fault name="SubscribeNotPermittedExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SubscriptionControlsExceptionFault">
|
||
<wsdlsoap:fault name="SubscriptionControlsExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="IDed_unsubscribe">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="NoSuchSubscriptionExceptionFault">
|
||
<wsdlsoap:fault name="NoSuchSubscriptionExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="IDed_getSubscriptionIDs">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="NoSuchNameExceptionFault">
|
||
<wsdlsoap:fault name="NoSuchNameExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
<wsdl:operation name="IDed_poll">
|
||
<wsdlsoap:operation/>
|
||
<wsdl:input>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:input>
|
||
<wsdl:output>
|
||
<wsdlsoap:body use="literal"/>
|
||
</wsdl:output>
|
||
<wsdl:fault name="QueryParameterExceptionFault">
|
||
<wsdlsoap:fault name="QueryParameterExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="QueryTooComplexExceptionFault">
|
||
<wsdlsoap:fault name="QueryTooComplexExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="QueryTooLargeExceptionFault">
|
||
<wsdlsoap:fault name="QueryTooLargeExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="NoSuchNameExceptionFault">
|
||
<wsdlsoap:fault name="NoSuchNameExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="SecurityExceptionFault">
|
||
<wsdlsoap:fault name="SecurityExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ValidationExceptionFault">
|
||
<wsdlsoap:fault name="ValidationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
<wsdl:fault name="ImplementationExceptionFault">
|
||
<wsdlsoap:fault name="ImplementationExceptionFault" use="literal"/>
|
||
</wsdl:fault>
|
||
</wsdl:operation>
|
||
</wsdl:binding>
|
||
<wsdl:service name="IDed_EPCglobalEPCISService">
|
||
<wsdl:port name="IDed_EPCglobalEPCISServicePort" binding="eta:IDed_EPCISServiceBinding">
|
||
<!-- The address shown below is an example (default); an implementation MAY specify any port it wishes -->
|
||
<wsdlsoap:address location="http://localhost:8080/eta/ided_query"/>
|
||
</wsdl:port>
|
||
</wsdl:service>
|
||
</wsdl:definitions>
|
ETa/ETa-Query-Client/src/main/resources/wsdl/tau.xsd | ||
---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||
xmlns:tau="urn:unicaen:iota:tau:xsd"
|
||
targetNamespace="urn:unicaen:iota:tau:xsd"
|
||
elementFormDefault="unqualified" attributeFormDefault="unqualified">
|
||
|
||
<xs:element name="identity" type="tau:Identity"/>
|
||
|
||
<xs:complexType name="Identity">
|
||
<xs:sequence>
|
||
<xs:element name="asString" type="xs:string"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
|
||
<xs:element name="principal" type="tau:Principal"/>
|
||
|
||
<xs:complexType name="Principal">
|
||
<xs:sequence>
|
||
<xs:element name="name" type="xs:string"/>
|
||
<xs:element name="asString" type="xs:string"/>
|
||
<xs:element name="hashCode" type="xs:int"/>
|
||
</xs:sequence>
|
||
</xs:complexType>
|
||
|
||
</xs:schema>
|
ETa/ETa/LISEZMOI | ||
---|---|---|
modules IoTa:
|
||
- LibXACML-EPCIS
|
||
- EPCIS-Xi-Client
|
||
- Mu
|
||
bibliothèques:
|
||
- epcis-commons
|
||
- epcis-repository
|
||
... | ... | |
- spring
|
||
- cxf
|
||
- servlet-api
|
||
- mysql-connector
|
||
- commons-logging
|
||
- log4j
|
||
|
||
... | ... | |
commons-logging.properties et log4j.properties pour les journaux)
|
||
Utiliser le script ldap.sh dans IoTa-Installer/lib (droits root requis) pour configurer
|
||
l'annuaire LDAP.
|
||
Modifier le fichier tomcat-users.xml de Tomcat pour la gestion des
|
||
identités en TLS. Voir le fichier INSTALL.fr
|
||
|
||
Dépendances d’utilisation:
|
||
- un serveur MySQL
|
||
- un serveur LDAP
|
||
- un EPCIS
|
||
- EpcisPHI
|
||
- un DWS
|
ETa/ETa/README | ||
---|---|---|
IoTa modules:
|
||
- LibXACML-EPCIS
|
||
- EPCIS-Xi-Client
|
||
- Mu
|
||
libraries:
|
||
- epcis-commons
|
||
- epcis-repository
|
||
... | ... | |
- spring
|
||
- cxf
|
||
- servlet-api
|
||
- mysql-connector
|
||
- commons-logging
|
||
- log4j
|
||
|
||
... | ... | |
commons-logging.properties and log4j.properties for the logs)
|
||
Use the script ldap.sh in IoTa-Installer/lib (root privileges required) to
|
||
configure the LDAP directory.
|
||
Modify the tomcat-users.xml file of Tomcat to manage identity
|
||
with TLS. See the INSTALL file.
|
||
|
||
Usage Dependencies:
|
||
- a MySQL server
|
||
- a LDAP server
|
||
- an Epcis
|
||
- EpcisPHI
|
||
- a DWS
|
ETa/ETa/pom.xml | ||
---|---|---|
<artifactId>eta</artifactId>
|
||
<packaging>war</packaging>
|
||
<name>ETa Server</name>
|
||
<version>1.9-mock</version>
|
||
<version>1.9</version>
|
||
|
||
<properties>
|
||
<epcis-version>0.5.0</epcis-version>
|
||
... | ... | |
|
||
<dependency>
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>eta-client</artifactId>
|
||
<artifactId>eta-query-client</artifactId>
|
||
<version>${project.version}</version>
|
||
</dependency>
|
||
|
||
... | ... | |
<type>jar</type>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>mu</artifactId>
|
||
<version>${project.version}</version>
|
||
</dependency>
|
||
|
||
<!-- Fosstrak dependencies -->
|
||
<dependency>
|
||
<groupId>org.fosstrak.epcis</groupId>
|
ETa/ETa/src/main/java/fr/unicaen/iota/eta/capture/CaptureCheck.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
... | ... | |
*/
|
||
package fr.unicaen.iota.eta.capture;
|
||
|
||
import fr.unicaen.iota.eta.utils.Utils;
|
||
import fr.unicaen.iota.mu.Constants;
|
||
import fr.unicaen.iota.xacml.XACMLConstantsEventType;
|
||
import fr.unicaen.iota.xacml.pep.ExtensionEvent;
|
||
import fr.unicaen.iota.xacml.pep.XACMLEPCISEvent;
|
||
import fr.unicaen.iota.xacml.pep.XACMLEPCISMasterData;
|
||
import fr.unicaen.iota.xi.client.EPCISPEP;
|
||
import fr.unicaen.iota.xi.utils.Utils;
|
||
import java.util.Date;
|
||
import java.util.Iterator;
|
||
import java.util.List;
|
||
import javax.xml.bind.JAXBElement;
|
||
import org.fosstrak.epcis.model.*;
|
||
import org.fosstrak.epcis.utils.TimeParser;
|
||
import org.w3c.dom.Element;
|
||
... | ... | |
* Checks the capture events by XACML requests to the XACML module.
|
||
*
|
||
* @param epcisEventList The capture events.
|
||
* @param user The user name to check.
|
||
* @return <code>true</code> if the capture is permitted.
|
||
*/
|
||
public boolean xacmlCheck(List<EPCISEventType> epcisEventList, String user, String owner) {
|
||
public boolean xacmlCheck(List<EPCISEventType> epcisEventList, String user) {
|
||
for (EPCISEventType epcisEvent : epcisEventList) {
|
||
String owner = Utils.getEventOwner(epcisEvent);
|
||
if (owner == null) {
|
||
owner = user;
|
||
}
|
||
if (epcisEvent instanceof ObjectEventType) {
|
||
if (!checkObjectEvent((ObjectEventType) epcisEvent, user, owner)) {
|
||
return false;
|
||
... | ... | |
* Checks access rights to an aggregation event.
|
||
*
|
||
* @param baseEvent The aggregation capture event to check.
|
||
* @param user The user name to check.
|
||
* @param owner The owner name to check.
|
||
* @return <code>true</code> if the aggregation capture event is permitted.
|
||
*/
|
||
private boolean checkAggregationEvent(AggregationEventType aggregationEvent, String user, String owner) {
|
||
... | ... | |
String extensionName = element.getLocalName();
|
||
String value = element.getTextContent();
|
||
|
||
if (Constants.URN_IOTA.equals(namespace) &&
|
||
(Constants.EXTENSION_OWNER_ID.equals(extensionName)
|
||
|| Constants.EXTENSION_SIGNATURE.equals(extensionName)
|
||
|| Constants.EXTENSION_SIGNER_ID.equals(extensionName))) {
|
||
continue;
|
||
}
|
||
|
||
// Gets the extension value
|
||
Object extensionValue = null;
|
||
try {
|
||
... | ... | |
* Checks access rights to an object event.
|
||
*
|
||
* @param objectEvent The object capture event to check.
|
||
* @param user The user name to check.
|
||
* @param owner The owner name to check.
|
||
* @return <code>true</code> if the object capture event is permitted.
|
||
*/
|
||
private boolean checkObjectEvent(ObjectEventType objectEvent, String user, String owner) {
|
||
... | ... | |
String extensionName = element.getLocalName();
|
||
String value = element.getTextContent();
|
||
|
||
if (Constants.URN_IOTA.equals(namespace) &&
|
||
(Constants.EXTENSION_OWNER_ID.equals(extensionName)
|
||
|| Constants.EXTENSION_SIGNATURE.equals(extensionName)
|
||
|| Constants.EXTENSION_SIGNER_ID.equals(extensionName))) {
|
||
continue;
|
||
}
|
||
|
||
// Gets the extension value
|
||
Object extensionValue = null;
|
||
try {
|
||
... | ... | |
* Checks access rights to a quantity event.
|
||
*
|
||
* @param quantityEvent The quantity capture event to check.
|
||
* @param user The user name to check.
|
||
* @param owner The owner name to check.
|
||
* @return <code>true</code> if the quantity capture event is permitted.
|
||
*/
|
||
private boolean checkQuantityEvent(QuantityEventType quantityEvent, String user, String owner) {
|
||
... | ... | |
String extensionName = element.getLocalName();
|
||
String value = element.getTextContent();
|
||
|
||
if (Constants.URN_IOTA.equals(namespace) &&
|
||
(Constants.EXTENSION_OWNER_ID.equals(extensionName)
|
||
|| Constants.EXTENSION_SIGNATURE.equals(extensionName)
|
||
|| Constants.EXTENSION_SIGNER_ID.equals(extensionName))) {
|
||
continue;
|
||
}
|
||
|
||
// Gets the extension value
|
||
Object extensionValue = null;
|
||
try {
|
||
... | ... | |
* Checks access rights to a transaction event.
|
||
*
|
||
* @param transactionEvent The transaction capture event to check.
|
||
* @param user The user name to check.
|
||
* @param owner The owner name to chec.
|
||
* @return <code>true</code> if the transaction capture event is permitted.
|
||
*/
|
||
private boolean checkTransactionEvent(TransactionEventType transactionEvent, String user, String owner) {
|
||
... | ... | |
String extensionName = element.getLocalName();
|
||
String value = element.getTextContent();
|
||
|
||
if (Constants.URN_IOTA.equals(namespace) &&
|
||
(Constants.EXTENSION_OWNER_ID.equals(extensionName)
|
||
|| Constants.EXTENSION_SIGNATURE.equals(extensionName)
|
||
|| Constants.EXTENSION_SIGNER_ID.equals(extensionName))) {
|
||
continue;
|
||
}
|
||
|
||
// Gets the extension value
|
||
Object extensionValue = null;
|
||
try {
|
||
... | ... | |
*/
|
||
public boolean xacmlCheck(XACMLEPCISEvent xacmlEvent, String user) {
|
||
int xacmlResponse = epcisPEP.captureEvent(user, xacmlEvent);
|
||
return Utils.responseIsPermit(xacmlResponse);
|
||
return fr.unicaen.iota.xi.utils.Utils.responseIsPermit(xacmlResponse);
|
||
}
|
||
|
||
/**
|
||
* Filters the list of master data.
|
||
*
|
||
* Checks the list of master data.
|
||
* @param vocList The list of master data to filter.
|
||
* @param user The user name to check.
|
||
* @param owner The owner to check.
|
||
* @return <code>true</code> if permitted.
|
||
*/
|
||
public boolean xacmlCheckMasterD(List<VocabularyType> vocList, String user, String owner) {
|
||
boolean onePermit = false;
|
||
public boolean xacmlCheckMasterD(List<VocabularyType> vocList, String user) {
|
||
for (VocabularyType voc : vocList) {
|
||
if (xacmlCheckMasterDType(voc.getVocabularyElementList().getVocabularyElement(), user, owner)) {
|
||
onePermit = true;
|
||
if (!xacmlCheckMasterDType(voc.getVocabularyElementList().getVocabularyElement(), user)) {
|
||
return false;
|
||
}
|
||
}
|
||
return onePermit;
|
||
return true;
|
||
}
|
||
|
||
/**
|
||
* Filters the list of master data, by element type.
|
||
* Checks the list of master data, by element type.
|
||
*
|
||
* @param vocElList The list of master data to filter.
|
||
* @param user The user name to check
|
||
* @param owner The owner to check.
|
||
* @return <code>true</code> if permitted.
|
||
*/
|
||
private boolean xacmlCheckMasterDType(List<VocabularyElementType> vocElList, String user, String owner) {
|
||
private boolean xacmlCheckMasterDType(List<VocabularyElementType> vocElList, String user) {
|
||
Iterator<VocabularyElementType> iterVoc = vocElList.iterator();
|
||
boolean onePermit = false;
|
||
while (iterVoc.hasNext()) {
|
||
VocabularyElementType vocEl = iterVoc.next();
|
||
String id = vocEl.getId();
|
||
XACMLEPCISMasterData xacmlMasterData = new XACMLEPCISMasterData(owner, id);
|
||
if (!xacmlCheckMasterData(xacmlMasterData, user)) {
|
||
iterVoc.remove();
|
||
} else {
|
||
onePermit = true;
|
||
boolean ownerFound = false;
|
||
for (Object object : vocEl.getAny()) {
|
||
JAXBElement elem = (JAXBElement) object;
|
||
if (Constants.URN_IOTA.equals(elem.getName().getNamespaceURI()) &&
|
||
Constants.EXTENSION_OWNER_ID.equals(elem.getName().getLocalPart())) {
|
||
String owner = elem.getValue().toString();
|
||
XACMLEPCISMasterData xacmlMasterData = new XACMLEPCISMasterData(owner, id);
|
||
if (!xacmlCheckMasterData(xacmlMasterData, user)) {
|
||
return false;
|
||
}
|
||
ownerFound = true;
|
||
break;
|
||
}
|
||
}
|
||
if (!ownerFound) {
|
||
return false;
|
||
}
|
||
}
|
||
return onePermit;
|
||
return true;
|
||
}
|
||
|
||
/**
|
||
... | ... | |
*/
|
||
private boolean xacmlCheckMasterData(XACMLEPCISMasterData xacmlMasterData, String user) {
|
||
int xacmlResponse = epcisPEP.captureMasterData(user, xacmlMasterData);
|
||
return Utils.responseIsPermit(xacmlResponse);
|
||
return fr.unicaen.iota.xi.utils.Utils.responseIsPermit(xacmlResponse);
|
||
}
|
||
}
|
ETa/ETa/src/main/java/fr/unicaen/iota/eta/capture/CaptureOperationsModule.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
... | ... | |
*/
|
||
package fr.unicaen.iota.eta.capture;
|
||
|
||
import fr.unicaen.iota.eta.constants.Constants;
|
||
import fr.unicaen.iota.eta.utils.Constants;
|
||
import fr.unicaen.iota.eta.utils.Utils;
|
||
import fr.unicaen.iota.sigma.client.SigMaClient;
|
||
import fr.unicaen.iota.sigma.xsd.Verification;
|
||
import java.io.*;
|
||
... | ... | |
* Performs database reset by querying EPCIS.
|
||
*
|
||
* @param rsp The HTTP response
|
||
* @param out
|
||
* @param out
|
||
* @throws IOException if an error occurred while configuring EPCIS capture
|
||
* client.
|
||
* @throws Exception
|
||
* @throws Exception
|
||
*/
|
||
public void doDbReset(final HttpServletResponse rsp, final PrintWriter out) throws IOException, Exception {
|
||
String msg;
|
||
... | ... | |
/**
|
||
* Performs EPCIS capture after XACML check.
|
||
*
|
||
* @param req
|
||
* @param req
|
||
* @param rsp The response.
|
||
* @throws SAXException If the document parsing failed.
|
||
* @throws IOException If an error occurred while validating the request or
|
||
... | ... | |
*/
|
||
public void doCapture(HttpServletRequest req, HttpServletResponse rsp) throws SAXException, IOException, InternalBusinessException {
|
||
Principal authId = req.getUserPrincipal();
|
||
String user = authId != null ? authId.toString() : Constants.XACML_DEFAULT_USER;
|
||
String user = authId != null ? authId.getName() : Constants.XACML_DEFAULT_USER;
|
||
InputStream in = req.getInputStream();
|
||
Document document = null;
|
||
try {
|
||
... | ... | |
* Processes the given document, performs access control and sends this
|
||
* document to the EPCIS if permited.
|
||
*
|
||
* @param user The user name.
|
||
* @param document The document to capture.
|
||
* @param rsp The HTTP response.
|
||
* @throws SAXException If an error processing the XML document occurred.
|
||
... | ... | |
IOException, TransformerConfigurationException, TransformerException, CaptureClientException, Exception {
|
||
List<EPCISEventType> captureEventList = extractsCaptureEventList(document);
|
||
|
||
PrintWriter out = rsp.getWriter();
|
||
String msg;
|
||
|
||
if (Constants.SIGMA_VERIFICATION) {
|
||
if (sigmaClient == null) {
|
||
sigmaClient = new SigMaClient(Constants.SIGMA_URL, Constants.PKS_FILENAME, Constants.PKS_PASSWORD,
|
||
Constants.TRUST_PKS_FILENAME, Constants.TRUST_PKS_PASSWORD);
|
||
}
|
||
for (EPCISEventType event : captureEventList) {
|
||
Verification res = sigmaClient.verify(event);
|
||
if (res.getVerifyResponse().isValue()) {
|
||
LOG.info("Event signature verified by the SigMA server.");
|
||
} else {
|
||
LOG.info("Event signature is not correct. Please verify your partner capturer.");
|
||
LOG.debug("Event signature verified by the SigMA server.");
|
||
}
|
||
else {
|
||
msg = "Event signature is not correct.";
|
||
LOG.info(msg);
|
||
rsp.setStatus(HttpServletResponse.SC_FORBIDDEN);
|
||
out.println(msg);
|
||
return;
|
||
}
|
||
}
|
||
}
|
||
|
||
PrintWriter out = rsp.getWriter();
|
||
String msg;
|
||
|
||
// XACML check start
|
||
for (EPCISEventType event : captureEventList) {
|
||
Utils.insertEventOwnerIfMissing(event, user);
|
||
}
|
||
LOG.debug("START OF XACML check");
|
||
//TODO reset allowed after tests
|
||
// TODO user + owner
|
||
String owner = "anonymous";
|
||
boolean allowed = captureCheck.xacmlCheck(captureEventList, user, owner);
|
||
boolean allowed = captureCheck.xacmlCheck(captureEventList, user);
|
||
if (allowed) {
|
||
msg = "XACML check result: PERMITTED";
|
||
LOG.debug(msg);
|
||
... | ... | |
// XACML check start
|
||
LOG.debug("START OF XACML check");
|
||
//TODO reset allowed after tests
|
||
// TODO user + owner
|
||
String owner = "anonymous";
|
||
boolean allowed = captureCheck.xacmlCheckMasterD(vocList, user, owner);
|
||
boolean allowed = captureCheck.xacmlCheckMasterD(vocList, user);
|
||
if (allowed) {
|
||
msg = "XACML check result: PERMITTED";
|
||
LOG.debug(msg);
|
ETa/ETa/src/main/java/fr/unicaen/iota/eta/capture/CaptureOperationsServlet.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
||
* Copyright © 2007 ETH Zurich
|
||
*
|
||
... | ... | |
*/
|
||
package fr.unicaen.iota.eta.capture;
|
||
|
||
import fr.unicaen.iota.eta.constants.Constants;
|
||
import fr.unicaen.iota.eta.utils.Constants;
|
||
import fr.unicaen.iota.sigma.client.SigMaClient;
|
||
import fr.unicaen.iota.xi.client.EPCISPEP;
|
||
import java.io.IOException;
|
||
... | ... | |
cm = new CaptureOperationsModule();
|
||
cm.setEpcisSchemaFile(Constants.EPCIS_SCHEMA_FILE);
|
||
cm.setEpcisMasterDataSchemaFile(Constants.EPCIS_MASTER_DATA_SCHEMA_FILE);
|
||
EPCISPEP epcisPEP = new EPCISPEP(Constants.XACML_URL);
|
||
EPCISPEP epcisPEP = new EPCISPEP(Constants.XACML_URL, Constants.PKS_FILENAME, Constants.PKS_PASSWORD, Constants.TRUST_PKS_FILENAME, Constants.TRUST_PKS_PASSWORD);
|
||
cm.setCaptureCheck(new CaptureCheck(epcisPEP));
|
||
getServletContext().setAttribute("captureOperationsModule", cm);
|
||
SigMaClient sigMaClient = new SigMaClient(Constants.SIGMA_URL);
|
||
SigMaClient sigMaClient = new SigMaClient(Constants.SIGMA_URL,
|
||
Constants.PKS_FILENAME, Constants.PKS_PASSWORD, Constants.TRUST_PKS_FILENAME, Constants.TRUST_PKS_PASSWORD );
|
||
cm.setSigMaClient(sigMaClient);
|
||
} else {
|
||
LOG.debug("Capture module found");
|
ETa/ETa/src/main/java/fr/unicaen/iota/eta/constants/Constants.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
* (at your option) any later version.
|
||
*
|
||
* This program is distributed in the hope that it will be useful,
|
||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
* GNU General Public License for more details.
|
||
* <http://www.gnu.org/licenses/>
|
||
*
|
||
* See AUTHORS for a list of contributors.
|
||
*/
|
||
package fr.unicaen.iota.eta.constants;
|
||
|
||
import java.io.IOException;
|
||
import java.io.InputStream;
|
||
import java.util.Properties;
|
||
import org.apache.commons.logging.Log;
|
||
import org.apache.commons.logging.LogFactory;
|
||
|
||
public final class Constants {
|
||
|
||
private static final Log log = LogFactory.getLog(Constants.class);
|
||
public static final String PROP_SERVICE_VERSION = "service-version";
|
||
public static final String PROP_SESSION_TIME_LEASE = "session-time-lease";
|
||
public static final String PROP_SESSION_FAILED_ID = "session-failed-id";
|
||
public static final String PROP_XACML_URL = "xacml-url";
|
||
public static final String PROP_XACML_IHM_URL = "xacml-ihm-url";
|
||
public static final String PROP_XACML_DEFAULT_USER = "xacml-default-user";
|
||
public static final String PROP_EPCIS_QUERY_URL = "epcis-query-url";
|
||
public static final String PROP_EPCIS_CAPTURE_URL = "epcis-capture-url";
|
||
public static final String PROP_CALLBACK_URL = "eta-callback-url";
|
||
public static final String PROP_EPCIS_SCHEMA_FILE = "epcisSchemaFile";
|
||
public static final String PROP_EPCIS_MASTER_DATA_SCHEMA_FILE = "epcisMasterDataSchemaFile";
|
||
public static final String PROP_JNDI_DATASOURCE_NAME = "jndi-datasource-name";
|
||
public static final String PROP_LDAP_URL = "ldap-url";
|
||
public static final String PROP_LDAP_BASE_DN = "ldap-basedn";
|
||
public static final String PROP_LDAP_USER = "ldap-user";
|
||
public static final String PROP_LDAP_PASSWORD = "ldap-password";
|
||
public static final String PROP_SIGMA_URL = "sigma-url";
|
||
public static final String PROP_SIGMA_VERIFICATION = "sigma-verification";
|
||
public static final String SERVICE_VERSION;
|
||
public static final int SESSION_TIME_LEASE;
|
||
public static final String SESSION_FAILED_ID;
|
||
public static final String XACML_URL;
|
||
public static final String XACML_IHM_URL;
|
||
public static final String XACML_DEFAULT_USER;
|
||
public static final String CALLBACK_URL;
|
||
public static final String EPCIS_QUERY_URL;
|
||
public static final String EPCIS_CAPTURE_URL;
|
||
public static final String EPCIS_SCHEMA_FILE;
|
||
public static final String EPCIS_MASTER_DATA_SCHEMA_FILE;
|
||
public static final String JNDI_DATASOURCE_NAME;
|
||
public static final String LDAP_URL;
|
||
public static final String LDAP_BASE_DN;
|
||
public static final String LDAP_USER;
|
||
public static final String LDAP_PASSWORD;
|
||
public static final String SIGMA_URL;
|
||
public static final boolean SIGMA_VERIFICATION;
|
||
|
||
private Constants() {
|
||
}
|
||
|
||
static {
|
||
Properties properties = new Properties();
|
||
InputStream is = Constants.class.getClassLoader().getResourceAsStream("application.properties");
|
||
log.info("Chargement des propriétés de l'application");
|
||
|
||
try {
|
||
properties.load(is);
|
||
} catch (IOException ex) {
|
||
log.fatal(null, ex);
|
||
}
|
||
SERVICE_VERSION = properties.getProperty(PROP_SERVICE_VERSION);
|
||
SESSION_TIME_LEASE = Integer.parseInt(properties.getProperty(PROP_SESSION_TIME_LEASE));
|
||
SESSION_FAILED_ID = properties.getProperty(PROP_SESSION_FAILED_ID );
|
||
XACML_URL = properties.getProperty(PROP_XACML_URL);
|
||
XACML_IHM_URL = properties.getProperty(PROP_XACML_IHM_URL);
|
||
XACML_DEFAULT_USER = properties.getProperty(PROP_XACML_DEFAULT_USER);
|
||
EPCIS_QUERY_URL = properties.getProperty(PROP_EPCIS_QUERY_URL);
|
||
EPCIS_CAPTURE_URL = properties.getProperty(PROP_EPCIS_CAPTURE_URL);
|
||
CALLBACK_URL = properties.getProperty(PROP_CALLBACK_URL);
|
||
EPCIS_SCHEMA_FILE = properties.getProperty(PROP_EPCIS_SCHEMA_FILE);
|
||
EPCIS_MASTER_DATA_SCHEMA_FILE = properties.getProperty(PROP_EPCIS_MASTER_DATA_SCHEMA_FILE);
|
||
JNDI_DATASOURCE_NAME = properties.getProperty(PROP_JNDI_DATASOURCE_NAME);
|
||
LDAP_URL = properties.getProperty(PROP_LDAP_URL);
|
||
LDAP_BASE_DN = properties.getProperty(PROP_LDAP_BASE_DN);
|
||
LDAP_USER = properties.getProperty(PROP_LDAP_USER);
|
||
LDAP_PASSWORD = properties.getProperty(PROP_LDAP_PASSWORD);
|
||
SIGMA_URL = properties.getProperty(PROP_SIGMA_URL);
|
||
SIGMA_VERIFICATION = Boolean.parseBoolean(properties.getProperty(PROP_SIGMA_VERIFICATION));
|
||
}
|
||
}
|
ETa/ETa/src/main/java/fr/unicaen/iota/eta/query/IDedQueryOperationsWebService.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2012-2013 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
... | ... | |
*/
|
||
package fr.unicaen.iota.eta.query;
|
||
|
||
import fr.unicaen.iota.eta.constants.Constants;
|
||
import fr.unicaen.iota.eta.utils.Constants;
|
||
import fr.unicaen.iota.eta.soap.IDedEPCISServicePortType;
|
||
import fr.unicaen.iota.tau.model.Identity;
|
||
import java.security.Principal;
|
||
... | ... | |
|
||
private static final Log LOG = LogFactory.getLog(IDedQueryOperationsWebService.class);
|
||
@Resource
|
||
private WebServiceContext wsContext;
|
||
protected WebServiceContext wsContext;
|
||
protected QueryOperationsModule queryModule;
|
||
protected final Identity anonymous;
|
||
|
||
public IDedQueryOperationsWebService() {
|
||
anonymous = new Identity();
|
||
anonymous.setAsString(Constants.XACML_DEFAULT_USER);
|
||
}
|
||
|
||
public IDedQueryOperationsWebService(QueryOperationsModule queryModule) {
|
||
this();
|
||
this.queryModule = queryModule;
|
||
}
|
||
|
||
... | ... | |
|
||
private void checkAuth(Identity id) throws SecurityExceptionResponse {
|
||
Principal authId = wsContext.getUserPrincipal();
|
||
if (authId == null || id == anonymous) {
|
||
return;
|
||
}
|
||
if (!queryModule.canBe(authId, id)) {
|
||
throw new SecurityExceptionResponse(authId.getName() + " isn't allowed to pass as " + id.getAsString());
|
||
if (authId == null) { // no TLS
|
||
if (!Constants.XACML_ANONYMOUS_USER.equals(id.getAsString())) {
|
||
throw new SecurityExceptionResponse("Can't allowed to pass as " + id.getAsString() +
|
||
" without authentication. Only " + Constants.XACML_ANONYMOUS_USER + " is allowed.");
|
||
}
|
||
} else { // TLS
|
||
if (!queryModule.canBe(authId, id)) {
|
||
throw new SecurityExceptionResponse(authId.getName() + " isn't allowed to pass as " + id.getAsString());
|
||
}
|
||
}
|
||
}
|
||
|
ETa/ETa/src/main/java/fr/unicaen/iota/eta/query/QueryCheck.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
... | ... | |
*/
|
||
package fr.unicaen.iota.eta.query;
|
||
|
||
import fr.unicaen.iota.eta.utils.Utils;
|
||
import fr.unicaen.iota.mu.Constants;
|
||
import fr.unicaen.iota.xacml.XACMLConstantsEventType;
|
||
import fr.unicaen.iota.xacml.pep.ExtensionEvent;
|
||
import fr.unicaen.iota.xacml.pep.XACMLEPCISEvent;
|
||
import fr.unicaen.iota.xacml.pep.XACMLEPCISMasterData;
|
||
import fr.unicaen.iota.xi.client.EPCISPEP;
|
||
import fr.unicaen.iota.xi.utils.Utils;
|
||
import java.util.Date;
|
||
import java.util.Iterator;
|
||
import java.util.List;
|
||
... | ... | |
*/
|
||
public boolean xacmlCheck(XACMLEPCISEvent xacmlEvent, String user) {
|
||
int xacmlResponse = epcisPEP.queryEvent(user, xacmlEvent);
|
||
return Utils.responseIsPermit(xacmlResponse);
|
||
return fr.unicaen.iota.xi.utils.Utils.responseIsPermit(xacmlResponse);
|
||
}
|
||
|
||
/**
|
||
... | ... | |
* @param user The user name to check.
|
||
* @return The filtered list.
|
||
*/
|
||
public List<Object> xacmlCheck(List<Object> objects, String user, String owner) {
|
||
public List<Object> xacmlCheck(List<Object> objects, String user) {
|
||
Iterator<Object> iterObject = objects.iterator();
|
||
while (iterObject.hasNext()) {
|
||
Object result = iterObject.next();
|
||
... | ... | |
}
|
||
|
||
if (result instanceof ObjectEventType) {
|
||
if (!checkObjectEvent((ObjectEventType) result, user, owner)) {
|
||
if (!checkObjectEvent((ObjectEventType) result, user)) {
|
||
iterObject.remove();
|
||
}
|
||
} else if (result instanceof AggregationEventType) {
|
||
if (!checkAggregationEvent((AggregationEventType) result, user, owner)) {
|
||
if (!checkAggregationEvent((AggregationEventType) result, user)) {
|
||
iterObject.remove();
|
||
}
|
||
} else if (result instanceof QuantityEventType) {
|
||
if (!checkQuantityEvent((QuantityEventType) result, user, owner)) {
|
||
if (!checkQuantityEvent((QuantityEventType) result, user)) {
|
||
iterObject.remove();
|
||
}
|
||
} else if (result instanceof TransactionEventType) {
|
||
if (!checkTransactionEvent((TransactionEventType) result, user, owner)) {
|
||
if (!checkTransactionEvent((TransactionEventType) result, user)) {
|
||
iterObject.remove();
|
||
}
|
||
}
|
||
... | ... | |
*
|
||
* @param objectEvent The object event to filter by XACML requests.
|
||
* @param user The user to check.
|
||
* @param owner The owner to check.
|
||
* @return <code>true</code> if the object event is permitted.
|
||
*/
|
||
private boolean checkObjectEvent(ObjectEventType objectEvent, String user, String owner) {
|
||
private boolean checkObjectEvent(ObjectEventType objectEvent, String user) {
|
||
String owner = Utils.getEventOwner(objectEvent);
|
||
if (owner == null) {
|
||
return false;
|
||
}
|
||
Date eventTime = (objectEvent.getEventTime() != null) ? objectEvent.getEventTime().toGregorianCalendar().getTime() : null;
|
||
Date recordTime = (objectEvent.getRecordTime() != null) ? objectEvent.getRecordTime().toGregorianCalendar().getTime() : null;
|
||
String eventType = XACMLConstantsEventType.OBJECT;
|
||
... | ... | |
String extensionName = element.getLocalName();
|
||
String value = element.getTextContent();
|
||
|
||
if (Constants.URN_IOTA.equals(namespace) &&
|
||
(Constants.EXTENSION_OWNER_ID.equals(extensionName)
|
||
|| Constants.EXTENSION_SIGNATURE.equals(extensionName)
|
||
|| Constants.EXTENSION_SIGNER_ID.equals(extensionName))) {
|
||
continue;
|
||
}
|
||
|
||
// Gets the extension value
|
||
Object extensionValue = null;
|
||
try {
|
||
... | ... | |
* @param owner The owner to check.
|
||
* @return <code>true</code> if the aggregation event is permitted.
|
||
*/
|
||
private boolean checkAggregationEvent(AggregationEventType aggregationEvent, String user, String owner) {
|
||
private boolean checkAggregationEvent(AggregationEventType aggregationEvent, String user) {
|
||
String owner = Utils.getEventOwner(aggregationEvent);
|
||
if (owner == null) {
|
||
return false;
|
||
}
|
||
Date eventTime = (aggregationEvent.getEventTime() != null) ? aggregationEvent.getEventTime().toGregorianCalendar().getTime() : null;
|
||
Date recordTime = (aggregationEvent.getRecordTime() != null) ? aggregationEvent.getRecordTime().toGregorianCalendar().getTime() : null;
|
||
String eventType = XACMLConstantsEventType.AGGREGATION;
|
||
... | ... | |
String extensionName = element.getLocalName();
|
||
String value = element.getTextContent();
|
||
|
||
if (Constants.URN_IOTA.equals(namespace) &&
|
||
(Constants.EXTENSION_OWNER_ID.equals(extensionName)
|
||
|| Constants.EXTENSION_SIGNATURE.equals(extensionName)
|
||
|| Constants.EXTENSION_SIGNER_ID.equals(extensionName))) {
|
||
continue;
|
||
}
|
||
|
||
// Gets the extension value
|
||
Object extensionValue = null;
|
||
try {
|
||
... | ... | |
* @param owner The owner to check.
|
||
* @return <code>true</code> if the quantity event is permitted.
|
||
*/
|
||
private boolean checkQuantityEvent(QuantityEventType quantityEvent, String user, String owner) {
|
||
private boolean checkQuantityEvent(QuantityEventType quantityEvent, String user) {
|
||
String owner = Utils.getEventOwner(quantityEvent);
|
||
if (owner == null) {
|
||
return false;
|
||
}
|
||
Date eventTime = (quantityEvent.getEventTime() != null) ? quantityEvent.getEventTime().toGregorianCalendar().getTime() : null;
|
||
Date recordTime = (quantityEvent.getRecordTime() != null) ? quantityEvent.getRecordTime().toGregorianCalendar().getTime() : null;
|
||
String eventType = XACMLConstantsEventType.QUANTITY;
|
||
... | ... | |
String extensionName = element.getLocalName();
|
||
String value = element.getTextContent();
|
||
|
||
if (Constants.URN_IOTA.equals(namespace) &&
|
||
(Constants.EXTENSION_OWNER_ID.equals(extensionName)
|
||
|| Constants.EXTENSION_SIGNATURE.equals(extensionName)
|
||
|| Constants.EXTENSION_SIGNER_ID.equals(extensionName))) {
|
||
continue;
|
||
}
|
||
|
||
// Gets the extension value
|
||
Object extensionValue = null;
|
||
try {
|
||
... | ... | |
* @param owner The owner to check.
|
||
* @return <code>true</code> if the transaction event is permitted.
|
||
*/
|
||
private boolean checkTransactionEvent(TransactionEventType transactionEvent, String user, String owner) {
|
||
private boolean checkTransactionEvent(TransactionEventType transactionEvent, String user) {
|
||
String owner = Utils.getEventOwner(transactionEvent);
|
||
if (owner == null) {
|
||
return false;
|
||
}
|
||
Date eventTime = (transactionEvent.getEventTime() != null) ? transactionEvent.getEventTime().toGregorianCalendar().getTime() : null;
|
||
Date recordTime = (transactionEvent.getRecordTime() != null) ? transactionEvent.getRecordTime().toGregorianCalendar().getTime() : null;
|
||
String eventType = XACMLConstantsEventType.TRANSACTION;
|
||
... | ... | |
String extensionName = element.getLocalName();
|
||
String value = element.getTextContent();
|
||
|
||
if (Constants.URN_IOTA.equals(namespace) &&
|
||
(Constants.EXTENSION_OWNER_ID.equals(extensionName)
|
||
|| Constants.EXTENSION_SIGNATURE.equals(extensionName)
|
||
|| Constants.EXTENSION_SIGNER_ID.equals(extensionName))) {
|
||
continue;
|
||
}
|
||
|
||
// Gets the extension value
|
||
Object extensionValue = null;
|
||
try {
|
||
... | ... | |
*/
|
||
public boolean checkSubscribe(String user, String partner) {
|
||
int xacmlResponse = epcisPEP.subscribe(user, partner);
|
||
return Utils.responseIsPermit(xacmlResponse);
|
||
return fr.unicaen.iota.xi.utils.Utils.responseIsPermit(xacmlResponse);
|
||
}
|
||
|
||
/**
|
||
... | ... | |
*/
|
||
public boolean canBe(String user, String partner) {
|
||
int xacmlResponse = epcisPEP.canBe(user, partner);
|
||
return Utils.responseIsPermit(xacmlResponse);
|
||
return fr.unicaen.iota.xi.utils.Utils.responseIsPermit(xacmlResponse);
|
||
}
|
||
|
||
/**
|
||
... | ... | |
*
|
||
* @param vocList The list of master data to filter.
|
||
* @param user The user name to check.
|
||
* @param owner The owner to check.
|
||
*/
|
||
public void xacmlCheckMasterD(List<VocabularyType> vocList, String user, String owner) {
|
||
public void xacmlCheckMasterD(List<VocabularyType> vocList, String user) {
|
||
for (VocabularyType voc : vocList) {
|
||
xacmlCheckMasterDType(voc.getVocabularyElementList().getVocabularyElement(), user, owner);
|
||
xacmlCheckMasterDType(voc.getVocabularyElementList().getVocabularyElement(), user);
|
||
}
|
||
}
|
||
|
||
... | ... | |
*
|
||
* @param vocElList The list of master data to filter.
|
||
* @param user The user name to check
|
||
* @param owner The owner to check.
|
||
*/
|
||
private void xacmlCheckMasterDType(List<VocabularyElementType> vocElList, String user, String owner) {
|
||
private void xacmlCheckMasterDType(List<VocabularyElementType> vocElList, String user) {
|
||
Iterator<VocabularyElementType> iterVoc = vocElList.iterator();
|
||
while (iterVoc.hasNext()) {
|
||
boolean allowed = false;
|
||
VocabularyElementType vocEl = iterVoc.next();
|
||
String id = vocEl.getId();
|
||
XACMLEPCISMasterData xacmlMasterData = new XACMLEPCISMasterData(owner, id);
|
||
if (!xacmlCheckMasterData(xacmlMasterData, user)) {
|
||
for (Object object : vocEl.getAny()) {
|
||
JAXBElement elem = (JAXBElement) object;
|
||
if (Constants.URN_IOTA.equals(elem.getName().getNamespaceURI()) &&
|
||
Constants.EXTENSION_OWNER_ID.equals(elem.getName().getLocalPart())) {
|
||
String owner = elem.getValue().toString();
|
||
XACMLEPCISMasterData xacmlMasterData = new XACMLEPCISMasterData(owner, id);
|
||
if (xacmlCheckMasterData(xacmlMasterData, user)) {
|
||
allowed = true;
|
||
}
|
||
break;
|
||
}
|
||
}
|
||
if (!allowed) {
|
||
iterVoc.remove();
|
||
}
|
||
}
|
||
... | ... | |
*/
|
||
private boolean xacmlCheckMasterData(XACMLEPCISMasterData xacmlMasterData, String user) {
|
||
int xacmlResponse = epcisPEP.queryMasterData(user, xacmlMasterData);
|
||
return Utils.responseIsPermit(xacmlResponse);
|
||
return fr.unicaen.iota.xi.utils.Utils.responseIsPermit(xacmlResponse);
|
||
}
|
||
}
|
ETa/ETa/src/main/java/fr/unicaen/iota/eta/query/QueryInitServlet.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
||
* Copyright © 2007 ETH Zurich
|
||
*
|
||
... | ... | |
*/
|
||
package fr.unicaen.iota.eta.query;
|
||
|
||
import fr.unicaen.iota.eta.constants.Constants;
|
||
import fr.unicaen.iota.eta.utils.Constants;
|
||
import fr.unicaen.iota.eta.soap.IDedEPCISServicePortType;
|
||
import fr.unicaen.iota.xi.client.EPCISPEP;
|
||
import javax.naming.Context;
|
||
... | ... | |
module.setDataSource(dataSource);
|
||
module.setServletContext(servletConfig.getServletContext());
|
||
module.setBackend(new QueryOperationsBackendSQL());
|
||
EPCISPEP epcisPEP = new EPCISPEP(Constants.XACML_URL);
|
||
EPCISPEP epcisPEP = new EPCISPEP(Constants.XACML_URL, Constants.PKS_FILENAME, Constants.PKS_PASSWORD, Constants.TRUST_PKS_FILENAME, Constants.TRUST_PKS_PASSWORD);
|
||
module.setQueryCheck(new QueryCheck(epcisPEP));
|
||
|
||
LOG.debug("Initializing query operations web service");
|
ETa/ETa/src/main/java/fr/unicaen/iota/eta/query/QueryOperationsBackend.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/ETa/src/main/java/fr/unicaen/iota/eta/query/QueryOperationsBackendSQL.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/ETa/src/main/java/fr/unicaen/iota/eta/query/QueryOperationsModule.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
||
* Copyright © 2007 ETH Zurich
|
||
*
|
||
... | ... | |
*/
|
||
package fr.unicaen.iota.eta.query;
|
||
|
||
import fr.unicaen.iota.eta.constants.Constants;
|
||
import fr.unicaen.iota.eta.utils.Constants;
|
||
import fr.unicaen.iota.tau.model.Identity;
|
||
import fr.unicaen.iota.xacml.XACMLConstantsEventType;
|
||
import fr.unicaen.iota.xacml.pep.XACMLEPCISEvent;
|
||
import java.io.IOException;
|
||
import java.net.MalformedURLException;
|
||
import java.net.URL;
|
||
import java.security.Principal;
|
||
import java.sql.SQLException;
|
||
import java.util.ArrayList;
|
||
import java.util.Iterator;
|
||
import java.util.List;
|
||
import javax.servlet.ServletContext;
|
||
import javax.sql.DataSource;
|
||
... | ... | |
import org.apache.commons.logging.LogFactory;
|
||
import org.fosstrak.epcis.model.*;
|
||
import org.fosstrak.epcis.queryclient.QueryControlClient;
|
||
import org.fosstrak.epcis.repository.EpcisConstants;
|
||
import org.fosstrak.epcis.soap.*;
|
||
|
||
/**
|
||
... | ... | |
throw new ImplementationExceptionResponse(msg, ie, e);
|
||
}
|
||
|
||
/**
|
||
* TODO: add user and owner in the XACMLEPCISEvent owner =
|
||
* ((ObjectEventType)result).getAny(); user =
|
||
*/
|
||
String owner = "anonymous";
|
||
|
||
if ("SimpleEventQuery".equals(queryName)) {
|
||
for (QueryParam queryParam : queryParams.getParam()) {
|
||
if (queryParam.getName() != null && "eventType".equals(queryParam.getName())) {
|
||
try {
|
||
ArrayOfString aos = (ArrayOfString) queryParam.getValue();
|
||
if (aos == null || aos.getString() == null) {
|
||
continue;
|
||
}
|
||
List<String> eventTypes = aos.getString();
|
||
Iterator<String> iterType = eventTypes.iterator();
|
||
while (iterType.hasNext()) {
|
||
String eventType = iterType.next();
|
||
if (EpcisConstants.AGGREGATION_EVENT.equals(eventType)) {
|
||
XACMLEPCISEvent e = new XACMLEPCISEvent(owner, null, null, null, null, null,
|
||
XACMLConstantsEventType.AGGREGATION, null, null, null, null, null, null, null, null);
|
||
if (!queryCheck.xacmlCheck(e, user)) {
|
||
iterType.remove();
|
||
}
|
||
} else if (EpcisConstants.OBJECT_EVENT.equals(eventType)) {
|
||
XACMLEPCISEvent e = new XACMLEPCISEvent(owner, null, null, null, null, null,
|
||
XACMLConstantsEventType.OBJECT, null, null, null, null, null, null, null, null);
|
||
if (!queryCheck.xacmlCheck(e, user)) {
|
||
iterType.remove();
|
||
}
|
||
} else if (EpcisConstants.QUANTITY_EVENT.equals(eventType)) {
|
||
XACMLEPCISEvent e = new XACMLEPCISEvent(owner, null, null, null, null, null,
|
||
XACMLConstantsEventType.QUANTITY, null, null, null, null, null, null, null, null);
|
||
if (!queryCheck.xacmlCheck(e, user)) {
|
||
iterType.remove();
|
||
}
|
||
} else if (EpcisConstants.TRANSACTION_EVENT.equals(eventType)) {
|
||
XACMLEPCISEvent e = new XACMLEPCISEvent(owner, null, null, null, null, null,
|
||
XACMLConstantsEventType.TRANSACTION, null, null, null, null, null, null, null, null);
|
||
if (!queryCheck.xacmlCheck(e, user)) {
|
||
iterType.remove();
|
||
}
|
||
}
|
||
}
|
||
} catch (Exception e) {
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
LOG.debug("Invoking 'poll'");
|
||
Poll poll = new Poll();
|
||
poll.setQueryName(queryName);
|
||
... | ... | |
|
||
results = epcisQueryClient.poll(poll);
|
||
|
||
//TODO xacml_active
|
||
boolean xacml_active = true;
|
||
|
||
if (xacml_active && "SimpleEventQuery".equals(results.getQueryName())) {
|
||
queryCheck.xacmlCheck(results.getResultsBody().getEventList().getObjectEventOrAggregationEventOrQuantityEvent(), user, owner);
|
||
if ("SimpleEventQuery".equals(results.getQueryName())) {
|
||
queryCheck.xacmlCheck(results.getResultsBody().getEventList().getObjectEventOrAggregationEventOrQuantityEvent(), user);
|
||
} else if ("SimpleMasterDataQuery".equals(results.getQueryName())) {
|
||
queryCheck.xacmlCheckMasterD(results.getResultsBody().getVocabularyList().getVocabulary(), user, owner);
|
||
queryCheck.xacmlCheckMasterD(results.getResultsBody().getVocabularyList().getVocabulary(), user);
|
||
}
|
||
return results;
|
||
|
||
... | ... | |
throw new InvalidURIExceptionResponse(msg, e);
|
||
}
|
||
try {
|
||
new URL(dest.toString());
|
||
URL url = new URL(dest.toString());
|
||
if (!"https".equalsIgnoreCase(url.getProtocol())) {
|
||
String msg = "Destination URI is not HTTPS. TLS mutual authentication is required to send events.";
|
||
LOG.warn("QueryParameterException: " + msg);
|
||
InvalidURIException e = new InvalidURIException();
|
||
e.setReason(msg);
|
||
throw new InvalidURIExceptionResponse(msg, e);
|
||
}
|
||
} catch (MalformedURLException ex) {
|
||
String msg = "Destination URI is invalid: " + ex.getMessage();
|
||
LOG.warn("InvalidURIException: " + msg);
|
ETa/ETa/src/main/java/fr/unicaen/iota/eta/query/QueryOperationsSession.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/ETa/src/main/java/fr/unicaen/iota/eta/query/QueryOperationsWebService.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
||
* Copyright © 2007 ETH Zurich
|
||
*
|
||
... | ... | |
*/
|
||
package fr.unicaen.iota.eta.query;
|
||
|
||
import fr.unicaen.iota.eta.utils.Constants;
|
||
import fr.unicaen.iota.tau.model.Identity;
|
||
import java.security.Principal;
|
||
import org.apache.commons.logging.Log;
|
||
import org.apache.commons.logging.LogFactory;
|
||
import org.fosstrak.epcis.model.*;
|
||
... | ... | |
public class QueryOperationsWebService extends IDedQueryOperationsWebService implements EPCISServicePortType {
|
||
|
||
private static final Log LOG = LogFactory.getLog(QueryOperationsWebService.class);
|
||
private final Identity default_user;
|
||
private final Identity anonymous;
|
||
|
||
public QueryOperationsWebService() {
|
||
super();
|
||
this(null);
|
||
}
|
||
|
||
public QueryOperationsWebService(QueryOperationsModule queryModule) {
|
||
super(queryModule);
|
||
default_user = new Identity();
|
||
default_user.setAsString(Constants.XACML_DEFAULT_USER);
|
||
anonymous = new Identity();
|
||
anonymous.setAsString(Constants.XACML_ANONYMOUS_USER);
|
||
}
|
||
|
||
private Identity getClientId() {
|
||
Principal authId = wsContext.getUserPrincipal();
|
||
if (authId == null) {
|
||
return anonymous;
|
||
}
|
||
if (Constants.XACML_USE_TLS_ID) {
|
||
Identity id = new Identity();
|
||
id.setAsString(authId.getName());
|
||
return id;
|
||
}
|
||
return default_user;
|
||
}
|
||
|
||
/**
|
||
... | ... | |
@Override
|
||
public ArrayOfString getSubscriptionIDs(GetSubscriptionIDs req) throws ImplementationExceptionResponse,
|
||
SecurityExceptionResponse, ValidationExceptionResponse, NoSuchNameExceptionResponse {
|
||
return iDedGetSubscriptionIDs(req, anonymous);
|
||
return iDedGetSubscriptionIDs(req, getClientId());
|
||
}
|
||
|
||
/**
|
||
... | ... | |
public QueryResults poll(Poll poll) throws ImplementationExceptionResponse, QueryTooComplexExceptionResponse,
|
||
QueryTooLargeExceptionResponse, SecurityExceptionResponse, ValidationExceptionResponse,
|
||
NoSuchNameExceptionResponse, QueryParameterExceptionResponse {
|
||
return iDedPoll(poll, anonymous);
|
||
return iDedPoll(poll, getClientId());
|
||
}
|
||
|
||
/**
|
||
... | ... | |
ImplementationExceptionResponse, QueryTooComplexExceptionResponse, SecurityExceptionResponse,
|
||
InvalidURIExceptionResponse, ValidationExceptionResponse, SubscribeNotPermittedExceptionResponse,
|
||
NoSuchNameExceptionResponse, SubscriptionControlsExceptionResponse, QueryParameterExceptionResponse {
|
||
return iDedSubscribe(subscribe, anonymous);
|
||
return iDedSubscribe(subscribe, getClientId());
|
||
}
|
||
|
||
/**
|
||
... | ... | |
@Override
|
||
public VoidHolder unsubscribe(Unsubscribe unsubscribe) throws ImplementationExceptionResponse,
|
||
SecurityExceptionResponse, ValidationExceptionResponse, NoSuchSubscriptionExceptionResponse {
|
||
return iDedUnsubscribe(unsubscribe, anonymous);
|
||
return iDedUnsubscribe(unsubscribe, getClientId());
|
||
}
|
||
}
|
ETa/ETa/src/main/java/fr/unicaen/iota/eta/utils/Constants.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
* (at your option) any later version.
|
||
*
|
||
* This program is distributed in the hope that it will be useful,
|
||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
* GNU General Public License for more details.
|
||
* <http://www.gnu.org/licenses/>
|
||
*
|
||
* See AUTHORS for a list of contributors.
|
||
*/
|
||
package fr.unicaen.iota.eta.utils;
|
||
|
||
import java.io.IOException;
|
||
import java.io.InputStream;
|
||
import java.util.Properties;
|
||
import org.apache.commons.logging.Log;
|
||
import org.apache.commons.logging.LogFactory;
|
||
|
||
public final class Constants {
|
||
|
||
private static final Log log = LogFactory.getLog(Constants.class);
|
||
public static final String PROP_SERVICE_VERSION = "service-version";
|
||
public static final String PROP_SESSION_TIME_LEASE = "session-time-lease";
|
||
public static final String PROP_SESSION_FAILED_ID = "session-failed-id";
|
||
public static final String PROP_XACML_URL = "xacml-url";
|
||
public static final String PROP_XACML_IHM_URL = "xacml-ihm-url";
|
||
public static final String PROP_XACML_DEFAULT_USER = "xacml-default-user";
|
||
public static final String PROP_XACML_ANONYMOUS_USER = "xacml-anonymous-user";
|
||
public static final String PROP_XACML_USE_TLS_ID = "xacml-use-tls-id";
|
||
public static final String PROP_EPCIS_QUERY_URL = "epcis-query-url";
|
||
public static final String PROP_EPCIS_CAPTURE_URL = "epcis-capture-url";
|
||
public static final String PROP_CALLBACK_URL = "eta-callback-url";
|
||
public static final String PROP_EPCIS_SCHEMA_FILE = "epcisSchemaFile";
|
||
public static final String PROP_EPCIS_MASTER_DATA_SCHEMA_FILE = "epcisMasterDataSchemaFile";
|
||
public static final String PROP_JNDI_DATASOURCE_NAME = "jndi-datasource-name";
|
||
public static final String PROP_LDAP_URL = "ldap-url";
|
||
public static final String PROP_LDAP_BASE_DN = "ldap-basedn";
|
||
public static final String PROP_LDAP_USER = "ldap-user";
|
||
public static final String PROP_LDAP_PASSWORD = "ldap-password";
|
||
public static final String PROP_SIGMA_URL = "sigma-url";
|
||
public static final String PROP_SIGMA_VERIFICATION = "sigma-verification";
|
||
public static final String SERVICE_VERSION;
|
||
public static final int SESSION_TIME_LEASE;
|
||
public static final String SESSION_FAILED_ID;
|
||
public static final String XACML_URL;
|
||
public static final String XACML_IHM_URL;
|
||
public static final String XACML_DEFAULT_USER;
|
||
public static final String XACML_ANONYMOUS_USER;
|
||
public static final boolean XACML_USE_TLS_ID;
|
||
public static final String CALLBACK_URL;
|
||
public static final String EPCIS_QUERY_URL;
|
||
public static final String EPCIS_CAPTURE_URL;
|
||
public static final String EPCIS_SCHEMA_FILE;
|
||
public static final String EPCIS_MASTER_DATA_SCHEMA_FILE;
|
||
public static final String JNDI_DATASOURCE_NAME;
|
||
public static final String LDAP_URL;
|
||
public static final String LDAP_BASE_DN;
|
||
public static final String LDAP_USER;
|
||
public static final String LDAP_PASSWORD;
|
||
public static final String SIGMA_URL;
|
||
public static final boolean SIGMA_VERIFICATION;
|
||
public static final String PKS_FILENAME;
|
||
public static final String PKS_PASSWORD;
|
||
public static final String TRUST_PKS_FILENAME;
|
||
public static final String TRUST_PKS_PASSWORD;
|
||
|
||
private Constants() {
|
||
}
|
||
|
||
static {
|
||
Properties properties = new Properties();
|
||
InputStream is = Constants.class.getClassLoader().getResourceAsStream("application.properties");
|
||
log.info("Chargement des propriétés de l'application");
|
||
|
||
try {
|
||
properties.load(is);
|
||
} catch (IOException ex) {
|
||
log.fatal(null, ex);
|
||
}
|
||
SERVICE_VERSION = properties.getProperty(PROP_SERVICE_VERSION);
|
||
SESSION_TIME_LEASE = Integer.parseInt(properties.getProperty(PROP_SESSION_TIME_LEASE));
|
||
SESSION_FAILED_ID = properties.getProperty(PROP_SESSION_FAILED_ID );
|
||
XACML_URL = properties.getProperty(PROP_XACML_URL);
|
||
XACML_IHM_URL = properties.getProperty(PROP_XACML_IHM_URL);
|
||
XACML_USE_TLS_ID = Boolean.parseBoolean(properties.getProperty(PROP_XACML_USE_TLS_ID));
|
||
XACML_DEFAULT_USER = properties.getProperty(PROP_XACML_DEFAULT_USER);
|
||
XACML_ANONYMOUS_USER = properties.getProperty(PROP_XACML_ANONYMOUS_USER);
|
||
EPCIS_QUERY_URL = properties.getProperty(PROP_EPCIS_QUERY_URL);
|
||
EPCIS_CAPTURE_URL = properties.getProperty(PROP_EPCIS_CAPTURE_URL);
|
||
CALLBACK_URL = properties.getProperty(PROP_CALLBACK_URL);
|
||
EPCIS_SCHEMA_FILE = properties.getProperty(PROP_EPCIS_SCHEMA_FILE);
|
||
EPCIS_MASTER_DATA_SCHEMA_FILE = properties.getProperty(PROP_EPCIS_MASTER_DATA_SCHEMA_FILE);
|
||
JNDI_DATASOURCE_NAME = properties.getProperty(PROP_JNDI_DATASOURCE_NAME);
|
||
LDAP_URL = properties.getProperty(PROP_LDAP_URL);
|
||
LDAP_BASE_DN = properties.getProperty(PROP_LDAP_BASE_DN);
|
||
LDAP_USER = properties.getProperty(PROP_LDAP_USER);
|
||
LDAP_PASSWORD = properties.getProperty(PROP_LDAP_PASSWORD);
|
||
SIGMA_URL = properties.getProperty(PROP_SIGMA_URL);
|
||
SIGMA_VERIFICATION = Boolean.parseBoolean(properties.getProperty(PROP_SIGMA_VERIFICATION));
|
||
PKS_FILENAME = properties.getProperty("pks-filename", "privatekeys.jks");
|
||
PKS_PASSWORD = properties.getProperty("pks-password", "changeit");
|
||
TRUST_PKS_FILENAME = properties.getProperty("trust-pks-filename", "publickeys.jks");
|
||
TRUST_PKS_PASSWORD = properties.getProperty("trust-pks-password", "changeit");
|
||
}
|
||
}
|
ETa/ETa/src/main/java/fr/unicaen/iota/eta/utils/Utils.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2013 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
* (at your option) any later version.
|
||
*
|
||
* This program is distributed in the hope that it will be useful,
|
||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
* GNU General Public License for more details.
|
||
* <http://www.gnu.org/licenses/>
|
||
*
|
||
* See AUTHORS for a list of contributors.
|
||
*/
|
||
package fr.unicaen.iota.eta.utils;
|
||
|
||
import java.util.List;
|
||
import javax.xml.parsers.ParserConfigurationException;
|
||
import org.fosstrak.epcis.model.AggregationEventType;
|
||
import org.fosstrak.epcis.model.EPCISEventType;
|
||
import org.fosstrak.epcis.model.ObjectEventType;
|
||
import org.fosstrak.epcis.model.QuantityEventType;
|
||
import org.fosstrak.epcis.model.TransactionEventType;
|
||
import org.w3c.dom.Element;
|
||
|
||
public class Utils {
|
||
|
||
/**
|
||
* Gets the owner of the event from the corresponding extension.
|
||
* @param event The event to process.
|
||
* @return The event owner.
|
||
*/
|
||
public static String getEventOwner(EPCISEventType event) {
|
||
List<Object> extensions;
|
||
if (event instanceof ObjectEventType) {
|
||
extensions = ((ObjectEventType) event).getAny();
|
||
} else if (event instanceof AggregationEventType) {
|
||
extensions = ((AggregationEventType) event).getAny();
|
||
} else if (event instanceof QuantityEventType) {
|
||
extensions = ((QuantityEventType) event).getAny();
|
||
} else if (event instanceof TransactionEventType) {
|
||
extensions = ((TransactionEventType) event).getAny();
|
||
} else {
|
||
return null;
|
||
}
|
||
for (Object object : extensions) {
|
||
Element element = (Element) object;
|
||
if (fr.unicaen.iota.mu.Constants.URN_IOTA.equals(element.getNamespaceURI()) &&
|
||
fr.unicaen.iota.mu.Constants.EXTENSION_OWNER_ID.equals(element.getLocalName())) {
|
||
return element.getTextContent();
|
||
}
|
||
}
|
||
return null;
|
||
}
|
||
|
||
/**
|
||
* Inserts the owner in the event if it is missing.
|
||
* @param event The event to process.
|
||
* @param owner The owner of the event.
|
||
* @throws ParserConfigurationException if an error occured during insertion of the owner of the event.
|
||
*/
|
||
public static void insertEventOwnerIfMissing(EPCISEventType event, String owner) throws ParserConfigurationException {
|
||
List<Object> extensions;
|
||
if (event instanceof ObjectEventType) {
|
||
extensions = ((ObjectEventType) event).getAny();
|
||
} else if (event instanceof AggregationEventType) {
|
||
extensions = ((AggregationEventType) event).getAny();
|
||
} else if (event instanceof QuantityEventType) {
|
||
extensions = ((QuantityEventType) event).getAny();
|
||
} else if (event instanceof TransactionEventType) {
|
||
extensions = ((TransactionEventType) event).getAny();
|
||
} else {
|
||
return;
|
||
}
|
||
boolean isMissing = true;
|
||
for (Object object : extensions) {
|
||
Element element = (Element) object;
|
||
if (fr.unicaen.iota.mu.Constants.URN_IOTA.equals(element.getNamespaceURI()) &&
|
||
fr.unicaen.iota.mu.Constants.EXTENSION_OWNER_ID.equals(element.getLocalName())) {
|
||
isMissing = false;
|
||
break;
|
||
}
|
||
}
|
||
if (isMissing) {
|
||
fr.unicaen.iota.mu.Utils.insertExtension(event, fr.unicaen.iota.mu.Constants.URN_IOTA,
|
||
fr.unicaen.iota.mu.Constants.EXTENSION_OWNER_ID, owner);
|
||
}
|
||
}
|
||
|
||
}
|
ETa/ETa/src/main/resources/application.properties | ||
---|---|---|
# the location of the EPCglobal EPCIS MasterData schema
|
||
epcisMasterDataSchemaFile=/wsdl/EPCglobal-epcis-masterdata-1_0.xsd
|
||
|
||
# whether to trust a certificate whose certificate chain cannot be validated
|
||
# when delivering results via Query Callback Interface
|
||
trustAllCertificates=false
|
||
|
||
# the name of the JNDI datasource holding the connection to the database
|
||
jndi-datasource-name=java:comp/env/jdbc/ETADB
|
||
|
||
... | ... | |
|
||
sigma-url = http://localhost:8080/sigma
|
||
sigma-verification = false
|
||
|
||
# TLS private and public keys
|
||
pks-filename = /srv/privatekeys.jks
|
||
pks-password = changeit
|
||
trust-pks-filename = /srv/publickeys.jks
|
||
trust-pks-password = changeit
|
ETa/ETa/src/main/webapp/WEB-INF/applicationContext.xml | ||
---|---|---|
|
||
<bean id="epcisPEP" class="fr.unicaen.iota.xi.client.EPCISPEP">
|
||
<constructor-arg type="java.lang.String" value="${xacml-url}" />
|
||
<constructor-arg type="java.lang.String" value="${pks-filename}" />
|
||
<constructor-arg type="java.lang.String" value="${pks-password}" />
|
||
<constructor-arg type="java.lang.String" value="${trust-pks-filename}" />
|
||
<constructor-arg type="java.lang.String" value="${trust-pks-password}" />
|
||
</bean>
|
||
|
||
<bean id="sigMaClient" class="fr.unicaen.iota.sigma.client.SigMaClient">
|
||
<constructor-arg type="java.lang.String" value="${sigma-url}" />
|
||
</bean>
|
||
|
||
<bean id="captureOperationsModule" class="fr.unicaen.iota.eta.capture.CaptureOperationsModule">
|
||
<property name="epcisCaptureClient" ref="epcisCaptureClient" />
|
||
<property name="epcisSchemaFile" value="${epcisSchemaFile}" />
|
||
<property name="epcisMasterDataSchemaFile" value="${epcisMasterDataSchemaFile}" />
|
||
<property name="captureCheck" ref="captureCheck" />
|
||
<property name="sigMaClient" ref="sigMaClient" />
|
||
</bean>
|
||
|
||
<bean id="epcisCaptureClient" class="org.fosstrak.epcis.captureclient.CaptureClient" >
|
ETa/ETa/src/main/webapp/WEB-INF/web.xml | ||
---|---|---|
<welcome-file>index.html</welcome-file>
|
||
</welcome-file-list>
|
||
|
||
<security-constraint>
|
||
<web-resource-collection>
|
||
<web-resource-name>ETaSecure</web-resource-name>
|
||
<url-pattern>/*</url-pattern>
|
||
<http-method>GET</http-method>
|
||
<http-method>POST</http-method>
|
||
</web-resource-collection>
|
||
<auth-constraint>
|
||
<role-name>eta_user</role-name>
|
||
</auth-constraint>
|
||
<user-data-constraint>
|
||
<transporting-guarantee>CONFIDENTIAL</transporting-guarantee>
|
||
</user-data-constraint>
|
||
</security-constraint>
|
||
<login-config>
|
||
<auth-method>CLIENT-CERT</auth-method>
|
||
</login-config>
|
||
<security-role>
|
||
<role-name>eta_user</role-name>
|
||
</security-role>
|
||
|
||
</web-app>
|
ETa/EpcisPHI/LISEZMOI | ||
---|---|---|
Dépendances:
|
||
modules IoTa:
|
||
- LibXACML-EPCIS
|
||
- ETa-Client
|
||
- User-Client
|
||
bibliothèques:
|
||
- commons-codec
|
||
- servlet-api
|
||
... | ... | |
IoTa-Installer installe et configure EpcisPHI.
|
||
(xacml_configuration.properties pour la bibliothèque cliente LibXACML-DS,
|
||
commons-logging.properties et log4j.properties pour les journaux)
|
||
Un utilisateur doit utiliser une paire de clés publique/privée pour se
|
||
connecter à l'interface web. IoTa-Installer peut générer ces clés.
|
||
La clé publique devra ensuite être ajoutée aux clés de confiance du serveur.
|
||
Le DN (Distinguished Name) devra être similaire à celui utilisé par
|
||
l'annuaire LDAP géré par le service User. Cette manipulation devra être
|
||
faite pour l'utilisateur "superadmin" qui gère les comptes utilisateurs
|
||
via l'interface web.
|
||
Modifier le fichier tomcat-users.xml de Tomcat pour la gestion des
|
||
identités en TLS.
|
||
Voir le fichier INSTALL.fr
|
||
|
||
Dépendances d’utilisation:
|
||
- ETa
|
||
- User
|
||
- Un EPCIS
|
||
|
||
Utilisation:
|
ETa/EpcisPHI/README | ||
---|---|---|
Dependencies:
|
||
IoTa modules:
|
||
- LibXACML-EPCIS
|
||
- ETa-Client
|
||
- User-Client
|
||
libraries:
|
||
- commons-codec
|
||
- servlet-api
|
||
... | ... | |
IoTa-Installer installs and configures EpcisPHI.
|
||
(xacml_configuration.properties for the client library LibXACML-DS,
|
||
commons-logging.properties and log4j.properties for the logs)
|
||
A user must use a public/private key pair to connect to the web interface.
|
||
IoTa-Installer can generate this keys. The public key have to be added to the
|
||
truststore of the server. DN (Distinguished name) needs to be similar
|
||
to the LDAP directory provided by the User service. To log to the web
|
||
interface as "superadmin" who manages user accounts, add this user
|
||
in this way.
|
||
Modify the tomcat-users.xml file of Tomcat to manage identity with TLS.
|
||
See the INSTALL file.
|
||
|
||
Usage Dependencies:
|
||
- ETa
|
||
- User
|
||
- an EPCIS
|
||
|
||
Usage:
|
ETa/EpcisPHI/pom.xml | ||
---|---|---|
|
||
<groupId>fr.unicaen.iota</groupId>
|
||
<artifactId>epcis-phi</artifactId>
|
||
<version>1.9-mock</version>
|
||
<version>1.9</version>
|
||
<packaging>war</packaging>
|
||
|
||
<name>EpcisPHI</name>
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/utils/Constants.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
... | ... | |
private static Log log = LogFactory.getLog(Constants.class);
|
||
public static final String USERSERVICE_ADDRESS;
|
||
public static final String PROP_USERSERVICE_ADDRESS = "eta.userservice.url";
|
||
public static final String PKS_FILENAME;
|
||
public static final String PKS_PASSWORD;
|
||
public static final String TRUST_PKS_FILENAME;
|
||
public static final String TRUST_PKS_PASSWORD;
|
||
|
||
|
||
static {
|
||
Properties properties = new Properties();
|
||
... | ... | |
log.fatal(null, ex);
|
||
}
|
||
USERSERVICE_ADDRESS = properties.getProperty("eta.userservice.url");
|
||
PKS_FILENAME = properties.getProperty("pks-filename", "privatekeys.jks");
|
||
PKS_PASSWORD = properties.getProperty("pks-password", "changeit");
|
||
TRUST_PKS_FILENAME = properties.getProperty("trust-pks-filename", "publickeys.jks");
|
||
TRUST_PKS_PASSWORD = properties.getProperty("trust-pks-password", "changeit");
|
||
}
|
||
|
||
}
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/utils/HTMLUtilities.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/utils/InterfaceHelper.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/utils/MapSessions.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/utils/PEPRequester.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/utils/SHA1.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/utils/SessionLoader.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
... | ... | |
*/
|
||
package fr.unicaen.iota.epcisphi.utils;
|
||
|
||
import fr.unicaen.iota.eta.user.client.GatewayClient;
|
||
import fr.unicaen.iota.eta.user.client.UserClient;
|
||
import fr.unicaen.iota.eta.user.userservice.UserInfoOut;
|
||
import fr.unicaen.iota.eta.user.userservice_wsdl.ImplementationExceptionResponse;
|
||
import fr.unicaen.iota.eta.user.userservice_wsdl.SecurityExceptionResponse;
|
||
... | ... | |
|
||
public static synchronized String loadSession(String sessionId, String userId, HttpSession session) throws SecurityExceptionResponse {
|
||
try {
|
||
GatewayClient client = new GatewayClient(Constants.USERSERVICE_ADDRESS);
|
||
UserClient client = new UserClient(Constants.USERSERVICE_ADDRESS, Constants.PKS_FILENAME, Constants.PKS_PASSWORD,
|
||
Constants.TRUST_PKS_FILENAME, Constants.TRUST_PKS_PASSWORD);
|
||
UserInfoOut uInfo = client.userInfo(sessionId, userId);
|
||
session.setAttribute("uInfo", uInfo);
|
||
/*
|
||
* TODO PartnerInfo pInfo = GatewayClient.partnerInfo(sessionId,
|
||
* TODO PartnerInfo pInfo = UserClient.partnerInfo(sessionId,
|
||
* uInfo.getPartnerId()); session.setAttribute("pInfo", pInfo);
|
||
*/
|
||
session.setAttribute("session-id", sessionId);
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/utils/User.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/Mode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/Module.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/NodeType.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/TreeFactory.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/TreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/AccessPolicies.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/ActionTargetTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/ActionTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/BizLocRuleTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/BizLocTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/BizStepRuleTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/BizStepTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/ChildEpcRuleTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/ChildEpcTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/DispositionRuleTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/DispositionTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/EpcTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/EpcsRuleTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/EventTimeRuleTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/EventTimeTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/EventTypeRuleTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/EventTypeTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/GroupPolicyTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/Node.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/OperationRuleTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/OperationTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/ParentIdRuleTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/ParentIdTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/Policies.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/QuantityRuleTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/QuantityTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/ReadPointRuleTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/ReadPointTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/RecordTimeRuleTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/RecordTimeTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/RuleTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/UserGroupRuleTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/UserTreeNode.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/test/AccessResponse.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/test/AccessResponseDialog.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/test/AdminModuleClient.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/test/CaptureModule.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/test/CaptureModuleClient.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/test/NewJFrame.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa Project.
|
||
* This program is a part of the IoTa project.
|
Formats disponibles : Unified diff
Version 1.9
- use TLS for secured links
- SigMa is now fully functionnal
- completed documention
- a lot of bugs fixed!
- signature creation from the canonical form of the event
- signature creation using ECDSA algorithm
- signature is correctly verified
- manage the extension identifying the owner of the event
- if no identity is provided, the identity of the certificate is used
- access to the web interface of policy management is made by
certificate
- if no identity is provided, the identity of the certificate is used
- create and use certificates for TLS
- configure Apache Tomcat for TLS
- show SigMa library (SigMa-Commons)