updated to log4j2
This commit is contained in:
13
pom.xml
13
pom.xml
@ -10,7 +10,7 @@
|
|||||||
<module>configuration</module>
|
<module>configuration</module>
|
||||||
<module>network</module>
|
<module>network</module>
|
||||||
<module>security</module>
|
<module>security</module>
|
||||||
<module>sharepoint</module>
|
<module>sharepoint</module>
|
||||||
<module>util</module>
|
<module>util</module>
|
||||||
<module>jeeutil</module>
|
<module>jeeutil</module>
|
||||||
</modules>
|
</modules>
|
||||||
@ -37,9 +37,14 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>log4j</groupId>
|
<groupId>org.apache.logging.log4j</groupId>
|
||||||
<artifactId>log4j</artifactId>
|
<artifactId>log4j-api</artifactId>
|
||||||
<version>1.2.17</version>
|
<version>2.3</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.logging.log4j</groupId>
|
||||||
|
<artifactId>log4j-core</artifactId>
|
||||||
|
<version>2.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@ -269,8 +269,12 @@
|
|||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>log4j</groupId>
|
<groupId>org.apache.logging.log4j</groupId>
|
||||||
<artifactId>log4j</artifactId>
|
<artifactId>log4j-core</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.logging.log4j</groupId>
|
||||||
|
<artifactId>log4j-api</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
@ -14,7 +14,8 @@ import javax.xml.parsers.ParserConfigurationException;
|
|||||||
import javax.xml.transform.stream.StreamSource;
|
import javax.xml.transform.stream.StreamSource;
|
||||||
import javax.xml.validation.Schema;
|
import javax.xml.validation.Schema;
|
||||||
import javax.xml.validation.SchemaFactory;
|
import javax.xml.validation.SchemaFactory;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.w3c.dom.Node;
|
import org.w3c.dom.Node;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
|
|
||||||
@ -26,7 +27,7 @@ import org.xml.sax.SAXException;
|
|||||||
public abstract class SPJaxbObject<T> extends AbstractSpJaxbObject {
|
public abstract class SPJaxbObject<T> extends AbstractSpJaxbObject {
|
||||||
|
|
||||||
/** the logging object. */
|
/** the logging object. */
|
||||||
private final static Logger LOGGER = Logger.getLogger(SPJaxbObject.class);
|
private final static Logger LOGGER = LogManager.getLogger(SPJaxbObject.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* list of packages to search in
|
* list of packages to search in
|
||||||
|
|||||||
@ -2,7 +2,9 @@ package de.muehlencord.shared.sharepoint.api;
|
|||||||
|
|
||||||
import javax.xml.bind.ValidationEvent;
|
import javax.xml.bind.ValidationEvent;
|
||||||
import javax.xml.bind.ValidationEventHandler;
|
import javax.xml.bind.ValidationEventHandler;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -10,7 +12,7 @@ import org.apache.log4j.Logger;
|
|||||||
*/
|
*/
|
||||||
public class SPValidationEventHandler implements ValidationEventHandler {
|
public class SPValidationEventHandler implements ValidationEventHandler {
|
||||||
|
|
||||||
private final static Logger LOGGER = Logger.getLogger(SPValidationEventHandler.class);
|
private final static Logger LOGGER = LogManager.getLogger(SPValidationEventHandler.class);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handleEvent(ValidationEvent event) {
|
public boolean handleEvent(ValidationEvent event) {
|
||||||
|
|||||||
@ -9,7 +9,9 @@ import javax.xml.soap.SOAPMessage;
|
|||||||
import javax.xml.ws.handler.MessageContext;
|
import javax.xml.ws.handler.MessageContext;
|
||||||
import javax.xml.ws.handler.soap.SOAPHandler;
|
import javax.xml.ws.handler.soap.SOAPHandler;
|
||||||
import javax.xml.ws.handler.soap.SOAPMessageContext;
|
import javax.xml.ws.handler.soap.SOAPMessageContext;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -18,7 +20,7 @@ import org.apache.log4j.Logger;
|
|||||||
public class ServiceLogHandler implements SOAPHandler<SOAPMessageContext> {
|
public class ServiceLogHandler implements SOAPHandler<SOAPMessageContext> {
|
||||||
|
|
||||||
/** the logging object. */
|
/** the logging object. */
|
||||||
private final static Logger LOGGER = Logger.getLogger(ServiceLogHandler.class);
|
private final static Logger LOGGER = LogManager.getLogger(ServiceLogHandler.class);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Set<QName> getHeaders() {
|
public Set<QName> getHeaders() {
|
||||||
|
|||||||
@ -0,0 +1,32 @@
|
|||||||
|
package de.muehlencord.shared.sharepoint.api.camlquery;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author joern.muehlencord
|
||||||
|
*/
|
||||||
|
public class SPCamlQuery {
|
||||||
|
|
||||||
|
|
||||||
|
/*extends SPJaxbObject<CamlQueryRoot> {
|
||||||
|
|
||||||
|
public SPCamlQuery(SPContext context) throws JAXBException {
|
||||||
|
super(CamlQueryRoot.class, context);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected java.util.List getSchemaLocation() {
|
||||||
|
java.util.List<String> schemaList = new ArrayList();
|
||||||
|
schemaList.add("/xsd/camlquery.xsd");
|
||||||
|
schemaList.add("/xsd/coredefinitions.xsd");
|
||||||
|
return schemaList;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* History:
|
||||||
|
*
|
||||||
|
* $$Log$$
|
||||||
|
*
|
||||||
|
*/
|
||||||
12
sharepoint/api/src/main/resources/jaxb/camlquery.xml
Normal file
12
sharepoint/api/src/main/resources/jaxb/camlquery.xml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<jxb:bindings version="1.0" xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
|
||||||
|
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
|
||||||
|
jxb:extensionBindingPrefixes="xjc">
|
||||||
|
<jxb:bindings schemaLocation="../xsd/camlquery.xsd"
|
||||||
|
node="/xs:schema">
|
||||||
|
<jxb:globalBindings>
|
||||||
|
<xjc:simple />
|
||||||
|
<xjc:serializable uid="100" />
|
||||||
|
</jxb:globalBindings>
|
||||||
|
</jxb:bindings>
|
||||||
|
</jxb:bindings>
|
||||||
351
sharepoint/api/src/main/resources/xsd/camlquery.xsd
Normal file
351
sharepoint/api/src/main/resources/xsd/camlquery.xsd
Normal file
@ -0,0 +1,351 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<xs:schema id="CamlQuery" targetNamespace="http://schemas.microsoft.com/sharepoint/" elementFormDefault="qualified" xmlns="http://schemas.microsoft.com/sharepoint/" xmlns:mstns="http://schemas.microsoft.com/sharepoint/" xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified">
|
||||||
|
|
||||||
|
<!-- <xs:include id="CoreDef" schemaLocation="coredefinitions.xsd"/> -->
|
||||||
|
|
||||||
|
<s:complexType>
|
||||||
|
<s:sequence>
|
||||||
|
<s:element name="Query" type="CamlQueryRoot" minOccurs="0" maxOccurs="1"/>
|
||||||
|
</s:sequence>
|
||||||
|
</s:complexType>
|
||||||
|
|
||||||
|
<xs:complexType name="CamlQueryRoot" mixed="true">
|
||||||
|
<xs:all>
|
||||||
|
<xs:element name="Where" type="LogicalJoinDefinition" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="OrderBy" type="OrderByDefinition" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="Eq" type="LogicalTestDefinition" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="Field" type="SimpleFieldRef" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="ListProperty" type="ListPropertyDefinition" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="LookupColumn" type="LookupColumnDefinition" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="Column" type="QueryColumnDefinition" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="GetVar" type="QueryGetVarDefinition" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="GroupBy" type="GroupByDefinition" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="Contains" type="LogicalTestDefinition" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="BeginsWith" type="LogicalTestDefinition" minOccurs="0" maxOccurs="1"/>
|
||||||
|
</xs:all>
|
||||||
|
</xs:complexType>
|
||||||
|
|
||||||
|
<xs:complexType name="LogicalTestDefinition">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||||
|
<xs:element name="FieldRef" type="FieldRefDefinition"/>
|
||||||
|
<xs:element name="Value" type="ValueDefinition"/>
|
||||||
|
<xs:element name="XML" type="xs:string"/>
|
||||||
|
</xs:choice>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="LogicalMultiTestDefinition">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||||
|
<xs:element name="FieldRef" type="FieldRefDefinition"/>
|
||||||
|
<xs:element name="Values" type="ValueDefinitions"/>
|
||||||
|
<xs:element name="XML" type="xs:string"/>
|
||||||
|
</xs:choice>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="LogicalJoinDefinition">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||||
|
<xs:element name="Eq" type="LogicalTestDefinition"/>
|
||||||
|
<xs:element name="Geq" type="LogicalTestDefinition"/>
|
||||||
|
<xs:element name="Gt" type="LogicalTestDefinition"/>
|
||||||
|
<xs:element name="Leq" type="LogicalTestDefinition"/>
|
||||||
|
<xs:element name="Lt" type="LogicalTestDefinition"/>
|
||||||
|
<xs:element name="Neq" type="LogicalTestDefinition"/>
|
||||||
|
<xs:element name="And" type="ExtendedLogicalJoinDefinition"/>
|
||||||
|
<xs:element name="Or" type="ExtendedLogicalJoinDefinition"/>
|
||||||
|
<xs:element name="Membership" type="MembershipDefinition"/>
|
||||||
|
<xs:element name="IsNull" type="LogicalTestDefinition"/>
|
||||||
|
<xs:element name="IsNotNull" type="LogicalTestDefinition"/>
|
||||||
|
<xs:element name="DateRangesOverlap" type="UnlimitedLogicalTestDefinition"/>
|
||||||
|
<xs:element name="BeginsWith" type="LogicalTestDefinition"/>
|
||||||
|
<xs:element name="Contains" type="LogicalTestDefinition"/>
|
||||||
|
<xs:element name="In" type="LogicalMultiTestDefinition"/>
|
||||||
|
</xs:choice>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="FieldRefDefinition" mixed="true">
|
||||||
|
<xs:simpleContent>
|
||||||
|
<xs:extension base="xs:string">
|
||||||
|
<xs:attribute name="Alias" type="xs:string"/>
|
||||||
|
<xs:attribute name="Ascending" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute name="CreateURL" type="xs:string"/>
|
||||||
|
<xs:attribute name="DisplayName" type="xs:string"/>
|
||||||
|
<xs:attribute name="Explicit" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute name="ID" type="xs:string"/>
|
||||||
|
<xs:attribute name="Key" type="xs:string"/>
|
||||||
|
<xs:attribute name="Name" type="xs:string"/>
|
||||||
|
<xs:attribute name="RefType" type="xs:string"/>
|
||||||
|
<xs:attribute name="ShowField" type="xs:string"/>
|
||||||
|
<xs:attribute name="TextOnly" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute name="Type" type="ReferenceType"/>
|
||||||
|
<xs:attribute name="Format" type="xs:string"/>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:simpleContent>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:simpleType name="ReferenceType">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:enumeration value="AVG"/>
|
||||||
|
<xs:enumeration value="COUNT"/>
|
||||||
|
<xs:enumeration value="MAX"/>
|
||||||
|
<xs:enumeration value="MIN"/>
|
||||||
|
<xs:enumeration value="SUM"/>
|
||||||
|
<xs:enumeration value="STDEV"/>
|
||||||
|
<xs:enumeration value="VAR"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:complexType name="ValueDefinitions">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||||
|
<xs:element name="Value" type="ValueDefinition"/>
|
||||||
|
</xs:choice>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="ValueDefinition" mixed="true">
|
||||||
|
<xs:complexContent>
|
||||||
|
<xs:restriction base="xs:anyType">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||||
|
<xs:element name="Today" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="UserID" type="xs:string" nillable="true"/>
|
||||||
|
<xs:element name="ListProperty" type="QueryListProperty"/>
|
||||||
|
<xs:element name="Now" type="xs:string"/>
|
||||||
|
<xs:element name="Month" type="xs:string"/>
|
||||||
|
<xs:element name="XML" type="xs:string"/>
|
||||||
|
</xs:choice>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attribute name="Type" type="xs:string"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:complexContent>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="LogicalNullDefinition">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="FieldRef" type="FieldRefDefinition"/>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="ExtendedLogicalJoinDefinition">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||||
|
<xs:element name="Eq" type="LogicalTestDefinition"/>
|
||||||
|
<xs:element name="Geq" type="LogicalTestDefinition"/>
|
||||||
|
<xs:element name="Gt" type="LogicalTestDefinition"/>
|
||||||
|
<xs:element name="Leq" type="LogicalTestDefinition"/>
|
||||||
|
<xs:element name="Lt" type="LogicalTestDefinition"/>
|
||||||
|
<xs:element name="Neq" type="LogicalTestDefinition"/>
|
||||||
|
<xs:element name="And" type="ExtendedLogicalJoinDefinition"/>
|
||||||
|
<xs:element name="Or" type="ExtendedLogicalJoinDefinition"/>
|
||||||
|
<xs:element name="IsNull" type="LogicalNullDefinition"/>
|
||||||
|
<xs:element name="IsNotNull" type="LogicalNullDefinition"/>
|
||||||
|
<xs:element name="DateRangesOverlap" type="LogicalTestDefinition"/>
|
||||||
|
<xs:element name="BeginsWith" type="LogicalTestDefinition"/>
|
||||||
|
<xs:element name="Contains" type="LogicalTestDefinition"/>
|
||||||
|
<xs:element name="Membership" type="MembershipDefinition"/>
|
||||||
|
<xs:element name="In" type="LogicalMultiTestDefinition"/>
|
||||||
|
</xs:choice>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="FieldRefDefinitions" mixed="true">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="FieldRef" type="FieldRefDefinition" minOccurs="0" maxOccurs="unbounded"/>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="OrderByDefinition" mixed="true">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="FieldRef" type="FieldRefDefinition" minOccurs="0" maxOccurs="unbounded"/>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attribute name="UseIndexForOrderBy" type="TRUEFALSE" use="optional"/>
|
||||||
|
<xs:attribute name="Override" type="TRUEFALSE" use="optional"/>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="RowDefinition">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="Field" type="FieldDataDefinition" minOccurs="0" maxOccurs="unbounded"/>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="FieldDataDefinition">
|
||||||
|
<xs:simpleContent>
|
||||||
|
<xs:extension base="xs:string">
|
||||||
|
<xs:attribute name="Name" type="xs:string"/>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:simpleContent>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="RowDefinitions">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="Row" type="RowDefinition" minOccurs="0" maxOccurs="unbounded"/>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="EmptyQueryDefinition">
|
||||||
|
<xs:sequence/>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="SimpleFieldRef">
|
||||||
|
<xs:sequence/>
|
||||||
|
<xs:attribute name="Name" type="xs:string"/>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="LookupColumnDefinition">
|
||||||
|
<xs:sequence>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attribute name="HTMLEncode" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute name="StripWS" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute name="Name" type="xs:string"/>
|
||||||
|
<xs:attribute name="ShowField" type="xs:string"/>
|
||||||
|
<xs:attribute name="URLEncode" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute type="TRUEFALSE" name="URLEncodeAsURL"/>
|
||||||
|
<xs:attribute type="TRUEFALSE" name="IncludeVersions"/>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="QueryColumnDefinition" mixed="true">
|
||||||
|
<xs:complexContent>
|
||||||
|
<xs:extension base="LookupColumnDefinition">
|
||||||
|
<xs:sequence/>
|
||||||
|
<xs:attribute name="Default" type="xs:string"/>
|
||||||
|
<xs:attribute name="Format" type="xs:string"/>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:complexContent>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="QueryGetVarDefinition">
|
||||||
|
<xs:sequence>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attribute name="HTMLEncode" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute name="Name" type="xs:string"/>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="QueryListProperty">
|
||||||
|
<xs:sequence/>
|
||||||
|
<xs:attribute name="URLEncodeAsURL" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute name="Select" type="xs:string"/>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="MembershipDefinition">
|
||||||
|
<xs:complexContent>
|
||||||
|
<xs:extension base="LogicalTestDefinition">
|
||||||
|
<xs:sequence/>
|
||||||
|
<xs:attribute name="Type" type="xs:string"/>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:complexContent>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="GroupByDefinition">
|
||||||
|
<xs:complexContent>
|
||||||
|
<xs:extension base="LogicalTestDefinition">
|
||||||
|
<xs:sequence/>
|
||||||
|
<xs:attribute name="Collapse" type="TRUEFALSE"/>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:complexContent>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="UnlimitedLogicalTestDefinition">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||||
|
<xs:element name="FieldRef" type="FieldRefDefinition"/>
|
||||||
|
<xs:element name="Value" type="ValueDefinition"/>
|
||||||
|
</xs:choice>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
|
||||||
|
<xs:simpleType name="TRUEFALSE">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:enumeration value="TRUE"/>
|
||||||
|
<xs:enumeration value="FALSE"/>
|
||||||
|
<xs:enumeration value="True"/>
|
||||||
|
<xs:enumeration value="False"/>
|
||||||
|
<xs:enumeration value="true"/>
|
||||||
|
<xs:enumeration value="false"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="UniqueIdentifier">
|
||||||
|
<xs:restriction base="xs:string"/>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="RelativeFolderPath">
|
||||||
|
<xs:restriction base="xs:string"/>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="RelativeFilePath">
|
||||||
|
<xs:restriction base="xs:string"/>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="LocalizableString">
|
||||||
|
<xs:restriction base="xs:string"/>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="RelativeUrl">
|
||||||
|
<xs:restriction base="xs:string"/>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="AssemblyStrongName">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:minLength value="2"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="AssemblyClass">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:minLength value="1"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="String255Chars">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:maxLength value="255"/>
|
||||||
|
<xs:minLength value="0"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="Int0To1024">
|
||||||
|
<xs:restriction base="xs:long">
|
||||||
|
<xs:minInclusive value="0"/>
|
||||||
|
<xs:maxInclusive value="1024"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="BasicVersion">
|
||||||
|
<xs:restriction base="xs:string"/>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="AbsoluteOrRelativeUrl">
|
||||||
|
<xs:restriction base="xs:string"/>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="AbsoluteUrl">
|
||||||
|
<xs:restriction base="xs:string"/>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="ContentDirection">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:enumeration value="RTL"/>
|
||||||
|
<xs:enumeration value="LTR"/>
|
||||||
|
<xs:enumeration value="none"/>
|
||||||
|
<xs:enumeration value="0"/>
|
||||||
|
<xs:enumeration value="2"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="Sequence">
|
||||||
|
<xs:restriction base="xs:int">
|
||||||
|
<xs:minInclusive value="0"/>
|
||||||
|
<xs:maxInclusive value="65536"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="Int0To65536">
|
||||||
|
<xs:restriction base="xs:long">
|
||||||
|
<xs:minInclusive value="0"/>
|
||||||
|
<xs:maxInclusive value="65536"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="TrueFalseMixed">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:enumeration value="True"/>
|
||||||
|
<xs:enumeration value="False"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="NonEmptyString">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:minLength value="1"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:complexType name="HtmlRenderingElement">
|
||||||
|
<xs:sequence>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attribute name="AutoHyperLink" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute name="URLEncode" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute name="HTMLEncode" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute name="AutoNewLine" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute name="URLEncodeAsURL" type="xs:string"/>
|
||||||
|
<xs:attribute name="Default" type="xs:string"/>
|
||||||
|
<xs:attribute name="StripWS" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute name="ExpandXML" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute name="AutoHyperLinkNoEncoding" type="TRUEFALSE"/>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="ListPropertyDefinition">
|
||||||
|
<xs:complexContent>
|
||||||
|
<xs:extension base="HtmlRenderingElement">
|
||||||
|
<xs:sequence>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attribute name="Select" type="xs:string"/>
|
||||||
|
<xs:attribute name="ForInstance" type="TRUEFALSE"/>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:complexContent>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:schema>
|
||||||
|
|
||||||
115
sharepoint/api/src/main/resources/xsd/coredefinitions.xsd
Normal file
115
sharepoint/api/src/main/resources/xsd/coredefinitions.xsd
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<xs:schema id="Core" targetNamespace="http://schemas.microsoft.com/sharepoint/" elementFormDefault="qualified" xmlns="http://schemas.microsoft.com/sharepoint/" xmlns:mstns="http://schemas.microsoft.com/sharepoint/" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0" attributeFormDefault="unqualified">
|
||||||
|
<xs:simpleType name="TRUEFALSE">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:enumeration value="TRUE"/>
|
||||||
|
<xs:enumeration value="FALSE"/>
|
||||||
|
<xs:enumeration value="True"/>
|
||||||
|
<xs:enumeration value="False"/>
|
||||||
|
<xs:enumeration value="true"/>
|
||||||
|
<xs:enumeration value="false"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="UniqueIdentifier">
|
||||||
|
<xs:restriction base="xs:string"/>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="RelativeFolderPath">
|
||||||
|
<xs:restriction base="xs:string"/>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="RelativeFilePath">
|
||||||
|
<xs:restriction base="xs:string"/>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="LocalizableString">
|
||||||
|
<xs:restriction base="xs:string"/>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="RelativeUrl">
|
||||||
|
<xs:restriction base="xs:string"/>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="AssemblyStrongName">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:minLength value="2"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="AssemblyClass">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:minLength value="1"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="String255Chars">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:maxLength value="255"/>
|
||||||
|
<xs:minLength value="0"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="Int0To1024">
|
||||||
|
<xs:restriction base="xs:long">
|
||||||
|
<xs:minInclusive value="0"/>
|
||||||
|
<xs:maxInclusive value="1024"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="BasicVersion">
|
||||||
|
<xs:restriction base="xs:string"/>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="AbsoluteOrRelativeUrl">
|
||||||
|
<xs:restriction base="xs:string"/>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="AbsoluteUrl">
|
||||||
|
<xs:restriction base="xs:string"/>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="ContentDirection">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:enumeration value="RTL"/>
|
||||||
|
<xs:enumeration value="LTR"/>
|
||||||
|
<xs:enumeration value="none"/>
|
||||||
|
<xs:enumeration value="0"/>
|
||||||
|
<xs:enumeration value="2"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="Sequence">
|
||||||
|
<xs:restriction base="xs:int">
|
||||||
|
<xs:minInclusive value="0"/>
|
||||||
|
<xs:maxInclusive value="65536"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="Int0To65536">
|
||||||
|
<xs:restriction base="xs:long">
|
||||||
|
<xs:minInclusive value="0"/>
|
||||||
|
<xs:maxInclusive value="65536"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="TrueFalseMixed">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:enumeration value="True"/>
|
||||||
|
<xs:enumeration value="False"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="NonEmptyString">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:minLength value="1"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
<xs:complexType name="HtmlRenderingElement">
|
||||||
|
<xs:sequence>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attribute name="AutoHyperLink" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute name="URLEncode" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute name="HTMLEncode" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute name="AutoNewLine" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute name="URLEncodeAsURL" type="xs:string"/>
|
||||||
|
<xs:attribute name="Default" type="xs:string"/>
|
||||||
|
<xs:attribute name="StripWS" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute name="ExpandXML" type="TRUEFALSE"/>
|
||||||
|
<xs:attribute name="AutoHyperLinkNoEncoding" type="TRUEFALSE"/>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:complexType name="ListPropertyDefinition">
|
||||||
|
<xs:complexContent>
|
||||||
|
<xs:extension base="HtmlRenderingElement">
|
||||||
|
<xs:sequence>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attribute name="Select" type="xs:string"/>
|
||||||
|
<xs:attribute name="ForInstance" type="TRUEFALSE"/>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:complexContent>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:schema>
|
||||||
|
|
||||||
@ -26,6 +26,10 @@ public class BaseTest {
|
|||||||
// FIXME - needs to be implemented using mock; replace with real data but make sure password is not commited
|
// FIXME - needs to be implemented using mock; replace with real data but make sure password is not commited
|
||||||
NtlmAuthenticator credentials = null;
|
NtlmAuthenticator credentials = null;
|
||||||
context = null;
|
context = null;
|
||||||
|
// DO NOT COMMMT THE FOLLOWING LINES
|
||||||
|
credentials = new NtlmAuthenticator("wincor-nixdorf.com", "joern.muehlencord", "\"34fR4vbHuL");
|
||||||
|
context = new SPContext(new java.net.URL("https://troom.wincor-nixdorf.com/rooms/sw_ps_hq_utrecht/hqall/bd/spwin7/"), credentials, SPVersion.SP2010,
|
||||||
|
true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Query xmlns="http://schemas.microsoft.com/sharepoint/">
|
||||||
|
<Where>
|
||||||
|
<And>
|
||||||
|
<And>
|
||||||
|
<Contains>
|
||||||
|
<FieldRef Name="Editor" />
|
||||||
|
<Value Type="Text">Chandler</Value>
|
||||||
|
</Contains>
|
||||||
|
<Contains>
|
||||||
|
<FieldRef Name="FileRef" />
|
||||||
|
<Value Type="Text">AuditDeleteTesting</Value>
|
||||||
|
</Contains>
|
||||||
|
</And>
|
||||||
|
<Eq>
|
||||||
|
<FieldRef Name="Created_x0020_Date" />
|
||||||
|
<Value Type="DateTime">2013-09-11</Value>
|
||||||
|
</Eq>
|
||||||
|
</And>
|
||||||
|
|
||||||
|
</Where>
|
||||||
|
</CamlQueryRoot>
|
||||||
Reference in New Issue
Block a user