diff --git a/.classpath b/.classpath
index 243cbebc41..bf7cfd6245 100644
--- a/.classpath
+++ b/.classpath
@@ -1,13 +1,13 @@
-
-
Java class for Application complex type. + * + *
The following schema fragment specifies the expected content contained within this class. + * + *
+ * <complexType name="Application"> + * <complexContent> + * <extension base="{http://www.alfresco.org/repo/audit/model/3.2}AuditPath"> + * <attribute name="name" use="required" type="{http://www.alfresco.org/repo/audit/model/3.2}NameAttribute" /> + * </extension> + * </complexContent> + * </complexType> + *+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Application") +public class Application + extends AuditPath +{ + + @XmlAttribute(required = true) + protected String name; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + +} diff --git a/source/java/org/alfresco/repo/audit/model/_3/Audit.java b/source/java/org/alfresco/repo/audit/model/_3/Audit.java new file mode 100644 index 0000000000..4d45ea6ba3 --- /dev/null +++ b/source/java/org/alfresco/repo/audit/model/_3/Audit.java @@ -0,0 +1,125 @@ + +package org.alfresco.repo.audit.model._3; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *
Java class for Audit complex type. + * + *
The following schema fragment specifies the expected content contained within this class. + * + *
+ * <complexType name="Audit"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="DataExtractors" type="{http://www.alfresco.org/repo/audit/model/3.2}DataExtractors" minOccurs="0"/> + * <element name="DataGenerators" type="{http://www.alfresco.org/repo/audit/model/3.2}DataGenerators" minOccurs="0"/> + * <element name="Application" type="{http://www.alfresco.org/repo/audit/model/3.2}Application" maxOccurs="unbounded" minOccurs="0"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + *+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Audit", propOrder = { + "dataExtractors", + "dataGenerators", + "application" +}) +public class Audit { + + @XmlElement(name = "DataExtractors") + protected DataExtractors dataExtractors; + @XmlElement(name = "DataGenerators") + protected DataGenerators dataGenerators; + @XmlElement(name = "Application") + protected List
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a set
method for the application property.
+ *
+ *
+ * For example, to add a new item, do as follows: + *
+ * getApplication().add(newItem); + *+ * + * + *
+ * Objects of the following type(s) are allowed in the list
+ * {@link Application }
+ *
+ *
+ */
+ public List Java class for AuditPath complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ *
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a
+ * For example, to add a new item, do as follows:
+ *
+ * Objects of the following type(s) are allowed in the list
+ * {@link RecordValue }
+ *
+ *
+ */
+ public List
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a
+ * For example, to add a new item, do as follows:
+ *
+ * Objects of the following type(s) are allowed in the list
+ * {@link GenerateValue }
+ *
+ *
+ */
+ public List
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a
+ * For example, to add a new item, do as follows:
+ *
+ * Objects of the following type(s) are allowed in the list
+ * {@link AuditPath }
+ *
+ *
+ */
+ public List Java class for AuditSession complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ *
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a
+ * For example, to add a new item, do as follows:
+ *
+ * Objects of the following type(s) are allowed in the list
+ * {@link GenerateValue }
+ *
+ *
+ */
+ public List Java class for DataExtractor complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * Java class for DataExtractors complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ *
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a
+ * For example, to add a new item, do as follows:
+ *
+ * Objects of the following type(s) are allowed in the list
+ * {@link DataExtractor }
+ *
+ *
+ */
+ public List Java class for DataGenerator complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * Java class for DataGenerators complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ *
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a
+ * For example, to add a new item, do as follows:
+ *
+ * Objects of the following type(s) are allowed in the list
+ * {@link DataGenerator }
+ *
+ *
+ */
+ public List Java class for GenerateValue complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * Java class for KeyedAuditDefinition complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+ private final static QName _Audit_QNAME = new QName("http://www.alfresco.org/repo/audit/model/3.2", "Audit");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.alfresco.repo.audit.model._3
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link DataExtractors }
+ *
+ */
+ public DataExtractors createDataExtractors() {
+ return new DataExtractors();
+ }
+
+ /**
+ * Create an instance of {@link AuditPath }
+ *
+ */
+ public AuditPath createAuditPath() {
+ return new AuditPath();
+ }
+
+ /**
+ * Create an instance of {@link DataGenerators }
+ *
+ */
+ public DataGenerators createDataGenerators() {
+ return new DataGenerators();
+ }
+
+ /**
+ * Create an instance of {@link KeyedAuditDefinition }
+ *
+ */
+ public KeyedAuditDefinition createKeyedAuditDefinition() {
+ return new KeyedAuditDefinition();
+ }
+
+ /**
+ * Create an instance of {@link RecordValue }
+ *
+ */
+ public RecordValue createRecordValue() {
+ return new RecordValue();
+ }
+
+ /**
+ * Create an instance of {@link DataGenerator }
+ *
+ */
+ public DataGenerator createDataGenerator() {
+ return new DataGenerator();
+ }
+
+ /**
+ * Create an instance of {@link AuditSession }
+ *
+ */
+ public AuditSession createAuditSession() {
+ return new AuditSession();
+ }
+
+ /**
+ * Create an instance of {@link GenerateValue }
+ *
+ */
+ public GenerateValue createGenerateValue() {
+ return new GenerateValue();
+ }
+
+ /**
+ * Create an instance of {@link DataExtractor }
+ *
+ */
+ public DataExtractor createDataExtractor() {
+ return new DataExtractor();
+ }
+
+ /**
+ * Create an instance of {@link Application }
+ *
+ */
+ public Application createApplication() {
+ return new Application();
+ }
+
+ /**
+ * Create an instance of {@link Audit }
+ *
+ */
+ public Audit createAudit() {
+ return new Audit();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Audit }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.alfresco.org/repo/audit/model/3.2", name = "Audit")
+ public JAXBElement Java class for RecordValue complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ *
+ * <complexType name="AuditPath">
+ * <complexContent>
+ * <extension base="{http://www.alfresco.org/repo/audit/model/3.2}KeyedAuditDefinition">
+ * <sequence>
+ * <element name="AuditSession" type="{http://www.alfresco.org/repo/audit/model/3.2}AuditSession" minOccurs="0"/>
+ * <element name="RecordValue" type="{http://www.alfresco.org/repo/audit/model/3.2}RecordValue" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="GenerateValue" type="{http://www.alfresco.org/repo/audit/model/3.2}GenerateValue" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="AuditPath" type="{http://www.alfresco.org/repo/audit/model/3.2}AuditPath" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "AuditPath", propOrder = {
+ "auditSession",
+ "recordValue",
+ "generateValue",
+ "auditPath"
+})
+@XmlSeeAlso({
+ Application.class
+})
+public class AuditPath
+ extends KeyedAuditDefinition
+{
+
+ @XmlElement(name = "AuditSession")
+ protected AuditSession auditSession;
+ @XmlElement(name = "RecordValue")
+ protected Listset
method for the recordValue property.
+ *
+ *
+ * getRecordValue().add(newItem);
+ *
+ *
+ *
+ * set
method for the generateValue property.
+ *
+ *
+ * getGenerateValue().add(newItem);
+ *
+ *
+ *
+ * set
method for the auditPath property.
+ *
+ *
+ * getAuditPath().add(newItem);
+ *
+ *
+ *
+ *
+ * <complexType name="AuditSession">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="GenerateValue" type="{http://www.alfresco.org/repo/audit/model/3.2}GenerateValue" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "AuditSession", propOrder = {
+ "generateValue"
+})
+public class AuditSession {
+
+ @XmlElement(name = "GenerateValue")
+ protected Listset
method for the generateValue property.
+ *
+ *
+ * getGenerateValue().add(newItem);
+ *
+ *
+ *
+ *
+ * <complexType name="DataExtractor">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="name" type="{http://www.alfresco.org/repo/audit/model/3.2}NameAttribute" />
+ * <attribute name="class" type="{http://www.alfresco.org/repo/audit/model/3.2}ClassAttribute" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "DataExtractor")
+public class DataExtractor {
+
+ @XmlAttribute
+ protected String name;
+ @XmlAttribute(name = "class")
+ protected String clazz;
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the clazz property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getClazz() {
+ return clazz;
+ }
+
+ /**
+ * Sets the value of the clazz property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setClazz(String value) {
+ this.clazz = value;
+ }
+
+}
diff --git a/source/java/org/alfresco/repo/audit/model/_3/DataExtractors.java b/source/java/org/alfresco/repo/audit/model/_3/DataExtractors.java
new file mode 100644
index 0000000000..580f855b2e
--- /dev/null
+++ b/source/java/org/alfresco/repo/audit/model/_3/DataExtractors.java
@@ -0,0 +1,69 @@
+
+package org.alfresco.repo.audit.model._3;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ * <complexType name="DataExtractors">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="DataExtractor" type="{http://www.alfresco.org/repo/audit/model/3.2}DataExtractor" maxOccurs="unbounded"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "DataExtractors", propOrder = {
+ "dataExtractor"
+})
+public class DataExtractors {
+
+ @XmlElement(name = "DataExtractor", required = true)
+ protected Listset
method for the dataExtractor property.
+ *
+ *
+ * getDataExtractor().add(newItem);
+ *
+ *
+ *
+ *
+ * <complexType name="DataGenerator">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="name" type="{http://www.alfresco.org/repo/audit/model/3.2}NameAttribute" />
+ * <attribute name="class" type="{http://www.alfresco.org/repo/audit/model/3.2}ClassAttribute" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "DataGenerator")
+public class DataGenerator {
+
+ @XmlAttribute
+ protected String name;
+ @XmlAttribute(name = "class")
+ protected String clazz;
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the clazz property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getClazz() {
+ return clazz;
+ }
+
+ /**
+ * Sets the value of the clazz property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setClazz(String value) {
+ this.clazz = value;
+ }
+
+}
diff --git a/source/java/org/alfresco/repo/audit/model/_3/DataGenerators.java b/source/java/org/alfresco/repo/audit/model/_3/DataGenerators.java
new file mode 100644
index 0000000000..5ba54660d2
--- /dev/null
+++ b/source/java/org/alfresco/repo/audit/model/_3/DataGenerators.java
@@ -0,0 +1,69 @@
+
+package org.alfresco.repo.audit.model._3;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ * <complexType name="DataGenerators">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="DataGenerator" type="{http://www.alfresco.org/repo/audit/model/3.2}DataGenerator" maxOccurs="unbounded"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "DataGenerators", propOrder = {
+ "dataGenerator"
+})
+public class DataGenerators {
+
+ @XmlElement(name = "DataGenerator", required = true)
+ protected Listset
method for the dataGenerator property.
+ *
+ *
+ * getDataGenerator().add(newItem);
+ *
+ *
+ *
+ *
+ * <complexType name="GenerateValue">
+ * <complexContent>
+ * <extension base="{http://www.alfresco.org/repo/audit/model/3.2}KeyedAuditDefinition">
+ * <attribute name="dataGenerator" use="required" type="{http://www.alfresco.org/repo/audit/model/3.2}NameAttribute" />
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "GenerateValue")
+public class GenerateValue
+ extends KeyedAuditDefinition
+{
+
+ @XmlAttribute(required = true)
+ protected String dataGenerator;
+
+ /**
+ * Gets the value of the dataGenerator property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDataGenerator() {
+ return dataGenerator;
+ }
+
+ /**
+ * Sets the value of the dataGenerator property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDataGenerator(String value) {
+ this.dataGenerator = value;
+ }
+
+}
diff --git a/source/java/org/alfresco/repo/audit/model/_3/KeyedAuditDefinition.java b/source/java/org/alfresco/repo/audit/model/_3/KeyedAuditDefinition.java
new file mode 100644
index 0000000000..40a4caad43
--- /dev/null
+++ b/source/java/org/alfresco/repo/audit/model/_3/KeyedAuditDefinition.java
@@ -0,0 +1,64 @@
+
+package org.alfresco.repo.audit.model._3;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ * <complexType name="KeyedAuditDefinition">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="key" use="required" type="{http://www.alfresco.org/repo/audit/model/3.2}KeyAttribute" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "KeyedAuditDefinition")
+@XmlSeeAlso({
+ GenerateValue.class,
+ AuditPath.class,
+ RecordValue.class
+})
+public class KeyedAuditDefinition {
+
+ @XmlAttribute(required = true)
+ protected String key;
+
+ /**
+ * Gets the value of the key property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * Sets the value of the key property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setKey(String value) {
+ this.key = value;
+ }
+
+}
diff --git a/source/java/org/alfresco/repo/audit/model/_3/ObjectFactory.java b/source/java/org/alfresco/repo/audit/model/_3/ObjectFactory.java
new file mode 100644
index 0000000000..69c9a919ef
--- /dev/null
+++ b/source/java/org/alfresco/repo/audit/model/_3/ObjectFactory.java
@@ -0,0 +1,133 @@
+
+package org.alfresco.repo.audit.model._3;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.alfresco.repo.audit.model._3 package.
+ *
+ * <complexType name="RecordValue">
+ * <complexContent>
+ * <extension base="{http://www.alfresco.org/repo/audit/model/3.2}KeyedAuditDefinition">
+ * <attribute name="dataExtractor" use="required" type="{http://www.alfresco.org/repo/audit/model/3.2}NameAttribute" />
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "RecordValue")
+public class RecordValue
+ extends KeyedAuditDefinition
+{
+
+ @XmlAttribute(required = true)
+ protected String dataExtractor;
+
+ /**
+ * Gets the value of the dataExtractor property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDataExtractor() {
+ return dataExtractor;
+ }
+
+ /**
+ * Sets the value of the dataExtractor property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDataExtractor(String value) {
+ this.dataExtractor = value;
+ }
+
+}
diff --git a/source/java/org/alfresco/repo/audit/model/_3/package-info.java b/source/java/org/alfresco/repo/audit/model/_3/package-info.java
new file mode 100644
index 0000000000..344f160efc
--- /dev/null
+++ b/source/java/org/alfresco/repo/audit/model/_3/package-info.java
@@ -0,0 +1,2 @@
+@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.alfresco.org/repo/audit/model/3.2", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.alfresco.repo.audit.model._3;