Author: kayyagari
Date: Sun Jul 7 14:02:16 2013
New Revision: 1500433
URL: http://svn.apache.org/r1500433
Log:
module skeletons
Added:
directory/escimo/trunk/client/
directory/escimo/trunk/client/pom.xml
directory/escimo/trunk/client/src/
directory/escimo/trunk/client/src/main/
directory/escimo/trunk/client/src/main/java/
directory/escimo/trunk/client/src/main/java/org/
directory/escimo/trunk/client/src/main/java/org/apache/
directory/escimo/trunk/client/src/main/java/org/apache/directory/
directory/escimo/trunk/client/src/main/java/org/apache/directory/scim/
directory/escimo/trunk/client/src/test/
directory/escimo/trunk/client/src/test/java/
directory/escimo/trunk/client/src/test/java/org/
directory/escimo/trunk/client/src/test/java/org/apache/
directory/escimo/trunk/client/src/test/java/org/apache/directory/
directory/escimo/trunk/client/src/test/java/org/apache/directory/scim/
directory/escimo/trunk/common/
directory/escimo/trunk/common/pom.xml
directory/escimo/trunk/common/src/
directory/escimo/trunk/common/src/main/
directory/escimo/trunk/common/src/main/java/
directory/escimo/trunk/common/src/main/java/org/
directory/escimo/trunk/common/src/main/java/org/apache/
directory/escimo/trunk/common/src/main/java/org/apache/directory/
directory/escimo/trunk/common/src/main/java/org/apache/directory/scim/
directory/escimo/trunk/common/src/main/java/org/apache/directory/scim/ScimUtil.java
directory/escimo/trunk/common/src/main/resources/
directory/escimo/trunk/common/src/main/resources/scim-core.xsd
directory/escimo/trunk/common/src/main/resources/scim-enterprise.xsd
directory/escimo/trunk/common/src/test/
directory/escimo/trunk/common/src/test/java/
directory/escimo/trunk/common/src/test/java/org/
directory/escimo/trunk/common/src/test/java/org/apache/
directory/escimo/trunk/common/src/test/java/org/apache/directory/
directory/escimo/trunk/common/src/test/java/org/apache/directory/scim/
directory/escimo/trunk/pom.xml
directory/escimo/trunk/server/
directory/escimo/trunk/server/pom.xml
directory/escimo/trunk/server/src/
directory/escimo/trunk/server/src/main/
directory/escimo/trunk/server/src/main/java/
directory/escimo/trunk/server/src/main/java/org/
directory/escimo/trunk/server/src/main/java/org/apache/
directory/escimo/trunk/server/src/main/java/org/apache/directory/
directory/escimo/trunk/server/src/main/java/org/apache/directory/scim/
directory/escimo/trunk/server/src/main/java/org/apache/directory/scim/UserService.java
directory/escimo/trunk/server/src/main/webapp/
directory/escimo/trunk/server/src/main/webapp/WEB-INF/
directory/escimo/trunk/server/src/main/webapp/WEB-INF/configuration.properties
directory/escimo/trunk/server/src/main/webapp/WEB-INF/web.xml
directory/escimo/trunk/server/src/test/
directory/escimo/trunk/server/src/test/java/
directory/escimo/trunk/server/src/test/java/org/
directory/escimo/trunk/server/src/test/java/org/apache/
directory/escimo/trunk/server/src/test/java/org/apache/directory/
directory/escimo/trunk/server/src/test/java/org/apache/directory/scim/
Added: directory/escimo/trunk/client/pom.xml
URL: http://svn.apache.org/viewvc/directory/escimo/trunk/client/pom.xml?rev=1500433&view=auto
==============================================================================
--- directory/escimo/trunk/client/pom.xml (added)
+++ directory/escimo/trunk/client/pom.xml Sun Jul 7 14:02:16 2013
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<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>
+ <parent>
+ <groupId>org.apache.directory.scim</groupId>
+ <artifactId>escimo</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>escimo-client</artifactId>
+ <packaging>jar</packaging>
+ <version>1.0-SNAPSHOT</version>
+ <name>eSCIMo client</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.wink</groupId>
+ <artifactId>wink-client</artifactId>
+ <version>${wink.version}</version>
+ </dependency>
+ </dependencies>
+</project>
Added: directory/escimo/trunk/common/pom.xml
URL: http://svn.apache.org/viewvc/directory/escimo/trunk/common/pom.xml?rev=1500433&view=auto
==============================================================================
--- directory/escimo/trunk/common/pom.xml (added)
+++ directory/escimo/trunk/common/pom.xml Sun Jul 7 14:02:16 2013
@@ -0,0 +1,76 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<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>
+ <parent>
+ <groupId>org.apache.directory.scim</groupId>
+ <artifactId>escimo</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>escimo-common</artifactId>
+ <packaging>jar</packaging>
+ <version>1.0-SNAPSHOT</version>
+ <name>eSCIMo common API</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.directory.api</groupId>
+ <artifactId>api-ldap-model</artifactId>
+ <version>1.0.0-M19</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.sun.tools.xjc.maven2</groupId>
+ <artifactId>maven-jaxb-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <generatePackage>org.apache.directory.scim.common</generatePackage>
+ <includeSchemas>
+ <includeSchema>**/*.xsd</includeSchema>
+ <includeSchema>**/*.dtd</includeSchema>
+ </includeSchemas>
+ <excludeSchemas>
+ <excludeSchema>test*.xsd</excludeSchema>
+ </excludeSchemas>
+ <includeBindings>
+ <includeBinding>*.xjb</includeBinding>
+ </includeBindings>
+ <strict>false</strict>
+ <verbose>true</verbose>
+ </configuration>
+ </plugin>
+<!-- <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ </configuration>
+ </plugin>
+ --> </plugins>
+ </build>
+</project>
Added: directory/escimo/trunk/common/src/main/java/org/apache/directory/scim/ScimUtil.java
URL: http://svn.apache.org/viewvc/directory/escimo/trunk/common/src/main/java/org/apache/directory/scim/ScimUtil.java?rev=1500433&view=auto
==============================================================================
--- directory/escimo/trunk/common/src/main/java/org/apache/directory/scim/ScimUtil.java (added)
+++ directory/escimo/trunk/common/src/main/java/org/apache/directory/scim/ScimUtil.java Sun
Jul 7 14:02:16 2013
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.directory.scim;
+
+import org.apache.directory.api.ldap.model.entry.Entry;
+
+/**
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class ScimUtil
+{
+ /*public static User toUser( Entry entry )
+ {
+
+ }*/
+}
Added: directory/escimo/trunk/common/src/main/resources/scim-core.xsd
URL: http://svn.apache.org/viewvc/directory/escimo/trunk/common/src/main/resources/scim-core.xsd?rev=1500433&view=auto
==============================================================================
--- directory/escimo/trunk/common/src/main/resources/scim-core.xsd (added)
+++ directory/escimo/trunk/common/src/main/resources/scim-core.xsd Sun Jul 7 14:02:16 2013
@@ -0,0 +1,478 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<xs:schema xmlns:tns="urn:scim:schemas:core:1.0"
+ targetNamespace="urn:scim:schemas:core:1.0"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0">
+ <xs:element name="Response" type="tns:Response"/>
+ <xs:element name="Error" type="tns:Error"/>
+ <xs:element name="User" type="tns:User"/>
+ <xs:element name="Group" type="tns:Group"/>
+ <xs:element name="Resource" type="tns:Resource"/>
+ <xs:element name="Schema" type="tns:Schema"/>
+ <xs:element name="ServiceProviderConfig" type="tns:ServiceProviderConfig"/>
+ <xs:element name="Bulk" type="tns:Bulk"/>
+ <xs:element name="Operation" type="tns:Operation"/>
+
+ <xs:group name="Resources">
+ <xs:sequence>
+ <xs:element name="totalResults" type="xs:long" minOccurs="0"
+ maxOccurs="1"/>
+ <xs:element name="itemsPerPage" type="xs:int" minOccurs="0"
+ maxOccurs="1"/>
+ <xs:element name="startIndex" type="xs:long" minOccurs="0"
+ maxOccurs="1"/>
+ <xs:element name="Resources" minOccurs="0" maxOccurs="1">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Resource"
+ type="tns:Resource"
+ minOccurs="0"
+ maxOccurs="unbounded"
+ nillable="true"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:group>
+
+ <xs:complexType name="Response">
+ <xs:sequence>
+ <xs:choice>
+ <xs:element ref="tns:Resource" minOccurs="0"/>
+ <xs:group ref="tns:Resources"/>
+ <xs:element name="errors" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="error"
+ type="tns:Error"
+ minOccurs="0"
+ maxOccurs="unbounded"
+ nillable="true"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:choice>
+ <xs:any namespace="##other" minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="Bulk">
+ <xs:sequence>
+ <xs:element name="failOnErrors" type="xs:int" minOccurs="0"
+ maxOccurs="1"/>
+ <xs:element name="Operations" minOccurs="0" maxOccurs="1">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Operation"
+ type="tns:Operation"
+ minOccurs="1"
+ maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="Operation">
+ <xs:sequence>
+ <xs:element name="method" type="xs:string" minOccurs="1"
+ maxOccurs="1"/>
+ <xs:element name="bulkId" type="xs:string" minOccurs="0"
+ maxOccurs="1"/>
+ <xs:element name="version" type="xs:string" minOccurs="0"
+ maxOccurs="1"/>
+ <xs:element name="path" type="xs:string" minOccurs="0"
+ maxOccurs="1"/>
+ <xs:element name="location" type="xs:string" minOccurs="0"
+ maxOccurs="1"/>
+ <xs:element name="data" type="tns:Resource" minOccurs="0"
+ maxOccurs="1" />
+ <xs:element name="status" type="tns:Status" minOccurs="0"
+ maxOccurs="1" />
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="Status">
+ <xs:sequence>
+ <xs:element name="code" type="xs:string" minOccurs="0"/>
+ <xs:element name="description" type="xs:string" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="Error">
+ <xs:sequence>
+ <xs:element name="description" type="xs:string" minOccurs="0"/>
+ <xs:element name="code" type="xs:string" minOccurs="0"/>
+ <xs:element name="uri" type="xs:string" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="User">
+ <xs:complexContent>
+ <xs:extension base="tns:CoreResource">
+ <xs:sequence>
+ <xs:element name="userName" type="xs:string" minOccurs="0"/>
+ <xs:element name="name" type="tns:name" minOccurs="0"/>
+ <xs:element name="displayName" type="xs:string"
+ minOccurs="0"/>
+ <xs:element name="nickName" type="xs:string" minOccurs="0"/>
+ <xs:element name="profileUrl" type="xs:string"
+ minOccurs="0"/>
+ <xs:element name="title" type="xs:string" minOccurs="0"/>
+ <xs:element name="userType" type="xs:string" minOccurs="0"/>
+ <xs:element name="preferredLanguage" type="xs:string" minOccurs="0"/>
+ <xs:element name="locale" type="xs:string" minOccurs="0"/>
+ <xs:element name="timezone" type="xs:string" minOccurs="0"/>
+ <xs:element name="active" type="xs:boolean" minOccurs="0"/>
+ <xs:element name="password" type="xs:string" minOccurs="0"/>
+ <xs:element name="emails" minOccurs="0" >
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="email"
+ type="tns:multiValuedAttribute"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="phoneNumbers" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="phoneNumber"
+ type="tns:multiValuedAttribute"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="ims" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="im"
+ type="tns:multiValuedAttribute"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="photos" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="photo"
+ type="tns:multiValuedAttribute"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="addresses" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="address"
+ type="tns:address"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="groups" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="group"
+ type="tns:multiValuedAttribute"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="entitlements" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="entitlement"
+ type="tns:multiValuedAttribute"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="roles" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="role"
+ type="tns:multiValuedAttribute"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="x509Certificates" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="x509Certificate"
+ type="tns:multiValuedAttribute"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:any namespace="##other" minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name="Group">
+ <xs:complexContent>
+ <xs:extension base="tns:CoreResource">
+ <xs:sequence>
+ <xs:element name="displayName" type="xs:string"
+ minOccurs="0"/>
+ <xs:element name="members" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="member"
+ type="tns:multiValuedAttribute"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:any namespace="##other" minOccurs="0"/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name="Resource">
+ <xs:sequence>
+ <xs:element name="id" type="xs:string" minOccurs="0"
+ maxOccurs="1"/>
+ <xs:element name="meta" type="tns:meta" minOccurs="0"
+ maxOccurs="1"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="CoreResource">
+ <xs:complexContent>
+ <xs:extension base="tns:Resource">
+ <xs:sequence>
+ <xs:element name="externalId" type="xs:string"
+ minOccurs="0"/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name="address">
+ <xs:complexContent>
+ <xs:extension base="tns:multiValuedAttribute">
+ <xs:sequence>
+ <xs:element name="formatted" type="xs:string" minOccurs="0"/>
+ <xs:element name="streetAddress" type="xs:string" minOccurs="0"/>
+ <xs:element name="locality" type="xs:string" minOccurs="0"/>
+ <xs:element name="region" type="xs:string" minOccurs="0"/>
+ <xs:element name="postalCode" type="xs:string" minOccurs="0"/>
+ <xs:element name="country" type="xs:string" minOccurs="0"/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name="multiValuedAttribute" abstract="true">
+ <xs:sequence>
+ <xs:element name="value" type="xs:anyType" minOccurs="0"/>
+ <xs:element name="display" type="xs:string" minOccurs="0"/>
+ <xs:element name="primary" type="xs:boolean" minOccurs="0"/>
+ <xs:element name="type" type="xs:string" minOccurs="0"/>
+ <xs:element name="operation" type="xs:string" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="name">
+ <xs:sequence>
+ <xs:element name="formatted" type="xs:string" minOccurs="0"/>
+ <xs:element name="familyName" type="xs:string" minOccurs="0"/>
+ <xs:element name="givenName" type="xs:string" minOccurs="0"/>
+ <xs:element name="middleName" type="xs:string" minOccurs="0"/>
+ <xs:element name="honorificPrefix" type="xs:string" minOccurs="0"/>
+ <xs:element name="honorificSuffix" type="xs:string" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="meta">
+ <xs:sequence>
+ <xs:element name="created" type="xs:dateTime" minOccurs="0"/>
+ <xs:element name="lastModified" type="xs:dateTime" minOccurs="0"/>
+ <xs:element name="location" type="xs:string" minOccurs="0"/>
+ <xs:element name="version" type="xs:string" minOccurs="0"/>
+ <xs:element name="attributes" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="attribute"
+ type="tns:multiValuedAttribute"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="SchemaAttribute">
+ <xs:complexContent>
+ <xs:extension base="tns:SchemaSubAttribute">
+ <xs:sequence>
+ <xs:element name="multiValued" type="xs:boolean" minOccurs="0"/>
+ <xs:element name="multiValuedAttributeChildName" type="xs:string" minOccurs="0"/>
+ <xs:element name="canonicalValues" type="xs:string" minOccurs="0"/>
+ <xs:element name="subAttributes" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="subAttribute"
+ type="tns:SchemaSubAttribute"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name="SchemaSubAttribute">
+ <xs:complexContent>
+ <xs:extension base="tns:multiValuedAttribute">
+ <xs:sequence>
+ <xs:element name="name" type="xs:string" minOccurs="0"/>
+ <xs:element name="type" type="xs:string" minOccurs="0"/>
+ <xs:element name="description" type="xs:string" minOccurs="0"/>
+ <xs:element name="schema" type="xs:string" minOccurs="0"/>
+ <xs:element name="readOnly" type="xs:boolean" minOccurs="0"/>
+ <xs:element name="required" type="xs:boolean" minOccurs="0"/>
+ <xs:element name="caseExact" type="xs:boolean" minOccurs="0"/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name="Schema">
+ <xs:complexContent>
+ <xs:extension base="tns:Resource">
+ <xs:sequence>
+ <xs:element name="name" type="xs:string"
+ minOccurs="0"/>
+ <xs:element name="description" type="xs:string"
+ minOccurs="0"/>
+ <xs:element name="schema" type="xs:string"
+ minOccurs="0"/>
+ <xs:element name="queryEndpoint" type="xs:string"
+ minOccurs="0"/>
+ <xs:element name="attributes" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="attribute"
+ type="tns:SchemaSubAttribute"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name="authenticationScheme">
+ <xs:sequence>
+ <xs:element name="name" type="xs:string" minOccurs="0"/>
+ <xs:element name="description" type="xs:string" minOccurs="0"/>
+ <xs:element name="specUrl" type="xs:string" minOccurs="0"/>
+ <xs:element name="documentationUrl" type="xs:string" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="ServiceProviderConfig">
+ <xs:complexContent>
+ <xs:extension base="tns:Resource">
+ <xs:sequence>
+ <xs:element name="documentationUrl" type="xs:string"
+ minOccurs="0"/>
+ <xs:element name="patch" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="supported" type="xs:boolean"
+ minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="bulk" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="supported" type="xs:boolean"
+ minOccurs="0"/>
+ <xs:element name="maxOperations" type="xs:int"
+ minOccurs="0"/>
+ <xs:element name="maxPayloadSize" type="xs:int"
+ minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="filter" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="supported" type="xs:boolean"
+ minOccurs="0"/>
+ <xs:element name="maxResults" type="xs:int"
+ minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="changePassword" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="supported" type="xs:boolean"
+ minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="sort" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="supported" type="xs:boolean"
+ minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="etag" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="supported" type="xs:boolean"
+ minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="authenticationSchemes" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="authenticationScheme" type="tns:authenticationScheme"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="xmlDataFormat" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="supported" type="xs:boolean"
+ minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:any namespace="##other" minOccurs="0"/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+</xs:schema>
Added: directory/escimo/trunk/common/src/main/resources/scim-enterprise.xsd
URL: http://svn.apache.org/viewvc/directory/escimo/trunk/common/src/main/resources/scim-enterprise.xsd?rev=1500433&view=auto
==============================================================================
--- directory/escimo/trunk/common/src/main/resources/scim-enterprise.xsd (added)
+++ directory/escimo/trunk/common/src/main/resources/scim-enterprise.xsd Sun Jul 7 14:02:16
2013
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<xs:schema xmlns:tns="urn:scim:schemas:extension:enterprise:1.0"
+ targetNamespace="urn:scim:schemas:extension:enterprise:1.0"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0">
+
+ <xs:element name="employeeNumber" type="xs:string"/>
+ <xs:element name="costCenter" type="xs:string"/>
+ <xs:element name="organization" type="xs:string"/>
+ <xs:element name="division" type="xs:string"/>
+ <xs:element name="department" type="xs:string"/>
+ <xs:element name="manager" type="tns:manager"/>
+
+ <xs:complexType name="manager">
+ <xs:sequence>
+ <xs:element name="managerId" type="xs:string" minOccurs="0"/>
+ <xs:element name="displayName" type="xs:string" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+
+</xs:schema>
Added: directory/escimo/trunk/pom.xml
URL: http://svn.apache.org/viewvc/directory/escimo/trunk/pom.xml?rev=1500433&view=auto
==============================================================================
--- directory/escimo/trunk/pom.xml (added)
+++ directory/escimo/trunk/pom.xml Sun Jul 7 14:02:16 2013
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<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>org.apache.directory.scim</groupId>
+ <artifactId>escimo</artifactId>
+ <packaging>pom</packaging>
+ <version>1.0-SNAPSHOT</version>
+ <name>Apache Directory SCIM</name>
+
+ <properties>
+ <wink.version>1.3.0</wink.version>
+ </properties>
+
+ <modules>
+ <module>server</module>
+ <module>common</module>
+ <module>client</module>
+ </modules>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.wink</groupId>
+ <artifactId>wink-client</artifactId>
+ <version>${wink.version}</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.10</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+</project>
Added: directory/escimo/trunk/server/pom.xml
URL: http://svn.apache.org/viewvc/directory/escimo/trunk/server/pom.xml?rev=1500433&view=auto
==============================================================================
--- directory/escimo/trunk/server/pom.xml (added)
+++ directory/escimo/trunk/server/pom.xml Sun Jul 7 14:02:16 2013
@@ -0,0 +1,44 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<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>
+ <parent>
+ <groupId>org.apache.directory.scim</groupId>
+ <artifactId>escimo</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>escimo-server</artifactId>
+ <packaging>war</packaging>
+ <version>1.0-SNAPSHOT</version>
+ <name>eSCIMo server</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.wink</groupId>
+ <artifactId>wink-server</artifactId>
+ <version>${wink.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>escimo-common</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+</project>
Added: directory/escimo/trunk/server/src/main/java/org/apache/directory/scim/UserService.java
URL: http://svn.apache.org/viewvc/directory/escimo/trunk/server/src/main/java/org/apache/directory/scim/UserService.java?rev=1500433&view=auto
==============================================================================
--- directory/escimo/trunk/server/src/main/java/org/apache/directory/scim/UserService.java
(added)
+++ directory/escimo/trunk/server/src/main/java/org/apache/directory/scim/UserService.java
Sun Jul 7 14:02:16 2013
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.directory.scim;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.MediaType;
+
+import com.keydap.scim.common.User;
+
+/**
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+@Path( "Users" )
+public class UserService
+{
+
+ @GET
+ @Produces( {MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
+ public User getUser( @PathParam("user") String userId )
+ {
+ return null;
+ }
+}
Added: directory/escimo/trunk/server/src/main/webapp/WEB-INF/configuration.properties
URL: http://svn.apache.org/viewvc/directory/escimo/trunk/server/src/main/webapp/WEB-INF/configuration.properties?rev=1500433&view=auto
==============================================================================
(empty)
Added: directory/escimo/trunk/server/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/directory/escimo/trunk/server/src/main/webapp/WEB-INF/web.xml?rev=1500433&view=auto
==============================================================================
--- directory/escimo/trunk/server/src/main/webapp/WEB-INF/web.xml (added)
+++ directory/escimo/trunk/server/src/main/webapp/WEB-INF/web.xml Sun Jul 7 14:02:16 2013
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE web-app
+ PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+ <listener>
+ <listener-class></listener-class>
+ </listener>
+ <!-- Servlets -->
+ <servlet>
+ <servlet-name>scimService</servlet-name>
+ <servlet-class>
+ org.apache.wink.server.internal.servlet.RestServlet
+ </servlet-class>
+ <init-param>
+ <param-name>propertiesLocation</param-name>
+ <param-value>/WEB-INF/configuration.properties</param-value>
+ </init-param>
+ <!-- <init-param>
+ <param-name>winkApplicationConfigLocation</param-name>
+ <param-value>/WEB-INF/application</param-value>
+ </init-param>-->
+ <load-on-startup>0</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>scimService</servlet-name>
+ <url-pattern>/scim/*</url-pattern>
+ </servlet-mapping>
+</web-app>
|