You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by pa...@apache.org on 2008/12/22 17:37:38 UTC
svn commit: r728722 [8/8] - in /jackrabbit/sandbox/jcr-cmis/server/ws: ./
src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/
src/main/java/org/apache/jackrabbit/
src/main/java/org/apache/jackrabbit/cmis/ src/main/java/org/apache...
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/ObjectNotFoundException.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/ObjectNotFoundException.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/ObjectNotFoundException.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/ObjectNotFoundException.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,45 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.ws.WebFault;
+
+
+/**
+ * This class was generated by Apache CXF 2.1.3
+ * Thu Dec 11 22:50:43 CET 2008
+ * Generated source version: 2.1.3
+ *
+ */
+
+@WebFault(name = "objectNotFoundException", targetNamespace = "http://www.cmis.org/2008/05")
+public class ObjectNotFoundException extends Exception {
+ public static final long serialVersionUID = 20081211225043L;
+
+ private org.apache.jackrabbit.cmis.ws.repository.ObjectNotFoundExceptionType objectNotFoundException;
+
+ public ObjectNotFoundException() {
+ super();
+ }
+
+ public ObjectNotFoundException(String message) {
+ super(message);
+ }
+
+ public ObjectNotFoundException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ public ObjectNotFoundException(String message, org.apache.jackrabbit.cmis.ws.repository.ObjectNotFoundExceptionType objectNotFoundException) {
+ super(message);
+ this.objectNotFoundException = objectNotFoundException;
+ }
+
+ public ObjectNotFoundException(String message, org.apache.jackrabbit.cmis.ws.repository.ObjectNotFoundExceptionType objectNotFoundException, Throwable cause) {
+ super(message, cause);
+ this.objectNotFoundException = objectNotFoundException;
+ }
+
+ public org.apache.jackrabbit.cmis.ws.repository.ObjectNotFoundExceptionType getFaultInfo() {
+ return this.objectNotFoundException;
+ }
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/ObjectNotFoundExceptionType.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/ObjectNotFoundExceptionType.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/ObjectNotFoundExceptionType.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/ObjectNotFoundExceptionType.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,32 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for objectNotFoundExceptionType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="objectNotFoundExceptionType">
+ * <complexContent>
+ * <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "objectNotFoundExceptionType")
+public class ObjectNotFoundExceptionType
+ extends CmisFaultType
+{
+
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/ObjectTreeCollectionType.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/ObjectTreeCollectionType.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/ObjectTreeCollectionType.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/ObjectTreeCollectionType.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,92 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAnyAttribute;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.namespace.QName;
+
+
+/**
+ * <p>Java class for objectTreeCollectionType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="objectTreeCollectionType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="object" type="{http://www.cmis.org/2008/05}cmisObjectType" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "objectTreeCollectionType", propOrder = {
+ "object"
+})
+public class ObjectTreeCollectionType {
+
+ protected List<CmisObjectType> object;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName, String>();
+
+ /**
+ * Gets the value of the object property.
+ *
+ * <p>
+ * 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 <CODE>set</CODE> method for the object property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getObject().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link CmisObjectType }
+ *
+ *
+ */
+ public List<CmisObjectType> getObject() {
+ if (object == null) {
+ object = new ArrayList<CmisObjectType>();
+ }
+ return this.object;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/OffsetExceptionType.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/OffsetExceptionType.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/OffsetExceptionType.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/OffsetExceptionType.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,32 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for offsetExceptionType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="offsetExceptionType">
+ * <complexContent>
+ * <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "offsetExceptionType")
+public class OffsetExceptionType
+ extends CmisFaultType
+{
+
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/OperationNotSupportedException.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/OperationNotSupportedException.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/OperationNotSupportedException.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/OperationNotSupportedException.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,45 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.ws.WebFault;
+
+
+/**
+ * This class was generated by Apache CXF 2.1.3
+ * Thu Dec 11 22:50:43 CET 2008
+ * Generated source version: 2.1.3
+ *
+ */
+
+@WebFault(name = "operationNotSupportedException", targetNamespace = "http://www.cmis.org/2008/05")
+public class OperationNotSupportedException extends Exception {
+ public static final long serialVersionUID = 20081211225043L;
+
+ private org.apache.jackrabbit.cmis.ws.repository.OperationNotSupportedExceptionType operationNotSupportedException;
+
+ public OperationNotSupportedException() {
+ super();
+ }
+
+ public OperationNotSupportedException(String message) {
+ super(message);
+ }
+
+ public OperationNotSupportedException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ public OperationNotSupportedException(String message, org.apache.jackrabbit.cmis.ws.repository.OperationNotSupportedExceptionType operationNotSupportedException) {
+ super(message);
+ this.operationNotSupportedException = operationNotSupportedException;
+ }
+
+ public OperationNotSupportedException(String message, org.apache.jackrabbit.cmis.ws.repository.OperationNotSupportedExceptionType operationNotSupportedException, Throwable cause) {
+ super(message, cause);
+ this.operationNotSupportedException = operationNotSupportedException;
+ }
+
+ public org.apache.jackrabbit.cmis.ws.repository.OperationNotSupportedExceptionType getFaultInfo() {
+ return this.operationNotSupportedException;
+ }
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/OperationNotSupportedExceptionType.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/OperationNotSupportedExceptionType.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/OperationNotSupportedExceptionType.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/OperationNotSupportedExceptionType.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,32 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for operationNotSupportedExceptionType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="operationNotSupportedExceptionType">
+ * <complexContent>
+ * <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "operationNotSupportedExceptionType")
+public class OperationNotSupportedExceptionType
+ extends CmisFaultType
+{
+
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/PermissionDeniedException.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/PermissionDeniedException.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/PermissionDeniedException.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/PermissionDeniedException.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,45 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.ws.WebFault;
+
+
+/**
+ * This class was generated by Apache CXF 2.1.3
+ * Thu Dec 11 22:50:43 CET 2008
+ * Generated source version: 2.1.3
+ *
+ */
+
+@WebFault(name = "permissionDeniedException", targetNamespace = "http://www.cmis.org/2008/05")
+public class PermissionDeniedException extends Exception {
+ public static final long serialVersionUID = 20081211225043L;
+
+ private org.apache.jackrabbit.cmis.ws.repository.PermissionDeniedExceptionType permissionDeniedException;
+
+ public PermissionDeniedException() {
+ super();
+ }
+
+ public PermissionDeniedException(String message) {
+ super(message);
+ }
+
+ public PermissionDeniedException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ public PermissionDeniedException(String message, org.apache.jackrabbit.cmis.ws.repository.PermissionDeniedExceptionType permissionDeniedException) {
+ super(message);
+ this.permissionDeniedException = permissionDeniedException;
+ }
+
+ public PermissionDeniedException(String message, org.apache.jackrabbit.cmis.ws.repository.PermissionDeniedExceptionType permissionDeniedException, Throwable cause) {
+ super(message, cause);
+ this.permissionDeniedException = permissionDeniedException;
+ }
+
+ public org.apache.jackrabbit.cmis.ws.repository.PermissionDeniedExceptionType getFaultInfo() {
+ return this.permissionDeniedException;
+ }
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/PermissionDeniedExceptionType.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/PermissionDeniedExceptionType.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/PermissionDeniedExceptionType.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/PermissionDeniedExceptionType.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,32 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for permissionDeniedExceptionType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="permissionDeniedExceptionType">
+ * <complexContent>
+ * <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "permissionDeniedExceptionType")
+public class PermissionDeniedExceptionType
+ extends CmisFaultType
+{
+
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/QueryResponse.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/QueryResponse.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/QueryResponse.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/QueryResponse.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,88 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+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.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element ref="{http://www.cmis.org/2008/05}object" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="hasMoreItems" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "object",
+ "hasMoreItems"
+})
+@XmlRootElement(name = "queryResponse")
+public class QueryResponse {
+
+ protected List<CmisObjectType> object;
+ protected boolean hasMoreItems;
+
+ /**
+ * Gets the value of the object property.
+ *
+ * <p>
+ * 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 <CODE>set</CODE> method for the object property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getObject().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link CmisObjectType }
+ *
+ *
+ */
+ public List<CmisObjectType> getObject() {
+ if (object == null) {
+ object = new ArrayList<CmisObjectType>();
+ }
+ return this.object;
+ }
+
+ /**
+ * Gets the value of the hasMoreItems property.
+ *
+ */
+ public boolean isHasMoreItems() {
+ return hasMoreItems;
+ }
+
+ /**
+ * Sets the value of the hasMoreItems property.
+ *
+ */
+ public void setHasMoreItems(boolean value) {
+ this.hasMoreItems = value;
+ }
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RemoveObjectFromFolder.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RemoveObjectFromFolder.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RemoveObjectFromFolder.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RemoveObjectFromFolder.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,122 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElementRef;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="folderId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "repositoryId",
+ "objectId",
+ "folderId"
+})
+@XmlRootElement(name = "removeObjectFromFolder")
+public class RemoveObjectFromFolder {
+
+ @XmlElement(required = true)
+ protected String repositoryId;
+ @XmlElement(required = true)
+ protected String objectId;
+ @XmlElementRef(name = "folderId", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class)
+ protected JAXBElement<String> folderId;
+
+ /**
+ * Gets the value of the repositoryId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRepositoryId() {
+ return repositoryId;
+ }
+
+ /**
+ * Sets the value of the repositoryId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRepositoryId(String value) {
+ this.repositoryId = value;
+ }
+
+ /**
+ * Gets the value of the objectId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getObjectId() {
+ return objectId;
+ }
+
+ /**
+ * Sets the value of the objectId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setObjectId(String value) {
+ this.objectId = value;
+ }
+
+ /**
+ * Gets the value of the folderId property.
+ *
+ * @return
+ * possible object is
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ *
+ */
+ public JAXBElement<String> getFolderId() {
+ return folderId;
+ }
+
+ /**
+ * Sets the value of the folderId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ *
+ */
+ public void setFolderId(JAXBElement<String> value) {
+ this.folderId = ((JAXBElement<String> ) value);
+ }
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RemoveObjectFromFolderResponse.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RemoveObjectFromFolderResponse.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RemoveObjectFromFolderResponse.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RemoveObjectFromFolderResponse.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,34 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "")
+@XmlRootElement(name = "removeObjectFromFolderResponse")
+public class RemoveObjectFromFolderResponse {
+
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RemovePolicy.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RemovePolicy.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RemovePolicy.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RemovePolicy.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,120 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="policyId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "repositoryId",
+ "policyId",
+ "objectId"
+})
+@XmlRootElement(name = "removePolicy")
+public class RemovePolicy {
+
+ @XmlElement(required = true)
+ protected String repositoryId;
+ @XmlElement(required = true)
+ protected String policyId;
+ @XmlElement(required = true)
+ protected String objectId;
+
+ /**
+ * Gets the value of the repositoryId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRepositoryId() {
+ return repositoryId;
+ }
+
+ /**
+ * Sets the value of the repositoryId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRepositoryId(String value) {
+ this.repositoryId = value;
+ }
+
+ /**
+ * Gets the value of the policyId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getPolicyId() {
+ return policyId;
+ }
+
+ /**
+ * Sets the value of the policyId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setPolicyId(String value) {
+ this.policyId = value;
+ }
+
+ /**
+ * Gets the value of the objectId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getObjectId() {
+ return objectId;
+ }
+
+ /**
+ * Sets the value of the objectId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setObjectId(String value) {
+ this.objectId = value;
+ }
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RemovePolicyResponse.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RemovePolicyResponse.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RemovePolicyResponse.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RemovePolicyResponse.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,34 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "")
+@XmlRootElement(name = "removePolicyResponse")
+public class RemovePolicyResponse {
+
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RepositoryService.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RepositoryService.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RepositoryService.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RepositoryService.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,77 @@
+
+/*
+ *
+ */
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+import javax.xml.ws.WebServiceFeature;
+
+/**
+ * This class was generated by Apache CXF 2.1.3
+ * Thu Dec 11 22:50:43 CET 2008
+ * Generated source version: 2.1.3
+ *
+ */
+
+
+@WebServiceClient(name = "RepositoryService",
+ wsdlLocation = "file:RepositoryService.wsdl",
+ targetNamespace = "http://www.cmis.org/2008/05")
+public class RepositoryService extends Service {
+
+ public final static URL WSDL_LOCATION;
+ public final static QName SERVICE = new QName("http://www.cmis.org/2008/05", "RepositoryService");
+ public final static QName RepositoryServicePort = new QName("http://www.cmis.org/2008/05", "RepositoryServicePort");
+ static {
+ URL url = null;
+ try {
+ url = new URL("file:RepositoryService.wsdl");
+ } catch (MalformedURLException e) {
+ System.err.println("Can not initialize the default wsdl from file:RepositoryService.wsdl");
+ // e.printStackTrace();
+ }
+ WSDL_LOCATION = url;
+ }
+
+ public RepositoryService(URL wsdlLocation) {
+ super(wsdlLocation, SERVICE);
+ }
+
+ public RepositoryService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public RepositoryService() {
+ super(WSDL_LOCATION, SERVICE);
+ }
+
+ /**
+ *
+ * @return
+ * returns RepositoryServicePort
+ */
+ @WebEndpoint(name = "RepositoryServicePort")
+ public RepositoryServicePort getRepositoryServicePort() {
+ return super.getPort(RepositoryServicePort, RepositoryServicePort.class);
+ }
+
+ /**
+ *
+ * @param features
+ * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
+ * @return
+ * returns RepositoryServicePort
+ */
+ @WebEndpoint(name = "RepositoryServicePort")
+ public RepositoryServicePort getRepositoryServicePort(WebServiceFeature... features) {
+ return super.getPort(RepositoryServicePort, RepositoryServicePort.class, features);
+ }
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RepositoryServicePort.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RepositoryServicePort.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RepositoryServicePort.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RepositoryServicePort.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,52 @@
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+/**
+ * This class was generated by Apache CXF 2.1.3
+ * Thu Dec 11 22:50:43 CET 2008
+ * Generated source version: 2.1.3
+ *
+ */
+
+@WebService(targetNamespace = "http://www.cmis.org/2008/05", name = "RepositoryServicePort")
+@XmlSeeAlso({ObjectFactory.class})
+public interface RepositoryServicePort {
+
+ @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
+ @WebResult(name = "getTypeDefinitionResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters")
+ @WebMethod
+ public GetTypeDefinitionResponse getTypeDefinition(
+ @WebParam(partName = "parameters", name = "getTypeDefinition", targetNamespace = "http://www.cmis.org/2008/05")
+ GetTypeDefinition parameters
+ ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, RuntimeException, ConstraintViolationException;
+
+ @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
+ @WebResult(name = "getRepositoryInfoResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters")
+ @WebMethod
+ public CmisRepositoryInfoType getRepositoryInfo(
+ @WebParam(partName = "parameters", name = "getRepositoryInfo", targetNamespace = "http://www.cmis.org/2008/05")
+ GetRepositoryInfo parameters
+ ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException;
+
+ @ResponseWrapper(localName = "getRepositoriesResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.apache.jackrabbit.cmis.ws.repository.GetRepositoriesResponse")
+ @RequestWrapper(localName = "getRepositories", targetNamespace = "http://www.cmis.org/2008/05", className = "org.apache.jackrabbit.cmis.ws.repository.GetRepositories")
+ @WebResult(name = "repository", targetNamespace = "http://www.cmis.org/2008/05")
+ @WebMethod
+ public java.util.List<org.apache.jackrabbit.cmis.ws.repository.CmisRepositoryEntryType> getRepositories() throws PermissionDeniedException, UpdateConflictException, OperationNotSupportedException, InvalidArgumentException, RuntimeException;
+
+ @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
+ @WebResult(name = "getTypesResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters")
+ @WebMethod
+ public GetTypesResponse getTypes(
+ @WebParam(partName = "parameters", name = "getTypes", targetNamespace = "http://www.cmis.org/2008/05")
+ GetTypes parameters
+ ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException;
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RuntimeException.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RuntimeException.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RuntimeException.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RuntimeException.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,45 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.ws.WebFault;
+
+
+/**
+ * This class was generated by Apache CXF 2.1.3
+ * Thu Dec 11 22:50:43 CET 2008
+ * Generated source version: 2.1.3
+ *
+ */
+
+@WebFault(name = "runtimeException", targetNamespace = "http://www.cmis.org/2008/05")
+public class RuntimeException extends Exception {
+ public static final long serialVersionUID = 20081211225043L;
+
+ private org.apache.jackrabbit.cmis.ws.repository.RuntimeExceptionType runtimeException;
+
+ public RuntimeException() {
+ super();
+ }
+
+ public RuntimeException(String message) {
+ super(message);
+ }
+
+ public RuntimeException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ public RuntimeException(String message, org.apache.jackrabbit.cmis.ws.repository.RuntimeExceptionType runtimeException) {
+ super(message);
+ this.runtimeException = runtimeException;
+ }
+
+ public RuntimeException(String message, org.apache.jackrabbit.cmis.ws.repository.RuntimeExceptionType runtimeException, Throwable cause) {
+ super(message, cause);
+ this.runtimeException = runtimeException;
+ }
+
+ public org.apache.jackrabbit.cmis.ws.repository.RuntimeExceptionType getFaultInfo() {
+ return this.runtimeException;
+ }
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RuntimeExceptionType.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RuntimeExceptionType.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RuntimeExceptionType.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/RuntimeExceptionType.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,32 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for runtimeExceptionType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="runtimeExceptionType">
+ * <complexContent>
+ * <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "runtimeExceptionType")
+public class RuntimeExceptionType
+ extends CmisFaultType
+{
+
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/SetContentStream.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/SetContentStream.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/SetContentStream.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/SetContentStream.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,150 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElementRef;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="documentId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="overwriteFlag" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ * <element name="contentStream" type="{http://www.cmis.org/2008/05}cmisContentStreamType"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "repositoryId",
+ "documentId",
+ "overwriteFlag",
+ "contentStream"
+})
+@XmlRootElement(name = "setContentStream")
+public class SetContentStream {
+
+ @XmlElement(required = true)
+ protected String repositoryId;
+ @XmlElement(required = true)
+ protected String documentId;
+ @XmlElementRef(name = "overwriteFlag", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class)
+ protected JAXBElement<Boolean> overwriteFlag;
+ @XmlElement(required = true)
+ protected CmisContentStreamType contentStream;
+
+ /**
+ * Gets the value of the repositoryId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRepositoryId() {
+ return repositoryId;
+ }
+
+ /**
+ * Sets the value of the repositoryId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRepositoryId(String value) {
+ this.repositoryId = value;
+ }
+
+ /**
+ * Gets the value of the documentId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocumentId() {
+ return documentId;
+ }
+
+ /**
+ * Sets the value of the documentId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocumentId(String value) {
+ this.documentId = value;
+ }
+
+ /**
+ * Gets the value of the overwriteFlag property.
+ *
+ * @return
+ * possible object is
+ * {@link JAXBElement }{@code <}{@link Boolean }{@code >}
+ *
+ */
+ public JAXBElement<Boolean> getOverwriteFlag() {
+ return overwriteFlag;
+ }
+
+ /**
+ * Sets the value of the overwriteFlag property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JAXBElement }{@code <}{@link Boolean }{@code >}
+ *
+ */
+ public void setOverwriteFlag(JAXBElement<Boolean> value) {
+ this.overwriteFlag = ((JAXBElement<Boolean> ) value);
+ }
+
+ /**
+ * Gets the value of the contentStream property.
+ *
+ * @return
+ * possible object is
+ * {@link CmisContentStreamType }
+ *
+ */
+ public CmisContentStreamType getContentStream() {
+ return contentStream;
+ }
+
+ /**
+ * Sets the value of the contentStream property.
+ *
+ * @param value
+ * allowed object is
+ * {@link CmisContentStreamType }
+ *
+ */
+ public void setContentStream(CmisContentStreamType value) {
+ this.contentStream = value;
+ }
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/SetContentStreamResponse.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/SetContentStreamResponse.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/SetContentStreamResponse.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/SetContentStreamResponse.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,64 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="documentId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "documentId"
+})
+@XmlRootElement(name = "setContentStreamResponse")
+public class SetContentStreamResponse {
+
+ @XmlElement(required = true)
+ protected String documentId;
+
+ /**
+ * Gets the value of the documentId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDocumentId() {
+ return documentId;
+ }
+
+ /**
+ * Sets the value of the documentId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDocumentId(String value) {
+ this.documentId = value;
+ }
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/StorageExceptionType.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/StorageExceptionType.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/StorageExceptionType.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/StorageExceptionType.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,32 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for storageExceptionType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="storageExceptionType">
+ * <complexContent>
+ * <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "storageExceptionType")
+public class StorageExceptionType
+ extends CmisFaultType
+{
+
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/StreamNotSupportedExceptionType.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/StreamNotSupportedExceptionType.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/StreamNotSupportedExceptionType.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/StreamNotSupportedExceptionType.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,32 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for streamNotSupportedExceptionType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="streamNotSupportedExceptionType">
+ * <complexContent>
+ * <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "streamNotSupportedExceptionType")
+public class StreamNotSupportedExceptionType
+ extends CmisFaultType
+{
+
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/TypeNotFoundException.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/TypeNotFoundException.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/TypeNotFoundException.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/TypeNotFoundException.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,45 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.ws.WebFault;
+
+
+/**
+ * This class was generated by Apache CXF 2.1.3
+ * Thu Dec 11 22:50:43 CET 2008
+ * Generated source version: 2.1.3
+ *
+ */
+
+@WebFault(name = "typeNotFoundException", targetNamespace = "http://www.cmis.org/2008/05")
+public class TypeNotFoundException extends Exception {
+ public static final long serialVersionUID = 20081211225043L;
+
+ private org.apache.jackrabbit.cmis.ws.repository.TypeNotFoundExceptionType typeNotFoundException;
+
+ public TypeNotFoundException() {
+ super();
+ }
+
+ public TypeNotFoundException(String message) {
+ super(message);
+ }
+
+ public TypeNotFoundException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ public TypeNotFoundException(String message, org.apache.jackrabbit.cmis.ws.repository.TypeNotFoundExceptionType typeNotFoundException) {
+ super(message);
+ this.typeNotFoundException = typeNotFoundException;
+ }
+
+ public TypeNotFoundException(String message, org.apache.jackrabbit.cmis.ws.repository.TypeNotFoundExceptionType typeNotFoundException, Throwable cause) {
+ super(message, cause);
+ this.typeNotFoundException = typeNotFoundException;
+ }
+
+ public org.apache.jackrabbit.cmis.ws.repository.TypeNotFoundExceptionType getFaultInfo() {
+ return this.typeNotFoundException;
+ }
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/TypeNotFoundExceptionType.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/TypeNotFoundExceptionType.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/TypeNotFoundExceptionType.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/TypeNotFoundExceptionType.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,32 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for typeNotFoundExceptionType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="typeNotFoundExceptionType">
+ * <complexContent>
+ * <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "typeNotFoundExceptionType")
+public class TypeNotFoundExceptionType
+ extends CmisFaultType
+{
+
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/UpdateConflictException.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/UpdateConflictException.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/UpdateConflictException.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/UpdateConflictException.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,45 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.ws.WebFault;
+
+
+/**
+ * This class was generated by Apache CXF 2.1.3
+ * Thu Dec 11 22:50:43 CET 2008
+ * Generated source version: 2.1.3
+ *
+ */
+
+@WebFault(name = "updateConflictException", targetNamespace = "http://www.cmis.org/2008/05")
+public class UpdateConflictException extends Exception {
+ public static final long serialVersionUID = 20081211225043L;
+
+ private org.apache.jackrabbit.cmis.ws.repository.UpdateConflictExceptionType updateConflictException;
+
+ public UpdateConflictException() {
+ super();
+ }
+
+ public UpdateConflictException(String message) {
+ super(message);
+ }
+
+ public UpdateConflictException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ public UpdateConflictException(String message, org.apache.jackrabbit.cmis.ws.repository.UpdateConflictExceptionType updateConflictException) {
+ super(message);
+ this.updateConflictException = updateConflictException;
+ }
+
+ public UpdateConflictException(String message, org.apache.jackrabbit.cmis.ws.repository.UpdateConflictExceptionType updateConflictException, Throwable cause) {
+ super(message, cause);
+ this.updateConflictException = updateConflictException;
+ }
+
+ public org.apache.jackrabbit.cmis.ws.repository.UpdateConflictExceptionType getFaultInfo() {
+ return this.updateConflictException;
+ }
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/UpdateConflictExceptionType.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/UpdateConflictExceptionType.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/UpdateConflictExceptionType.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/UpdateConflictExceptionType.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,32 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for updateConflictExceptionType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="updateConflictExceptionType">
+ * <complexContent>
+ * <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "updateConflictExceptionType")
+public class UpdateConflictExceptionType
+ extends CmisFaultType
+{
+
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/UpdateProperties.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/UpdateProperties.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/UpdateProperties.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/UpdateProperties.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,150 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElementRef;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="changeToken" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="properties" type="{http://www.cmis.org/2008/05}cmisPropertiesType"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "repositoryId",
+ "objectId",
+ "changeToken",
+ "properties"
+})
+@XmlRootElement(name = "updateProperties")
+public class UpdateProperties {
+
+ @XmlElement(required = true)
+ protected String repositoryId;
+ @XmlElement(required = true)
+ protected String objectId;
+ @XmlElementRef(name = "changeToken", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class)
+ protected JAXBElement<String> changeToken;
+ @XmlElement(required = true)
+ protected CmisPropertiesType properties;
+
+ /**
+ * Gets the value of the repositoryId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRepositoryId() {
+ return repositoryId;
+ }
+
+ /**
+ * Sets the value of the repositoryId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRepositoryId(String value) {
+ this.repositoryId = value;
+ }
+
+ /**
+ * Gets the value of the objectId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getObjectId() {
+ return objectId;
+ }
+
+ /**
+ * Sets the value of the objectId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setObjectId(String value) {
+ this.objectId = value;
+ }
+
+ /**
+ * Gets the value of the changeToken property.
+ *
+ * @return
+ * possible object is
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ *
+ */
+ public JAXBElement<String> getChangeToken() {
+ return changeToken;
+ }
+
+ /**
+ * Sets the value of the changeToken property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ *
+ */
+ public void setChangeToken(JAXBElement<String> value) {
+ this.changeToken = ((JAXBElement<String> ) value);
+ }
+
+ /**
+ * Gets the value of the properties property.
+ *
+ * @return
+ * possible object is
+ * {@link CmisPropertiesType }
+ *
+ */
+ public CmisPropertiesType getProperties() {
+ return properties;
+ }
+
+ /**
+ * Sets the value of the properties property.
+ *
+ * @param value
+ * allowed object is
+ * {@link CmisPropertiesType }
+ *
+ */
+ public void setProperties(CmisPropertiesType value) {
+ this.properties = value;
+ }
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/UpdatePropertiesResponse.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/UpdatePropertiesResponse.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/UpdatePropertiesResponse.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/UpdatePropertiesResponse.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,64 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "objectId"
+})
+@XmlRootElement(name = "updatePropertiesResponse")
+public class UpdatePropertiesResponse {
+
+ @XmlElement(required = true)
+ protected String objectId;
+
+ /**
+ * Gets the value of the objectId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getObjectId() {
+ return objectId;
+ }
+
+ /**
+ * Sets the value of the objectId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setObjectId(String value) {
+ this.objectId = value;
+ }
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/VersioningExceptionType.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/VersioningExceptionType.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/VersioningExceptionType.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/VersioningExceptionType.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,32 @@
+
+package org.apache.jackrabbit.cmis.ws.repository;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for versioningExceptionType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="versioningExceptionType">
+ * <complexContent>
+ * <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "versioningExceptionType")
+public class VersioningExceptionType
+ extends CmisFaultType
+{
+
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/impl/RepositoryServicePortImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/impl/RepositoryServicePortImpl.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/impl/RepositoryServicePortImpl.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/impl/RepositoryServicePortImpl.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,92 @@
+/*
+ * 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.jackrabbit.cmis.ws.repository.impl;
+
+import java.util.Collections;
+import java.util.List;
+
+import javax.jws.WebService;
+
+import org.apache.jackrabbit.cmis.ws.repository.CmisRepositoryEntryType;
+import org.apache.jackrabbit.cmis.ws.repository.CmisRepositoryInfoType;
+import org.apache.jackrabbit.cmis.ws.repository.ConstraintViolationException;
+import org.apache.jackrabbit.cmis.ws.repository.GetRepositoryInfo;
+import org.apache.jackrabbit.cmis.ws.repository.GetTypeDefinition;
+import org.apache.jackrabbit.cmis.ws.repository.GetTypeDefinitionResponse;
+import org.apache.jackrabbit.cmis.ws.repository.GetTypes;
+import org.apache.jackrabbit.cmis.ws.repository.GetTypesResponse;
+import org.apache.jackrabbit.cmis.ws.repository.InvalidArgumentException;
+import org.apache.jackrabbit.cmis.ws.repository.ObjectNotFoundException;
+import org.apache.jackrabbit.cmis.ws.repository.OperationNotSupportedException;
+import org.apache.jackrabbit.cmis.ws.repository.PermissionDeniedException;
+import org.apache.jackrabbit.cmis.ws.repository.RepositoryServicePort;
+import org.apache.jackrabbit.cmis.ws.repository.RuntimeException;
+import org.apache.jackrabbit.cmis.ws.repository.TypeNotFoundException;
+import org.apache.jackrabbit.cmis.ws.repository.UpdateConflictException;
+
+
+@WebService(name = "RepositoryServicePort", serviceName = "RepositoryService", portName = "RepositoryServicePort", targetNamespace = "http://www.cmis.org/ns/1.0", endpointInterface = "org.apache.jackrabbit.cmis.ws.repository.RepositoryServicePort")
+public class RepositoryServicePortImpl implements RepositoryServicePort{
+
+ public List<CmisRepositoryEntryType> getRepositories()
+ throws PermissionDeniedException, UpdateConflictException,
+ OperationNotSupportedException, InvalidArgumentException,
+ RuntimeException {
+ CmisRepositoryEntryType repositoryEntryType = new CmisRepositoryEntryType();
+ repositoryEntryType.setRepositoryID("ID");
+ repositoryEntryType.setRepositoryName("Jackrabbit");
+ return Collections.singletonList(repositoryEntryType);
+ }
+
+ public CmisRepositoryInfoType getRepositoryInfo(GetRepositoryInfo parameters)
+ throws PermissionDeniedException, UpdateConflictException,
+ ObjectNotFoundException, OperationNotSupportedException,
+ InvalidArgumentException, RuntimeException,
+ ConstraintViolationException {
+ CmisRepositoryInfoType repositoryInfo = new CmisRepositoryInfoType();
+
+ repositoryInfo.setRepositoryName("Jackrabbit");
+ repositoryInfo.setRepositoryRelationship("self");
+ repositoryInfo.setRepositoryDescription("");
+ repositoryInfo.setVendorName("Apache");
+ repositoryInfo.setProductName("Apache Jackrabbit");
+ repositoryInfo.setProductVersion("1.6-SNAPSHOT");
+ repositoryInfo.setCmisVersionsSupported("0.5");
+
+ return repositoryInfo;
+ }
+
+ public GetTypeDefinitionResponse getTypeDefinition(
+ GetTypeDefinition parameters) throws PermissionDeniedException,
+ UpdateConflictException, ObjectNotFoundException,
+ OperationNotSupportedException, TypeNotFoundException,
+ InvalidArgumentException, RuntimeException,
+ ConstraintViolationException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public GetTypesResponse getTypes(GetTypes parameters)
+ throws PermissionDeniedException, UpdateConflictException,
+ ObjectNotFoundException, OperationNotSupportedException,
+ InvalidArgumentException, RuntimeException,
+ ConstraintViolationException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/package-info.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/package-info.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/package-info.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/package-info.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,2 @@
+@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.cmis.org/2008/05", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.apache.jackrabbit.cmis.ws.repository;
Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/test/java/org/apache/jackrabbit/cmis/ws/repository/RepositoryServiceTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/test/java/org/apache/jackrabbit/cmis/ws/repository/RepositoryServiceTest.java?rev=728722&view=auto
==============================================================================
--- jackrabbit/sandbox/jcr-cmis/server/ws/src/test/java/org/apache/jackrabbit/cmis/ws/repository/RepositoryServiceTest.java (added)
+++ jackrabbit/sandbox/jcr-cmis/server/ws/src/test/java/org/apache/jackrabbit/cmis/ws/repository/RepositoryServiceTest.java Mon Dec 22 08:37:33 2008
@@ -0,0 +1,69 @@
+/*
+ * 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.jackrabbit.cmis.ws.repository;
+
+import java.io.IOException;
+import java.util.List;
+
+import javax.jcr.LoginException;
+import javax.jcr.RepositoryException;
+import javax.xml.ws.Endpoint;
+
+import junit.framework.TestCase;
+
+import org.apache.cxf.interceptor.LoggingInInterceptor;
+import org.apache.cxf.interceptor.LoggingOutInterceptor;
+import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
+import org.apache.jackrabbit.cmis.ws.repository.impl.RepositoryServicePortImpl;
+
+public class RepositoryServiceTest extends TestCase {
+
+ private RepositoryServicePort client;
+ private GetRepositoryInfo parameters;
+
+ protected void setUp() {
+
+ // Starting Server
+ RepositoryServicePortImpl implementor = new RepositoryServicePortImpl();
+ String address = "http://localhost:9000/repositoryService";
+ Endpoint.publish(address, implementor);
+
+ // Creating a Jax-ws client
+ JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
+ factory.getInInterceptors().add(new LoggingInInterceptor());
+ factory.getOutInterceptors().add(new LoggingOutInterceptor());
+ factory.setServiceClass(RepositoryServicePort.class);
+ factory.setAddress
+ ("http://localhost:9000/repositoryService");
+ client = (RepositoryServicePort) factory.create();
+
+ // init a GetRepositoryInfo object
+ parameters = new GetRepositoryInfo();
+ parameters.setRepositoryId("ID");
+ }
+
+ public void testGetRepositories() throws IOException, LoginException, RepositoryException, PermissionDeniedException, UpdateConflictException, OperationNotSupportedException, InvalidArgumentException, RuntimeException {
+ List repositories = client.getRepositories();
+ assertEquals(1, repositories.size());
+ }
+
+ public void testGetRepositoryInfo() throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException {
+ CmisRepositoryInfoType repositoryInfo = client.getRepositoryInfo(parameters);
+ assertEquals("Apache Jackrabbit", repositoryInfo.getProductName());
+ }
+
+}