mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Moving to root below branch label
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2005 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -0,0 +1,255 @@
|
||||
/**
|
||||
* Content.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.alfresco.example.webservice.content;
|
||||
|
||||
public class Content implements java.io.Serializable {
|
||||
private org.alfresco.example.webservice.types.Reference node;
|
||||
private java.lang.String property;
|
||||
private long length;
|
||||
private org.alfresco.example.webservice.types.ContentFormat format;
|
||||
private java.lang.String url;
|
||||
|
||||
public Content() {
|
||||
}
|
||||
|
||||
public Content(
|
||||
org.alfresco.example.webservice.types.Reference node,
|
||||
java.lang.String property,
|
||||
long length,
|
||||
org.alfresco.example.webservice.types.ContentFormat format,
|
||||
java.lang.String url) {
|
||||
this.node = node;
|
||||
this.property = property;
|
||||
this.length = length;
|
||||
this.format = format;
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the node value for this Content.
|
||||
*
|
||||
* @return node
|
||||
*/
|
||||
public org.alfresco.example.webservice.types.Reference getNode() {
|
||||
return node;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the node value for this Content.
|
||||
*
|
||||
* @param node
|
||||
*/
|
||||
public void setNode(org.alfresco.example.webservice.types.Reference node) {
|
||||
this.node = node;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the property value for this Content.
|
||||
*
|
||||
* @return property
|
||||
*/
|
||||
public java.lang.String getProperty() {
|
||||
return property;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the property value for this Content.
|
||||
*
|
||||
* @param property
|
||||
*/
|
||||
public void setProperty(java.lang.String property) {
|
||||
this.property = property;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the length value for this Content.
|
||||
*
|
||||
* @return length
|
||||
*/
|
||||
public long getLength() {
|
||||
return length;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the length value for this Content.
|
||||
*
|
||||
* @param length
|
||||
*/
|
||||
public void setLength(long length) {
|
||||
this.length = length;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the format value for this Content.
|
||||
*
|
||||
* @return format
|
||||
*/
|
||||
public org.alfresco.example.webservice.types.ContentFormat getFormat() {
|
||||
return format;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the format value for this Content.
|
||||
*
|
||||
* @param format
|
||||
*/
|
||||
public void setFormat(org.alfresco.example.webservice.types.ContentFormat format) {
|
||||
this.format = format;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the url value for this Content.
|
||||
*
|
||||
* @return url
|
||||
*/
|
||||
public java.lang.String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the url value for this Content.
|
||||
*
|
||||
* @param url
|
||||
*/
|
||||
public void setUrl(java.lang.String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof Content)) return false;
|
||||
Content other = (Content) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this.node==null && other.getNode()==null) ||
|
||||
(this.node!=null &&
|
||||
this.node.equals(other.getNode()))) &&
|
||||
((this.property==null && other.getProperty()==null) ||
|
||||
(this.property!=null &&
|
||||
this.property.equals(other.getProperty()))) &&
|
||||
this.length == other.getLength() &&
|
||||
((this.format==null && other.getFormat()==null) ||
|
||||
(this.format!=null &&
|
||||
this.format.equals(other.getFormat()))) &&
|
||||
((this.url==null && other.getUrl()==null) ||
|
||||
(this.url!=null &&
|
||||
this.url.equals(other.getUrl())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (getNode() != null) {
|
||||
_hashCode += getNode().hashCode();
|
||||
}
|
||||
if (getProperty() != null) {
|
||||
_hashCode += getProperty().hashCode();
|
||||
}
|
||||
_hashCode += new Long(getLength()).hashCode();
|
||||
if (getFormat() != null) {
|
||||
_hashCode += getFormat().hashCode();
|
||||
}
|
||||
if (getUrl() != null) {
|
||||
_hashCode += getUrl().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(Content.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "Content"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("node");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "node"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("property");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "property"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("length");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "length"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("format");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "format"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "ContentFormat"));
|
||||
elemField.setNillable(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("url");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "url"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setNillable(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,157 @@
|
||||
/**
|
||||
* ContentFault.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.alfresco.example.webservice.content;
|
||||
|
||||
public class ContentFault extends org.apache.axis.AxisFault implements java.io.Serializable {
|
||||
private int errorCode;
|
||||
private java.lang.String message1;
|
||||
|
||||
public ContentFault() {
|
||||
}
|
||||
|
||||
public ContentFault(
|
||||
int errorCode,
|
||||
java.lang.String message1) {
|
||||
this.errorCode = errorCode;
|
||||
this.message1 = message1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the errorCode value for this ContentFault.
|
||||
*
|
||||
* @return errorCode
|
||||
*/
|
||||
public int getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the errorCode value for this ContentFault.
|
||||
*
|
||||
* @param errorCode
|
||||
*/
|
||||
public void setErrorCode(int errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the message1 value for this ContentFault.
|
||||
*
|
||||
* @return message1
|
||||
*/
|
||||
public java.lang.String getMessage1() {
|
||||
return message1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the message1 value for this ContentFault.
|
||||
*
|
||||
* @param message1
|
||||
*/
|
||||
public void setMessage1(java.lang.String message1) {
|
||||
this.message1 = message1;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof ContentFault)) return false;
|
||||
ContentFault other = (ContentFault) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
this.errorCode == other.getErrorCode() &&
|
||||
((this.message1==null && other.getMessage1()==null) ||
|
||||
(this.message1!=null &&
|
||||
this.message1.equals(other.getMessage1())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
_hashCode += getErrorCode();
|
||||
if (getMessage1() != null) {
|
||||
_hashCode += getMessage1().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(ContentFault.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("errorCode");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "errorCode"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("message1");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "message"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Writes the exception data to the faultDetails
|
||||
*/
|
||||
public void writeDetails(javax.xml.namespace.QName qname, org.apache.axis.encoding.SerializationContext context) throws java.io.IOException {
|
||||
context.serialize(qname, null, this);
|
||||
}
|
||||
}
|
@@ -0,0 +1,146 @@
|
||||
/**
|
||||
* ContentSegment.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.alfresco.example.webservice.content;
|
||||
|
||||
public class ContentSegment implements java.io.Serializable {
|
||||
private long offset;
|
||||
private long length;
|
||||
|
||||
public ContentSegment() {
|
||||
}
|
||||
|
||||
public ContentSegment(
|
||||
long offset,
|
||||
long length) {
|
||||
this.offset = offset;
|
||||
this.length = length;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the offset value for this ContentSegment.
|
||||
*
|
||||
* @return offset
|
||||
*/
|
||||
public long getOffset() {
|
||||
return offset;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the offset value for this ContentSegment.
|
||||
*
|
||||
* @param offset
|
||||
*/
|
||||
public void setOffset(long offset) {
|
||||
this.offset = offset;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the length value for this ContentSegment.
|
||||
*
|
||||
* @return length
|
||||
*/
|
||||
public long getLength() {
|
||||
return length;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the length value for this ContentSegment.
|
||||
*
|
||||
* @param length
|
||||
*/
|
||||
public void setLength(long length) {
|
||||
this.length = length;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof ContentSegment)) return false;
|
||||
ContentSegment other = (ContentSegment) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
this.offset == other.getOffset() &&
|
||||
this.length == other.getLength();
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
_hashCode += new Long(getOffset()).hashCode();
|
||||
_hashCode += new Long(getLength()).hashCode();
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(ContentSegment.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "ContentSegment"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("offset");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "offset"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("length");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "length"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* ContentService.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.alfresco.example.webservice.content;
|
||||
|
||||
public interface ContentService extends javax.xml.rpc.Service {
|
||||
|
||||
/**
|
||||
* Provides read and write access to content streams.
|
||||
*/
|
||||
public java.lang.String getContentServiceAddress();
|
||||
|
||||
public org.alfresco.example.webservice.content.ContentServiceSoapPort getContentService() throws javax.xml.rpc.ServiceException;
|
||||
|
||||
public org.alfresco.example.webservice.content.ContentServiceSoapPort getContentService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
|
||||
}
|
@@ -0,0 +1,146 @@
|
||||
/**
|
||||
* ContentServiceLocator.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.alfresco.example.webservice.content;
|
||||
|
||||
public class ContentServiceLocator extends org.apache.axis.client.Service implements org.alfresco.example.webservice.content.ContentService {
|
||||
|
||||
/**
|
||||
* Provides read and write access to content streams.
|
||||
*/
|
||||
|
||||
public ContentServiceLocator() {
|
||||
}
|
||||
|
||||
|
||||
public ContentServiceLocator(org.apache.axis.EngineConfiguration config) {
|
||||
super(config);
|
||||
}
|
||||
|
||||
public ContentServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
|
||||
super(wsdlLoc, sName);
|
||||
}
|
||||
|
||||
// Use to get a proxy class for ContentService
|
||||
private java.lang.String ContentService_address = "http://localhost:8080/alfresco/api/ContentService";
|
||||
|
||||
public java.lang.String getContentServiceAddress() {
|
||||
return ContentService_address;
|
||||
}
|
||||
|
||||
// The WSDD service name defaults to the port name.
|
||||
private java.lang.String ContentServiceWSDDServiceName = "ContentService";
|
||||
|
||||
public java.lang.String getContentServiceWSDDServiceName() {
|
||||
return ContentServiceWSDDServiceName;
|
||||
}
|
||||
|
||||
public void setContentServiceWSDDServiceName(java.lang.String name) {
|
||||
ContentServiceWSDDServiceName = name;
|
||||
}
|
||||
|
||||
public org.alfresco.example.webservice.content.ContentServiceSoapPort getContentService() throws javax.xml.rpc.ServiceException {
|
||||
java.net.URL endpoint;
|
||||
try {
|
||||
endpoint = new java.net.URL(ContentService_address);
|
||||
}
|
||||
catch (java.net.MalformedURLException e) {
|
||||
throw new javax.xml.rpc.ServiceException(e);
|
||||
}
|
||||
return getContentService(endpoint);
|
||||
}
|
||||
|
||||
public org.alfresco.example.webservice.content.ContentServiceSoapPort getContentService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
|
||||
try {
|
||||
org.alfresco.example.webservice.content.ContentServiceSoapBindingStub _stub = new org.alfresco.example.webservice.content.ContentServiceSoapBindingStub(portAddress, this);
|
||||
_stub.setPortName(getContentServiceWSDDServiceName());
|
||||
return _stub;
|
||||
}
|
||||
catch (org.apache.axis.AxisFault e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public void setContentServiceEndpointAddress(java.lang.String address) {
|
||||
ContentService_address = address;
|
||||
}
|
||||
|
||||
/**
|
||||
* For the given interface, get the stub implementation.
|
||||
* If this service has no port for the given interface,
|
||||
* then ServiceException is thrown.
|
||||
*/
|
||||
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
|
||||
try {
|
||||
if (org.alfresco.example.webservice.content.ContentServiceSoapPort.class.isAssignableFrom(serviceEndpointInterface)) {
|
||||
org.alfresco.example.webservice.content.ContentServiceSoapBindingStub _stub = new org.alfresco.example.webservice.content.ContentServiceSoapBindingStub(new java.net.URL(ContentService_address), this);
|
||||
_stub.setPortName(getContentServiceWSDDServiceName());
|
||||
return _stub;
|
||||
}
|
||||
}
|
||||
catch (java.lang.Throwable t) {
|
||||
throw new javax.xml.rpc.ServiceException(t);
|
||||
}
|
||||
throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
|
||||
}
|
||||
|
||||
/**
|
||||
* For the given interface, get the stub implementation.
|
||||
* If this service has no port for the given interface,
|
||||
* then ServiceException is thrown.
|
||||
*/
|
||||
public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
|
||||
if (portName == null) {
|
||||
return getPort(serviceEndpointInterface);
|
||||
}
|
||||
java.lang.String inputPortName = portName.getLocalPart();
|
||||
if ("ContentService".equals(inputPortName)) {
|
||||
return getContentService();
|
||||
}
|
||||
else {
|
||||
java.rmi.Remote _stub = getPort(serviceEndpointInterface);
|
||||
((org.apache.axis.client.Stub) _stub).setPortName(portName);
|
||||
return _stub;
|
||||
}
|
||||
}
|
||||
|
||||
public javax.xml.namespace.QName getServiceName() {
|
||||
return new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "ContentService");
|
||||
}
|
||||
|
||||
private java.util.HashSet ports = null;
|
||||
|
||||
public java.util.Iterator getPorts() {
|
||||
if (ports == null) {
|
||||
ports = new java.util.HashSet();
|
||||
ports.add(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "ContentService"));
|
||||
}
|
||||
return ports.iterator();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the endpoint address for the specified port name.
|
||||
*/
|
||||
public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
|
||||
|
||||
if ("ContentService".equals(portName)) {
|
||||
setContentServiceEndpointAddress(address);
|
||||
}
|
||||
else
|
||||
{ // Unknown Port Name
|
||||
throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the endpoint address for the specified port name.
|
||||
*/
|
||||
public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
|
||||
setEndpointAddress(portName.getLocalPart(), address);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,560 @@
|
||||
/**
|
||||
* ContentServiceSoapBindingStub.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.alfresco.example.webservice.content;
|
||||
|
||||
public class ContentServiceSoapBindingStub extends org.apache.axis.client.Stub implements org.alfresco.example.webservice.content.ContentServiceSoapPort {
|
||||
private java.util.Vector cachedSerClasses = new java.util.Vector();
|
||||
private java.util.Vector cachedSerQNames = new java.util.Vector();
|
||||
private java.util.Vector cachedSerFactories = new java.util.Vector();
|
||||
private java.util.Vector cachedDeserFactories = new java.util.Vector();
|
||||
|
||||
static org.apache.axis.description.OperationDesc [] _operations;
|
||||
|
||||
static {
|
||||
_operations = new org.apache.axis.description.OperationDesc[3];
|
||||
_initOperationDesc1();
|
||||
}
|
||||
|
||||
private static void _initOperationDesc1(){
|
||||
org.apache.axis.description.OperationDesc oper;
|
||||
org.apache.axis.description.ParameterDesc param;
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("read");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "items"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Predicate"), org.alfresco.example.webservice.types.Predicate.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "property"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "Content"));
|
||||
oper.setReturnClass(org.alfresco.example.webservice.content.Content[].class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "content"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
|
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL);
|
||||
oper.addFault(new org.apache.axis.description.FaultDesc(
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"),
|
||||
"org.alfresco.example.webservice.content.ContentFault",
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"),
|
||||
true
|
||||
));
|
||||
_operations[0] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("write");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "node"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Reference"), org.alfresco.example.webservice.types.Reference.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "property"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "content"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"), byte[].class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "format"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "ContentFormat"), org.alfresco.example.webservice.types.ContentFormat.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "Content"));
|
||||
oper.setReturnClass(org.alfresco.example.webservice.content.Content.class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "content"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
|
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL);
|
||||
oper.addFault(new org.apache.axis.description.FaultDesc(
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"),
|
||||
"org.alfresco.example.webservice.content.ContentFault",
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"),
|
||||
true
|
||||
));
|
||||
_operations[1] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("clear");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "items"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Predicate"), org.alfresco.example.webservice.types.Predicate.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "property"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "Content"));
|
||||
oper.setReturnClass(org.alfresco.example.webservice.content.Content[].class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "content"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
|
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL);
|
||||
oper.addFault(new org.apache.axis.description.FaultDesc(
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"),
|
||||
"org.alfresco.example.webservice.content.ContentFault",
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"),
|
||||
true
|
||||
));
|
||||
_operations[2] = oper;
|
||||
|
||||
}
|
||||
|
||||
public ContentServiceSoapBindingStub() throws org.apache.axis.AxisFault {
|
||||
this(null);
|
||||
}
|
||||
|
||||
public ContentServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
|
||||
this(service);
|
||||
super.cachedEndpoint = endpointURL;
|
||||
}
|
||||
|
||||
public ContentServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
|
||||
if (service == null) {
|
||||
super.service = new org.apache.axis.client.Service();
|
||||
} else {
|
||||
super.service = service;
|
||||
}
|
||||
((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
|
||||
java.lang.Class cls;
|
||||
javax.xml.namespace.QName qName;
|
||||
javax.xml.namespace.QName qName2;
|
||||
java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
|
||||
java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
|
||||
java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
|
||||
java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
|
||||
java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
|
||||
java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
|
||||
java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
|
||||
java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
|
||||
java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
|
||||
java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", ">ContentFormat>encoding");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = java.lang.String.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(simplesf);
|
||||
cachedDeserFactories.add(simpledf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", ">ContentFormat>mimetype");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = java.lang.String.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(simplesf);
|
||||
cachedDeserFactories.add(simpledf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", ">ResultSetRow>node");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.ResultSetRowNode.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", ">Store>address");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = java.lang.String.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(simplesf);
|
||||
cachedDeserFactories.add(simpledf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "AssociationDefinition");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.AssociationDefinition.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Cardinality");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.Cardinality.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(enumsf);
|
||||
cachedDeserFactories.add(enumdf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Category");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.Category.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "ClassDefinition");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.ClassDefinition.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Classification");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.Classification.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "ContentFormat");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.ContentFormat.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = java.lang.String.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(simplesf);
|
||||
cachedDeserFactories.add(simpledf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "NamedValue");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.NamedValue.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Node");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.Node.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "NodeDefinition");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.NodeDefinition.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "ParentReference");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.ParentReference.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Path");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = java.lang.String.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(simplesf);
|
||||
cachedDeserFactories.add(simpledf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Predicate");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.Predicate.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "PropertyDefinition");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.PropertyDefinition.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Query");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.Query.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "QueryLanguageEnum");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.QueryLanguageEnum.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(enumsf);
|
||||
cachedDeserFactories.add(enumdf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Reference");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.Reference.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "ResultSet");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.ResultSet.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "ResultSetMetaData");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.ResultSetMetaData.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "ResultSetRow");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.ResultSetRow.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "RoleDefinition");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.RoleDefinition.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Store");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.Store.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "StoreEnum");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.StoreEnum.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(enumsf);
|
||||
cachedDeserFactories.add(enumdf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "UUID");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = java.lang.String.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(simplesf);
|
||||
cachedDeserFactories.add(simpledf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "ValueDefinition");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.ValueDefinition.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Version");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.Version.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "VersionHistory");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.VersionHistory.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "Content");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.content.Content.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "ContentFault");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.content.ContentFault.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "ContentSegment");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.content.ContentSegment.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
}
|
||||
|
||||
protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
|
||||
try {
|
||||
org.apache.axis.client.Call _call = super._createCall();
|
||||
if (super.maintainSessionSet) {
|
||||
_call.setMaintainSession(super.maintainSession);
|
||||
}
|
||||
if (super.cachedUsername != null) {
|
||||
_call.setUsername(super.cachedUsername);
|
||||
}
|
||||
if (super.cachedPassword != null) {
|
||||
_call.setPassword(super.cachedPassword);
|
||||
}
|
||||
if (super.cachedEndpoint != null) {
|
||||
_call.setTargetEndpointAddress(super.cachedEndpoint);
|
||||
}
|
||||
if (super.cachedTimeout != null) {
|
||||
_call.setTimeout(super.cachedTimeout);
|
||||
}
|
||||
if (super.cachedPortName != null) {
|
||||
_call.setPortName(super.cachedPortName);
|
||||
}
|
||||
java.util.Enumeration keys = super.cachedProperties.keys();
|
||||
while (keys.hasMoreElements()) {
|
||||
java.lang.String key = (java.lang.String) keys.nextElement();
|
||||
_call.setProperty(key, super.cachedProperties.get(key));
|
||||
}
|
||||
// All the type mapping information is registered
|
||||
// when the first call is made.
|
||||
// The type mapping information is actually registered in
|
||||
// the TypeMappingRegistry of the service, which
|
||||
// is the reason why registration is only needed for the first call.
|
||||
synchronized (this) {
|
||||
if (firstCall()) {
|
||||
// must set encoding style before registering serializers
|
||||
_call.setEncodingStyle(null);
|
||||
for (int i = 0; i < cachedSerFactories.size(); ++i) {
|
||||
java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
|
||||
javax.xml.namespace.QName qName =
|
||||
(javax.xml.namespace.QName) cachedSerQNames.get(i);
|
||||
java.lang.Object x = cachedSerFactories.get(i);
|
||||
if (x instanceof Class) {
|
||||
java.lang.Class sf = (java.lang.Class)
|
||||
cachedSerFactories.get(i);
|
||||
java.lang.Class df = (java.lang.Class)
|
||||
cachedDeserFactories.get(i);
|
||||
_call.registerTypeMapping(cls, qName, sf, df, false);
|
||||
}
|
||||
else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
|
||||
org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
|
||||
cachedSerFactories.get(i);
|
||||
org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
|
||||
cachedDeserFactories.get(i);
|
||||
_call.registerTypeMapping(cls, qName, sf, df, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return _call;
|
||||
}
|
||||
catch (java.lang.Throwable _t) {
|
||||
throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves content from the repository.
|
||||
*/
|
||||
public org.alfresco.example.webservice.content.Content[] read(org.alfresco.example.webservice.types.Predicate items, java.lang.String property) throws java.rmi.RemoteException, org.alfresco.example.webservice.content.ContentFault {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[0]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("http://www.alfresco.org/ws/service/content/1.0/read");
|
||||
_call.setEncodingStyle(null);
|
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
|
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "read"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {items, property});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (org.alfresco.example.webservice.content.Content[]) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (org.alfresco.example.webservice.content.Content[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.content.Content[].class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
if (axisFaultException.detail != null) {
|
||||
if (axisFaultException.detail instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException) axisFaultException.detail;
|
||||
}
|
||||
if (axisFaultException.detail instanceof org.alfresco.example.webservice.content.ContentFault) {
|
||||
throw (org.alfresco.example.webservice.content.ContentFault) axisFaultException.detail;
|
||||
}
|
||||
}
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Writes content to the repository.
|
||||
*/
|
||||
public org.alfresco.example.webservice.content.Content write(org.alfresco.example.webservice.types.Reference node, java.lang.String property, byte[] content, org.alfresco.example.webservice.types.ContentFormat format) throws java.rmi.RemoteException, org.alfresco.example.webservice.content.ContentFault {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[1]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("http://www.alfresco.org/ws/service/content/1.0/write");
|
||||
_call.setEncodingStyle(null);
|
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
|
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "write"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {node, property, content, format});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (org.alfresco.example.webservice.content.Content) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (org.alfresco.example.webservice.content.Content) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.content.Content.class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
if (axisFaultException.detail != null) {
|
||||
if (axisFaultException.detail instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException) axisFaultException.detail;
|
||||
}
|
||||
if (axisFaultException.detail instanceof org.alfresco.example.webservice.content.ContentFault) {
|
||||
throw (org.alfresco.example.webservice.content.ContentFault) axisFaultException.detail;
|
||||
}
|
||||
}
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Clears content from the repository.
|
||||
*/
|
||||
public org.alfresco.example.webservice.content.Content[] clear(org.alfresco.example.webservice.types.Predicate items, java.lang.String property) throws java.rmi.RemoteException, org.alfresco.example.webservice.content.ContentFault {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[2]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("http://www.alfresco.org/ws/service/content/1.0/clear");
|
||||
_call.setEncodingStyle(null);
|
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
|
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "clear"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {items, property});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (org.alfresco.example.webservice.content.Content[]) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (org.alfresco.example.webservice.content.Content[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.content.Content[].class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
if (axisFaultException.detail != null) {
|
||||
if (axisFaultException.detail instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException) axisFaultException.detail;
|
||||
}
|
||||
if (axisFaultException.detail instanceof org.alfresco.example.webservice.content.ContentFault) {
|
||||
throw (org.alfresco.example.webservice.content.ContentFault) axisFaultException.detail;
|
||||
}
|
||||
}
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* ContentServiceSoapPort.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.alfresco.example.webservice.content;
|
||||
|
||||
public interface ContentServiceSoapPort extends java.rmi.Remote {
|
||||
|
||||
/**
|
||||
* Retrieves content from the repository.
|
||||
*/
|
||||
public org.alfresco.example.webservice.content.Content[] read(org.alfresco.example.webservice.types.Predicate items, java.lang.String property) throws java.rmi.RemoteException, org.alfresco.example.webservice.content.ContentFault;
|
||||
|
||||
/**
|
||||
* Writes content to the repository.
|
||||
*/
|
||||
public org.alfresco.example.webservice.content.Content write(org.alfresco.example.webservice.types.Reference node, java.lang.String property, byte[] content, org.alfresco.example.webservice.types.ContentFormat format) throws java.rmi.RemoteException, org.alfresco.example.webservice.content.ContentFault;
|
||||
|
||||
/**
|
||||
* Clears content from the repository.
|
||||
*/
|
||||
public org.alfresco.example.webservice.content.Content[] clear(org.alfresco.example.webservice.types.Predicate items, java.lang.String property) throws java.rmi.RemoteException, org.alfresco.example.webservice.content.ContentFault;
|
||||
}
|
Reference in New Issue
Block a user