diff --git a/project-build.xml b/project-build.xml index ee26f97e68..09104e1332 100644 --- a/project-build.xml +++ b/project-build.xml @@ -44,25 +44,11 @@ - - - - - - - - - - - - - - - + @@ -78,21 +64,6 @@ - - - - - - - - - - - - - - - @@ -109,19 +80,6 @@ - - - - - - - - - - - - - @@ -136,19 +94,6 @@ - - - - - - - - - - - - - @@ -163,19 +108,6 @@ - - - - - - - - - - - - - @@ -190,19 +122,6 @@ - - - - - - - - - - - - - diff --git a/source/generated/org/alfresco/example/webservice/action/Action.java b/source/generated/org/alfresco/example/webservice/action/Action.java deleted file mode 100644 index 744c6a7010..0000000000 --- a/source/generated/org/alfresco/example/webservice/action/Action.java +++ /dev/null @@ -1,484 +0,0 @@ -/** - * Action.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.action; - -public class Action implements java.io.Serializable { - private java.lang.String id; - private org.alfresco.example.webservice.action.ActionItemType type; - private java.lang.String title; - private java.lang.String description; - private boolean executeAsynchronously; - private org.alfresco.example.webservice.types.NamedValue[] parameters; - private org.alfresco.example.webservice.action.Condition[] conditions; - private org.alfresco.example.webservice.action.Action compensatingAction; - private org.alfresco.example.webservice.action.Action[] actions; - private org.alfresco.example.webservice.types.Reference reference; - - public Action() { - } - - public Action( - java.lang.String id, - org.alfresco.example.webservice.action.ActionItemType type, - java.lang.String title, - java.lang.String description, - boolean executeAsynchronously, - org.alfresco.example.webservice.types.NamedValue[] parameters, - org.alfresco.example.webservice.action.Condition[] conditions, - org.alfresco.example.webservice.action.Action compensatingAction, - org.alfresco.example.webservice.action.Action[] actions, - org.alfresco.example.webservice.types.Reference reference) { - this.id = id; - this.type = type; - this.title = title; - this.description = description; - this.executeAsynchronously = executeAsynchronously; - this.parameters = parameters; - this.conditions = conditions; - this.compensatingAction = compensatingAction; - this.actions = actions; - this.reference = reference; - } - - - /** - * Gets the id value for this Action. - * - * @return id - */ - public java.lang.String getId() { - return id; - } - - - /** - * Sets the id value for this Action. - * - * @param id - */ - public void setId(java.lang.String id) { - this.id = id; - } - - - /** - * Gets the type value for this Action. - * - * @return type - */ - public org.alfresco.example.webservice.action.ActionItemType getType() { - return type; - } - - - /** - * Sets the type value for this Action. - * - * @param type - */ - public void setType(org.alfresco.example.webservice.action.ActionItemType type) { - this.type = type; - } - - - /** - * Gets the title value for this Action. - * - * @return title - */ - public java.lang.String getTitle() { - return title; - } - - - /** - * Sets the title value for this Action. - * - * @param title - */ - public void setTitle(java.lang.String title) { - this.title = title; - } - - - /** - * Gets the description value for this Action. - * - * @return description - */ - public java.lang.String getDescription() { - return description; - } - - - /** - * Sets the description value for this Action. - * - * @param description - */ - public void setDescription(java.lang.String description) { - this.description = description; - } - - - /** - * Gets the executeAsynchronously value for this Action. - * - * @return executeAsynchronously - */ - public boolean isExecuteAsynchronously() { - return executeAsynchronously; - } - - - /** - * Sets the executeAsynchronously value for this Action. - * - * @param executeAsynchronously - */ - public void setExecuteAsynchronously(boolean executeAsynchronously) { - this.executeAsynchronously = executeAsynchronously; - } - - - /** - * Gets the parameters value for this Action. - * - * @return parameters - */ - public org.alfresco.example.webservice.types.NamedValue[] getParameters() { - return parameters; - } - - - /** - * Sets the parameters value for this Action. - * - * @param parameters - */ - public void setParameters(org.alfresco.example.webservice.types.NamedValue[] parameters) { - this.parameters = parameters; - } - - public org.alfresco.example.webservice.types.NamedValue getParameters(int i) { - return this.parameters[i]; - } - - public void setParameters(int i, org.alfresco.example.webservice.types.NamedValue _value) { - this.parameters[i] = _value; - } - - - /** - * Gets the conditions value for this Action. - * - * @return conditions - */ - public org.alfresco.example.webservice.action.Condition[] getConditions() { - return conditions; - } - - - /** - * Sets the conditions value for this Action. - * - * @param conditions - */ - public void setConditions(org.alfresco.example.webservice.action.Condition[] conditions) { - this.conditions = conditions; - } - - public org.alfresco.example.webservice.action.Condition getConditions(int i) { - return this.conditions[i]; - } - - public void setConditions(int i, org.alfresco.example.webservice.action.Condition _value) { - this.conditions[i] = _value; - } - - - /** - * Gets the compensatingAction value for this Action. - * - * @return compensatingAction - */ - public org.alfresco.example.webservice.action.Action getCompensatingAction() { - return compensatingAction; - } - - - /** - * Sets the compensatingAction value for this Action. - * - * @param compensatingAction - */ - public void setCompensatingAction(org.alfresco.example.webservice.action.Action compensatingAction) { - this.compensatingAction = compensatingAction; - } - - - /** - * Gets the actions value for this Action. - * - * @return actions - */ - public org.alfresco.example.webservice.action.Action[] getActions() { - return actions; - } - - - /** - * Sets the actions value for this Action. - * - * @param actions - */ - public void setActions(org.alfresco.example.webservice.action.Action[] actions) { - this.actions = actions; - } - - public org.alfresco.example.webservice.action.Action getActions(int i) { - return this.actions[i]; - } - - public void setActions(int i, org.alfresco.example.webservice.action.Action _value) { - this.actions[i] = _value; - } - - - /** - * Gets the reference value for this Action. - * - * @return reference - */ - public org.alfresco.example.webservice.types.Reference getReference() { - return reference; - } - - - /** - * Sets the reference value for this Action. - * - * @param reference - */ - public void setReference(org.alfresco.example.webservice.types.Reference reference) { - this.reference = reference; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof Action)) return false; - Action other = (Action) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.id==null && other.getId()==null) || - (this.id!=null && - this.id.equals(other.getId()))) && - ((this.type==null && other.getType()==null) || - (this.type!=null && - this.type.equals(other.getType()))) && - ((this.title==null && other.getTitle()==null) || - (this.title!=null && - this.title.equals(other.getTitle()))) && - ((this.description==null && other.getDescription()==null) || - (this.description!=null && - this.description.equals(other.getDescription()))) && - this.executeAsynchronously == other.isExecuteAsynchronously() && - ((this.parameters==null && other.getParameters()==null) || - (this.parameters!=null && - java.util.Arrays.equals(this.parameters, other.getParameters()))) && - ((this.conditions==null && other.getConditions()==null) || - (this.conditions!=null && - java.util.Arrays.equals(this.conditions, other.getConditions()))) && - ((this.compensatingAction==null && other.getCompensatingAction()==null) || - (this.compensatingAction!=null && - this.compensatingAction.equals(other.getCompensatingAction()))) && - ((this.actions==null && other.getActions()==null) || - (this.actions!=null && - java.util.Arrays.equals(this.actions, other.getActions()))) && - ((this.reference==null && other.getReference()==null) || - (this.reference!=null && - this.reference.equals(other.getReference()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getId() != null) { - _hashCode += getId().hashCode(); - } - if (getType() != null) { - _hashCode += getType().hashCode(); - } - if (getTitle() != null) { - _hashCode += getTitle().hashCode(); - } - if (getDescription() != null) { - _hashCode += getDescription().hashCode(); - } - _hashCode += (isExecuteAsynchronously() ? Boolean.TRUE : Boolean.FALSE).hashCode(); - if (getParameters() != null) { - for (int i=0; - iContentFormat>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/action/1.0", "Action"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.action.Action.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionExecutionResult"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.action.ActionExecutionResult.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionFault"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.action.ActionFault.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionFilter"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.action.ActionFilter.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionItemType"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.action.ActionItemType.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Condition"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.action.Condition.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ParameterDefinition"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.action.ParameterDefinition.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Rule"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.action.Rule.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "RuleFilter"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.action.RuleFilter.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "RuleType"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.action.RuleType.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); - } - } - - public org.alfresco.example.webservice.action.ActionItemType[] getConditionDefinitions() throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault { - 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/action/1.0/getConditionDefinitions"); - _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/action/1.0", "getConditionDefinitions")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.action.ActionItemType[]) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.action.ActionItemType[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.action.ActionItemType[].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.action.ActionFault) { - throw (org.alfresco.example.webservice.action.ActionFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - public org.alfresco.example.webservice.action.ActionItemType[] getActionDefinitions() throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault { - 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/action/1.0/getActionDefinitions"); - _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/action/1.0", "getActionDefinitions")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.action.ActionItemType[]) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.action.ActionItemType[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.action.ActionItemType[].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.action.ActionFault) { - throw (org.alfresco.example.webservice.action.ActionFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - public org.alfresco.example.webservice.action.RuleType[] getRuleTypes() throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault { - 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/action/1.0/getRuleTypes"); - _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/action/1.0", "getRuleTypes")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.action.RuleType[]) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.action.RuleType[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.action.RuleType[].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.action.ActionFault) { - throw (org.alfresco.example.webservice.action.ActionFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - public org.alfresco.example.webservice.action.Action[] getActions(org.alfresco.example.webservice.types.Reference reference, org.alfresco.example.webservice.action.ActionFilter filter) throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[3]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/action/1.0/getActions"); - _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/action/1.0", "getActions")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {reference, filter}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.action.Action[]) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.action.Action[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.action.Action[].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.action.ActionFault) { - throw (org.alfresco.example.webservice.action.ActionFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - public org.alfresco.example.webservice.action.Action[] saveActions(org.alfresco.example.webservice.types.Reference reference, org.alfresco.example.webservice.action.Action[] actions) throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[4]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/action/1.0/saveActions"); - _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/action/1.0", "saveActions")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {reference, actions}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.action.Action[]) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.action.Action[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.action.Action[].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.action.ActionFault) { - throw (org.alfresco.example.webservice.action.ActionFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - public void removeActions(org.alfresco.example.webservice.types.Reference reference, org.alfresco.example.webservice.action.Action[] actions) throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[5]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/action/1.0/removeActions"); - _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/action/1.0", "removeActions")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {reference, actions}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - extractAttachments(_call); - } 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.action.ActionFault) { - throw (org.alfresco.example.webservice.action.ActionFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - public org.alfresco.example.webservice.action.ActionExecutionResult[] executeActions(org.alfresco.example.webservice.types.Predicate predicate, org.alfresco.example.webservice.action.Action[] actions) throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[6]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/action/1.0/executeActions"); - _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/action/1.0", "executeActions")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {predicate, actions}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.action.ActionExecutionResult[]) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.action.ActionExecutionResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.action.ActionExecutionResult[].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.action.ActionFault) { - throw (org.alfresco.example.webservice.action.ActionFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - public org.alfresco.example.webservice.action.Rule[] getRules(org.alfresco.example.webservice.types.Reference reference, org.alfresco.example.webservice.action.RuleFilter ruleFilter) throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[7]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/action/1.0/getRules"); - _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/action/1.0", "getRules")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {reference, ruleFilter}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.action.Rule[]) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.action.Rule[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.action.Rule[].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.action.ActionFault) { - throw (org.alfresco.example.webservice.action.ActionFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - public org.alfresco.example.webservice.action.Rule[] saveRules(org.alfresco.example.webservice.types.Reference reference, org.alfresco.example.webservice.action.Rule[] rules) throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[8]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/action/1.0/saveRules"); - _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/action/1.0", "saveRules")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {reference, rules}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.action.Rule[]) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.action.Rule[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.action.Rule[].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.action.ActionFault) { - throw (org.alfresco.example.webservice.action.ActionFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - public void removeRules(org.alfresco.example.webservice.types.Reference reference, org.alfresco.example.webservice.action.Rule[] rules) throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[9]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/action/1.0/removeRules"); - _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/action/1.0", "removeRules")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {reference, rules}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - extractAttachments(_call); - } 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.action.ActionFault) { - throw (org.alfresco.example.webservice.action.ActionFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - -} diff --git a/source/generated/org/alfresco/example/webservice/action/ActionServiceSoapPort.java b/source/generated/org/alfresco/example/webservice/action/ActionServiceSoapPort.java deleted file mode 100644 index f9de7b3476..0000000000 --- a/source/generated/org/alfresco/example/webservice/action/ActionServiceSoapPort.java +++ /dev/null @@ -1,61 +0,0 @@ -/** - * ActionServiceSoapPort.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.action; - -public interface ActionServiceSoapPort extends java.rmi.Remote { - - /** - * Gets the available condition definitions. - */ - public org.alfresco.example.webservice.action.ActionItemType[] getConditionDefinitions() throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault; - - /** - * Gets the available action definitions. - */ - public org.alfresco.example.webservice.action.ActionItemType[] getActionDefinitions() throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault; - - /** - * Gets the availble action types. - */ - public org.alfresco.example.webservice.action.RuleType[] getRuleTypes() throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault; - - /** - * Gets the actions saved against a reference. - */ - public org.alfresco.example.webservice.action.Action[] getActions(org.alfresco.example.webservice.types.Reference reference, org.alfresco.example.webservice.action.ActionFilter filter) throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault; - - /** - * Save actions against a given reference. - */ - public org.alfresco.example.webservice.action.Action[] saveActions(org.alfresco.example.webservice.types.Reference reference, org.alfresco.example.webservice.action.Action[] actions) throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault; - - /** - * Removes saved actions. - */ - public void removeActions(org.alfresco.example.webservice.types.Reference reference, org.alfresco.example.webservice.action.Action[] actions) throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault; - - /** - * Executes actions. - */ - public org.alfresco.example.webservice.action.ActionExecutionResult[] executeActions(org.alfresco.example.webservice.types.Predicate predicate, org.alfresco.example.webservice.action.Action[] actions) throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault; - - /** - * Gets the rules for a reference. - */ - public org.alfresco.example.webservice.action.Rule[] getRules(org.alfresco.example.webservice.types.Reference reference, org.alfresco.example.webservice.action.RuleFilter ruleFilter) throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault; - - /** - * Save rules. - */ - public org.alfresco.example.webservice.action.Rule[] saveRules(org.alfresco.example.webservice.types.Reference reference, org.alfresco.example.webservice.action.Rule[] rules) throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault; - - /** - * Remove saved rules. - */ - public void removeRules(org.alfresco.example.webservice.types.Reference reference, org.alfresco.example.webservice.action.Rule[] rules) throws java.rmi.RemoteException, org.alfresco.example.webservice.action.ActionFault; -} diff --git a/source/generated/org/alfresco/example/webservice/action/Condition.java b/source/generated/org/alfresco/example/webservice/action/Condition.java deleted file mode 100644 index 94e5a77152..0000000000 --- a/source/generated/org/alfresco/example/webservice/action/Condition.java +++ /dev/null @@ -1,238 +0,0 @@ -/** - * Condition.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.action; - -public class Condition implements java.io.Serializable { - private java.lang.String id; - private org.alfresco.example.webservice.action.ActionItemType type; - private boolean invertCondition; - private org.alfresco.example.webservice.types.NamedValue[] parameters; - - public Condition() { - } - - public Condition( - java.lang.String id, - org.alfresco.example.webservice.action.ActionItemType type, - boolean invertCondition, - org.alfresco.example.webservice.types.NamedValue[] parameters) { - this.id = id; - this.type = type; - this.invertCondition = invertCondition; - this.parameters = parameters; - } - - - /** - * Gets the id value for this Condition. - * - * @return id - */ - public java.lang.String getId() { - return id; - } - - - /** - * Sets the id value for this Condition. - * - * @param id - */ - public void setId(java.lang.String id) { - this.id = id; - } - - - /** - * Gets the type value for this Condition. - * - * @return type - */ - public org.alfresco.example.webservice.action.ActionItemType getType() { - return type; - } - - - /** - * Sets the type value for this Condition. - * - * @param type - */ - public void setType(org.alfresco.example.webservice.action.ActionItemType type) { - this.type = type; - } - - - /** - * Gets the invertCondition value for this Condition. - * - * @return invertCondition - */ - public boolean isInvertCondition() { - return invertCondition; - } - - - /** - * Sets the invertCondition value for this Condition. - * - * @param invertCondition - */ - public void setInvertCondition(boolean invertCondition) { - this.invertCondition = invertCondition; - } - - - /** - * Gets the parameters value for this Condition. - * - * @return parameters - */ - public org.alfresco.example.webservice.types.NamedValue[] getParameters() { - return parameters; - } - - - /** - * Sets the parameters value for this Condition. - * - * @param parameters - */ - public void setParameters(org.alfresco.example.webservice.types.NamedValue[] parameters) { - this.parameters = parameters; - } - - public org.alfresco.example.webservice.types.NamedValue getParameters(int i) { - return this.parameters[i]; - } - - public void setParameters(int i, org.alfresco.example.webservice.types.NamedValue _value) { - this.parameters[i] = _value; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof Condition)) return false; - Condition other = (Condition) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.id==null && other.getId()==null) || - (this.id!=null && - this.id.equals(other.getId()))) && - ((this.type==null && other.getType()==null) || - (this.type!=null && - this.type.equals(other.getType()))) && - this.invertCondition == other.isInvertCondition() && - ((this.parameters==null && other.getParameters()==null) || - (this.parameters!=null && - java.util.Arrays.equals(this.parameters, other.getParameters()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getId() != null) { - _hashCode += getId().hashCode(); - } - if (getType() != null) { - _hashCode += getType().hashCode(); - } - _hashCode += (isInvertCondition() ? Boolean.TRUE : Boolean.FALSE).hashCode(); - if (getParameters() != null) { - for (int i=0; - iContentFormat>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/authoring/1.0", "AuthoringFault"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.authoring.AuthoringFault.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authoring/1.0", "CancelCheckoutResult"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.authoring.CancelCheckoutResult.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authoring/1.0", "CheckinResult"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.authoring.CheckinResult.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authoring/1.0", "CheckoutResult"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.authoring.CheckoutResult.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authoring/1.0", "LockStatus"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.authoring.LockStatus.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authoring/1.0", "LockTypeEnum"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.authoring.LockTypeEnum.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(enumsf); - cachedDeserFactories.add(enumdf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authoring/1.0", "VersionResult"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.authoring.VersionResult.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); - } - } - - - /** - * Checkout a content resource for editing. - */ - public org.alfresco.example.webservice.authoring.CheckoutResult checkout(org.alfresco.example.webservice.types.Predicate items, org.alfresco.example.webservice.types.ParentReference destination) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault { - 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/authoring/1.0/checkout"); - _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/authoring/1.0", "checkout")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {items, destination}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.authoring.CheckoutResult) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.authoring.CheckoutResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.authoring.CheckoutResult.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.authoring.AuthoringFault) { - throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Checkin a content resource. - */ - public org.alfresco.example.webservice.authoring.CheckinResult checkin(org.alfresco.example.webservice.types.Predicate items, org.alfresco.example.webservice.types.NamedValue[] comments, boolean keepCheckedOut) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault { - 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/authoring/1.0/checkin"); - _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/authoring/1.0", "checkin")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {items, comments, new java.lang.Boolean(keepCheckedOut)}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.authoring.CheckinResult) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.authoring.CheckinResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.authoring.CheckinResult.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.authoring.AuthoringFault) { - throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Checkin an external content resource thus replacing the existing - * working content. - */ - public org.alfresco.example.webservice.types.Reference checkinExternal(org.alfresco.example.webservice.types.Reference items, org.alfresco.example.webservice.types.NamedValue[] comments, boolean keepCheckedOut, org.alfresco.example.webservice.types.ContentFormat format, byte[] content) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault { - 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/authoring/1.0/checkinExternal"); - _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/authoring/1.0", "checkinExternal")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {items, comments, new java.lang.Boolean(keepCheckedOut), format, content}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.types.Reference) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.types.Reference) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.Reference.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.authoring.AuthoringFault) { - throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Cancels the checkout. - */ - public org.alfresco.example.webservice.authoring.CancelCheckoutResult cancelCheckout(org.alfresco.example.webservice.types.Predicate items) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[3]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/authoring/1.0/cancelCheckout"); - _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/authoring/1.0", "cancelCheckout")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {items}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.authoring.CancelCheckoutResult) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.authoring.CancelCheckoutResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.authoring.CancelCheckoutResult.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.authoring.AuthoringFault) { - throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Locks a content resource. - */ - public org.alfresco.example.webservice.types.Reference[] lock(org.alfresco.example.webservice.types.Predicate items, boolean lockChildren, org.alfresco.example.webservice.authoring.LockTypeEnum lockType) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[4]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/authoring/1.0/lock"); - _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/authoring/1.0", "lock")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {items, new java.lang.Boolean(lockChildren), lockType}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.types.Reference[]) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.types.Reference[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.Reference[].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.authoring.AuthoringFault) { - throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Unlocks a content resource. - */ - public org.alfresco.example.webservice.types.Reference[] unlock(org.alfresco.example.webservice.types.Predicate items, boolean unlockChildren) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[5]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/authoring/1.0/unlock"); - _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/authoring/1.0", "unlock")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {items, new java.lang.Boolean(unlockChildren)}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.types.Reference[]) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.types.Reference[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.Reference[].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.authoring.AuthoringFault) { - throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Gets the lock status of the specified nodes. - */ - public org.alfresco.example.webservice.authoring.LockStatus[] getLockStatus(org.alfresco.example.webservice.types.Predicate items) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[6]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/authoring/1.0/getLockStatus"); - _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/authoring/1.0", "getLockStatus")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {items}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.authoring.LockStatus[]) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.authoring.LockStatus[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.authoring.LockStatus[].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.authoring.AuthoringFault) { - throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Create a snapshot of the specified node(s) in the version store. - */ - public org.alfresco.example.webservice.authoring.VersionResult createVersion(org.alfresco.example.webservice.types.Predicate items, org.alfresco.example.webservice.types.NamedValue[] comments, boolean versionChildren) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[7]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/authoring/1.0/createVersion"); - _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/authoring/1.0", "createVersion")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {items, comments, new java.lang.Boolean(versionChildren)}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.authoring.VersionResult) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.authoring.VersionResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.authoring.VersionResult.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.authoring.AuthoringFault) { - throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Gets the version history for the specfied node. - */ - public org.alfresco.example.webservice.types.VersionHistory getVersionHistory(org.alfresco.example.webservice.types.Reference node) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[8]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/authoring/1.0/getVersionHistory"); - _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/authoring/1.0", "getVersionHistory")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {node}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.types.VersionHistory) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.types.VersionHistory) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.VersionHistory.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.authoring.AuthoringFault) { - throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Revert a node to the snapshot of the specified version. - */ - public void revertVersion(org.alfresco.example.webservice.types.Reference node, java.lang.String versionLabel) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[9]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/authoring/1.0/revertVersion"); - _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/authoring/1.0", "revertVersion")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {node, versionLabel}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - extractAttachments(_call); - } 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.authoring.AuthoringFault) { - throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Delete all snapshot versions of the specified node. - */ - public org.alfresco.example.webservice.types.VersionHistory deleteAllVersions(org.alfresco.example.webservice.types.Reference node) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[10]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/authoring/1.0/deleteAllVersions"); - _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/authoring/1.0", "deleteAllVersions")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {node}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.types.VersionHistory) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.types.VersionHistory) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.VersionHistory.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.authoring.AuthoringFault) { - throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - -} diff --git a/source/generated/org/alfresco/example/webservice/authoring/AuthoringServiceSoapPort.java b/source/generated/org/alfresco/example/webservice/authoring/AuthoringServiceSoapPort.java deleted file mode 100644 index 29a6e57d22..0000000000 --- a/source/generated/org/alfresco/example/webservice/authoring/AuthoringServiceSoapPort.java +++ /dev/null @@ -1,67 +0,0 @@ -/** - * AuthoringServiceSoapPort.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.authoring; - -public interface AuthoringServiceSoapPort extends java.rmi.Remote { - - /** - * Checkout a content resource for editing. - */ - public org.alfresco.example.webservice.authoring.CheckoutResult checkout(org.alfresco.example.webservice.types.Predicate items, org.alfresco.example.webservice.types.ParentReference destination) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault; - - /** - * Checkin a content resource. - */ - public org.alfresco.example.webservice.authoring.CheckinResult checkin(org.alfresco.example.webservice.types.Predicate items, org.alfresco.example.webservice.types.NamedValue[] comments, boolean keepCheckedOut) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault; - - /** - * Checkin an external content resource thus replacing the existing - * working content. - */ - public org.alfresco.example.webservice.types.Reference checkinExternal(org.alfresco.example.webservice.types.Reference items, org.alfresco.example.webservice.types.NamedValue[] comments, boolean keepCheckedOut, org.alfresco.example.webservice.types.ContentFormat format, byte[] content) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault; - - /** - * Cancels the checkout. - */ - public org.alfresco.example.webservice.authoring.CancelCheckoutResult cancelCheckout(org.alfresco.example.webservice.types.Predicate items) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault; - - /** - * Locks a content resource. - */ - public org.alfresco.example.webservice.types.Reference[] lock(org.alfresco.example.webservice.types.Predicate items, boolean lockChildren, org.alfresco.example.webservice.authoring.LockTypeEnum lockType) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault; - - /** - * Unlocks a content resource. - */ - public org.alfresco.example.webservice.types.Reference[] unlock(org.alfresco.example.webservice.types.Predicate items, boolean unlockChildren) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault; - - /** - * Gets the lock status of the specified nodes. - */ - public org.alfresco.example.webservice.authoring.LockStatus[] getLockStatus(org.alfresco.example.webservice.types.Predicate items) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault; - - /** - * Create a snapshot of the specified node(s) in the version store. - */ - public org.alfresco.example.webservice.authoring.VersionResult createVersion(org.alfresco.example.webservice.types.Predicate items, org.alfresco.example.webservice.types.NamedValue[] comments, boolean versionChildren) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault; - - /** - * Gets the version history for the specfied node. - */ - public org.alfresco.example.webservice.types.VersionHistory getVersionHistory(org.alfresco.example.webservice.types.Reference node) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault; - - /** - * Revert a node to the snapshot of the specified version. - */ - public void revertVersion(org.alfresco.example.webservice.types.Reference node, java.lang.String versionLabel) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault; - - /** - * Delete all snapshot versions of the specified node. - */ - public org.alfresco.example.webservice.types.VersionHistory deleteAllVersions(org.alfresco.example.webservice.types.Reference node) throws java.rmi.RemoteException, org.alfresco.example.webservice.authoring.AuthoringFault; -} diff --git a/source/generated/org/alfresco/example/webservice/authoring/CancelCheckoutResult.java b/source/generated/org/alfresco/example/webservice/authoring/CancelCheckoutResult.java deleted file mode 100644 index 83d785632c..0000000000 --- a/source/generated/org/alfresco/example/webservice/authoring/CancelCheckoutResult.java +++ /dev/null @@ -1,190 +0,0 @@ -/** - * CancelCheckoutResult.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.authoring; - -public class CancelCheckoutResult implements java.io.Serializable { - private org.alfresco.example.webservice.types.Reference[] workingCopies; - private org.alfresco.example.webservice.types.Reference[] originals; - - public CancelCheckoutResult() { - } - - public CancelCheckoutResult( - org.alfresco.example.webservice.types.Reference[] workingCopies, - org.alfresco.example.webservice.types.Reference[] originals) { - this.workingCopies = workingCopies; - this.originals = originals; - } - - - /** - * Gets the workingCopies value for this CancelCheckoutResult. - * - * @return workingCopies - */ - public org.alfresco.example.webservice.types.Reference[] getWorkingCopies() { - return workingCopies; - } - - - /** - * Sets the workingCopies value for this CancelCheckoutResult. - * - * @param workingCopies - */ - public void setWorkingCopies(org.alfresco.example.webservice.types.Reference[] workingCopies) { - this.workingCopies = workingCopies; - } - - public org.alfresco.example.webservice.types.Reference getWorkingCopies(int i) { - return this.workingCopies[i]; - } - - public void setWorkingCopies(int i, org.alfresco.example.webservice.types.Reference _value) { - this.workingCopies[i] = _value; - } - - - /** - * Gets the originals value for this CancelCheckoutResult. - * - * @return originals - */ - public org.alfresco.example.webservice.types.Reference[] getOriginals() { - return originals; - } - - - /** - * Sets the originals value for this CancelCheckoutResult. - * - * @param originals - */ - public void setOriginals(org.alfresco.example.webservice.types.Reference[] originals) { - this.originals = originals; - } - - public org.alfresco.example.webservice.types.Reference getOriginals(int i) { - return this.originals[i]; - } - - public void setOriginals(int i, org.alfresco.example.webservice.types.Reference _value) { - this.originals[i] = _value; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof CancelCheckoutResult)) return false; - CancelCheckoutResult other = (CancelCheckoutResult) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.workingCopies==null && other.getWorkingCopies()==null) || - (this.workingCopies!=null && - java.util.Arrays.equals(this.workingCopies, other.getWorkingCopies()))) && - ((this.originals==null && other.getOriginals()==null) || - (this.originals!=null && - java.util.Arrays.equals(this.originals, other.getOriginals()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getWorkingCopies() != null) { - for (int i=0; - iContentFormat>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/classification/1.0", "AppliedCategory"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.classification.AppliedCategory.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/classification/1.0", "CategoriesResult"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.classification.CategoriesResult.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/classification/1.0", "ClassificationFault"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.classification.ClassificationFault.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); - } - } - - - /** - * Gets available classifications. - */ - public org.alfresco.example.webservice.types.Classification[] getClassifications(org.alfresco.example.webservice.types.Store store) throws java.rmi.RemoteException, org.alfresco.example.webservice.classification.ClassificationFault { - 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/classification/1.0/getClassifications"); - _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/classification/1.0", "getClassifications")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {store}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.types.Classification[]) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.types.Classification[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.Classification[].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.classification.ClassificationFault) { - throw (org.alfresco.example.webservice.classification.ClassificationFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Gets child categories for the specified parent category. - */ - public org.alfresco.example.webservice.types.Category[] getChildCategories(org.alfresco.example.webservice.types.Reference parentCategory) throws java.rmi.RemoteException, org.alfresco.example.webservice.classification.ClassificationFault { - 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/classification/1.0/getChildCategories"); - _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/classification/1.0", "getChildCategories")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {parentCategory}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.types.Category[]) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.types.Category[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.Category[].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.classification.ClassificationFault) { - throw (org.alfresco.example.webservice.classification.ClassificationFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Gets the categories applied to the specified content resource. - */ - public org.alfresco.example.webservice.classification.CategoriesResult[] getCategories(org.alfresco.example.webservice.types.Predicate items) throws java.rmi.RemoteException, org.alfresco.example.webservice.classification.ClassificationFault { - 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/classification/1.0/getCategories"); - _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/classification/1.0", "getCategories")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {items}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.classification.CategoriesResult[]) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.classification.CategoriesResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.classification.CategoriesResult[].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.classification.ClassificationFault) { - throw (org.alfresco.example.webservice.classification.ClassificationFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Modifies the categories applied to the specified content resource. - */ - public org.alfresco.example.webservice.classification.CategoriesResult[] setCategories(org.alfresco.example.webservice.types.Predicate items, org.alfresco.example.webservice.classification.AppliedCategory[] categories) throws java.rmi.RemoteException, org.alfresco.example.webservice.classification.ClassificationFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[3]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/classification/1.0/setCategories"); - _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/classification/1.0", "setCategories")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {items, categories}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.classification.CategoriesResult[]) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.classification.CategoriesResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.classification.CategoriesResult[].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.classification.ClassificationFault) { - throw (org.alfresco.example.webservice.classification.ClassificationFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Describe a classification in terms of how it is represented - * in the meta model i.e. is it an aspect, which property holds the applied - * category. - */ - public org.alfresco.example.webservice.types.ClassDefinition describeClassification(java.lang.String classification) throws java.rmi.RemoteException, org.alfresco.example.webservice.classification.ClassificationFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[4]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/classification/1.0/describeClassification"); - _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/classification/1.0", "describeClassification")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {classification}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.types.ClassDefinition) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.types.ClassDefinition) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.ClassDefinition.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.classification.ClassificationFault) { - throw (org.alfresco.example.webservice.classification.ClassificationFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - -} diff --git a/source/generated/org/alfresco/example/webservice/classification/ClassificationServiceSoapPort.java b/source/generated/org/alfresco/example/webservice/classification/ClassificationServiceSoapPort.java deleted file mode 100644 index b2c2145840..0000000000 --- a/source/generated/org/alfresco/example/webservice/classification/ClassificationServiceSoapPort.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * ClassificationServiceSoapPort.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.classification; - -public interface ClassificationServiceSoapPort extends java.rmi.Remote { - - /** - * Gets available classifications. - */ - public org.alfresco.example.webservice.types.Classification[] getClassifications(org.alfresco.example.webservice.types.Store store) throws java.rmi.RemoteException, org.alfresco.example.webservice.classification.ClassificationFault; - - /** - * Gets child categories for the specified parent category. - */ - public org.alfresco.example.webservice.types.Category[] getChildCategories(org.alfresco.example.webservice.types.Reference parentCategory) throws java.rmi.RemoteException, org.alfresco.example.webservice.classification.ClassificationFault; - - /** - * Gets the categories applied to the specified content resource. - */ - public org.alfresco.example.webservice.classification.CategoriesResult[] getCategories(org.alfresco.example.webservice.types.Predicate items) throws java.rmi.RemoteException, org.alfresco.example.webservice.classification.ClassificationFault; - - /** - * Modifies the categories applied to the specified content resource. - */ - public org.alfresco.example.webservice.classification.CategoriesResult[] setCategories(org.alfresco.example.webservice.types.Predicate items, org.alfresco.example.webservice.classification.AppliedCategory[] categories) throws java.rmi.RemoteException, org.alfresco.example.webservice.classification.ClassificationFault; - - /** - * Describe a classification in terms of how it is represented - * in the meta model i.e. is it an aspect, which property holds the applied - * category. - */ - public org.alfresco.example.webservice.types.ClassDefinition describeClassification(java.lang.String classification) throws java.rmi.RemoteException, org.alfresco.example.webservice.classification.ClassificationFault; -} diff --git a/source/generated/org/alfresco/example/webservice/content/Content.java b/source/generated/org/alfresco/example/webservice/content/Content.java deleted file mode 100644 index 3087ea4146..0000000000 --- a/source/generated/org/alfresco/example/webservice/content/Content.java +++ /dev/null @@ -1,255 +0,0 @@ -/** - * 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/content/ContentFault.java b/source/generated/org/alfresco/example/webservice/content/ContentFault.java deleted file mode 100644 index b22bd24db6..0000000000 --- a/source/generated/org/alfresco/example/webservice/content/ContentFault.java +++ /dev/null @@ -1,157 +0,0 @@ -/** - * 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); - } -} diff --git a/source/generated/org/alfresco/example/webservice/content/ContentSegment.java b/source/generated/org/alfresco/example/webservice/content/ContentSegment.java deleted file mode 100644 index 0cf8741606..0000000000 --- a/source/generated/org/alfresco/example/webservice/content/ContentSegment.java +++ /dev/null @@ -1,146 +0,0 @@ -/** - * 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/content/ContentService.java b/source/generated/org/alfresco/example/webservice/content/ContentService.java deleted file mode 100644 index 601d296dab..0000000000 --- a/source/generated/org/alfresco/example/webservice/content/ContentService.java +++ /dev/null @@ -1,20 +0,0 @@ -/** - * 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; -} diff --git a/source/generated/org/alfresco/example/webservice/content/ContentServiceLocator.java b/source/generated/org/alfresco/example/webservice/content/ContentServiceLocator.java deleted file mode 100644 index 5f16a5acdd..0000000000 --- a/source/generated/org/alfresco/example/webservice/content/ContentServiceLocator.java +++ /dev/null @@ -1,146 +0,0 @@ -/** - * 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/content/ContentServiceSoapBindingStub.java b/source/generated/org/alfresco/example/webservice/content/ContentServiceSoapBindingStub.java deleted file mode 100644 index 94f8e2f265..0000000000 --- a/source/generated/org/alfresco/example/webservice/content/ContentServiceSoapBindingStub.java +++ /dev/null @@ -1,560 +0,0 @@ -/** - * 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; -} - } - -} diff --git a/source/generated/org/alfresco/example/webservice/content/ContentServiceSoapPort.java b/source/generated/org/alfresco/example/webservice/content/ContentServiceSoapPort.java deleted file mode 100644 index e87c52b3b4..0000000000 --- a/source/generated/org/alfresco/example/webservice/content/ContentServiceSoapPort.java +++ /dev/null @@ -1,26 +0,0 @@ -/** - * 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; -} diff --git a/source/generated/org/alfresco/example/webservice/repository/Association.java b/source/generated/org/alfresco/example/webservice/repository/Association.java deleted file mode 100644 index a9a2d80ba3..0000000000 --- a/source/generated/org/alfresco/example/webservice/repository/Association.java +++ /dev/null @@ -1,154 +0,0 @@ -/** - * Association.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.repository; - -public class Association implements java.io.Serializable { - private java.lang.String associationType; - private org.alfresco.example.webservice.repository.AssociationDirectionEnum direction; - - public Association() { - } - - public Association( - java.lang.String associationType, - org.alfresco.example.webservice.repository.AssociationDirectionEnum direction) { - this.associationType = associationType; - this.direction = direction; - } - - - /** - * Gets the associationType value for this Association. - * - * @return associationType - */ - public java.lang.String getAssociationType() { - return associationType; - } - - - /** - * Sets the associationType value for this Association. - * - * @param associationType - */ - public void setAssociationType(java.lang.String associationType) { - this.associationType = associationType; - } - - - /** - * Gets the direction value for this Association. - * - * @return direction - */ - public org.alfresco.example.webservice.repository.AssociationDirectionEnum getDirection() { - return direction; - } - - - /** - * Sets the direction value for this Association. - * - * @param direction - */ - public void setDirection(org.alfresco.example.webservice.repository.AssociationDirectionEnum direction) { - this.direction = direction; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof Association)) return false; - Association other = (Association) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.associationType==null && other.getAssociationType()==null) || - (this.associationType!=null && - this.associationType.equals(other.getAssociationType()))) && - ((this.direction==null && other.getDirection()==null) || - (this.direction!=null && - this.direction.equals(other.getDirection()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getAssociationType() != null) { - _hashCode += getAssociationType().hashCode(); - } - if (getDirection() != null) { - _hashCode += getDirection().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(Association.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "Association")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("associationType"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "associationType")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("direction"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "direction")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "AssociationDirectionEnum")); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/repository/AssociationDirectionEnum.java b/source/generated/org/alfresco/example/webservice/repository/AssociationDirectionEnum.java deleted file mode 100644 index 0ad2510754..0000000000 --- a/source/generated/org/alfresco/example/webservice/repository/AssociationDirectionEnum.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * AssociationDirectionEnum.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.repository; - -public class AssociationDirectionEnum implements java.io.Serializable { - private java.lang.String _value_; - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - protected AssociationDirectionEnum(java.lang.String value) { - _value_ = value; - _table_.put(_value_,this); - } - - public static final java.lang.String _source = "source"; - public static final java.lang.String _target = "target"; - public static final AssociationDirectionEnum source = new AssociationDirectionEnum(_source); - public static final AssociationDirectionEnum target = new AssociationDirectionEnum(_target); - public java.lang.String getValue() { return _value_;} - public static AssociationDirectionEnum fromValue(java.lang.String value) - throws java.lang.IllegalArgumentException { - AssociationDirectionEnum enumeration = (AssociationDirectionEnum) - _table_.get(value); - if (enumeration==null) throw new java.lang.IllegalArgumentException(); - return enumeration; - } - public static AssociationDirectionEnum fromString(java.lang.String value) - throws java.lang.IllegalArgumentException { - return fromValue(value); - } - public boolean equals(java.lang.Object obj) {return (obj == this);} - public int hashCode() { return toString().hashCode();} - public java.lang.String toString() { return _value_;} - public java.lang.Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);} - 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.EnumSerializer( - _javaType, _xmlType); - } - 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.EnumDeserializer( - _javaType, _xmlType); - } - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(AssociationDirectionEnum.class); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "AssociationDirectionEnum")); - } - /** - * Return type metadata object - */ - public static org.apache.axis.description.TypeDesc getTypeDesc() { - return typeDesc; - } - -} diff --git a/source/generated/org/alfresco/example/webservice/repository/QueryResult.java b/source/generated/org/alfresco/example/webservice/repository/QueryResult.java deleted file mode 100644 index 868378e5fc..0000000000 --- a/source/generated/org/alfresco/example/webservice/repository/QueryResult.java +++ /dev/null @@ -1,154 +0,0 @@ -/** - * QueryResult.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.repository; - -public class QueryResult implements java.io.Serializable { - private java.lang.String querySession; - private org.alfresco.example.webservice.types.ResultSet resultSet; - - public QueryResult() { - } - - public QueryResult( - java.lang.String querySession, - org.alfresco.example.webservice.types.ResultSet resultSet) { - this.querySession = querySession; - this.resultSet = resultSet; - } - - - /** - * Gets the querySession value for this QueryResult. - * - * @return querySession - */ - public java.lang.String getQuerySession() { - return querySession; - } - - - /** - * Sets the querySession value for this QueryResult. - * - * @param querySession - */ - public void setQuerySession(java.lang.String querySession) { - this.querySession = querySession; - } - - - /** - * Gets the resultSet value for this QueryResult. - * - * @return resultSet - */ - public org.alfresco.example.webservice.types.ResultSet getResultSet() { - return resultSet; - } - - - /** - * Sets the resultSet value for this QueryResult. - * - * @param resultSet - */ - public void setResultSet(org.alfresco.example.webservice.types.ResultSet resultSet) { - this.resultSet = resultSet; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof QueryResult)) return false; - QueryResult other = (QueryResult) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.querySession==null && other.getQuerySession()==null) || - (this.querySession!=null && - this.querySession.equals(other.getQuerySession()))) && - ((this.resultSet==null && other.getResultSet()==null) || - (this.resultSet!=null && - this.resultSet.equals(other.getResultSet()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getQuerySession() != null) { - _hashCode += getQuerySession().hashCode(); - } - if (getResultSet() != null) { - _hashCode += getResultSet().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(QueryResult.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "QueryResult")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("querySession"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "querySession")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setNillable(true); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("resultSet"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "resultSet")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "ResultSet")); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/repository/RepositoryFault.java b/source/generated/org/alfresco/example/webservice/repository/RepositoryFault.java deleted file mode 100644 index aa93f367ec..0000000000 --- a/source/generated/org/alfresco/example/webservice/repository/RepositoryFault.java +++ /dev/null @@ -1,157 +0,0 @@ -/** - * RepositoryFault.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.repository; - -public class RepositoryFault extends org.apache.axis.AxisFault implements java.io.Serializable { - private int errorCode; - private java.lang.String message1; - - public RepositoryFault() { - } - - public RepositoryFault( - int errorCode, - java.lang.String message1) { - this.errorCode = errorCode; - this.message1 = message1; - } - - - /** - * Gets the errorCode value for this RepositoryFault. - * - * @return errorCode - */ - public int getErrorCode() { - return errorCode; - } - - - /** - * Sets the errorCode value for this RepositoryFault. - * - * @param errorCode - */ - public void setErrorCode(int errorCode) { - this.errorCode = errorCode; - } - - - /** - * Gets the message1 value for this RepositoryFault. - * - * @return message1 - */ - public java.lang.String getMessage1() { - return message1; - } - - - /** - * Sets the message1 value for this RepositoryFault. - * - * @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 RepositoryFault)) return false; - RepositoryFault other = (RepositoryFault) 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(RepositoryFault.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault")); - 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/repository/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/repository/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); - } -} diff --git a/source/generated/org/alfresco/example/webservice/repository/RepositoryService.java b/source/generated/org/alfresco/example/webservice/repository/RepositoryService.java deleted file mode 100644 index 72864c6cef..0000000000 --- a/source/generated/org/alfresco/example/webservice/repository/RepositoryService.java +++ /dev/null @@ -1,20 +0,0 @@ -/** - * RepositoryService.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.repository; - -public interface RepositoryService extends javax.xml.rpc.Service { - -/** - * Provides read and write operations against a repository. - */ - public java.lang.String getRepositoryServiceAddress(); - - public org.alfresco.example.webservice.repository.RepositoryServiceSoapPort getRepositoryService() throws javax.xml.rpc.ServiceException; - - public org.alfresco.example.webservice.repository.RepositoryServiceSoapPort getRepositoryService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException; -} diff --git a/source/generated/org/alfresco/example/webservice/repository/RepositoryServiceLocator.java b/source/generated/org/alfresco/example/webservice/repository/RepositoryServiceLocator.java deleted file mode 100644 index af6409909f..0000000000 --- a/source/generated/org/alfresco/example/webservice/repository/RepositoryServiceLocator.java +++ /dev/null @@ -1,146 +0,0 @@ -/** - * RepositoryServiceLocator.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.repository; - -public class RepositoryServiceLocator extends org.apache.axis.client.Service implements org.alfresco.example.webservice.repository.RepositoryService { - -/** - * Provides read and write operations against a repository. - */ - - public RepositoryServiceLocator() { - } - - - public RepositoryServiceLocator(org.apache.axis.EngineConfiguration config) { - super(config); - } - - public RepositoryServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException { - super(wsdlLoc, sName); - } - - // Use to get a proxy class for RepositoryService - private java.lang.String RepositoryService_address = "http://localhost:8080/alfresco/api/RepositoryService"; - - public java.lang.String getRepositoryServiceAddress() { - return RepositoryService_address; - } - - // The WSDD service name defaults to the port name. - private java.lang.String RepositoryServiceWSDDServiceName = "RepositoryService"; - - public java.lang.String getRepositoryServiceWSDDServiceName() { - return RepositoryServiceWSDDServiceName; - } - - public void setRepositoryServiceWSDDServiceName(java.lang.String name) { - RepositoryServiceWSDDServiceName = name; - } - - public org.alfresco.example.webservice.repository.RepositoryServiceSoapPort getRepositoryService() throws javax.xml.rpc.ServiceException { - java.net.URL endpoint; - try { - endpoint = new java.net.URL(RepositoryService_address); - } - catch (java.net.MalformedURLException e) { - throw new javax.xml.rpc.ServiceException(e); - } - return getRepositoryService(endpoint); - } - - public org.alfresco.example.webservice.repository.RepositoryServiceSoapPort getRepositoryService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { - try { - org.alfresco.example.webservice.repository.RepositoryServiceSoapBindingStub _stub = new org.alfresco.example.webservice.repository.RepositoryServiceSoapBindingStub(portAddress, this); - _stub.setPortName(getRepositoryServiceWSDDServiceName()); - return _stub; - } - catch (org.apache.axis.AxisFault e) { - return null; - } - } - - public void setRepositoryServiceEndpointAddress(java.lang.String address) { - RepositoryService_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.repository.RepositoryServiceSoapPort.class.isAssignableFrom(serviceEndpointInterface)) { - org.alfresco.example.webservice.repository.RepositoryServiceSoapBindingStub _stub = new org.alfresco.example.webservice.repository.RepositoryServiceSoapBindingStub(new java.net.URL(RepositoryService_address), this); - _stub.setPortName(getRepositoryServiceWSDDServiceName()); - 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 ("RepositoryService".equals(inputPortName)) { - return getRepositoryService(); - } - 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/repository/1.0", "RepositoryService"); - } - - 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/repository/1.0", "RepositoryService")); - } - 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 ("RepositoryService".equals(portName)) { - setRepositoryServiceEndpointAddress(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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/repository/RepositoryServiceSoapBindingStub.java b/source/generated/org/alfresco/example/webservice/repository/RepositoryServiceSoapBindingStub.java deleted file mode 100644 index 1976ef6bae..0000000000 --- a/source/generated/org/alfresco/example/webservice/repository/RepositoryServiceSoapBindingStub.java +++ /dev/null @@ -1,1063 +0,0 @@ -/** - * RepositoryServiceSoapBindingStub.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.repository; - -public class RepositoryServiceSoapBindingStub extends org.apache.axis.client.Stub implements org.alfresco.example.webservice.repository.RepositoryServiceSoapPort { - 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[9]; - _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("getStores"); - oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Store")); - oper.setReturnClass(org.alfresco.example.webservice.types.Store[].class); - oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "getStoresReturn")); - 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/repository/1.0", "RepositoryFault"), - "org.alfresco.example.webservice.repository.RepositoryFault", - new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"), - true - )); - _operations[0] = oper; - - oper = new org.apache.axis.description.OperationDesc(); - oper.setName("query"); - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "store"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Store"), org.alfresco.example.webservice.types.Store.class, false, false); - oper.addParameter(param); - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "query"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Query"), org.alfresco.example.webservice.types.Query.class, false, false); - oper.addParameter(param); - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "includeMetaData"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false); - oper.addParameter(param); - oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "QueryResult")); - oper.setReturnClass(org.alfresco.example.webservice.repository.QueryResult.class); - oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "queryReturn")); - 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/repository/1.0", "RepositoryFault"), - "org.alfresco.example.webservice.repository.RepositoryFault", - new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"), - true - )); - _operations[1] = oper; - - oper = new org.apache.axis.description.OperationDesc(); - oper.setName("queryChildren"); - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/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); - oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "QueryResult")); - oper.setReturnClass(org.alfresco.example.webservice.repository.QueryResult.class); - oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "queryReturn")); - 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/repository/1.0", "RepositoryFault"), - "org.alfresco.example.webservice.repository.RepositoryFault", - new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"), - true - )); - _operations[2] = oper; - - oper = new org.apache.axis.description.OperationDesc(); - oper.setName("queryParents"); - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/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); - oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "QueryResult")); - oper.setReturnClass(org.alfresco.example.webservice.repository.QueryResult.class); - oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "queryReturn")); - 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/repository/1.0", "RepositoryFault"), - "org.alfresco.example.webservice.repository.RepositoryFault", - new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"), - true - )); - _operations[3] = oper; - - oper = new org.apache.axis.description.OperationDesc(); - oper.setName("queryAssociated"); - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/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/repository/1.0", "association"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "Association"), org.alfresco.example.webservice.repository.Association[].class, false, false); - oper.addParameter(param); - oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "QueryResult")); - oper.setReturnClass(org.alfresco.example.webservice.repository.QueryResult.class); - oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "queryReturn")); - 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/repository/1.0", "RepositoryFault"), - "org.alfresco.example.webservice.repository.RepositoryFault", - new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"), - true - )); - _operations[4] = oper; - - oper = new org.apache.axis.description.OperationDesc(); - oper.setName("fetchMore"); - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "querySession"), 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/repository/1.0", "QueryResult")); - oper.setReturnClass(org.alfresco.example.webservice.repository.QueryResult.class); - oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "queryReturn")); - 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/repository/1.0", "RepositoryFault"), - "org.alfresco.example.webservice.repository.RepositoryFault", - new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"), - true - )); - _operations[5] = oper; - - oper = new org.apache.axis.description.OperationDesc(); - oper.setName("update"); - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "statements"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "CML"), org.alfresco.example.webservice.types.CML.class, false, false); - oper.addParameter(param); - oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "UpdateResult")); - oper.setReturnClass(org.alfresco.example.webservice.repository.UpdateResult[].class); - oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "updateReturn")); - 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/repository/1.0", "RepositoryFault"), - "org.alfresco.example.webservice.repository.RepositoryFault", - new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"), - true - )); - _operations[6] = oper; - - oper = new org.apache.axis.description.OperationDesc(); - oper.setName("describe"); - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/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); - oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "NodeDefinition")); - oper.setReturnClass(org.alfresco.example.webservice.types.NodeDefinition[].class); - oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "describeReturn")); - 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/repository/1.0", "RepositoryFault"), - "org.alfresco.example.webservice.repository.RepositoryFault", - new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"), - true - )); - _operations[7] = oper; - - oper = new org.apache.axis.description.OperationDesc(); - oper.setName("get"); - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "where"), 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); - oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Node")); - oper.setReturnClass(org.alfresco.example.webservice.types.Node[].class); - oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "getReturn")); - 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/repository/1.0", "RepositoryFault"), - "org.alfresco.example.webservice.repository.RepositoryFault", - new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"), - true - )); - _operations[8] = oper; - - } - - public RepositoryServiceSoapBindingStub() throws org.apache.axis.AxisFault { - this(null); - } - - public RepositoryServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { - this(service); - super.cachedEndpoint = endpointURL; - } - - public RepositoryServiceSoapBindingStub(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/cml/1.0", ">CML>addAspect"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.types.CMLAddAspect.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>addChild"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.types.CMLAddChild.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>copy"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.types.CMLCopy.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>create"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.types.CMLCreate.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>createAssociation"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.types.CMLCreateAssociation.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>delete"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.types.CMLDelete.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>move"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.types.CMLMove.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>removeAspect"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.types.CMLRemoveAspect.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>removeAssociation"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.types.CMLRemoveAssociation.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>removeChild"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.types.CMLRemoveChild.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>update"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.types.CMLUpdate.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "CML"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.types.CML.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/headers/1.0", "LocaleConfiguration"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.types.LocaleConfiguration.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/headers/1.0", "NamespaceConfiguration"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.types.NamespaceConfigurationInner[].class; - cachedSerClasses.add(cls); - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/headers/1.0", "NamespaceConfigurationInner"); - qName2 = new javax.xml.namespace.QName("http://www.alfresco.org/ws/headers/1.0", "mapping"); - cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2)); - cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory()); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/headers/1.0", "NamespaceConfigurationInner"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.types.NamespaceConfigurationInner.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/headers/1.0", "QueryConfiguration"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.types.QueryConfiguration.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>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/repository/1.0", "Association"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.repository.Association.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "AssociationDirectionEnum"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.repository.AssociationDirectionEnum.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(enumsf); - cachedDeserFactories.add(enumdf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "QueryResult"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.repository.QueryResult.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.repository.RepositoryFault.class; - cachedSerClasses.add(cls); - cachedSerFactories.add(beansf); - cachedDeserFactories.add(beandf); - - qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "UpdateResult"); - cachedSerQNames.add(qName); - cls = org.alfresco.example.webservice.repository.UpdateResult.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 a list of stores where content resources are held. - */ - public org.alfresco.example.webservice.types.Store[] getStores() throws java.rmi.RemoteException, org.alfresco.example.webservice.repository.RepositoryFault { - 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/repository/1.0/getStores"); - _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/repository/1.0", "getStores")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.types.Store[]) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.types.Store[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.Store[].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.repository.RepositoryFault) { - throw (org.alfresco.example.webservice.repository.RepositoryFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Executes a query against a store - */ - public org.alfresco.example.webservice.repository.QueryResult query(org.alfresco.example.webservice.types.Store store, org.alfresco.example.webservice.types.Query query, boolean includeMetaData) throws java.rmi.RemoteException, org.alfresco.example.webservice.repository.RepositoryFault { - 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/repository/1.0/query"); - _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/repository/1.0", "query")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {store, query, new java.lang.Boolean(includeMetaData)}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.repository.QueryResult) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.repository.QueryResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.repository.QueryResult.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.repository.RepositoryFault) { - throw (org.alfresco.example.webservice.repository.RepositoryFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Executes a query to retrieve the children of the specified - * resource. - */ - public org.alfresco.example.webservice.repository.QueryResult queryChildren(org.alfresco.example.webservice.types.Reference node) throws java.rmi.RemoteException, org.alfresco.example.webservice.repository.RepositoryFault { - 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/repository/1.0/queryChildren"); - _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/repository/1.0", "queryChildren")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {node}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.repository.QueryResult) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.repository.QueryResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.repository.QueryResult.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.repository.RepositoryFault) { - throw (org.alfresco.example.webservice.repository.RepositoryFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Executes a query to retrieve the parents of the specified resource. - */ - public org.alfresco.example.webservice.repository.QueryResult queryParents(org.alfresco.example.webservice.types.Reference node) throws java.rmi.RemoteException, org.alfresco.example.webservice.repository.RepositoryFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[3]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/repository/1.0/queryParents"); - _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/repository/1.0", "queryParents")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {node}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.repository.QueryResult) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.repository.QueryResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.repository.QueryResult.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.repository.RepositoryFault) { - throw (org.alfresco.example.webservice.repository.RepositoryFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Executes a query to retrieve associated resources of the specified - * resource. - */ - public org.alfresco.example.webservice.repository.QueryResult queryAssociated(org.alfresco.example.webservice.types.Reference node, org.alfresco.example.webservice.repository.Association[] association) throws java.rmi.RemoteException, org.alfresco.example.webservice.repository.RepositoryFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[4]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/repository/1.0/queryAssociated"); - _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/repository/1.0", "queryAssociated")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {node, association}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.repository.QueryResult) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.repository.QueryResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.repository.QueryResult.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.repository.RepositoryFault) { - throw (org.alfresco.example.webservice.repository.RepositoryFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Fetches the next batch of query results. - */ - public org.alfresco.example.webservice.repository.QueryResult fetchMore(java.lang.String querySession) throws java.rmi.RemoteException, org.alfresco.example.webservice.repository.RepositoryFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[5]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/repository/1.0/fetchMore"); - _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/repository/1.0", "fetchMore")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {querySession}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.repository.QueryResult) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.repository.QueryResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.repository.QueryResult.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.repository.RepositoryFault) { - throw (org.alfresco.example.webservice.repository.RepositoryFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Executes a CML script to manipulate the contents of a Repository - * store. - */ - public org.alfresco.example.webservice.repository.UpdateResult[] update(org.alfresco.example.webservice.types.CML statements) throws java.rmi.RemoteException, org.alfresco.example.webservice.repository.RepositoryFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[6]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/repository/1.0/update"); - _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/repository/1.0", "update")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {statements}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.repository.UpdateResult[]) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.repository.UpdateResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.repository.UpdateResult[].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.repository.RepositoryFault) { - throw (org.alfresco.example.webservice.repository.RepositoryFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Describes a content resource. - */ - public org.alfresco.example.webservice.types.NodeDefinition[] describe(org.alfresco.example.webservice.types.Predicate items) throws java.rmi.RemoteException, org.alfresco.example.webservice.repository.RepositoryFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[7]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/repository/1.0/describe"); - _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/repository/1.0", "describe")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {items}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.types.NodeDefinition[]) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.types.NodeDefinition[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.NodeDefinition[].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.repository.RepositoryFault) { - throw (org.alfresco.example.webservice.repository.RepositoryFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - - - /** - * Gets a resource from the respository. - */ - public org.alfresco.example.webservice.types.Node[] get(org.alfresco.example.webservice.types.Predicate where) throws java.rmi.RemoteException, org.alfresco.example.webservice.repository.RepositoryFault { - if (super.cachedEndpoint == null) { - throw new org.apache.axis.NoEndPointException(); - } - org.apache.axis.client.Call _call = createCall(); - _call.setOperation(_operations[8]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI("http://www.alfresco.org/ws/service/repository/1.0/get"); - _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/repository/1.0", "get")); - - setRequestHeaders(_call); - setAttachments(_call); - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {where}); - - if (_resp instanceof java.rmi.RemoteException) { - throw (java.rmi.RemoteException)_resp; - } - else { - extractAttachments(_call); - try { - return (org.alfresco.example.webservice.types.Node[]) _resp; - } catch (java.lang.Exception _exception) { - return (org.alfresco.example.webservice.types.Node[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.Node[].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.repository.RepositoryFault) { - throw (org.alfresco.example.webservice.repository.RepositoryFault) axisFaultException.detail; - } - } - throw axisFaultException; -} - } - -} diff --git a/source/generated/org/alfresco/example/webservice/repository/RepositoryServiceSoapPort.java b/source/generated/org/alfresco/example/webservice/repository/RepositoryServiceSoapPort.java deleted file mode 100644 index 776d6ef8cc..0000000000 --- a/source/generated/org/alfresco/example/webservice/repository/RepositoryServiceSoapPort.java +++ /dev/null @@ -1,59 +0,0 @@ -/** - * RepositoryServiceSoapPort.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.repository; - -public interface RepositoryServiceSoapPort extends java.rmi.Remote { - - /** - * Retrieves a list of stores where content resources are held. - */ - public org.alfresco.example.webservice.types.Store[] getStores() throws java.rmi.RemoteException, org.alfresco.example.webservice.repository.RepositoryFault; - - /** - * Executes a query against a store. - */ - public org.alfresco.example.webservice.repository.QueryResult query(org.alfresco.example.webservice.types.Store store, org.alfresco.example.webservice.types.Query query, boolean includeMetaData) throws java.rmi.RemoteException, org.alfresco.example.webservice.repository.RepositoryFault; - - /** - * Executes a query to retrieve the children of the specified - * resource. - */ - public org.alfresco.example.webservice.repository.QueryResult queryChildren(org.alfresco.example.webservice.types.Reference node) throws java.rmi.RemoteException, org.alfresco.example.webservice.repository.RepositoryFault; - - /** - * Executes a query to retrieve the parents of the specified resource. - */ - public org.alfresco.example.webservice.repository.QueryResult queryParents(org.alfresco.example.webservice.types.Reference node) throws java.rmi.RemoteException, org.alfresco.example.webservice.repository.RepositoryFault; - - /** - * Executes a query to retrieve associated resources of the specified - * resource. - */ - public org.alfresco.example.webservice.repository.QueryResult queryAssociated(org.alfresco.example.webservice.types.Reference node, org.alfresco.example.webservice.repository.Association[] association) throws java.rmi.RemoteException, org.alfresco.example.webservice.repository.RepositoryFault; - - /** - * Fetches the next batch of query results. - */ - public org.alfresco.example.webservice.repository.QueryResult fetchMore(java.lang.String querySession) throws java.rmi.RemoteException, org.alfresco.example.webservice.repository.RepositoryFault; - - /** - * Executes a CML script to manipulate the contents of a Repository - * store. - */ - public org.alfresco.example.webservice.repository.UpdateResult[] update(org.alfresco.example.webservice.types.CML statements) throws java.rmi.RemoteException, org.alfresco.example.webservice.repository.RepositoryFault; - - /** - * Describes a content resource. - */ - public org.alfresco.example.webservice.types.NodeDefinition[] describe(org.alfresco.example.webservice.types.Predicate items) throws java.rmi.RemoteException, org.alfresco.example.webservice.repository.RepositoryFault; - - /** - * Gets a resource from the repository. - */ - public org.alfresco.example.webservice.types.Node[] get(org.alfresco.example.webservice.types.Predicate where) throws java.rmi.RemoteException, org.alfresco.example.webservice.repository.RepositoryFault; -} diff --git a/source/generated/org/alfresco/example/webservice/repository/UpdateResult.java b/source/generated/org/alfresco/example/webservice/repository/UpdateResult.java deleted file mode 100644 index 8683693298..0000000000 --- a/source/generated/org/alfresco/example/webservice/repository/UpdateResult.java +++ /dev/null @@ -1,224 +0,0 @@ -/** - * UpdateResult.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.repository; - -public class UpdateResult implements java.io.Serializable { - private java.lang.String statement; - private org.alfresco.example.webservice.types.ResultSet updateCount; - private org.alfresco.example.webservice.types.Reference source; - private org.alfresco.example.webservice.types.Reference destination; - - public UpdateResult() { - } - - public UpdateResult( - java.lang.String statement, - org.alfresco.example.webservice.types.ResultSet updateCount, - org.alfresco.example.webservice.types.Reference source, - org.alfresco.example.webservice.types.Reference destination) { - this.statement = statement; - this.updateCount = updateCount; - this.source = source; - this.destination = destination; - } - - - /** - * Gets the statement value for this UpdateResult. - * - * @return statement - */ - public java.lang.String getStatement() { - return statement; - } - - - /** - * Sets the statement value for this UpdateResult. - * - * @param statement - */ - public void setStatement(java.lang.String statement) { - this.statement = statement; - } - - - /** - * Gets the updateCount value for this UpdateResult. - * - * @return updateCount - */ - public org.alfresco.example.webservice.types.ResultSet getUpdateCount() { - return updateCount; - } - - - /** - * Sets the updateCount value for this UpdateResult. - * - * @param updateCount - */ - public void setUpdateCount(org.alfresco.example.webservice.types.ResultSet updateCount) { - this.updateCount = updateCount; - } - - - /** - * Gets the source value for this UpdateResult. - * - * @return source - */ - public org.alfresco.example.webservice.types.Reference getSource() { - return source; - } - - - /** - * Sets the source value for this UpdateResult. - * - * @param source - */ - public void setSource(org.alfresco.example.webservice.types.Reference source) { - this.source = source; - } - - - /** - * Gets the destination value for this UpdateResult. - * - * @return destination - */ - public org.alfresco.example.webservice.types.Reference getDestination() { - return destination; - } - - - /** - * Sets the destination value for this UpdateResult. - * - * @param destination - */ - public void setDestination(org.alfresco.example.webservice.types.Reference destination) { - this.destination = destination; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof UpdateResult)) return false; - UpdateResult other = (UpdateResult) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.statement==null && other.getStatement()==null) || - (this.statement!=null && - this.statement.equals(other.getStatement()))) && - ((this.updateCount==null && other.getUpdateCount()==null) || - (this.updateCount!=null && - this.updateCount.equals(other.getUpdateCount()))) && - ((this.source==null && other.getSource()==null) || - (this.source!=null && - this.source.equals(other.getSource()))) && - ((this.destination==null && other.getDestination()==null) || - (this.destination!=null && - this.destination.equals(other.getDestination()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getStatement() != null) { - _hashCode += getStatement().hashCode(); - } - if (getUpdateCount() != null) { - _hashCode += getUpdateCount().hashCode(); - } - if (getSource() != null) { - _hashCode += getSource().hashCode(); - } - if (getDestination() != null) { - _hashCode += getDestination().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(UpdateResult.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "UpdateResult")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("statement"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "statement")); - 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("updateCount"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "updateCount")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "ResultSet")); - elemField.setNillable(true); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("source"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "source")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Reference")); - elemField.setNillable(true); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("destination"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/repository/1.0", "destination")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Reference")); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/AssociationDefinition.java b/source/generated/org/alfresco/example/webservice/types/AssociationDefinition.java deleted file mode 100644 index 94233d38dd..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/AssociationDefinition.java +++ /dev/null @@ -1,329 +0,0 @@ -/** - * AssociationDefinition.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.types; - -public class AssociationDefinition implements java.io.Serializable { - private java.lang.String name; - private java.lang.String title; - private java.lang.String description; - private boolean isChild; - private org.alfresco.example.webservice.types.RoleDefinition sourceRole; - private org.alfresco.example.webservice.types.RoleDefinition targetRole; - private java.lang.String targetClass; - - public AssociationDefinition() { - } - - public AssociationDefinition( - java.lang.String name, - java.lang.String title, - java.lang.String description, - boolean isChild, - org.alfresco.example.webservice.types.RoleDefinition sourceRole, - org.alfresco.example.webservice.types.RoleDefinition targetRole, - java.lang.String targetClass) { - this.name = name; - this.title = title; - this.description = description; - this.isChild = isChild; - this.sourceRole = sourceRole; - this.targetRole = targetRole; - this.targetClass = targetClass; - } - - - /** - * Gets the name value for this AssociationDefinition. - * - * @return name - */ - public java.lang.String getName() { - return name; - } - - - /** - * Sets the name value for this AssociationDefinition. - * - * @param name - */ - public void setName(java.lang.String name) { - this.name = name; - } - - - /** - * Gets the title value for this AssociationDefinition. - * - * @return title - */ - public java.lang.String getTitle() { - return title; - } - - - /** - * Sets the title value for this AssociationDefinition. - * - * @param title - */ - public void setTitle(java.lang.String title) { - this.title = title; - } - - - /** - * Gets the description value for this AssociationDefinition. - * - * @return description - */ - public java.lang.String getDescription() { - return description; - } - - - /** - * Sets the description value for this AssociationDefinition. - * - * @param description - */ - public void setDescription(java.lang.String description) { - this.description = description; - } - - - /** - * Gets the isChild value for this AssociationDefinition. - * - * @return isChild - */ - public boolean isIsChild() { - return isChild; - } - - - /** - * Sets the isChild value for this AssociationDefinition. - * - * @param isChild - */ - public void setIsChild(boolean isChild) { - this.isChild = isChild; - } - - - /** - * Gets the sourceRole value for this AssociationDefinition. - * - * @return sourceRole - */ - public org.alfresco.example.webservice.types.RoleDefinition getSourceRole() { - return sourceRole; - } - - - /** - * Sets the sourceRole value for this AssociationDefinition. - * - * @param sourceRole - */ - public void setSourceRole(org.alfresco.example.webservice.types.RoleDefinition sourceRole) { - this.sourceRole = sourceRole; - } - - - /** - * Gets the targetRole value for this AssociationDefinition. - * - * @return targetRole - */ - public org.alfresco.example.webservice.types.RoleDefinition getTargetRole() { - return targetRole; - } - - - /** - * Sets the targetRole value for this AssociationDefinition. - * - * @param targetRole - */ - public void setTargetRole(org.alfresco.example.webservice.types.RoleDefinition targetRole) { - this.targetRole = targetRole; - } - - - /** - * Gets the targetClass value for this AssociationDefinition. - * - * @return targetClass - */ - public java.lang.String getTargetClass() { - return targetClass; - } - - - /** - * Sets the targetClass value for this AssociationDefinition. - * - * @param targetClass - */ - public void setTargetClass(java.lang.String targetClass) { - this.targetClass = targetClass; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof AssociationDefinition)) return false; - AssociationDefinition other = (AssociationDefinition) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.name==null && other.getName()==null) || - (this.name!=null && - this.name.equals(other.getName()))) && - ((this.title==null && other.getTitle()==null) || - (this.title!=null && - this.title.equals(other.getTitle()))) && - ((this.description==null && other.getDescription()==null) || - (this.description!=null && - this.description.equals(other.getDescription()))) && - this.isChild == other.isIsChild() && - ((this.sourceRole==null && other.getSourceRole()==null) || - (this.sourceRole!=null && - this.sourceRole.equals(other.getSourceRole()))) && - ((this.targetRole==null && other.getTargetRole()==null) || - (this.targetRole!=null && - this.targetRole.equals(other.getTargetRole()))) && - ((this.targetClass==null && other.getTargetClass()==null) || - (this.targetClass!=null && - this.targetClass.equals(other.getTargetClass()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getName() != null) { - _hashCode += getName().hashCode(); - } - if (getTitle() != null) { - _hashCode += getTitle().hashCode(); - } - if (getDescription() != null) { - _hashCode += getDescription().hashCode(); - } - _hashCode += (isIsChild() ? Boolean.TRUE : Boolean.FALSE).hashCode(); - if (getSourceRole() != null) { - _hashCode += getSourceRole().hashCode(); - } - if (getTargetRole() != null) { - _hashCode += getTargetRole().hashCode(); - } - if (getTargetClass() != null) { - _hashCode += getTargetClass().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(AssociationDefinition.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "AssociationDefinition")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("name"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "name")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("title"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "title")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("description"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "description")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("isChild"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "isChild")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("sourceRole"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "sourceRole")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "RoleDefinition")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("targetRole"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "targetRole")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "RoleDefinition")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("targetClass"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "targetClass")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/CML.java b/source/generated/org/alfresco/example/webservice/types/CML.java deleted file mode 100644 index 22bc086307..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/CML.java +++ /dev/null @@ -1,667 +0,0 @@ -/** - * CML.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.types; - -public class CML implements java.io.Serializable { - private org.alfresco.example.webservice.types.CMLCreate[] create; - private org.alfresco.example.webservice.types.CMLAddAspect[] addAspect; - private org.alfresco.example.webservice.types.CMLRemoveAspect[] removeAspect; - private org.alfresco.example.webservice.types.CMLUpdate[] update; - private org.alfresco.example.webservice.types.CMLDelete[] delete; - private org.alfresco.example.webservice.types.CMLMove[] move; - private org.alfresco.example.webservice.types.CMLCopy[] copy; - private org.alfresco.example.webservice.types.CMLAddChild[] addChild; - private org.alfresco.example.webservice.types.CMLRemoveChild[] removeChild; - private org.alfresco.example.webservice.types.CMLCreateAssociation[] createAssociation; - private org.alfresco.example.webservice.types.CMLRemoveAssociation[] removeAssociation; - - public CML() { - } - - public CML( - org.alfresco.example.webservice.types.CMLCreate[] create, - org.alfresco.example.webservice.types.CMLAddAspect[] addAspect, - org.alfresco.example.webservice.types.CMLRemoveAspect[] removeAspect, - org.alfresco.example.webservice.types.CMLUpdate[] update, - org.alfresco.example.webservice.types.CMLDelete[] delete, - org.alfresco.example.webservice.types.CMLMove[] move, - org.alfresco.example.webservice.types.CMLCopy[] copy, - org.alfresco.example.webservice.types.CMLAddChild[] addChild, - org.alfresco.example.webservice.types.CMLRemoveChild[] removeChild, - org.alfresco.example.webservice.types.CMLCreateAssociation[] createAssociation, - org.alfresco.example.webservice.types.CMLRemoveAssociation[] removeAssociation) { - this.create = create; - this.addAspect = addAspect; - this.removeAspect = removeAspect; - this.update = update; - this.delete = delete; - this.move = move; - this.copy = copy; - this.addChild = addChild; - this.removeChild = removeChild; - this.createAssociation = createAssociation; - this.removeAssociation = removeAssociation; - } - - - /** - * Gets the create value for this CML. - * - * @return create - */ - public org.alfresco.example.webservice.types.CMLCreate[] getCreate() { - return create; - } - - - /** - * Sets the create value for this CML. - * - * @param create - */ - public void setCreate(org.alfresco.example.webservice.types.CMLCreate[] create) { - this.create = create; - } - - public org.alfresco.example.webservice.types.CMLCreate getCreate(int i) { - return this.create[i]; - } - - public void setCreate(int i, org.alfresco.example.webservice.types.CMLCreate _value) { - this.create[i] = _value; - } - - - /** - * Gets the addAspect value for this CML. - * - * @return addAspect - */ - public org.alfresco.example.webservice.types.CMLAddAspect[] getAddAspect() { - return addAspect; - } - - - /** - * Sets the addAspect value for this CML. - * - * @param addAspect - */ - public void setAddAspect(org.alfresco.example.webservice.types.CMLAddAspect[] addAspect) { - this.addAspect = addAspect; - } - - public org.alfresco.example.webservice.types.CMLAddAspect getAddAspect(int i) { - return this.addAspect[i]; - } - - public void setAddAspect(int i, org.alfresco.example.webservice.types.CMLAddAspect _value) { - this.addAspect[i] = _value; - } - - - /** - * Gets the removeAspect value for this CML. - * - * @return removeAspect - */ - public org.alfresco.example.webservice.types.CMLRemoveAspect[] getRemoveAspect() { - return removeAspect; - } - - - /** - * Sets the removeAspect value for this CML. - * - * @param removeAspect - */ - public void setRemoveAspect(org.alfresco.example.webservice.types.CMLRemoveAspect[] removeAspect) { - this.removeAspect = removeAspect; - } - - public org.alfresco.example.webservice.types.CMLRemoveAspect getRemoveAspect(int i) { - return this.removeAspect[i]; - } - - public void setRemoveAspect(int i, org.alfresco.example.webservice.types.CMLRemoveAspect _value) { - this.removeAspect[i] = _value; - } - - - /** - * Gets the update value for this CML. - * - * @return update - */ - public org.alfresco.example.webservice.types.CMLUpdate[] getUpdate() { - return update; - } - - - /** - * Sets the update value for this CML. - * - * @param update - */ - public void setUpdate(org.alfresco.example.webservice.types.CMLUpdate[] update) { - this.update = update; - } - - public org.alfresco.example.webservice.types.CMLUpdate getUpdate(int i) { - return this.update[i]; - } - - public void setUpdate(int i, org.alfresco.example.webservice.types.CMLUpdate _value) { - this.update[i] = _value; - } - - - /** - * Gets the delete value for this CML. - * - * @return delete - */ - public org.alfresco.example.webservice.types.CMLDelete[] getDelete() { - return delete; - } - - - /** - * Sets the delete value for this CML. - * - * @param delete - */ - public void setDelete(org.alfresco.example.webservice.types.CMLDelete[] delete) { - this.delete = delete; - } - - public org.alfresco.example.webservice.types.CMLDelete getDelete(int i) { - return this.delete[i]; - } - - public void setDelete(int i, org.alfresco.example.webservice.types.CMLDelete _value) { - this.delete[i] = _value; - } - - - /** - * Gets the move value for this CML. - * - * @return move - */ - public org.alfresco.example.webservice.types.CMLMove[] getMove() { - return move; - } - - - /** - * Sets the move value for this CML. - * - * @param move - */ - public void setMove(org.alfresco.example.webservice.types.CMLMove[] move) { - this.move = move; - } - - public org.alfresco.example.webservice.types.CMLMove getMove(int i) { - return this.move[i]; - } - - public void setMove(int i, org.alfresco.example.webservice.types.CMLMove _value) { - this.move[i] = _value; - } - - - /** - * Gets the copy value for this CML. - * - * @return copy - */ - public org.alfresco.example.webservice.types.CMLCopy[] getCopy() { - return copy; - } - - - /** - * Sets the copy value for this CML. - * - * @param copy - */ - public void setCopy(org.alfresco.example.webservice.types.CMLCopy[] copy) { - this.copy = copy; - } - - public org.alfresco.example.webservice.types.CMLCopy getCopy(int i) { - return this.copy[i]; - } - - public void setCopy(int i, org.alfresco.example.webservice.types.CMLCopy _value) { - this.copy[i] = _value; - } - - - /** - * Gets the addChild value for this CML. - * - * @return addChild - */ - public org.alfresco.example.webservice.types.CMLAddChild[] getAddChild() { - return addChild; - } - - - /** - * Sets the addChild value for this CML. - * - * @param addChild - */ - public void setAddChild(org.alfresco.example.webservice.types.CMLAddChild[] addChild) { - this.addChild = addChild; - } - - public org.alfresco.example.webservice.types.CMLAddChild getAddChild(int i) { - return this.addChild[i]; - } - - public void setAddChild(int i, org.alfresco.example.webservice.types.CMLAddChild _value) { - this.addChild[i] = _value; - } - - - /** - * Gets the removeChild value for this CML. - * - * @return removeChild - */ - public org.alfresco.example.webservice.types.CMLRemoveChild[] getRemoveChild() { - return removeChild; - } - - - /** - * Sets the removeChild value for this CML. - * - * @param removeChild - */ - public void setRemoveChild(org.alfresco.example.webservice.types.CMLRemoveChild[] removeChild) { - this.removeChild = removeChild; - } - - public org.alfresco.example.webservice.types.CMLRemoveChild getRemoveChild(int i) { - return this.removeChild[i]; - } - - public void setRemoveChild(int i, org.alfresco.example.webservice.types.CMLRemoveChild _value) { - this.removeChild[i] = _value; - } - - - /** - * Gets the createAssociation value for this CML. - * - * @return createAssociation - */ - public org.alfresco.example.webservice.types.CMLCreateAssociation[] getCreateAssociation() { - return createAssociation; - } - - - /** - * Sets the createAssociation value for this CML. - * - * @param createAssociation - */ - public void setCreateAssociation(org.alfresco.example.webservice.types.CMLCreateAssociation[] createAssociation) { - this.createAssociation = createAssociation; - } - - public org.alfresco.example.webservice.types.CMLCreateAssociation getCreateAssociation(int i) { - return this.createAssociation[i]; - } - - public void setCreateAssociation(int i, org.alfresco.example.webservice.types.CMLCreateAssociation _value) { - this.createAssociation[i] = _value; - } - - - /** - * Gets the removeAssociation value for this CML. - * - * @return removeAssociation - */ - public org.alfresco.example.webservice.types.CMLRemoveAssociation[] getRemoveAssociation() { - return removeAssociation; - } - - - /** - * Sets the removeAssociation value for this CML. - * - * @param removeAssociation - */ - public void setRemoveAssociation(org.alfresco.example.webservice.types.CMLRemoveAssociation[] removeAssociation) { - this.removeAssociation = removeAssociation; - } - - public org.alfresco.example.webservice.types.CMLRemoveAssociation getRemoveAssociation(int i) { - return this.removeAssociation[i]; - } - - public void setRemoveAssociation(int i, org.alfresco.example.webservice.types.CMLRemoveAssociation _value) { - this.removeAssociation[i] = _value; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof CML)) return false; - CML other = (CML) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.create==null && other.getCreate()==null) || - (this.create!=null && - java.util.Arrays.equals(this.create, other.getCreate()))) && - ((this.addAspect==null && other.getAddAspect()==null) || - (this.addAspect!=null && - java.util.Arrays.equals(this.addAspect, other.getAddAspect()))) && - ((this.removeAspect==null && other.getRemoveAspect()==null) || - (this.removeAspect!=null && - java.util.Arrays.equals(this.removeAspect, other.getRemoveAspect()))) && - ((this.update==null && other.getUpdate()==null) || - (this.update!=null && - java.util.Arrays.equals(this.update, other.getUpdate()))) && - ((this.delete==null && other.getDelete()==null) || - (this.delete!=null && - java.util.Arrays.equals(this.delete, other.getDelete()))) && - ((this.move==null && other.getMove()==null) || - (this.move!=null && - java.util.Arrays.equals(this.move, other.getMove()))) && - ((this.copy==null && other.getCopy()==null) || - (this.copy!=null && - java.util.Arrays.equals(this.copy, other.getCopy()))) && - ((this.addChild==null && other.getAddChild()==null) || - (this.addChild!=null && - java.util.Arrays.equals(this.addChild, other.getAddChild()))) && - ((this.removeChild==null && other.getRemoveChild()==null) || - (this.removeChild!=null && - java.util.Arrays.equals(this.removeChild, other.getRemoveChild()))) && - ((this.createAssociation==null && other.getCreateAssociation()==null) || - (this.createAssociation!=null && - java.util.Arrays.equals(this.createAssociation, other.getCreateAssociation()))) && - ((this.removeAssociation==null && other.getRemoveAssociation()==null) || - (this.removeAssociation!=null && - java.util.Arrays.equals(this.removeAssociation, other.getRemoveAssociation()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getCreate() != null) { - for (int i=0; - iCML>create")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("addAspect"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "addAspect")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>addAspect")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("removeAspect"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "removeAspect")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>removeAspect")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("update"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "update")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>update")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("delete"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "delete")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>delete")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("move"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "move")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>move")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("copy"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "copy")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>copy")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("addChild"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "addChild")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>addChild")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("removeChild"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "removeChild")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>removeChild")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("createAssociation"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "createAssociation")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>createAssociation")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("removeAssociation"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "removeAssociation")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>removeAssociation")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - elemField.setMaxOccursUnbounded(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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/CMLAddAspect.java b/source/generated/org/alfresco/example/webservice/types/CMLAddAspect.java deleted file mode 100644 index cd17d56934..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/CMLAddAspect.java +++ /dev/null @@ -1,244 +0,0 @@ -/** - * CMLAddAspect.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.types; - -public class CMLAddAspect implements java.io.Serializable { - private java.lang.String aspect; - private org.alfresco.example.webservice.types.NamedValue[] property; - private org.alfresco.example.webservice.types.Predicate where; - private java.lang.String where_id; - - public CMLAddAspect() { - } - - public CMLAddAspect( - java.lang.String aspect, - org.alfresco.example.webservice.types.NamedValue[] property, - org.alfresco.example.webservice.types.Predicate where, - java.lang.String where_id) { - this.aspect = aspect; - this.property = property; - this.where = where; - this.where_id = where_id; - } - - - /** - * Gets the aspect value for this CMLAddAspect. - * - * @return aspect - */ - public java.lang.String getAspect() { - return aspect; - } - - - /** - * Sets the aspect value for this CMLAddAspect. - * - * @param aspect - */ - public void setAspect(java.lang.String aspect) { - this.aspect = aspect; - } - - - /** - * Gets the property value for this CMLAddAspect. - * - * @return property - */ - public org.alfresco.example.webservice.types.NamedValue[] getProperty() { - return property; - } - - - /** - * Sets the property value for this CMLAddAspect. - * - * @param property - */ - public void setProperty(org.alfresco.example.webservice.types.NamedValue[] property) { - this.property = property; - } - - public org.alfresco.example.webservice.types.NamedValue getProperty(int i) { - return this.property[i]; - } - - public void setProperty(int i, org.alfresco.example.webservice.types.NamedValue _value) { - this.property[i] = _value; - } - - - /** - * Gets the where value for this CMLAddAspect. - * - * @return where - */ - public org.alfresco.example.webservice.types.Predicate getWhere() { - return where; - } - - - /** - * Sets the where value for this CMLAddAspect. - * - * @param where - */ - public void setWhere(org.alfresco.example.webservice.types.Predicate where) { - this.where = where; - } - - - /** - * Gets the where_id value for this CMLAddAspect. - * - * @return where_id - */ - public java.lang.String getWhere_id() { - return where_id; - } - - - /** - * Sets the where_id value for this CMLAddAspect. - * - * @param where_id - */ - public void setWhere_id(java.lang.String where_id) { - this.where_id = where_id; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof CMLAddAspect)) return false; - CMLAddAspect other = (CMLAddAspect) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.aspect==null && other.getAspect()==null) || - (this.aspect!=null && - this.aspect.equals(other.getAspect()))) && - ((this.property==null && other.getProperty()==null) || - (this.property!=null && - java.util.Arrays.equals(this.property, other.getProperty()))) && - ((this.where==null && other.getWhere()==null) || - (this.where!=null && - this.where.equals(other.getWhere()))) && - ((this.where_id==null && other.getWhere_id()==null) || - (this.where_id!=null && - this.where_id.equals(other.getWhere_id()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getAspect() != null) { - _hashCode += getAspect().hashCode(); - } - if (getProperty() != null) { - for (int i=0; - iCML>addAspect")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("aspect"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "aspect")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - 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/cml/1.0", "property")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "NamedValue")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("where"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "where")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Predicate")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("where_id"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "where_id")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/CMLAddChild.java b/source/generated/org/alfresco/example/webservice/types/CMLAddChild.java deleted file mode 100644 index 7f4b992c87..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/CMLAddChild.java +++ /dev/null @@ -1,299 +0,0 @@ -/** - * CMLAddChild.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.types; - -public class CMLAddChild implements java.io.Serializable { - private org.alfresco.example.webservice.types.ParentReference to; - private java.lang.String to_id; - private java.lang.String associationType; - private java.lang.String childName; - private org.alfresco.example.webservice.types.Predicate where; - private java.lang.String where_id; - - public CMLAddChild() { - } - - public CMLAddChild( - org.alfresco.example.webservice.types.ParentReference to, - java.lang.String to_id, - java.lang.String associationType, - java.lang.String childName, - org.alfresco.example.webservice.types.Predicate where, - java.lang.String where_id) { - this.to = to; - this.to_id = to_id; - this.associationType = associationType; - this.childName = childName; - this.where = where; - this.where_id = where_id; - } - - - /** - * Gets the to value for this CMLAddChild. - * - * @return to - */ - public org.alfresco.example.webservice.types.ParentReference getTo() { - return to; - } - - - /** - * Sets the to value for this CMLAddChild. - * - * @param to - */ - public void setTo(org.alfresco.example.webservice.types.ParentReference to) { - this.to = to; - } - - - /** - * Gets the to_id value for this CMLAddChild. - * - * @return to_id - */ - public java.lang.String getTo_id() { - return to_id; - } - - - /** - * Sets the to_id value for this CMLAddChild. - * - * @param to_id - */ - public void setTo_id(java.lang.String to_id) { - this.to_id = to_id; - } - - - /** - * Gets the associationType value for this CMLAddChild. - * - * @return associationType - */ - public java.lang.String getAssociationType() { - return associationType; - } - - - /** - * Sets the associationType value for this CMLAddChild. - * - * @param associationType - */ - public void setAssociationType(java.lang.String associationType) { - this.associationType = associationType; - } - - - /** - * Gets the childName value for this CMLAddChild. - * - * @return childName - */ - public java.lang.String getChildName() { - return childName; - } - - - /** - * Sets the childName value for this CMLAddChild. - * - * @param childName - */ - public void setChildName(java.lang.String childName) { - this.childName = childName; - } - - - /** - * Gets the where value for this CMLAddChild. - * - * @return where - */ - public org.alfresco.example.webservice.types.Predicate getWhere() { - return where; - } - - - /** - * Sets the where value for this CMLAddChild. - * - * @param where - */ - public void setWhere(org.alfresco.example.webservice.types.Predicate where) { - this.where = where; - } - - - /** - * Gets the where_id value for this CMLAddChild. - * - * @return where_id - */ - public java.lang.String getWhere_id() { - return where_id; - } - - - /** - * Sets the where_id value for this CMLAddChild. - * - * @param where_id - */ - public void setWhere_id(java.lang.String where_id) { - this.where_id = where_id; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof CMLAddChild)) return false; - CMLAddChild other = (CMLAddChild) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.to==null && other.getTo()==null) || - (this.to!=null && - this.to.equals(other.getTo()))) && - ((this.to_id==null && other.getTo_id()==null) || - (this.to_id!=null && - this.to_id.equals(other.getTo_id()))) && - ((this.associationType==null && other.getAssociationType()==null) || - (this.associationType!=null && - this.associationType.equals(other.getAssociationType()))) && - ((this.childName==null && other.getChildName()==null) || - (this.childName!=null && - this.childName.equals(other.getChildName()))) && - ((this.where==null && other.getWhere()==null) || - (this.where!=null && - this.where.equals(other.getWhere()))) && - ((this.where_id==null && other.getWhere_id()==null) || - (this.where_id!=null && - this.where_id.equals(other.getWhere_id()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getTo() != null) { - _hashCode += getTo().hashCode(); - } - if (getTo_id() != null) { - _hashCode += getTo_id().hashCode(); - } - if (getAssociationType() != null) { - _hashCode += getAssociationType().hashCode(); - } - if (getChildName() != null) { - _hashCode += getChildName().hashCode(); - } - if (getWhere() != null) { - _hashCode += getWhere().hashCode(); - } - if (getWhere_id() != null) { - _hashCode += getWhere_id().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(CMLAddChild.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>addChild")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("to"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "to")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "ParentReference")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("to_id"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "to_id")); - 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("associationType"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "associationType")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("childName"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "childName")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("where"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "where")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Predicate")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("where_id"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "where_id")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/CMLCopy.java b/source/generated/org/alfresco/example/webservice/types/CMLCopy.java deleted file mode 100644 index 795f2f7b95..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/CMLCopy.java +++ /dev/null @@ -1,335 +0,0 @@ -/** - * CMLCopy.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.types; - -public class CMLCopy implements java.io.Serializable { - private org.alfresco.example.webservice.types.ParentReference to; - private java.lang.String to_id; - private java.lang.String associationType; - private java.lang.String childName; - private org.alfresco.example.webservice.types.Predicate where; - private java.lang.String where_id; - private java.lang.Boolean children; - - public CMLCopy() { - } - - public CMLCopy( - org.alfresco.example.webservice.types.ParentReference to, - java.lang.String to_id, - java.lang.String associationType, - java.lang.String childName, - org.alfresco.example.webservice.types.Predicate where, - java.lang.String where_id, - java.lang.Boolean children) { - this.to = to; - this.to_id = to_id; - this.associationType = associationType; - this.childName = childName; - this.where = where; - this.where_id = where_id; - this.children = children; - } - - - /** - * Gets the to value for this CMLCopy. - * - * @return to - */ - public org.alfresco.example.webservice.types.ParentReference getTo() { - return to; - } - - - /** - * Sets the to value for this CMLCopy. - * - * @param to - */ - public void setTo(org.alfresco.example.webservice.types.ParentReference to) { - this.to = to; - } - - - /** - * Gets the to_id value for this CMLCopy. - * - * @return to_id - */ - public java.lang.String getTo_id() { - return to_id; - } - - - /** - * Sets the to_id value for this CMLCopy. - * - * @param to_id - */ - public void setTo_id(java.lang.String to_id) { - this.to_id = to_id; - } - - - /** - * Gets the associationType value for this CMLCopy. - * - * @return associationType - */ - public java.lang.String getAssociationType() { - return associationType; - } - - - /** - * Sets the associationType value for this CMLCopy. - * - * @param associationType - */ - public void setAssociationType(java.lang.String associationType) { - this.associationType = associationType; - } - - - /** - * Gets the childName value for this CMLCopy. - * - * @return childName - */ - public java.lang.String getChildName() { - return childName; - } - - - /** - * Sets the childName value for this CMLCopy. - * - * @param childName - */ - public void setChildName(java.lang.String childName) { - this.childName = childName; - } - - - /** - * Gets the where value for this CMLCopy. - * - * @return where - */ - public org.alfresco.example.webservice.types.Predicate getWhere() { - return where; - } - - - /** - * Sets the where value for this CMLCopy. - * - * @param where - */ - public void setWhere(org.alfresco.example.webservice.types.Predicate where) { - this.where = where; - } - - - /** - * Gets the where_id value for this CMLCopy. - * - * @return where_id - */ - public java.lang.String getWhere_id() { - return where_id; - } - - - /** - * Sets the where_id value for this CMLCopy. - * - * @param where_id - */ - public void setWhere_id(java.lang.String where_id) { - this.where_id = where_id; - } - - - /** - * Gets the children value for this CMLCopy. - * - * @return children - */ - public java.lang.Boolean getChildren() { - return children; - } - - - /** - * Sets the children value for this CMLCopy. - * - * @param children - */ - public void setChildren(java.lang.Boolean children) { - this.children = children; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof CMLCopy)) return false; - CMLCopy other = (CMLCopy) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.to==null && other.getTo()==null) || - (this.to!=null && - this.to.equals(other.getTo()))) && - ((this.to_id==null && other.getTo_id()==null) || - (this.to_id!=null && - this.to_id.equals(other.getTo_id()))) && - ((this.associationType==null && other.getAssociationType()==null) || - (this.associationType!=null && - this.associationType.equals(other.getAssociationType()))) && - ((this.childName==null && other.getChildName()==null) || - (this.childName!=null && - this.childName.equals(other.getChildName()))) && - ((this.where==null && other.getWhere()==null) || - (this.where!=null && - this.where.equals(other.getWhere()))) && - ((this.where_id==null && other.getWhere_id()==null) || - (this.where_id!=null && - this.where_id.equals(other.getWhere_id()))) && - ((this.children==null && other.getChildren()==null) || - (this.children!=null && - this.children.equals(other.getChildren()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getTo() != null) { - _hashCode += getTo().hashCode(); - } - if (getTo_id() != null) { - _hashCode += getTo_id().hashCode(); - } - if (getAssociationType() != null) { - _hashCode += getAssociationType().hashCode(); - } - if (getChildName() != null) { - _hashCode += getChildName().hashCode(); - } - if (getWhere() != null) { - _hashCode += getWhere().hashCode(); - } - if (getWhere_id() != null) { - _hashCode += getWhere_id().hashCode(); - } - if (getChildren() != null) { - _hashCode += getChildren().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(CMLCopy.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>copy")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("to"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "to")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "ParentReference")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("to_id"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "to_id")); - 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("associationType"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "associationType")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("childName"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "childName")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("where"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "where")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Predicate")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("where_id"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "where_id")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("children"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "children")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean")); - elemField.setMinOccurs(0); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/CMLCreate.java b/source/generated/org/alfresco/example/webservice/types/CMLCreate.java deleted file mode 100644 index 9db8c1e2ea..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/CMLCreate.java +++ /dev/null @@ -1,244 +0,0 @@ -/** - * CMLCreate.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.types; - -public class CMLCreate implements java.io.Serializable { - private java.lang.String id; - private org.alfresco.example.webservice.types.ParentReference parent; - private java.lang.String type; - private org.alfresco.example.webservice.types.NamedValue[] property; - - public CMLCreate() { - } - - public CMLCreate( - java.lang.String id, - org.alfresco.example.webservice.types.ParentReference parent, - java.lang.String type, - org.alfresco.example.webservice.types.NamedValue[] property) { - this.id = id; - this.parent = parent; - this.type = type; - this.property = property; - } - - - /** - * Gets the id value for this CMLCreate. - * - * @return id - */ - public java.lang.String getId() { - return id; - } - - - /** - * Sets the id value for this CMLCreate. - * - * @param id - */ - public void setId(java.lang.String id) { - this.id = id; - } - - - /** - * Gets the parent value for this CMLCreate. - * - * @return parent - */ - public org.alfresco.example.webservice.types.ParentReference getParent() { - return parent; - } - - - /** - * Sets the parent value for this CMLCreate. - * - * @param parent - */ - public void setParent(org.alfresco.example.webservice.types.ParentReference parent) { - this.parent = parent; - } - - - /** - * Gets the type value for this CMLCreate. - * - * @return type - */ - public java.lang.String getType() { - return type; - } - - - /** - * Sets the type value for this CMLCreate. - * - * @param type - */ - public void setType(java.lang.String type) { - this.type = type; - } - - - /** - * Gets the property value for this CMLCreate. - * - * @return property - */ - public org.alfresco.example.webservice.types.NamedValue[] getProperty() { - return property; - } - - - /** - * Sets the property value for this CMLCreate. - * - * @param property - */ - public void setProperty(org.alfresco.example.webservice.types.NamedValue[] property) { - this.property = property; - } - - public org.alfresco.example.webservice.types.NamedValue getProperty(int i) { - return this.property[i]; - } - - public void setProperty(int i, org.alfresco.example.webservice.types.NamedValue _value) { - this.property[i] = _value; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof CMLCreate)) return false; - CMLCreate other = (CMLCreate) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.id==null && other.getId()==null) || - (this.id!=null && - this.id.equals(other.getId()))) && - ((this.parent==null && other.getParent()==null) || - (this.parent!=null && - this.parent.equals(other.getParent()))) && - ((this.type==null && other.getType()==null) || - (this.type!=null && - this.type.equals(other.getType()))) && - ((this.property==null && other.getProperty()==null) || - (this.property!=null && - java.util.Arrays.equals(this.property, other.getProperty()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getId() != null) { - _hashCode += getId().hashCode(); - } - if (getParent() != null) { - _hashCode += getParent().hashCode(); - } - if (getType() != null) { - _hashCode += getType().hashCode(); - } - if (getProperty() != null) { - for (int i=0; - iCML>create")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("id"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "id")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("parent"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "parent")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "ParentReference")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("type"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "type")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - elemField.setMinOccurs(0); - 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/cml/1.0", "property")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "NamedValue")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - elemField.setMaxOccursUnbounded(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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/CMLCreateAssociation.java b/source/generated/org/alfresco/example/webservice/types/CMLCreateAssociation.java deleted file mode 100644 index 31052f9d17..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/CMLCreateAssociation.java +++ /dev/null @@ -1,263 +0,0 @@ -/** - * CMLCreateAssociation.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.types; - -public class CMLCreateAssociation implements java.io.Serializable { - private org.alfresco.example.webservice.types.Predicate from; - private java.lang.String from_id; - private org.alfresco.example.webservice.types.Predicate to; - private java.lang.String to_id; - private java.lang.String association; - - public CMLCreateAssociation() { - } - - public CMLCreateAssociation( - org.alfresco.example.webservice.types.Predicate from, - java.lang.String from_id, - org.alfresco.example.webservice.types.Predicate to, - java.lang.String to_id, - java.lang.String association) { - this.from = from; - this.from_id = from_id; - this.to = to; - this.to_id = to_id; - this.association = association; - } - - - /** - * Gets the from value for this CMLCreateAssociation. - * - * @return from - */ - public org.alfresco.example.webservice.types.Predicate getFrom() { - return from; - } - - - /** - * Sets the from value for this CMLCreateAssociation. - * - * @param from - */ - public void setFrom(org.alfresco.example.webservice.types.Predicate from) { - this.from = from; - } - - - /** - * Gets the from_id value for this CMLCreateAssociation. - * - * @return from_id - */ - public java.lang.String getFrom_id() { - return from_id; - } - - - /** - * Sets the from_id value for this CMLCreateAssociation. - * - * @param from_id - */ - public void setFrom_id(java.lang.String from_id) { - this.from_id = from_id; - } - - - /** - * Gets the to value for this CMLCreateAssociation. - * - * @return to - */ - public org.alfresco.example.webservice.types.Predicate getTo() { - return to; - } - - - /** - * Sets the to value for this CMLCreateAssociation. - * - * @param to - */ - public void setTo(org.alfresco.example.webservice.types.Predicate to) { - this.to = to; - } - - - /** - * Gets the to_id value for this CMLCreateAssociation. - * - * @return to_id - */ - public java.lang.String getTo_id() { - return to_id; - } - - - /** - * Sets the to_id value for this CMLCreateAssociation. - * - * @param to_id - */ - public void setTo_id(java.lang.String to_id) { - this.to_id = to_id; - } - - - /** - * Gets the association value for this CMLCreateAssociation. - * - * @return association - */ - public java.lang.String getAssociation() { - return association; - } - - - /** - * Sets the association value for this CMLCreateAssociation. - * - * @param association - */ - public void setAssociation(java.lang.String association) { - this.association = association; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof CMLCreateAssociation)) return false; - CMLCreateAssociation other = (CMLCreateAssociation) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.from==null && other.getFrom()==null) || - (this.from!=null && - this.from.equals(other.getFrom()))) && - ((this.from_id==null && other.getFrom_id()==null) || - (this.from_id!=null && - this.from_id.equals(other.getFrom_id()))) && - ((this.to==null && other.getTo()==null) || - (this.to!=null && - this.to.equals(other.getTo()))) && - ((this.to_id==null && other.getTo_id()==null) || - (this.to_id!=null && - this.to_id.equals(other.getTo_id()))) && - ((this.association==null && other.getAssociation()==null) || - (this.association!=null && - this.association.equals(other.getAssociation()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getFrom() != null) { - _hashCode += getFrom().hashCode(); - } - if (getFrom_id() != null) { - _hashCode += getFrom_id().hashCode(); - } - if (getTo() != null) { - _hashCode += getTo().hashCode(); - } - if (getTo_id() != null) { - _hashCode += getTo_id().hashCode(); - } - if (getAssociation() != null) { - _hashCode += getAssociation().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(CMLCreateAssociation.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>createAssociation")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("from"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "from")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Predicate")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("from_id"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "from_id")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("to"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "to")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Predicate")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("to_id"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "to_id")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("association"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "association")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/CMLDelete.java b/source/generated/org/alfresco/example/webservice/types/CMLDelete.java deleted file mode 100644 index c3254814d4..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/CMLDelete.java +++ /dev/null @@ -1,119 +0,0 @@ -/** - * CMLDelete.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.types; - -public class CMLDelete implements java.io.Serializable { - private org.alfresco.example.webservice.types.Predicate where; - - public CMLDelete() { - } - - public CMLDelete( - org.alfresco.example.webservice.types.Predicate where) { - this.where = where; - } - - - /** - * Gets the where value for this CMLDelete. - * - * @return where - */ - public org.alfresco.example.webservice.types.Predicate getWhere() { - return where; - } - - - /** - * Sets the where value for this CMLDelete. - * - * @param where - */ - public void setWhere(org.alfresco.example.webservice.types.Predicate where) { - this.where = where; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof CMLDelete)) return false; - CMLDelete other = (CMLDelete) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.where==null && other.getWhere()==null) || - (this.where!=null && - this.where.equals(other.getWhere()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getWhere() != null) { - _hashCode += getWhere().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(CMLDelete.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>delete")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("where"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "where")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Predicate")); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/CMLMove.java b/source/generated/org/alfresco/example/webservice/types/CMLMove.java deleted file mode 100644 index f06d8b94ee..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/CMLMove.java +++ /dev/null @@ -1,299 +0,0 @@ -/** - * CMLMove.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.types; - -public class CMLMove implements java.io.Serializable { - private org.alfresco.example.webservice.types.ParentReference to; - private java.lang.String to_id; - private java.lang.String associationType; - private java.lang.String childName; - private org.alfresco.example.webservice.types.Predicate where; - private java.lang.String where_id; - - public CMLMove() { - } - - public CMLMove( - org.alfresco.example.webservice.types.ParentReference to, - java.lang.String to_id, - java.lang.String associationType, - java.lang.String childName, - org.alfresco.example.webservice.types.Predicate where, - java.lang.String where_id) { - this.to = to; - this.to_id = to_id; - this.associationType = associationType; - this.childName = childName; - this.where = where; - this.where_id = where_id; - } - - - /** - * Gets the to value for this CMLMove. - * - * @return to - */ - public org.alfresco.example.webservice.types.ParentReference getTo() { - return to; - } - - - /** - * Sets the to value for this CMLMove. - * - * @param to - */ - public void setTo(org.alfresco.example.webservice.types.ParentReference to) { - this.to = to; - } - - - /** - * Gets the to_id value for this CMLMove. - * - * @return to_id - */ - public java.lang.String getTo_id() { - return to_id; - } - - - /** - * Sets the to_id value for this CMLMove. - * - * @param to_id - */ - public void setTo_id(java.lang.String to_id) { - this.to_id = to_id; - } - - - /** - * Gets the associationType value for this CMLMove. - * - * @return associationType - */ - public java.lang.String getAssociationType() { - return associationType; - } - - - /** - * Sets the associationType value for this CMLMove. - * - * @param associationType - */ - public void setAssociationType(java.lang.String associationType) { - this.associationType = associationType; - } - - - /** - * Gets the childName value for this CMLMove. - * - * @return childName - */ - public java.lang.String getChildName() { - return childName; - } - - - /** - * Sets the childName value for this CMLMove. - * - * @param childName - */ - public void setChildName(java.lang.String childName) { - this.childName = childName; - } - - - /** - * Gets the where value for this CMLMove. - * - * @return where - */ - public org.alfresco.example.webservice.types.Predicate getWhere() { - return where; - } - - - /** - * Sets the where value for this CMLMove. - * - * @param where - */ - public void setWhere(org.alfresco.example.webservice.types.Predicate where) { - this.where = where; - } - - - /** - * Gets the where_id value for this CMLMove. - * - * @return where_id - */ - public java.lang.String getWhere_id() { - return where_id; - } - - - /** - * Sets the where_id value for this CMLMove. - * - * @param where_id - */ - public void setWhere_id(java.lang.String where_id) { - this.where_id = where_id; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof CMLMove)) return false; - CMLMove other = (CMLMove) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.to==null && other.getTo()==null) || - (this.to!=null && - this.to.equals(other.getTo()))) && - ((this.to_id==null && other.getTo_id()==null) || - (this.to_id!=null && - this.to_id.equals(other.getTo_id()))) && - ((this.associationType==null && other.getAssociationType()==null) || - (this.associationType!=null && - this.associationType.equals(other.getAssociationType()))) && - ((this.childName==null && other.getChildName()==null) || - (this.childName!=null && - this.childName.equals(other.getChildName()))) && - ((this.where==null && other.getWhere()==null) || - (this.where!=null && - this.where.equals(other.getWhere()))) && - ((this.where_id==null && other.getWhere_id()==null) || - (this.where_id!=null && - this.where_id.equals(other.getWhere_id()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getTo() != null) { - _hashCode += getTo().hashCode(); - } - if (getTo_id() != null) { - _hashCode += getTo_id().hashCode(); - } - if (getAssociationType() != null) { - _hashCode += getAssociationType().hashCode(); - } - if (getChildName() != null) { - _hashCode += getChildName().hashCode(); - } - if (getWhere() != null) { - _hashCode += getWhere().hashCode(); - } - if (getWhere_id() != null) { - _hashCode += getWhere_id().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(CMLMove.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>move")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("to"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "to")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "ParentReference")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("to_id"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "to_id")); - 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("associationType"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "associationType")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("childName"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "childName")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("where"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "where")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Predicate")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("where_id"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "where_id")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/CMLRemoveAspect.java b/source/generated/org/alfresco/example/webservice/types/CMLRemoveAspect.java deleted file mode 100644 index 39d5b4efdc..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/CMLRemoveAspect.java +++ /dev/null @@ -1,191 +0,0 @@ -/** - * CMLRemoveAspect.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.types; - -public class CMLRemoveAspect implements java.io.Serializable { - private java.lang.String aspect; - private org.alfresco.example.webservice.types.Predicate where; - private java.lang.String where_id; - - public CMLRemoveAspect() { - } - - public CMLRemoveAspect( - java.lang.String aspect, - org.alfresco.example.webservice.types.Predicate where, - java.lang.String where_id) { - this.aspect = aspect; - this.where = where; - this.where_id = where_id; - } - - - /** - * Gets the aspect value for this CMLRemoveAspect. - * - * @return aspect - */ - public java.lang.String getAspect() { - return aspect; - } - - - /** - * Sets the aspect value for this CMLRemoveAspect. - * - * @param aspect - */ - public void setAspect(java.lang.String aspect) { - this.aspect = aspect; - } - - - /** - * Gets the where value for this CMLRemoveAspect. - * - * @return where - */ - public org.alfresco.example.webservice.types.Predicate getWhere() { - return where; - } - - - /** - * Sets the where value for this CMLRemoveAspect. - * - * @param where - */ - public void setWhere(org.alfresco.example.webservice.types.Predicate where) { - this.where = where; - } - - - /** - * Gets the where_id value for this CMLRemoveAspect. - * - * @return where_id - */ - public java.lang.String getWhere_id() { - return where_id; - } - - - /** - * Sets the where_id value for this CMLRemoveAspect. - * - * @param where_id - */ - public void setWhere_id(java.lang.String where_id) { - this.where_id = where_id; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof CMLRemoveAspect)) return false; - CMLRemoveAspect other = (CMLRemoveAspect) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.aspect==null && other.getAspect()==null) || - (this.aspect!=null && - this.aspect.equals(other.getAspect()))) && - ((this.where==null && other.getWhere()==null) || - (this.where!=null && - this.where.equals(other.getWhere()))) && - ((this.where_id==null && other.getWhere_id()==null) || - (this.where_id!=null && - this.where_id.equals(other.getWhere_id()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getAspect() != null) { - _hashCode += getAspect().hashCode(); - } - if (getWhere() != null) { - _hashCode += getWhere().hashCode(); - } - if (getWhere_id() != null) { - _hashCode += getWhere_id().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(CMLRemoveAspect.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>removeAspect")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("aspect"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "aspect")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("where"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "where")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Predicate")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("where_id"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "where_id")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/CMLRemoveAssociation.java b/source/generated/org/alfresco/example/webservice/types/CMLRemoveAssociation.java deleted file mode 100644 index 8f66e08fa6..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/CMLRemoveAssociation.java +++ /dev/null @@ -1,263 +0,0 @@ -/** - * CMLRemoveAssociation.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.types; - -public class CMLRemoveAssociation implements java.io.Serializable { - private org.alfresco.example.webservice.types.Predicate from; - private java.lang.String from_id; - private org.alfresco.example.webservice.types.Predicate to; - private java.lang.String to_id; - private java.lang.String association; - - public CMLRemoveAssociation() { - } - - public CMLRemoveAssociation( - org.alfresco.example.webservice.types.Predicate from, - java.lang.String from_id, - org.alfresco.example.webservice.types.Predicate to, - java.lang.String to_id, - java.lang.String association) { - this.from = from; - this.from_id = from_id; - this.to = to; - this.to_id = to_id; - this.association = association; - } - - - /** - * Gets the from value for this CMLRemoveAssociation. - * - * @return from - */ - public org.alfresco.example.webservice.types.Predicate getFrom() { - return from; - } - - - /** - * Sets the from value for this CMLRemoveAssociation. - * - * @param from - */ - public void setFrom(org.alfresco.example.webservice.types.Predicate from) { - this.from = from; - } - - - /** - * Gets the from_id value for this CMLRemoveAssociation. - * - * @return from_id - */ - public java.lang.String getFrom_id() { - return from_id; - } - - - /** - * Sets the from_id value for this CMLRemoveAssociation. - * - * @param from_id - */ - public void setFrom_id(java.lang.String from_id) { - this.from_id = from_id; - } - - - /** - * Gets the to value for this CMLRemoveAssociation. - * - * @return to - */ - public org.alfresco.example.webservice.types.Predicate getTo() { - return to; - } - - - /** - * Sets the to value for this CMLRemoveAssociation. - * - * @param to - */ - public void setTo(org.alfresco.example.webservice.types.Predicate to) { - this.to = to; - } - - - /** - * Gets the to_id value for this CMLRemoveAssociation. - * - * @return to_id - */ - public java.lang.String getTo_id() { - return to_id; - } - - - /** - * Sets the to_id value for this CMLRemoveAssociation. - * - * @param to_id - */ - public void setTo_id(java.lang.String to_id) { - this.to_id = to_id; - } - - - /** - * Gets the association value for this CMLRemoveAssociation. - * - * @return association - */ - public java.lang.String getAssociation() { - return association; - } - - - /** - * Sets the association value for this CMLRemoveAssociation. - * - * @param association - */ - public void setAssociation(java.lang.String association) { - this.association = association; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof CMLRemoveAssociation)) return false; - CMLRemoveAssociation other = (CMLRemoveAssociation) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.from==null && other.getFrom()==null) || - (this.from!=null && - this.from.equals(other.getFrom()))) && - ((this.from_id==null && other.getFrom_id()==null) || - (this.from_id!=null && - this.from_id.equals(other.getFrom_id()))) && - ((this.to==null && other.getTo()==null) || - (this.to!=null && - this.to.equals(other.getTo()))) && - ((this.to_id==null && other.getTo_id()==null) || - (this.to_id!=null && - this.to_id.equals(other.getTo_id()))) && - ((this.association==null && other.getAssociation()==null) || - (this.association!=null && - this.association.equals(other.getAssociation()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getFrom() != null) { - _hashCode += getFrom().hashCode(); - } - if (getFrom_id() != null) { - _hashCode += getFrom_id().hashCode(); - } - if (getTo() != null) { - _hashCode += getTo().hashCode(); - } - if (getTo_id() != null) { - _hashCode += getTo_id().hashCode(); - } - if (getAssociation() != null) { - _hashCode += getAssociation().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(CMLRemoveAssociation.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>removeAssociation")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("from"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "from")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Predicate")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("from_id"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "from_id")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("to"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "to")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Predicate")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("to_id"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "to_id")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("association"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "association")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/CMLRemoveChild.java b/source/generated/org/alfresco/example/webservice/types/CMLRemoveChild.java deleted file mode 100644 index 4bfc1c47b1..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/CMLRemoveChild.java +++ /dev/null @@ -1,228 +0,0 @@ -/** - * CMLRemoveChild.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.types; - -public class CMLRemoveChild implements java.io.Serializable { - private org.alfresco.example.webservice.types.Reference from; - private java.lang.String from_id; - private org.alfresco.example.webservice.types.Predicate where; - private java.lang.String where_id; - - public CMLRemoveChild() { - } - - public CMLRemoveChild( - org.alfresco.example.webservice.types.Reference from, - java.lang.String from_id, - org.alfresco.example.webservice.types.Predicate where, - java.lang.String where_id) { - this.from = from; - this.from_id = from_id; - this.where = where; - this.where_id = where_id; - } - - - /** - * Gets the from value for this CMLRemoveChild. - * - * @return from - */ - public org.alfresco.example.webservice.types.Reference getFrom() { - return from; - } - - - /** - * Sets the from value for this CMLRemoveChild. - * - * @param from - */ - public void setFrom(org.alfresco.example.webservice.types.Reference from) { - this.from = from; - } - - - /** - * Gets the from_id value for this CMLRemoveChild. - * - * @return from_id - */ - public java.lang.String getFrom_id() { - return from_id; - } - - - /** - * Sets the from_id value for this CMLRemoveChild. - * - * @param from_id - */ - public void setFrom_id(java.lang.String from_id) { - this.from_id = from_id; - } - - - /** - * Gets the where value for this CMLRemoveChild. - * - * @return where - */ - public org.alfresco.example.webservice.types.Predicate getWhere() { - return where; - } - - - /** - * Sets the where value for this CMLRemoveChild. - * - * @param where - */ - public void setWhere(org.alfresco.example.webservice.types.Predicate where) { - this.where = where; - } - - - /** - * Gets the where_id value for this CMLRemoveChild. - * - * @return where_id - */ - public java.lang.String getWhere_id() { - return where_id; - } - - - /** - * Sets the where_id value for this CMLRemoveChild. - * - * @param where_id - */ - public void setWhere_id(java.lang.String where_id) { - this.where_id = where_id; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof CMLRemoveChild)) return false; - CMLRemoveChild other = (CMLRemoveChild) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.from==null && other.getFrom()==null) || - (this.from!=null && - this.from.equals(other.getFrom()))) && - ((this.from_id==null && other.getFrom_id()==null) || - (this.from_id!=null && - this.from_id.equals(other.getFrom_id()))) && - ((this.where==null && other.getWhere()==null) || - (this.where!=null && - this.where.equals(other.getWhere()))) && - ((this.where_id==null && other.getWhere_id()==null) || - (this.where_id!=null && - this.where_id.equals(other.getWhere_id()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getFrom() != null) { - _hashCode += getFrom().hashCode(); - } - if (getFrom_id() != null) { - _hashCode += getFrom_id().hashCode(); - } - if (getWhere() != null) { - _hashCode += getWhere().hashCode(); - } - if (getWhere_id() != null) { - _hashCode += getWhere_id().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(CMLRemoveChild.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", ">CML>removeChild")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("from"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "from")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Reference")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("from_id"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "from_id")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("where"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "where")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Predicate")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("where_id"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "where_id")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/CMLUpdate.java b/source/generated/org/alfresco/example/webservice/types/CMLUpdate.java deleted file mode 100644 index 928ea5c53d..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/CMLUpdate.java +++ /dev/null @@ -1,208 +0,0 @@ -/** - * CMLUpdate.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.types; - -public class CMLUpdate implements java.io.Serializable { - private org.alfresco.example.webservice.types.NamedValue[] property; - private org.alfresco.example.webservice.types.Predicate where; - private java.lang.String where_id; - - public CMLUpdate() { - } - - public CMLUpdate( - org.alfresco.example.webservice.types.NamedValue[] property, - org.alfresco.example.webservice.types.Predicate where, - java.lang.String where_id) { - this.property = property; - this.where = where; - this.where_id = where_id; - } - - - /** - * Gets the property value for this CMLUpdate. - * - * @return property - */ - public org.alfresco.example.webservice.types.NamedValue[] getProperty() { - return property; - } - - - /** - * Sets the property value for this CMLUpdate. - * - * @param property - */ - public void setProperty(org.alfresco.example.webservice.types.NamedValue[] property) { - this.property = property; - } - - public org.alfresco.example.webservice.types.NamedValue getProperty(int i) { - return this.property[i]; - } - - public void setProperty(int i, org.alfresco.example.webservice.types.NamedValue _value) { - this.property[i] = _value; - } - - - /** - * Gets the where value for this CMLUpdate. - * - * @return where - */ - public org.alfresco.example.webservice.types.Predicate getWhere() { - return where; - } - - - /** - * Sets the where value for this CMLUpdate. - * - * @param where - */ - public void setWhere(org.alfresco.example.webservice.types.Predicate where) { - this.where = where; - } - - - /** - * Gets the where_id value for this CMLUpdate. - * - * @return where_id - */ - public java.lang.String getWhere_id() { - return where_id; - } - - - /** - * Sets the where_id value for this CMLUpdate. - * - * @param where_id - */ - public void setWhere_id(java.lang.String where_id) { - this.where_id = where_id; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof CMLUpdate)) return false; - CMLUpdate other = (CMLUpdate) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.property==null && other.getProperty()==null) || - (this.property!=null && - java.util.Arrays.equals(this.property, other.getProperty()))) && - ((this.where==null && other.getWhere()==null) || - (this.where!=null && - this.where.equals(other.getWhere()))) && - ((this.where_id==null && other.getWhere_id()==null) || - (this.where_id!=null && - this.where_id.equals(other.getWhere_id()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getProperty() != null) { - for (int i=0; - iCML>update")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("property"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "property")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "NamedValue")); - elemField.setNillable(false); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("where"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "where")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Predicate")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("where_id"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/cml/1.0", "where_id")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/Cardinality.java b/source/generated/org/alfresco/example/webservice/types/Cardinality.java deleted file mode 100644 index 4f09186857..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/Cardinality.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Cardinality.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.types; - -public class Cardinality implements java.io.Serializable { - private java.lang.String _value_; - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - protected Cardinality(java.lang.String value) { - _value_ = value; - _table_.put(_value_,this); - } - - public static final java.lang.String _value1 = "0..1"; - public static final java.lang.String _value2 = "1"; - public static final java.lang.String _value3 = "*"; - public static final java.lang.String _value4 = "1..*"; - public static final Cardinality value1 = new Cardinality(_value1); - public static final Cardinality value2 = new Cardinality(_value2); - public static final Cardinality value3 = new Cardinality(_value3); - public static final Cardinality value4 = new Cardinality(_value4); - public java.lang.String getValue() { return _value_;} - public static Cardinality fromValue(java.lang.String value) - throws java.lang.IllegalArgumentException { - Cardinality enumeration = (Cardinality) - _table_.get(value); - if (enumeration==null) throw new java.lang.IllegalArgumentException(); - return enumeration; - } - public static Cardinality fromString(java.lang.String value) - throws java.lang.IllegalArgumentException { - return fromValue(value); - } - public boolean equals(java.lang.Object obj) {return (obj == this);} - public int hashCode() { return toString().hashCode();} - public java.lang.String toString() { return _value_;} - public java.lang.Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);} - 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.EnumSerializer( - _javaType, _xmlType); - } - 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.EnumDeserializer( - _javaType, _xmlType); - } - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(Cardinality.class); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Cardinality")); - } - /** - * Return type metadata object - */ - public static org.apache.axis.description.TypeDesc getTypeDesc() { - return typeDesc; - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/Category.java b/source/generated/org/alfresco/example/webservice/types/Category.java deleted file mode 100644 index 4381f0c3cf..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/Category.java +++ /dev/null @@ -1,191 +0,0 @@ -/** - * Category.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.types; - -public class Category implements java.io.Serializable { - private org.alfresco.example.webservice.types.Reference id; - private java.lang.String title; - private java.lang.String description; - - public Category() { - } - - public Category( - org.alfresco.example.webservice.types.Reference id, - java.lang.String title, - java.lang.String description) { - this.id = id; - this.title = title; - this.description = description; - } - - - /** - * Gets the id value for this Category. - * - * @return id - */ - public org.alfresco.example.webservice.types.Reference getId() { - return id; - } - - - /** - * Sets the id value for this Category. - * - * @param id - */ - public void setId(org.alfresco.example.webservice.types.Reference id) { - this.id = id; - } - - - /** - * Gets the title value for this Category. - * - * @return title - */ - public java.lang.String getTitle() { - return title; - } - - - /** - * Sets the title value for this Category. - * - * @param title - */ - public void setTitle(java.lang.String title) { - this.title = title; - } - - - /** - * Gets the description value for this Category. - * - * @return description - */ - public java.lang.String getDescription() { - return description; - } - - - /** - * Sets the description value for this Category. - * - * @param description - */ - public void setDescription(java.lang.String description) { - this.description = description; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof Category)) return false; - Category other = (Category) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.id==null && other.getId()==null) || - (this.id!=null && - this.id.equals(other.getId()))) && - ((this.title==null && other.getTitle()==null) || - (this.title!=null && - this.title.equals(other.getTitle()))) && - ((this.description==null && other.getDescription()==null) || - (this.description!=null && - this.description.equals(other.getDescription()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getId() != null) { - _hashCode += getId().hashCode(); - } - if (getTitle() != null) { - _hashCode += getTitle().hashCode(); - } - if (getDescription() != null) { - _hashCode += getDescription().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(Category.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Category")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("id"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "id")); - 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("title"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "title")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("description"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "description")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/ClassDefinition.java b/source/generated/org/alfresco/example/webservice/types/ClassDefinition.java deleted file mode 100644 index 10b405aa67..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/ClassDefinition.java +++ /dev/null @@ -1,364 +0,0 @@ -/** - * ClassDefinition.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.types; - -public class ClassDefinition implements java.io.Serializable { - private java.lang.String name; - private java.lang.String title; - private java.lang.String description; - private java.lang.String superClass; - private boolean isAspect; - private org.alfresco.example.webservice.types.PropertyDefinition[] properties; - private org.alfresco.example.webservice.types.AssociationDefinition[] associations; - - public ClassDefinition() { - } - - public ClassDefinition( - java.lang.String name, - java.lang.String title, - java.lang.String description, - java.lang.String superClass, - boolean isAspect, - org.alfresco.example.webservice.types.PropertyDefinition[] properties, - org.alfresco.example.webservice.types.AssociationDefinition[] associations) { - this.name = name; - this.title = title; - this.description = description; - this.superClass = superClass; - this.isAspect = isAspect; - this.properties = properties; - this.associations = associations; - } - - - /** - * Gets the name value for this ClassDefinition. - * - * @return name - */ - public java.lang.String getName() { - return name; - } - - - /** - * Sets the name value for this ClassDefinition. - * - * @param name - */ - public void setName(java.lang.String name) { - this.name = name; - } - - - /** - * Gets the title value for this ClassDefinition. - * - * @return title - */ - public java.lang.String getTitle() { - return title; - } - - - /** - * Sets the title value for this ClassDefinition. - * - * @param title - */ - public void setTitle(java.lang.String title) { - this.title = title; - } - - - /** - * Gets the description value for this ClassDefinition. - * - * @return description - */ - public java.lang.String getDescription() { - return description; - } - - - /** - * Sets the description value for this ClassDefinition. - * - * @param description - */ - public void setDescription(java.lang.String description) { - this.description = description; - } - - - /** - * Gets the superClass value for this ClassDefinition. - * - * @return superClass - */ - public java.lang.String getSuperClass() { - return superClass; - } - - - /** - * Sets the superClass value for this ClassDefinition. - * - * @param superClass - */ - public void setSuperClass(java.lang.String superClass) { - this.superClass = superClass; - } - - - /** - * Gets the isAspect value for this ClassDefinition. - * - * @return isAspect - */ - public boolean isIsAspect() { - return isAspect; - } - - - /** - * Sets the isAspect value for this ClassDefinition. - * - * @param isAspect - */ - public void setIsAspect(boolean isAspect) { - this.isAspect = isAspect; - } - - - /** - * Gets the properties value for this ClassDefinition. - * - * @return properties - */ - public org.alfresco.example.webservice.types.PropertyDefinition[] getProperties() { - return properties; - } - - - /** - * Sets the properties value for this ClassDefinition. - * - * @param properties - */ - public void setProperties(org.alfresco.example.webservice.types.PropertyDefinition[] properties) { - this.properties = properties; - } - - public org.alfresco.example.webservice.types.PropertyDefinition getProperties(int i) { - return this.properties[i]; - } - - public void setProperties(int i, org.alfresco.example.webservice.types.PropertyDefinition _value) { - this.properties[i] = _value; - } - - - /** - * Gets the associations value for this ClassDefinition. - * - * @return associations - */ - public org.alfresco.example.webservice.types.AssociationDefinition[] getAssociations() { - return associations; - } - - - /** - * Sets the associations value for this ClassDefinition. - * - * @param associations - */ - public void setAssociations(org.alfresco.example.webservice.types.AssociationDefinition[] associations) { - this.associations = associations; - } - - public org.alfresco.example.webservice.types.AssociationDefinition getAssociations(int i) { - return this.associations[i]; - } - - public void setAssociations(int i, org.alfresco.example.webservice.types.AssociationDefinition _value) { - this.associations[i] = _value; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof ClassDefinition)) return false; - ClassDefinition other = (ClassDefinition) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.name==null && other.getName()==null) || - (this.name!=null && - this.name.equals(other.getName()))) && - ((this.title==null && other.getTitle()==null) || - (this.title!=null && - this.title.equals(other.getTitle()))) && - ((this.description==null && other.getDescription()==null) || - (this.description!=null && - this.description.equals(other.getDescription()))) && - ((this.superClass==null && other.getSuperClass()==null) || - (this.superClass!=null && - this.superClass.equals(other.getSuperClass()))) && - this.isAspect == other.isIsAspect() && - ((this.properties==null && other.getProperties()==null) || - (this.properties!=null && - java.util.Arrays.equals(this.properties, other.getProperties()))) && - ((this.associations==null && other.getAssociations()==null) || - (this.associations!=null && - java.util.Arrays.equals(this.associations, other.getAssociations()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getName() != null) { - _hashCode += getName().hashCode(); - } - if (getTitle() != null) { - _hashCode += getTitle().hashCode(); - } - if (getDescription() != null) { - _hashCode += getDescription().hashCode(); - } - if (getSuperClass() != null) { - _hashCode += getSuperClass().hashCode(); - } - _hashCode += (isIsAspect() ? Boolean.TRUE : Boolean.FALSE).hashCode(); - if (getProperties() != null) { - for (int i=0; - iContentFormat>mimetype")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("encoding"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "encoding")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", ">ContentFormat>encoding")); - elemField.setMinOccurs(0); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/LocaleConfiguration.java b/source/generated/org/alfresco/example/webservice/types/LocaleConfiguration.java deleted file mode 100644 index 7af3b08d20..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/LocaleConfiguration.java +++ /dev/null @@ -1,120 +0,0 @@ -/** - * LocaleConfiguration.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.types; - -public class LocaleConfiguration implements java.io.Serializable { - private java.lang.String locale; - - public LocaleConfiguration() { - } - - public LocaleConfiguration( - java.lang.String locale) { - this.locale = locale; - } - - - /** - * Gets the locale value for this LocaleConfiguration. - * - * @return locale - */ - public java.lang.String getLocale() { - return locale; - } - - - /** - * Sets the locale value for this LocaleConfiguration. - * - * @param locale - */ - public void setLocale(java.lang.String locale) { - this.locale = locale; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof LocaleConfiguration)) return false; - LocaleConfiguration other = (LocaleConfiguration) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.locale==null && other.getLocale()==null) || - (this.locale!=null && - this.locale.equals(other.getLocale()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getLocale() != null) { - _hashCode += getLocale().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(LocaleConfiguration.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/headers/1.0", "LocaleConfiguration")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("locale"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/headers/1.0", "locale")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/NamedValue.java b/source/generated/org/alfresco/example/webservice/types/NamedValue.java deleted file mode 100644 index 494119cf54..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/NamedValue.java +++ /dev/null @@ -1,154 +0,0 @@ -/** - * NamedValue.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.types; - -public class NamedValue implements java.io.Serializable { - private java.lang.String name; - private java.lang.String value; - - public NamedValue() { - } - - public NamedValue( - java.lang.String name, - java.lang.String value) { - this.name = name; - this.value = value; - } - - - /** - * Gets the name value for this NamedValue. - * - * @return name - */ - public java.lang.String getName() { - return name; - } - - - /** - * Sets the name value for this NamedValue. - * - * @param name - */ - public void setName(java.lang.String name) { - this.name = name; - } - - - /** - * Gets the value value for this NamedValue. - * - * @return value - */ - public java.lang.String getValue() { - return value; - } - - - /** - * Sets the value value for this NamedValue. - * - * @param value - */ - public void setValue(java.lang.String value) { - this.value = value; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof NamedValue)) return false; - NamedValue other = (NamedValue) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.name==null && other.getName()==null) || - (this.name!=null && - this.name.equals(other.getName()))) && - ((this.value==null && other.getValue()==null) || - (this.value!=null && - this.value.equals(other.getValue()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getName() != null) { - _hashCode += getName().hashCode(); - } - if (getValue() != null) { - _hashCode += getValue().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(NamedValue.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "NamedValue")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("name"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "name")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("value"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "value")); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/NamespaceConfigurationInner.java b/source/generated/org/alfresco/example/webservice/types/NamespaceConfigurationInner.java deleted file mode 100644 index 13f268c62d..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/NamespaceConfigurationInner.java +++ /dev/null @@ -1,154 +0,0 @@ -/** - * NamespaceConfigurationInner.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.types; - -public class NamespaceConfigurationInner implements java.io.Serializable { - private org.apache.axis.types.NCName prefix; - private java.lang.String uri; - - public NamespaceConfigurationInner() { - } - - public NamespaceConfigurationInner( - org.apache.axis.types.NCName prefix, - java.lang.String uri) { - this.prefix = prefix; - this.uri = uri; - } - - - /** - * Gets the prefix value for this NamespaceConfigurationInner. - * - * @return prefix - */ - public org.apache.axis.types.NCName getPrefix() { - return prefix; - } - - - /** - * Sets the prefix value for this NamespaceConfigurationInner. - * - * @param prefix - */ - public void setPrefix(org.apache.axis.types.NCName prefix) { - this.prefix = prefix; - } - - - /** - * Gets the uri value for this NamespaceConfigurationInner. - * - * @return uri - */ - public java.lang.String getUri() { - return uri; - } - - - /** - * Sets the uri value for this NamespaceConfigurationInner. - * - * @param uri - */ - public void setUri(java.lang.String uri) { - this.uri = uri; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof NamespaceConfigurationInner)) return false; - NamespaceConfigurationInner other = (NamespaceConfigurationInner) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.prefix==null && other.getPrefix()==null) || - (this.prefix!=null && - this.prefix.equals(other.getPrefix()))) && - ((this.uri==null && other.getUri()==null) || - (this.uri!=null && - this.uri.equals(other.getUri()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getPrefix() != null) { - _hashCode += getPrefix().hashCode(); - } - if (getUri() != null) { - _hashCode += getUri().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(NamespaceConfigurationInner.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/headers/1.0", "NamespaceConfigurationInner")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("prefix"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/headers/1.0", "prefix")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "NCName")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("uri"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/headers/1.0", "uri")); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/NamespaceConfigurationMapping.java b/source/generated/org/alfresco/example/webservice/types/NamespaceConfigurationMapping.java deleted file mode 100644 index ef68a793ce..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/NamespaceConfigurationMapping.java +++ /dev/null @@ -1,154 +0,0 @@ -/** - * NamespaceConfigurationMapping.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.types; - -public class NamespaceConfigurationMapping implements java.io.Serializable { - private org.apache.axis.types.NCName prefix; - private java.lang.String uri; - - public NamespaceConfigurationMapping() { - } - - public NamespaceConfigurationMapping( - org.apache.axis.types.NCName prefix, - java.lang.String uri) { - this.prefix = prefix; - this.uri = uri; - } - - - /** - * Gets the prefix value for this NamespaceConfigurationMapping. - * - * @return prefix - */ - public org.apache.axis.types.NCName getPrefix() { - return prefix; - } - - - /** - * Sets the prefix value for this NamespaceConfigurationMapping. - * - * @param prefix - */ - public void setPrefix(org.apache.axis.types.NCName prefix) { - this.prefix = prefix; - } - - - /** - * Gets the uri value for this NamespaceConfigurationMapping. - * - * @return uri - */ - public java.lang.String getUri() { - return uri; - } - - - /** - * Sets the uri value for this NamespaceConfigurationMapping. - * - * @param uri - */ - public void setUri(java.lang.String uri) { - this.uri = uri; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof NamespaceConfigurationMapping)) return false; - NamespaceConfigurationMapping other = (NamespaceConfigurationMapping) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.prefix==null && other.getPrefix()==null) || - (this.prefix!=null && - this.prefix.equals(other.getPrefix()))) && - ((this.uri==null && other.getUri()==null) || - (this.uri!=null && - this.uri.equals(other.getUri()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getPrefix() != null) { - _hashCode += getPrefix().hashCode(); - } - if (getUri() != null) { - _hashCode += getUri().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(NamespaceConfigurationMapping.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/headers/1.0", ">NamespaceConfiguration>mapping")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("prefix"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/headers/1.0", "prefix")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "NCName")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("uri"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/headers/1.0", "uri")); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/Node.java b/source/generated/org/alfresco/example/webservice/types/Node.java deleted file mode 100644 index 28ba676cf6..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/Node.java +++ /dev/null @@ -1,260 +0,0 @@ -/** - * Node.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.types; - -public class Node implements java.io.Serializable { - private org.alfresco.example.webservice.types.Reference reference; - private java.lang.String type; - private java.lang.String[] aspects; - private org.alfresco.example.webservice.types.NamedValue[] properties; - - public Node() { - } - - public Node( - org.alfresco.example.webservice.types.Reference reference, - java.lang.String type, - java.lang.String[] aspects, - org.alfresco.example.webservice.types.NamedValue[] properties) { - this.reference = reference; - this.type = type; - this.aspects = aspects; - this.properties = properties; - } - - - /** - * Gets the reference value for this Node. - * - * @return reference - */ - public org.alfresco.example.webservice.types.Reference getReference() { - return reference; - } - - - /** - * Sets the reference value for this Node. - * - * @param reference - */ - public void setReference(org.alfresco.example.webservice.types.Reference reference) { - this.reference = reference; - } - - - /** - * Gets the type value for this Node. - * - * @return type - */ - public java.lang.String getType() { - return type; - } - - - /** - * Sets the type value for this Node. - * - * @param type - */ - public void setType(java.lang.String type) { - this.type = type; - } - - - /** - * Gets the aspects value for this Node. - * - * @return aspects - */ - public java.lang.String[] getAspects() { - return aspects; - } - - - /** - * Sets the aspects value for this Node. - * - * @param aspects - */ - public void setAspects(java.lang.String[] aspects) { - this.aspects = aspects; - } - - public java.lang.String getAspects(int i) { - return this.aspects[i]; - } - - public void setAspects(int i, java.lang.String _value) { - this.aspects[i] = _value; - } - - - /** - * Gets the properties value for this Node. - * - * @return properties - */ - public org.alfresco.example.webservice.types.NamedValue[] getProperties() { - return properties; - } - - - /** - * Sets the properties value for this Node. - * - * @param properties - */ - public void setProperties(org.alfresco.example.webservice.types.NamedValue[] properties) { - this.properties = properties; - } - - public org.alfresco.example.webservice.types.NamedValue getProperties(int i) { - return this.properties[i]; - } - - public void setProperties(int i, org.alfresco.example.webservice.types.NamedValue _value) { - this.properties[i] = _value; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof Node)) return false; - Node other = (Node) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.reference==null && other.getReference()==null) || - (this.reference!=null && - this.reference.equals(other.getReference()))) && - ((this.type==null && other.getType()==null) || - (this.type!=null && - this.type.equals(other.getType()))) && - ((this.aspects==null && other.getAspects()==null) || - (this.aspects!=null && - java.util.Arrays.equals(this.aspects, other.getAspects()))) && - ((this.properties==null && other.getProperties()==null) || - (this.properties!=null && - java.util.Arrays.equals(this.properties, other.getProperties()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getReference() != null) { - _hashCode += getReference().hashCode(); - } - if (getType() != null) { - _hashCode += getType().hashCode(); - } - if (getAspects() != null) { - for (int i=0; - iResultSetRow>node")); - elemField.setMinOccurs(0); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/ResultSetRowNode.java b/source/generated/org/alfresco/example/webservice/types/ResultSetRowNode.java deleted file mode 100644 index 4be46ed83c..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/ResultSetRowNode.java +++ /dev/null @@ -1,207 +0,0 @@ -/** - * ResultSetRowNode.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.types; - -public class ResultSetRowNode implements java.io.Serializable { - private java.lang.String id; - private java.lang.String type; - private java.lang.String[] aspects; - - public ResultSetRowNode() { - } - - public ResultSetRowNode( - java.lang.String id, - java.lang.String type, - java.lang.String[] aspects) { - this.id = id; - this.type = type; - this.aspects = aspects; - } - - - /** - * Gets the id value for this ResultSetRowNode. - * - * @return id - */ - public java.lang.String getId() { - return id; - } - - - /** - * Sets the id value for this ResultSetRowNode. - * - * @param id - */ - public void setId(java.lang.String id) { - this.id = id; - } - - - /** - * Gets the type value for this ResultSetRowNode. - * - * @return type - */ - public java.lang.String getType() { - return type; - } - - - /** - * Sets the type value for this ResultSetRowNode. - * - * @param type - */ - public void setType(java.lang.String type) { - this.type = type; - } - - - /** - * Gets the aspects value for this ResultSetRowNode. - * - * @return aspects - */ - public java.lang.String[] getAspects() { - return aspects; - } - - - /** - * Sets the aspects value for this ResultSetRowNode. - * - * @param aspects - */ - public void setAspects(java.lang.String[] aspects) { - this.aspects = aspects; - } - - public java.lang.String getAspects(int i) { - return this.aspects[i]; - } - - public void setAspects(int i, java.lang.String _value) { - this.aspects[i] = _value; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof ResultSetRowNode)) return false; - ResultSetRowNode other = (ResultSetRowNode) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.id==null && other.getId()==null) || - (this.id!=null && - this.id.equals(other.getId()))) && - ((this.type==null && other.getType()==null) || - (this.type!=null && - this.type.equals(other.getType()))) && - ((this.aspects==null && other.getAspects()==null) || - (this.aspects!=null && - java.util.Arrays.equals(this.aspects, other.getAspects()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getId() != null) { - _hashCode += getId().hashCode(); - } - if (getType() != null) { - _hashCode += getType().hashCode(); - } - if (getAspects() != null) { - for (int i=0; - iResultSetRow>node")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("id"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "id")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "UUID")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("type"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "type")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("aspects"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "aspects")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - elemField.setMaxOccursUnbounded(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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/RoleDefinition.java b/source/generated/org/alfresco/example/webservice/types/RoleDefinition.java deleted file mode 100644 index 63d0279eb2..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/RoleDefinition.java +++ /dev/null @@ -1,156 +0,0 @@ -/** - * RoleDefinition.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.types; - -public class RoleDefinition implements java.io.Serializable { - private java.lang.String name; - private org.alfresco.example.webservice.types.Cardinality cardinality; - - public RoleDefinition() { - } - - public RoleDefinition( - java.lang.String name, - org.alfresco.example.webservice.types.Cardinality cardinality) { - this.name = name; - this.cardinality = cardinality; - } - - - /** - * Gets the name value for this RoleDefinition. - * - * @return name - */ - public java.lang.String getName() { - return name; - } - - - /** - * Sets the name value for this RoleDefinition. - * - * @param name - */ - public void setName(java.lang.String name) { - this.name = name; - } - - - /** - * Gets the cardinality value for this RoleDefinition. - * - * @return cardinality - */ - public org.alfresco.example.webservice.types.Cardinality getCardinality() { - return cardinality; - } - - - /** - * Sets the cardinality value for this RoleDefinition. - * - * @param cardinality - */ - public void setCardinality(org.alfresco.example.webservice.types.Cardinality cardinality) { - this.cardinality = cardinality; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof RoleDefinition)) return false; - RoleDefinition other = (RoleDefinition) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.name==null && other.getName()==null) || - (this.name!=null && - this.name.equals(other.getName()))) && - ((this.cardinality==null && other.getCardinality()==null) || - (this.cardinality!=null && - this.cardinality.equals(other.getCardinality()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getName() != null) { - _hashCode += getName().hashCode(); - } - if (getCardinality() != null) { - _hashCode += getCardinality().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(RoleDefinition.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "RoleDefinition")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("name"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "name")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("cardinality"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "cardinality")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Cardinality")); - elemField.setMinOccurs(0); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/Store.java b/source/generated/org/alfresco/example/webservice/types/Store.java deleted file mode 100644 index 5a79441d25..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/Store.java +++ /dev/null @@ -1,154 +0,0 @@ -/** - * Store.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.types; - -public class Store implements java.io.Serializable { - private org.alfresco.example.webservice.types.StoreEnum scheme; - private java.lang.String address; - - public Store() { - } - - public Store( - org.alfresco.example.webservice.types.StoreEnum scheme, - java.lang.String address) { - this.scheme = scheme; - this.address = address; - } - - - /** - * Gets the scheme value for this Store. - * - * @return scheme - */ - public org.alfresco.example.webservice.types.StoreEnum getScheme() { - return scheme; - } - - - /** - * Sets the scheme value for this Store. - * - * @param scheme - */ - public void setScheme(org.alfresco.example.webservice.types.StoreEnum scheme) { - this.scheme = scheme; - } - - - /** - * Gets the address value for this Store. - * - * @return address - */ - public java.lang.String getAddress() { - return address; - } - - - /** - * Sets the address value for this Store. - * - * @param address - */ - public void setAddress(java.lang.String address) { - this.address = address; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof Store)) return false; - Store other = (Store) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.scheme==null && other.getScheme()==null) || - (this.scheme!=null && - this.scheme.equals(other.getScheme()))) && - ((this.address==null && other.getAddress()==null) || - (this.address!=null && - this.address.equals(other.getAddress()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getScheme() != null) { - _hashCode += getScheme().hashCode(); - } - if (getAddress() != null) { - _hashCode += getAddress().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(Store.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Store")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("scheme"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "scheme")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "StoreEnum")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("address"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "address")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", ">Store>address")); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/StoreEnum.java b/source/generated/org/alfresco/example/webservice/types/StoreEnum.java deleted file mode 100644 index 5bfd84f910..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/StoreEnum.java +++ /dev/null @@ -1,78 +0,0 @@ -/** - * StoreEnum.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.types; - -public class StoreEnum implements java.io.Serializable { - private java.lang.String _value_; - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - protected StoreEnum(java.lang.String value) { - _value_ = value; - _table_.put(_value_,this); - } - - public static final java.lang.String _workspace = "workspace"; - public static final java.lang.String _versionStore = "versionStore"; - public static final java.lang.String _user = "user"; - public static final java.lang.String _search = "search"; - public static final java.lang.String _http = "http"; - public static final java.lang.String _system = "system"; - public static final StoreEnum workspace = new StoreEnum(_workspace); - public static final StoreEnum versionStore = new StoreEnum(_versionStore); - public static final StoreEnum user = new StoreEnum(_user); - public static final StoreEnum search = new StoreEnum(_search); - public static final StoreEnum http = new StoreEnum(_http); - public static final StoreEnum system = new StoreEnum(_system); - public java.lang.String getValue() { return _value_;} - public static StoreEnum fromValue(java.lang.String value) - throws java.lang.IllegalArgumentException { - StoreEnum enumeration = (StoreEnum) - _table_.get(value); - if (enumeration==null) throw new java.lang.IllegalArgumentException(); - return enumeration; - } - public static StoreEnum fromString(java.lang.String value) - throws java.lang.IllegalArgumentException { - return fromValue(value); - } - public boolean equals(java.lang.Object obj) {return (obj == this);} - public int hashCode() { return toString().hashCode();} - public java.lang.String toString() { return _value_;} - public java.lang.Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);} - 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.EnumSerializer( - _javaType, _xmlType); - } - 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.EnumDeserializer( - _javaType, _xmlType); - } - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(StoreEnum.class); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "StoreEnum")); - } - /** - * Return type metadata object - */ - public static org.apache.axis.description.TypeDesc getTypeDesc() { - return typeDesc; - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/ValueDefinition.java b/source/generated/org/alfresco/example/webservice/types/ValueDefinition.java deleted file mode 100644 index c5483093e6..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/ValueDefinition.java +++ /dev/null @@ -1,226 +0,0 @@ -/** - * ValueDefinition.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.types; - -public class ValueDefinition implements java.io.Serializable { - private java.lang.String name; - private java.lang.String title; - private java.lang.String description; - private java.lang.String dataType; - - public ValueDefinition() { - } - - public ValueDefinition( - java.lang.String name, - java.lang.String title, - java.lang.String description, - java.lang.String dataType) { - this.name = name; - this.title = title; - this.description = description; - this.dataType = dataType; - } - - - /** - * Gets the name value for this ValueDefinition. - * - * @return name - */ - public java.lang.String getName() { - return name; - } - - - /** - * Sets the name value for this ValueDefinition. - * - * @param name - */ - public void setName(java.lang.String name) { - this.name = name; - } - - - /** - * Gets the title value for this ValueDefinition. - * - * @return title - */ - public java.lang.String getTitle() { - return title; - } - - - /** - * Sets the title value for this ValueDefinition. - * - * @param title - */ - public void setTitle(java.lang.String title) { - this.title = title; - } - - - /** - * Gets the description value for this ValueDefinition. - * - * @return description - */ - public java.lang.String getDescription() { - return description; - } - - - /** - * Sets the description value for this ValueDefinition. - * - * @param description - */ - public void setDescription(java.lang.String description) { - this.description = description; - } - - - /** - * Gets the dataType value for this ValueDefinition. - * - * @return dataType - */ - public java.lang.String getDataType() { - return dataType; - } - - - /** - * Sets the dataType value for this ValueDefinition. - * - * @param dataType - */ - public void setDataType(java.lang.String dataType) { - this.dataType = dataType; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof ValueDefinition)) return false; - ValueDefinition other = (ValueDefinition) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.name==null && other.getName()==null) || - (this.name!=null && - this.name.equals(other.getName()))) && - ((this.title==null && other.getTitle()==null) || - (this.title!=null && - this.title.equals(other.getTitle()))) && - ((this.description==null && other.getDescription()==null) || - (this.description!=null && - this.description.equals(other.getDescription()))) && - ((this.dataType==null && other.getDataType()==null) || - (this.dataType!=null && - this.dataType.equals(other.getDataType()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getName() != null) { - _hashCode += getName().hashCode(); - } - if (getTitle() != null) { - _hashCode += getTitle().hashCode(); - } - if (getDescription() != null) { - _hashCode += getDescription().hashCode(); - } - if (getDataType() != null) { - _hashCode += getDataType().hashCode(); - } - __hashCodeCalc = false; - return _hashCode; - } - - // Type metadata - private static org.apache.axis.description.TypeDesc typeDesc = - new org.apache.axis.description.TypeDesc(ValueDefinition.class, true); - - static { - typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "ValueDefinition")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("name"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "name")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("title"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "title")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("description"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "description")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("dataType"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "dataType")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Name")); - 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); - } - -} diff --git a/source/generated/org/alfresco/example/webservice/types/Version.java b/source/generated/org/alfresco/example/webservice/types/Version.java deleted file mode 100644 index 69839645e0..0000000000 --- a/source/generated/org/alfresco/example/webservice/types/Version.java +++ /dev/null @@ -1,311 +0,0 @@ -/** - * Version.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.types; - -public class Version implements java.io.Serializable { - private org.alfresco.example.webservice.types.Reference id; - private java.util.Calendar created; - private java.lang.String creator; - private java.lang.String label; - private boolean major; - private org.alfresco.example.webservice.types.NamedValue[] commentaries; - - public Version() { - } - - public Version( - org.alfresco.example.webservice.types.Reference id, - java.util.Calendar created, - java.lang.String creator, - java.lang.String label, - boolean major, - org.alfresco.example.webservice.types.NamedValue[] commentaries) { - this.id = id; - this.created = created; - this.creator = creator; - this.label = label; - this.major = major; - this.commentaries = commentaries; - } - - - /** - * Gets the id value for this Version. - * - * @return id - */ - public org.alfresco.example.webservice.types.Reference getId() { - return id; - } - - - /** - * Sets the id value for this Version. - * - * @param id - */ - public void setId(org.alfresco.example.webservice.types.Reference id) { - this.id = id; - } - - - /** - * Gets the created value for this Version. - * - * @return created - */ - public java.util.Calendar getCreated() { - return created; - } - - - /** - * Sets the created value for this Version. - * - * @param created - */ - public void setCreated(java.util.Calendar created) { - this.created = created; - } - - - /** - * Gets the creator value for this Version. - * - * @return creator - */ - public java.lang.String getCreator() { - return creator; - } - - - /** - * Sets the creator value for this Version. - * - * @param creator - */ - public void setCreator(java.lang.String creator) { - this.creator = creator; - } - - - /** - * Gets the label value for this Version. - * - * @return label - */ - public java.lang.String getLabel() { - return label; - } - - - /** - * Sets the label value for this Version. - * - * @param label - */ - public void setLabel(java.lang.String label) { - this.label = label; - } - - - /** - * Gets the major value for this Version. - * - * @return major - */ - public boolean isMajor() { - return major; - } - - - /** - * Sets the major value for this Version. - * - * @param major - */ - public void setMajor(boolean major) { - this.major = major; - } - - - /** - * Gets the commentaries value for this Version. - * - * @return commentaries - */ - public org.alfresco.example.webservice.types.NamedValue[] getCommentaries() { - return commentaries; - } - - - /** - * Sets the commentaries value for this Version. - * - * @param commentaries - */ - public void setCommentaries(org.alfresco.example.webservice.types.NamedValue[] commentaries) { - this.commentaries = commentaries; - } - - public org.alfresco.example.webservice.types.NamedValue getCommentaries(int i) { - return this.commentaries[i]; - } - - public void setCommentaries(int i, org.alfresco.example.webservice.types.NamedValue _value) { - this.commentaries[i] = _value; - } - - private java.lang.Object __equalsCalc = null; - public synchronized boolean equals(java.lang.Object obj) { - if (!(obj instanceof Version)) return false; - Version other = (Version) obj; - if (obj == null) return false; - if (this == obj) return true; - if (__equalsCalc != null) { - return (__equalsCalc == obj); - } - __equalsCalc = obj; - boolean _equals; - _equals = true && - ((this.id==null && other.getId()==null) || - (this.id!=null && - this.id.equals(other.getId()))) && - ((this.created==null && other.getCreated()==null) || - (this.created!=null && - this.created.equals(other.getCreated()))) && - ((this.creator==null && other.getCreator()==null) || - (this.creator!=null && - this.creator.equals(other.getCreator()))) && - ((this.label==null && other.getLabel()==null) || - (this.label!=null && - this.label.equals(other.getLabel()))) && - this.major == other.isMajor() && - ((this.commentaries==null && other.getCommentaries()==null) || - (this.commentaries!=null && - java.util.Arrays.equals(this.commentaries, other.getCommentaries()))); - __equalsCalc = null; - return _equals; - } - - private boolean __hashCodeCalc = false; - public synchronized int hashCode() { - if (__hashCodeCalc) { - return 0; - } - __hashCodeCalc = true; - int _hashCode = 1; - if (getId() != null) { - _hashCode += getId().hashCode(); - } - if (getCreated() != null) { - _hashCode += getCreated().hashCode(); - } - if (getCreator() != null) { - _hashCode += getCreator().hashCode(); - } - if (getLabel() != null) { - _hashCode += getLabel().hashCode(); - } - _hashCode += (isMajor() ? Boolean.TRUE : Boolean.FALSE).hashCode(); - if (getCommentaries() != null) { - for (int i=0; - i - + - + + + + + + + + + + @@ -64,7 +73,7 @@ - + + - + + diff --git a/source/generated/org/alfresco/repo/webservice/repository/RepositoryServiceSoapPort.java b/source/generated/org/alfresco/repo/webservice/repository/RepositoryServiceSoapPort.java index 9ef61ff0d4..099e2ebfe0 100644 --- a/source/generated/org/alfresco/repo/webservice/repository/RepositoryServiceSoapPort.java +++ b/source/generated/org/alfresco/repo/webservice/repository/RepositoryServiceSoapPort.java @@ -9,6 +9,11 @@ package org.alfresco.repo.webservice.repository; public interface RepositoryServiceSoapPort extends java.rmi.Remote { + /** + * Creates a new repository store. + */ + public org.alfresco.repo.webservice.types.Store createStore(org.alfresco.repo.webservice.types.StoreEnum scheme, java.lang.String address) throws java.rmi.RemoteException, org.alfresco.repo.webservice.repository.RepositoryFault; + /** * Retrieves a list of stores where content resources are held. */ diff --git a/source/generated/org/alfresco/repo/webservice/repository/deploy.wsdd b/source/generated/org/alfresco/repo/webservice/repository/deploy.wsdd index fe08853ad8..c3ef253ed7 100644 --- a/source/generated/org/alfresco/repo/webservice/repository/deploy.wsdd +++ b/source/generated/org/alfresco/repo/webservice/repository/deploy.wsdd @@ -20,6 +20,11 @@ + + + + + @@ -58,7 +63,7 @@ - + NamespaceConfiguration>mapping")); - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("prefix"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/headers/1.0", "prefix")); - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "NCName")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new org.apache.axis.description.ElementDesc(); - elemField.setFieldName("uri"); - elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/headers/1.0", "uri")); - 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); - } - -} diff --git a/source/java/org/alfresco/example/webservice/BaseWebServiceSystemTest.java b/source/java/org/alfresco/example/webservice/BaseWebServiceSystemTest.java deleted file mode 100644 index 8d94f832a1..0000000000 --- a/source/java/org/alfresco/example/webservice/BaseWebServiceSystemTest.java +++ /dev/null @@ -1,263 +0,0 @@ -/* - * Copyright (C) 2005 Alfresco, Inc. - * - * Licensed under the Mozilla Public License version 1.1 - * with a permitted attribution clause. You may obtain a - * copy of the License at - * - * http://www.alfresco.org/legal/license.txt - * - * 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.alfresco.example.webservice; - -import java.io.InputStream; -import java.net.URL; -import java.net.URLConnection; -import java.util.Properties; - -import javax.xml.rpc.ServiceException; - -import junit.framework.AssertionFailedError; - -import org.alfresco.example.webservice.authentication.AuthenticationResult; -import org.alfresco.example.webservice.authentication.AuthenticationServiceLocator; -import org.alfresco.example.webservice.authentication.AuthenticationServiceSoapBindingStub; -import org.alfresco.example.webservice.content.Content; -import org.alfresco.example.webservice.content.ContentServiceLocator; -import org.alfresco.example.webservice.content.ContentServiceSoapBindingStub; -import org.alfresco.example.webservice.repository.RepositoryServiceLocator; -import org.alfresco.example.webservice.repository.RepositoryServiceSoapBindingStub; -import org.alfresco.example.webservice.repository.UpdateResult; -import org.alfresco.example.webservice.types.CML; -import org.alfresco.example.webservice.types.CMLCreate; -import org.alfresco.example.webservice.types.ContentFormat; -import org.alfresco.example.webservice.types.NamedValue; -import org.alfresco.example.webservice.types.ParentReference; -import org.alfresco.example.webservice.types.Predicate; -import org.alfresco.example.webservice.types.Reference; -import org.alfresco.example.webservice.types.Store; -import org.alfresco.example.webservice.types.StoreEnum; -import org.alfresco.model.ContentModel; -import org.alfresco.service.cmr.repository.NodeRef; -import org.alfresco.service.cmr.repository.StoreRef; -import org.alfresco.service.namespace.QName; -import org.alfresco.util.BaseTest; -import org.apache.axis.EngineConfiguration; -import org.apache.axis.configuration.FileProvider; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - -/** - * Base class for all web service system tests that need to authenticate. The - * setUp method calls the AuthenticationService and authenticates as - * admin/admin, the returned ticket is then stored in - * TicketHolder.ticket so that all subclass implementations can - * use it to call other services. - * - * @see junit.framework.TestCase#setUp() - * @author gavinc - */ -public abstract class BaseWebServiceSystemTest extends BaseTest -{ - private static Log logger = LogFactory - .getLog(BaseWebServiceSystemTest.class); - - protected static final String USERNAME = "admin"; - protected static final String PASSWORD = "admin"; - - private Properties properties; - private Store store; - private Reference rootNodeReference; - private Reference contentReference; - - protected RepositoryServiceSoapBindingStub repositoryService; - protected ContentServiceSoapBindingStub contentService; - - public BaseWebServiceSystemTest() - { - try - { - EngineConfiguration config = new FileProvider(getResourcesDir(), "client-deploy.wsdd"); - this.contentService = (ContentServiceSoapBindingStub)new ContentServiceLocator(config).getContentService(); - assertNotNull(this.contentService); - this.contentService.setTimeout(60000); - - this.repositoryService = (RepositoryServiceSoapBindingStub)new RepositoryServiceLocator(config).getRepositoryService(); - assertNotNull(this.repositoryService); - this.repositoryService.setTimeout(60000); - } - catch (Exception e) - { - fail("Could not instantiate the content service" + e.toString()); - } - } - - /** - * Calls the AuthenticationService to retrieve a ticket for all tests to - * use. - */ - @Override - protected void setUp() throws Exception - { - super.setUp(); - AuthenticationServiceSoapBindingStub authSvc = null; - try - { - authSvc = (AuthenticationServiceSoapBindingStub) new AuthenticationServiceLocator() - .getAuthenticationService(); - } catch (ServiceException jre) - { - if (jre.getLinkedCause() != null) - { - jre.getLinkedCause().printStackTrace(); - } - - throw new AssertionFailedError("JAX-RPC ServiceException caught: " - + jre); - } - assertNotNull("authSvc is null", authSvc); - - // Time out after a minute - authSvc.setTimeout(60000); - - // call the authenticate method and retrieve the ticket - AuthenticationResult result = authSvc.startSession(USERNAME, PASSWORD); - assertNotNull("result is null", result); - - String ticket = result.getTicket(); - assertNotNull("ticket is null", ticket); - - TicketHolder.ticket = ticket; - if (logger.isDebugEnabled()) - { - logger.debug("Retrieved and stored ticket: " + TicketHolder.ticket); - } - } - - protected Store getStore() - { - if (this.store == null) - { - String strStoreRef = getProperties().getProperty( - WebServiceBootstrapSystemTest.PROP_STORE_REF); - StoreRef storeRef = new StoreRef(strStoreRef); - this.store = new Store(StoreEnum.fromValue(storeRef.getProtocol()), - storeRef.getIdentifier()); - } - return this.store; - } - - protected Reference getRootNodeReference() - { - if (this.rootNodeReference == null) - { - String strNodeRef = getProperties().getProperty( - WebServiceBootstrapSystemTest.PROP_ROOT_NODE_REF); - NodeRef rootNodeRef = new NodeRef(strNodeRef); - this.rootNodeReference = new Reference(getStore(), rootNodeRef - .getId(), null); - } - return this.rootNodeReference; - } - - protected Reference getContentReference() - { - if (this.contentReference == null) - { - String strNodeRef = getProperties().getProperty(WebServiceBootstrapSystemTest.PROP_CONTENT_NODE_REF); - NodeRef nodeRef = new NodeRef(strNodeRef); - this.contentReference = new Reference(getStore(), nodeRef.getId(), null); - } - return this.contentReference; - } - - protected ParentReference getFolderParentReference(QName assocName) - { - NodeRef folderNodeRef = getFolderNodeRef(); - ParentReference parentReference = new ParentReference(); - parentReference.setStore(getStore()); - parentReference.setUuid(folderNodeRef.getId()); - parentReference.setAssociationType(ContentModel.ASSOC_CONTAINS.toString()); - parentReference.setChildName(assocName.toString()); - return parentReference; - } - - protected Reference createContentAtRoot(String name, String contentValue) throws Exception - { - ParentReference parentRef = new ParentReference(); - parentRef.setStore(getStore()); - parentRef.setUuid(getRootNodeReference().getUuid()); - parentRef.setAssociationType(ContentModel.ASSOC_CHILDREN.toString()); - parentRef.setChildName(ContentModel.ASSOC_CHILDREN.toString()); - - NamedValue[] properties = new NamedValue[]{new NamedValue(ContentModel.PROP_NAME.toString(), name)}; - CMLCreate create = new CMLCreate("1", parentRef, ContentModel.TYPE_CONTENT.toString(), properties); - CML cml = new CML(); - cml.setCreate(new CMLCreate[]{create}); - UpdateResult[] result = this.repositoryService.update(cml); - - Reference newContentNode = result[0].getDestination(); - - Content content = this.contentService.write(newContentNode, ContentModel.PROP_CONTENT.toString(), contentValue.getBytes(), new ContentFormat("text/plain", "UTF-8")); - - assertNotNull(content); - assertNotNull(content.getFormat()); - assertEquals("text/plain", content.getFormat().getMimetype()); - - return content.getNode(); - } - - /** - * Get the content from the download servlet - * - * @param url - * @return - */ - protected String getContentAsString(String strUrl) throws Exception - { - // Add the ticket to the url - strUrl += "?ticket=" + TicketHolder.ticket; - - StringBuilder readContent = new StringBuilder(); - URL url = new URL(strUrl); - URLConnection conn = url.openConnection(); - InputStream is = conn.getInputStream(); - int read = is.read(); - while (read != -1) - { - readContent.append((char)read); - read = is.read(); - } - - return readContent.toString(); - } - - protected Predicate convertToPredicate(Reference reference) - { - Predicate predicate = new Predicate(); - predicate.setNodes(new Reference[] {reference}); - return predicate; - } - - private Properties getProperties() - { - if (this.properties == null) - { - this.properties = WebServiceBootstrapSystemTest - .getBootstrapProperties(); - } - return this.properties; - } - - private NodeRef getFolderNodeRef() - { - String strNodeRef = getProperties().getProperty(WebServiceBootstrapSystemTest.PROP_FOLDER_NODE_REF); - return new NodeRef(strNodeRef); - } -} diff --git a/source/java/org/alfresco/example/webservice/TicketHolder.java b/source/java/org/alfresco/example/webservice/TicketHolder.java deleted file mode 100644 index efd421a931..0000000000 --- a/source/java/org/alfresco/example/webservice/TicketHolder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2005 Alfresco, Inc. - * - * Licensed under the Mozilla Public License version 1.1 - * with a permitted attribution clause. You may obtain a - * copy of the License at - * - * http://www.alfresco.org/legal/license.txt - * - * 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.alfresco.example.webservice; - -import java.io.IOException; - -import javax.security.auth.callback.Callback; -import javax.security.auth.callback.CallbackHandler; -import javax.security.auth.callback.UnsupportedCallbackException; - -import org.apache.ws.security.WSPasswordCallback; - -/** - * Implements CallbackHandler which returns the currently stored ticket in - * the static ticket field. - * - * @author gavinc - */ -public class TicketHolder implements CallbackHandler -{ - public static String ticket; - - /** - * @see javax.security.auth.callback.CallbackHandler#handle(javax.security.auth.callback.Callback[]) - */ - public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException - { - for (int i = 0; i < callbacks.length; i++) - { - if (callbacks[i] instanceof WSPasswordCallback) - { - WSPasswordCallback pc = (WSPasswordCallback)callbacks[i]; - pc.setPassword(ticket); - } - else - { - throw new UnsupportedCallbackException(callbacks[i], "Unrecognized Callback"); - } - } - } -} diff --git a/source/java/org/alfresco/example/webservice/WebServiceBootstrapSystemTest.java b/source/java/org/alfresco/example/webservice/WebServiceBootstrapSystemTest.java deleted file mode 100644 index 3f5e4c6ff3..0000000000 --- a/source/java/org/alfresco/example/webservice/WebServiceBootstrapSystemTest.java +++ /dev/null @@ -1,193 +0,0 @@ -package org.alfresco.example.webservice; - -import java.io.BufferedReader; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.OutputStream; -import java.io.Serializable; -import java.util.HashMap; -import java.util.Map; -import java.util.Properties; - -import javax.transaction.UserTransaction; - -import junit.framework.TestCase; - -import org.alfresco.error.AlfrescoRuntimeException; -import org.alfresco.model.ContentModel; -import org.alfresco.repo.content.MimetypeMap; -import org.alfresco.repo.security.authentication.AuthenticationComponent; -import org.alfresco.service.cmr.repository.ContentService; -import org.alfresco.service.cmr.repository.ContentWriter; -import org.alfresco.service.cmr.repository.NodeRef; -import org.alfresco.service.cmr.repository.NodeService; -import org.alfresco.service.cmr.repository.StoreRef; -import org.alfresco.service.cmr.view.ImporterService; -import org.alfresco.service.cmr.view.Location; -import org.alfresco.service.namespace.NamespaceService; -import org.alfresco.service.namespace.QName; -import org.alfresco.service.transaction.TransactionService; -import org.springframework.context.support.ClassPathXmlApplicationContext; - -import com.sun.corba.se.impl.orb.ParserTable.TestContactInfoListFactory; - -public class WebServiceBootstrapSystemTest extends TestCase -{ - /** - * NOTE: You need to set the location of the indexes and content store to be a non-realtive - * location in the repository.properties file otherwise running this test here will not - * populate the correct index and content store and the test won't work when running against - * the repository - */ - - public static final String FOLDER_NAME = "test folder"; - public static final String CONTENT_NAME = "test content"; - - public static final String PROP_STORE_REF = "storeRef"; - public static final String PROP_ROOT_NODE_REF = "rootNodeRef"; - public static final String PROP_FOLDER_NODE_REF = "folderNodeRef"; - public static final String PROP_CONTENT_NODE_REF = "contentNodeRef"; - - private static final String TEMP_BOOTSTRAP_PROPERTIES = "./WebServiceTestBootstrap.properties"; - - private static final String TEST_CONTENT = "This is some test content. This is some test content."; - - - /** - * Runs the bootstrap and populates the property file with the infomration required for the tests - */ - public void testBootstrap() - { - ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:alfresco/application-context.xml"); - - // Get the services - TransactionService transactionService = (TransactionService)applicationContext.getBean("transactionComponent"); - AuthenticationComponent authenticationComponent = (AuthenticationComponent)applicationContext.getBean("authenticationComponent"); - NodeService nodeService = (NodeService)applicationContext.getBean("NodeService"); - ContentService contentService = (ContentService)applicationContext.getBean("contentService"); - ImporterService importerService = (ImporterService)applicationContext.getBean("importerComponent"); - - UserTransaction userTransaction = transactionService.getUserTransaction(); - authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); - try - { - - StoreRef storeRef = null; - NodeRef rootNodeRef = null; - NodeRef folderNodeRef = null; - NodeRef testContent = null; - - try - { - userTransaction.begin(); - - // Create the store - storeRef = nodeService.createStore(StoreRef.PROTOCOL_WORKSPACE, "Test_" + System.currentTimeMillis()); - rootNodeRef = rootNodeRef = nodeService.getRootNode(storeRef); - - // Import the categories - InputStream viewStream = getClass().getClassLoader().getResourceAsStream("alfresco/bootstrap/categories.xml"); - BufferedReader reader = new BufferedReader(new InputStreamReader(viewStream)); - Location importLocation = new Location(storeRef); - importLocation.setPath("/"); - importerService.importView(reader, importLocation, null, null); - - // Folder properties - Map folderProps = new HashMap(1); - folderProps.put(ContentModel.PROP_NAME, FOLDER_NAME); - - // Create a folder - folderNodeRef = nodeService.createNode( - rootNodeRef, - ContentModel.ASSOC_CHILDREN, - ContentModel.ASSOC_CHILDREN, - ContentModel.TYPE_FOLDER, - folderProps).getChildRef(); - - Map contentProps = new HashMap(3); - contentProps.put(ContentModel.PROP_NAME, CONTENT_NAME); - - // Create some test content - testContent = nodeService.createNode( - rootNodeRef, - ContentModel.ASSOC_CHILDREN, - ContentModel.ASSOC_CHILDREN, - ContentModel.TYPE_CONTENT, - contentProps).getChildRef(); - ContentWriter writer = contentService.getWriter(testContent, ContentModel.PROP_CONTENT, true); - writer.setMimetype(MimetypeMap.MIMETYPE_TEXT_PLAIN); - writer.setEncoding("UTF-8"); - writer.putContent(TEST_CONTENT); - - // Add the translatable aspect to the test content - nodeService.addAspect(testContent, QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "translatable"), null); - - // Create content to be the translation of the translatable content - NodeRef testContent2 = nodeService.createNode( - rootNodeRef, - ContentModel.ASSOC_CHILDREN, - ContentModel.ASSOC_CHILDREN, - ContentModel.TYPE_CONTENT, - contentProps).getChildRef(); - ContentWriter writer2 = contentService.getWriter(testContent2, ContentModel.PROP_CONTENT, true); - writer2.setMimetype(MimetypeMap.MIMETYPE_TEXT_PLAIN); - writer2.setEncoding("UTF-8"); - writer2.putContent(TEST_CONTENT); - - // Add the association from the master content to the translated content - nodeService.createAssociation(testContent, testContent2, QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "translations")); - - userTransaction.commit(); - } - catch(Throwable e) - { - // rollback the transaction - try { if (userTransaction != null) {userTransaction.rollback();} } catch (Exception ex) {} - try {authenticationComponent.clearCurrentSecurityContext(); } catch (Exception ex) {} - throw new AlfrescoRuntimeException("Bootstrap failed", e); - } - - Properties properties = new Properties(); - properties.put(PROP_STORE_REF, storeRef.toString()); - properties.put(PROP_ROOT_NODE_REF, rootNodeRef.toString()); - properties.put(PROP_FOLDER_NODE_REF, folderNodeRef.toString()); - properties.put(PROP_CONTENT_NODE_REF, testContent.toString()); - - try - { - OutputStream outputStream = new FileOutputStream(TEMP_BOOTSTRAP_PROPERTIES); - properties.store(outputStream, "Web service node store details"); - outputStream.flush(); - } - catch (Exception e) - { - e.printStackTrace(); - fail("Unable to store bootstrap details."); - } - - //System.out.println(NodeStoreInspector.dumpNodeStore(nodeService, storeRef)); - } - finally - { - authenticationComponent.clearCurrentSecurityContext(); - } - } - - public static Properties getBootstrapProperties() - { - Properties properties = new Properties(); - try - { - InputStream inputStream = new FileInputStream(TEMP_BOOTSTRAP_PROPERTIES); - properties.load(inputStream); - } - catch (Exception e) - { - e.printStackTrace(); - fail("Unable to load test bootstrap details. Try running WebServiceBootstrapSystem test, then re-start container and try again."); - } - return properties; - } -} diff --git a/source/java/org/alfresco/example/webservice/WebServiceSuiteSystemTest.java b/source/java/org/alfresco/example/webservice/WebServiceSuiteSystemTest.java deleted file mode 100644 index 6e30556bba..0000000000 --- a/source/java/org/alfresco/example/webservice/WebServiceSuiteSystemTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2005 Alfresco, Inc. - * - * Licensed under the Mozilla Public License version 1.1 - * with a permitted attribution clause. You may obtain a - * copy of the License at - * - * http://www.alfresco.org/legal/license.txt - * - * 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.alfresco.example.webservice; - - -import junit.framework.Test; -import junit.framework.TestSuite; - -import org.alfresco.example.webservice.authentication.AuthenticationServiceSystemTest; -import org.alfresco.example.webservice.authoring.AuthoringServiceSystemTest; -import org.alfresco.example.webservice.classification.ClassificationServiceSystemTest; -import org.alfresco.example.webservice.content.ContentServiceSystemTest; -import org.alfresco.example.webservice.repository.RepositoryServiceSystemTest; -import org.alfresco.repo.webservice.CMLUtilTest; - -public class WebServiceSuiteSystemTest extends TestSuite -{ - public static Test suite() - { - TestSuite suite = new TestSuite(); - suite.addTestSuite(CMLUtilTest.class); - suite.addTestSuite(AuthenticationServiceSystemTest.class); - suite.addTestSuite(AuthoringServiceSystemTest.class); - suite.addTestSuite(ClassificationServiceSystemTest.class); - suite.addTestSuite(ContentServiceSystemTest.class); - suite.addTestSuite(RepositoryServiceSystemTest.class); - return suite; - } -} diff --git a/source/java/org/alfresco/example/webservice/authentication/AuthenticationServiceSystemTest.java b/source/java/org/alfresco/example/webservice/authentication/AuthenticationServiceSystemTest.java deleted file mode 100644 index e52af37dbb..0000000000 --- a/source/java/org/alfresco/example/webservice/authentication/AuthenticationServiceSystemTest.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright (C) 2005 Alfresco, Inc. - * - * Licensed under the Mozilla Public License version 1.1 - * with a permitted attribution clause. You may obtain a - * copy of the License at - * - * http://www.alfresco.org/legal/license.txt - * - * 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.alfresco.example.webservice.authentication; - -import javax.xml.rpc.ServiceException; - -import junit.framework.AssertionFailedError; - -import org.alfresco.util.BaseTest; - -/** - * Tests the AuthenticationService by trying to login as admin/admin and - * attempting to login with incorrect credentials. - * - * @author gavinc - */ -public class AuthenticationServiceSystemTest extends BaseTest -{ - private AuthenticationServiceSoapBindingStub binding; - - /** - * @see junit.framework.TestCase#setUp() - */ - @Override - protected void setUp() throws Exception - { - super.setUp(); - try - { - this.binding = (AuthenticationServiceSoapBindingStub)new AuthenticationServiceLocator().getAuthenticationService(); - } - catch (ServiceException jre) - { - if (jre.getLinkedCause() != null) - { - jre.getLinkedCause().printStackTrace(); - } - - throw new AssertionFailedError("JAX-RPC ServiceException caught: " + jre); - } - - assertNotNull("binding is null", this.binding); - - // Time out after a minute - binding.setTimeout(60000); - } - - /** - * Tests whether the authentication service is working correctly - * - * @throws Exception - */ - public void testSuccessfulLogin() throws Exception - { - try - { - AuthenticationResult value = this.binding.startSession("admin", "admin"); - assertNotNull("result must not be null", value); - System.out.println("ticket = " + value.getTicket()); - } - catch (AuthenticationFault error) - { - throw new AssertionFailedError("AuthenticationFault Exception caught: " + error); - } - } - - /** - * Tests that a failed authentication attempt fails as expected - * - * @throws Exception - */ - public void testFailedLogin() throws Exception - { - try - { - AuthenticationResult result = this.binding.startSession("wrong", "credentials"); - fail("The credentials are incorrect so an AuthenticationFault should have been thrown"); - } - catch (AuthenticationFault error) - { - // we expected this - } - } - - public void testEndSession() throws Exception - { - this.binding.startSession("admin", "admin"); - this.binding.endSession(); - } -} diff --git a/source/java/org/alfresco/example/webservice/authoring/AuthoringServiceSystemTest.java b/source/java/org/alfresco/example/webservice/authoring/AuthoringServiceSystemTest.java deleted file mode 100644 index acb6260440..0000000000 --- a/source/java/org/alfresco/example/webservice/authoring/AuthoringServiceSystemTest.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Copyright (C) 2005 Alfresco, Inc. - * - * Licensed under the Mozilla Public License version 1.1 - * with a permitted attribution clause. You may obtain a - * copy of the License at - * - * http://www.alfresco.org/legal/license.txt - * - * 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.alfresco.example.webservice.authoring; - - -import javax.xml.rpc.ServiceException; - -import junit.framework.AssertionFailedError; - -import org.alfresco.example.webservice.BaseWebServiceSystemTest; -import org.alfresco.example.webservice.content.Content; -import org.alfresco.example.webservice.types.ContentFormat; -import org.alfresco.example.webservice.types.NamedValue; -import org.alfresco.example.webservice.types.ParentReference; -import org.alfresco.example.webservice.types.Predicate; -import org.alfresco.example.webservice.types.Reference; -import org.alfresco.example.webservice.types.Version; -import org.alfresco.example.webservice.types.VersionHistory; -import org.alfresco.model.ContentModel; -import org.alfresco.repo.content.MimetypeMap; -import org.alfresco.service.namespace.QName; -import org.apache.axis.EngineConfiguration; -import org.apache.axis.configuration.FileProvider; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - -public class AuthoringServiceSystemTest extends BaseWebServiceSystemTest -{ - @SuppressWarnings("unused") - private static Log logger = LogFactory.getLog(AuthoringServiceSystemTest.class); - - private static final String INITIAL_VERSION_CONTENT = "Content of the initial version"; - private static final String SECOND_VERSION_CONTENT = "The content for the second version is completely different"; - - private static final String VALUE_DESCRIPTION = "description"; - - private AuthoringServiceSoapBindingStub authoringService; - - @Override - protected void setUp() throws Exception - { - super.setUp(); - - try - { - EngineConfiguration config = new FileProvider(getResourcesDir(), - "client-deploy.wsdd"); - this.authoringService = (AuthoringServiceSoapBindingStub) new AuthoringServiceLocator( - config).getAuthoringService(); - } - catch (ServiceException jre) - { - if (jre.getLinkedCause() != null) - { - jre.getLinkedCause().printStackTrace(); - } - - throw new AssertionFailedError("JAX-RPC ServiceException caught: " - + jre); - } - - assertNotNull(this.authoringService); - - // Time out after a minute - this.authoringService.setTimeout(60000); - } - - /** - * Tests the checkout service method - * - * @throws Exception - */ - public void testCheckout() throws Exception - { - doCheckOut(); - - // TODO test multiple checkout - } - - /** - * Reusable method to do a standard checkout - * - * @return - * @throws Exception - */ - private Reference doCheckOut() throws Exception - { - // Use the helper to create the verionable node - Reference reference = createContentAtRoot("version_test.txt", INITIAL_VERSION_CONTENT); - Predicate predicate = convertToPredicate(reference); - - // Check the content out (to the same detination) - CheckoutResult result = this.authoringService.checkout(predicate, null); - assertNotNull(result); - assertEquals(1, result.getOriginals().length); - assertEquals(1, result.getWorkingCopies().length); - - // TODO need to check that the working copy and the origional are in the correct states ... - - return result.getWorkingCopies()[0]; - } - - /** - * Tests the checkout service method passing a destination for the working - * copy - * - * @throws Exception - */ - public void testCheckoutWithDestination() throws Exception - { - Reference reference = createContentAtRoot("version_test.txt", INITIAL_VERSION_CONTENT); - Predicate predicate = convertToPredicate(reference); - ParentReference parentReference = getFolderParentReference(QName.createQName("{test}workingCopy")); - - // Checkout the content to the folder - CheckoutResult result = this.authoringService.checkout(predicate, parentReference); - assertNotNull(result); - assertEquals(1, result.getOriginals().length); - assertEquals(1, result.getWorkingCopies().length); - - // TODO need to check that the working copy and the origional are in the correct states - } - - /** - * Tests the checkin service method - * - * @throws Exception - */ - public void testCheckin() throws Exception - { - // First we need to check a document out - Reference workingCopy = doCheckOut(); - - // Check in but keep checked out - Predicate predicate = convertToPredicate(workingCopy); - NamedValue[] comments = getVersionComments(); - CheckinResult checkinResult = this.authoringService.checkin(predicate, comments, true); - - // Check the result - assertNotNull(checkinResult); - assertEquals(1, checkinResult.getCheckedIn().length); - assertEquals(1, checkinResult.getWorkingCopies().length); - // TODO check that state of the orig and working copies - - // Checkin but don't keep checked out - Predicate predicate2 = convertToPredicate(checkinResult.getWorkingCopies()[0]); - CheckinResult checkinResult2 = this.authoringService.checkin(predicate2, comments, false); - - // Check the result - assertNotNull(checkinResult2); - assertEquals(1, checkinResult2.getCheckedIn().length); - assertNull(checkinResult2.getWorkingCopies()); - // TODO check the above behaviour ... - // TODO check that the state of the org and working copies - - // TODO check multiple checkin - } - - /** - * Helper method to get a list of version comments - * - * @return - */ - private NamedValue[] getVersionComments() - { - NamedValue[] comments = new NamedValue[1]; - comments[0] = new NamedValue(org.alfresco.service.cmr.version.Version.PROP_DESCRIPTION, VALUE_DESCRIPTION); - return comments; - } - - /** - * Tests the checkinExternal service method - * - * @throws Exception - */ - public void testCheckinExternal() throws Exception - { - // First we need to check a document out - Reference workingCopy = doCheckOut(); - - // Check in with external content - NamedValue[] comments = getVersionComments(); - ContentFormat contentFormat = new ContentFormat(MimetypeMap.MIMETYPE_TEXT_PLAIN, "UTF-8"); - Reference origionalNode = this.authoringService.checkinExternal(workingCopy, comments, false, contentFormat, SECOND_VERSION_CONTENT.getBytes()); - - // Check the origianl Node - assertNotNull(origionalNode); - Content[] contents = this.contentService.read(new Predicate(new Reference[]{origionalNode}, getStore(), null), ContentModel.PROP_CONTENT.toString()); - Content readResult = contents[0]; - assertNotNull(readResult); - String checkedInContent = getContentAsString(readResult.getUrl()); - assertNotNull(checkedInContent); - assertEquals(SECOND_VERSION_CONTENT, checkedInContent); - } - - /** - * Tests the cancelCheckout service method - * - * @throws Exception - */ - public void testCancelCheckout() throws Exception - { - // Check out a node - Reference workingCopy = doCheckOut(); - - // Cancel the check out - Predicate predicate = convertToPredicate(workingCopy); - CancelCheckoutResult result = this.authoringService.cancelCheckout(predicate); - - // Check the result - assertNotNull(result); - assertEquals(1, result.getOriginals().length); - // TODO check that state of the orig and that the working copy has been deleted - - // TODO I don't think that the working copies should be returned in the result since they have been deleted !! - } - - /** - * Tests the lock service methods, lock, unlock and getStaus - * - * @throws Exception - */ - public void testLockUnLockGetStatus() throws Exception - { - Reference reference = createContentAtRoot("lock_test1.txt", INITIAL_VERSION_CONTENT); - Predicate predicate = convertToPredicate(reference); - - // Get the status - checkLockStatus(predicate, null, null); - - // Lock with a write lock - Reference[] lockedRefs = this.authoringService.lock(predicate, false, LockTypeEnum.write); - assertNotNull(lockedRefs); - assertEquals(1, lockedRefs.length); - // TODO check in more detail - - // Get the status - checkLockStatus(predicate, USERNAME, LockTypeEnum.write); - - // Unlock (bad) -// try -// { -// this.authoringService.unlock(predicate, "bad", false); -// fail("This should have thrown an exception."); -// } -// catch (Throwable exception) -// { -// // Good .. we where expceting this -// } - - // Unlock (good) - Reference[] unlocked = this.authoringService.unlock(predicate, false); - assertNotNull(unlocked); - assertEquals(1, unlocked.length); - - // Get the status - checkLockStatus(predicate, null, null); - - // Read lock - Reference[] lockedRefs2 = this.authoringService.lock(predicate, false, LockTypeEnum.read); - - assertNotNull(lockedRefs2); - assertEquals(1, lockedRefs2.length); - // TODO check in more detail - - // Get the status - checkLockStatus(predicate, USERNAME, LockTypeEnum.read); - } - - private void checkLockStatus(Predicate predicate, String lockOwner, LockTypeEnum lockType) - throws Exception - { - LockStatus[] lockStatus1 = this.authoringService.getLockStatus(predicate); - assertNotNull(lockStatus1); - assertEquals(1, lockStatus1.length); - LockStatus ls1 = lockStatus1[0]; - assertNotNull(ls1); - assertEquals(lockOwner, ls1.getLockOwner()); - assertEquals(lockType, ls1.getLockType()); - } - - /** - * Tests the createVersion service method - * - * @throws Exception - */ - public void testVersionMethods() throws Exception - { - Reference reference = createContentAtRoot("create_version_test.txt", INITIAL_VERSION_CONTENT); - Predicate predicate = convertToPredicate(reference); - - // Get the version history (before its been versioned) - VersionHistory emptyVersionHistory = this.authoringService.getVersionHistory(reference); - assertNotNull(emptyVersionHistory); - assertNull(emptyVersionHistory.getVersions()); - - // Create the version - VersionResult result = this.authoringService.createVersion(predicate, getVersionComments(), false); - assertNotNull(result); - assertEquals(1, result.getNodes().length); - assertEquals(1, result.getVersions().length); - Version version = result.getVersions()[0]; - assertEquals("1.0", version.getLabel()); - // TODO check commentaries - // TODO check creator - - // Get the version history - VersionHistory versionHistory = this.authoringService.getVersionHistory(reference); - assertNotNull(versionHistory); - assertEquals(2, versionHistory.getVersions().length); - // TODO some more tests ... - - // Update the content - this.contentService.write(reference, ContentModel.PROP_CONTENT.toString(), SECOND_VERSION_CONTENT.getBytes(), null); - - // Create another version - VersionResult versionResult2 = this.authoringService.createVersion(predicate, getVersionComments(), false); - assertNotNull(versionResult2); - assertEquals(1, versionResult2.getNodes().length); - assertEquals(1, versionResult2.getVersions().length); - Version version2 = versionResult2.getVersions()[0]; - assertEquals("1.3", version2.getLabel()); - // TODO check commentaries - // TODO check creator - - // Check the version history - VersionHistory versionHistory2 = this.authoringService.getVersionHistory(reference); - assertNotNull(versionHistory2); - assertEquals(4, versionHistory2.getVersions().length); - // TODO some more tests ... - - // Confirm the current content of the node - Content[] contents = this.contentService.read(new Predicate(new Reference[]{reference}, getStore(), null), ContentModel.PROP_CONTENT.toString()); - Content readResult1 = contents[0]; - String content1 = getContentAsString(readResult1.getUrl()); - assertEquals(SECOND_VERSION_CONTENT, content1); - - // Revert the node to the first version - this.authoringService.revertVersion(reference, "1.0"); - - // Confirm that the state of the node has been reverted - Content[] contents2 = this.contentService.read(new Predicate(new Reference[]{reference}, getStore(), null), ContentModel.PROP_CONTENT.toString()); - Content readResult2 = contents2[0]; - String content2 = getContentAsString(readResult2.getUrl()); - assertEquals(INITIAL_VERSION_CONTENT, content2); - - // Now delete the version history - VersionHistory deletedVersionHistory = this.authoringService.deleteAllVersions(reference); - assertNotNull(deletedVersionHistory); - assertNull(deletedVersionHistory.getVersions()); - - // Check the version history - VersionHistory versionHistory3 = this.authoringService.getVersionHistory(reference); - assertNotNull(versionHistory3); - assertNull(versionHistory3.getVersions()); - } -} diff --git a/source/java/org/alfresco/example/webservice/classification/ClassificationServiceSystemTest.java b/source/java/org/alfresco/example/webservice/classification/ClassificationServiceSystemTest.java deleted file mode 100644 index c2a80c6275..0000000000 --- a/source/java/org/alfresco/example/webservice/classification/ClassificationServiceSystemTest.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright (C) 2005 Alfresco, Inc. - * - * Licensed under the Mozilla Public License version 1.1 - * with a permitted attribution clause. You may obtain a - * copy of the License at - * - * http://www.alfresco.org/legal/license.txt - * - * 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.alfresco.example.webservice.classification; - -import javax.xml.rpc.ServiceException; - -import junit.framework.AssertionFailedError; - -import org.alfresco.example.webservice.BaseWebServiceSystemTest; -import org.alfresco.example.webservice.types.Category; -import org.alfresco.example.webservice.types.ClassDefinition; -import org.alfresco.example.webservice.types.Classification; -import org.alfresco.example.webservice.types.Predicate; -import org.alfresco.example.webservice.types.Reference; -import org.alfresco.util.GUID; -import org.apache.axis.EngineConfiguration; -import org.apache.axis.configuration.FileProvider; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - -public class ClassificationServiceSystemTest extends BaseWebServiceSystemTest -{ - private static Log logger = LogFactory - .getLog(ClassificationServiceSystemTest.class); - - private ClassificationServiceSoapBindingStub classificationService; - - @Override - protected void setUp() throws Exception - { - super.setUp(); - - try - { - EngineConfiguration config = new FileProvider(getResourcesDir(), - "client-deploy.wsdd"); - this.classificationService = (ClassificationServiceSoapBindingStub) new ClassificationServiceLocator( - config).getClassificationService(); - } catch (ServiceException jre) - { - if (jre.getLinkedCause() != null) - { - jre.getLinkedCause().printStackTrace(); - } - - throw new AssertionFailedError("JAX-RPC ServiceException caught: " - + jre); - } - - assertNotNull("contentService is null", this.classificationService); - - // Time out after a minute - this.classificationService.setTimeout(60000); - } - - /** - * Tests the getClassifications service method - * - * @throws Exception - */ - public void testGetClassifications() throws Exception - { - Classification[] classifications = this.classificationService - .getClassifications(getStore()); - - assertNotNull(classifications); - assertTrue((classifications.length != 0)); - Classification classification = classifications[0]; - assertNotNull(classification.getTitle()); - assertNotNull(classification.getRootCategory()); - assertNotNull(classification.getRootCategory().getId()); - assertNotNull(classification.getRootCategory().getTitle()); - - if (logger.isDebugEnabled() == true) - { - for (Classification item : classifications) - { - logger.debug( - "Classification '" + - item.getTitle() + - "' with root category '" + - item.getRootCategory().getTitle() + - "'"); - } - } - } - - /** - * Tests the getChildCategories service method - * - * @throws Exception - */ - public void testGetChildCategories() throws Exception - { - Classification[] classifications = this.classificationService.getClassifications(getStore()); - Reference parentCategory = classifications[0].getRootCategory().getId(); - - Category[] categories = this.classificationService.getChildCategories(parentCategory); - assertNotNull(categories); - assertTrue((categories.length != 0)); - Category item = categories[0]; - assertNotNull(item.getId()); - assertNotNull(item.getTitle()); - - if (logger.isDebugEnabled() == true) - { - for (Category category : categories) - { - logger.debug( - "Sub-category '" + - category.getTitle() + - "'"); - } - } - } - - /** - * Tests the getCategories and setCategories service methods - * - * @throws Exception - */ - public void testGetAndSetCategories() throws Exception - { - Classification[] classifications = this.classificationService.getClassifications(getStore()); - String classification = classifications[0].getClassification(); - Reference category = classifications[0].getRootCategory().getId(); - - Reference reference = createContentAtRoot(GUID.generate(), "Any old content."); - Predicate predicate = convertToPredicate(reference); - - // First try and get the categories for a uncategoried node - CategoriesResult[] result1 = this.classificationService.getCategories(predicate); - assertNotNull(result1); - assertEquals(1, result1.length); - assertNull(result1[0].getCategories()); - - AppliedCategory appliedCategory = new AppliedCategory(); - appliedCategory.setCategories(new Reference[]{category}); - appliedCategory.setClassification(classification); - - AppliedCategory[] appliedCategories = new AppliedCategory[]{appliedCategory}; - - // Now classify the node - CategoriesResult[] result2 = this.classificationService.setCategories(predicate, appliedCategories); - assertNotNull(result2); - assertEquals(1, result2.length); - - // Now get the value back - CategoriesResult[] result3 = this.classificationService.getCategories(predicate); - assertNotNull(result3); - assertEquals(1, result3.length); - CategoriesResult categoryResult = result3[0]; - assertEquals(reference.getUuid(), categoryResult.getNode().getUuid()); - AppliedCategory[] appCats = categoryResult.getCategories(); - assertNotNull(appCats); - assertEquals(1, appCats.length); - AppliedCategory appCat = appCats[0]; - assertEquals(classification, appCat.getClassification()); - Reference[] refs = appCat.getCategories(); - assertNotNull(refs); - assertEquals(1, refs.length); - Reference ref = refs[0]; - assertEquals(category.getUuid(), ref.getUuid()); - - // TODO test multiple classifiations - // TODO test clearing the classifications - // TODO test updating the classifications - } - - - /** - * Tests the describeClassification service method - * - * @throws Exception - */ - public void testDescribeClassification() throws Exception - { - Classification[] classifications = this.classificationService.getClassifications(getStore()); - String classification = classifications[0].getClassification(); - - ClassDefinition classDefinition = this.classificationService.describeClassification(classification); - - assertNotNull(classDefinition); - } -} diff --git a/source/java/org/alfresco/example/webservice/content/ContentServiceSystemTest.java b/source/java/org/alfresco/example/webservice/content/ContentServiceSystemTest.java deleted file mode 100644 index f731438456..0000000000 --- a/source/java/org/alfresco/example/webservice/content/ContentServiceSystemTest.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright (C) 2005 Alfresco, Inc. - * - * Licensed under the Mozilla Public License version 1.1 - * with a permitted attribution clause. You may obtain a - * copy of the License at - * - * http://www.alfresco.org/legal/license.txt - * - * 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.alfresco.example.webservice.content; - -import org.alfresco.example.webservice.BaseWebServiceSystemTest; -import org.alfresco.example.webservice.repository.UpdateResult; -import org.alfresco.example.webservice.types.CML; -import org.alfresco.example.webservice.types.CMLCreate; -import org.alfresco.example.webservice.types.ContentFormat; -import org.alfresco.example.webservice.types.NamedValue; -import org.alfresco.example.webservice.types.ParentReference; -import org.alfresco.example.webservice.types.Predicate; -import org.alfresco.example.webservice.types.Reference; -import org.alfresco.model.ContentModel; -import org.alfresco.repo.content.MimetypeMap; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - -public class ContentServiceSystemTest extends BaseWebServiceSystemTest -{ - private static final String CONTENT = "This is a small piece of content to test the create service call"; - private static final String UPDATED_CONTENT = "This is some updated content to test the write service call"; - - private String fileName = "unit-test.txt"; - - public void testContentService() - throws Exception - { - ParentReference parentRef = new ParentReference(); - parentRef.setStore(getStore()); - parentRef.setUuid(getRootNodeReference().getUuid()); - parentRef.setAssociationType(ContentModel.ASSOC_CHILDREN.toString()); - parentRef.setChildName(ContentModel.ASSOC_CHILDREN.toString()); - - NamedValue[] properties = new NamedValue[]{new NamedValue(ContentModel.PROP_NAME.toString(), this.fileName)}; - CMLCreate create = new CMLCreate("1", parentRef, ContentModel.TYPE_CONTENT.toString(), properties); - CML cml = new CML(); - cml.setCreate(new CMLCreate[]{create}); - UpdateResult[] result = this.repositoryService.update(cml); - - Reference newContentNode = result[0].getDestination(); - String property = ContentModel.PROP_CONTENT.toString(); - Predicate predicate = new Predicate(new Reference[]{newContentNode}, getStore(), null); - - // First check a node that has no content set - Content[] contents1 = this.contentService.read(predicate, property); - assertNotNull(contents1); - assertEquals(1, contents1.length); - Content content1 = contents1[0]; - assertNotNull(content1); - assertEquals(0, content1.getLength()); - assertEquals(newContentNode.getUuid(), content1.getNode().getUuid()); - assertEquals(property, content1.getProperty()); - assertNull(content1.getUrl()); - assertNull(content1.getFormat()); - - // Write content - Content content2 = this.contentService.write(newContentNode, property, CONTENT.getBytes(), new ContentFormat(MimetypeMap.MIMETYPE_TEXT_PLAIN, "UTF-8")); - assertNotNull(content2); - assertTrue((content2.getLength() > 0)); - assertEquals(newContentNode.getUuid(), content2.getNode().getUuid()); - assertEquals(property, content2.getProperty()); - assertNotNull(content2.getUrl()); - assertNotNull(content2.getFormat()); - ContentFormat format2 = content2.getFormat(); - assertEquals(MimetypeMap.MIMETYPE_TEXT_PLAIN, format2.getMimetype()); - assertEquals("UTF-8", format2.getEncoding()); - assertEquals(CONTENT, getContentAsString(content2.getUrl())); - - // Read content - Content[] contents3 = this.contentService.read(predicate, property); - assertNotNull(contents3); - assertEquals(1, contents3.length); - Content content3 = contents3[0]; - assertNotNull(content3); - assertTrue((content3.getLength() > 0)); - assertEquals(newContentNode.getUuid(), content3.getNode().getUuid()); - assertEquals(property, content3.getProperty()); - assertNotNull(content3.getUrl()); - assertNotNull(content3.getFormat()); - ContentFormat format3 = content3.getFormat(); - assertEquals(MimetypeMap.MIMETYPE_TEXT_PLAIN, format3.getMimetype()); - assertEquals("UTF-8", format3.getEncoding()); - assertEquals(CONTENT, getContentAsString(content3.getUrl())); - - // Update content - Content content4 = this.contentService.write(newContentNode, property, UPDATED_CONTENT.getBytes(), new ContentFormat(MimetypeMap.MIMETYPE_TEXT_CSS, "UTF-8")); - assertNotNull(content4); - assertTrue((content4.getLength() > 0)); - assertEquals(newContentNode.getUuid(), content4.getNode().getUuid()); - assertEquals(property, content4.getProperty()); - assertNotNull(content4.getUrl()); - assertNotNull(content4.getFormat()); - ContentFormat format4 = content4.getFormat(); - assertEquals(MimetypeMap.MIMETYPE_TEXT_CSS, format4.getMimetype()); - assertEquals("UTF-8", format4.getEncoding()); - assertEquals(UPDATED_CONTENT, getContentAsString(content4.getUrl())); - - // Read updated content - Content[] contents5 = this.contentService.read(predicate, property); - assertNotNull(contents5); - assertEquals(1, contents5.length); - Content content5 = contents5[0]; - assertNotNull(content5); - assertTrue((content5.getLength() > 0)); - assertEquals(newContentNode.getUuid(), content5.getNode().getUuid()); - assertEquals(property, content5.getProperty()); - assertNotNull(content5.getUrl()); - assertNotNull(content5.getFormat()); - ContentFormat format5 = content5.getFormat(); - assertEquals(MimetypeMap.MIMETYPE_TEXT_CSS, format5.getMimetype()); - assertEquals("UTF-8", format5.getEncoding()); - assertEquals(UPDATED_CONTENT, getContentAsString(content5.getUrl())); - - // Clear content - Content[] contents6 = this.contentService.clear(predicate, property); - assertNotNull(contents6); - assertEquals(1, contents6.length); - Content content6 = contents6[0]; - assertNotNull(content6); - assertEquals(0, content6.getLength()); - assertEquals(newContentNode.getUuid(), content6.getNode().getUuid()); - assertEquals(property, content6.getProperty()); - assertNull(content6.getUrl()); - assertNull(content6.getFormat()); - - // Read cleared content - Content[] contents7 = this.contentService.read(predicate, property); - assertNotNull(contents7); - assertEquals(1, contents7.length); - Content content7 = contents7[0]; - assertNotNull(content7); - assertEquals(0, content7.getLength()); - assertEquals(newContentNode.getUuid(), content7.getNode().getUuid()); - assertEquals(property, content7.getProperty()); - assertNull(content7.getUrl()); - assertNull(content7.getFormat()); - } -} diff --git a/source/java/org/alfresco/example/webservice/repository/RepositoryServiceSystemTest.java b/source/java/org/alfresco/example/webservice/repository/RepositoryServiceSystemTest.java deleted file mode 100644 index 0f87f86726..0000000000 --- a/source/java/org/alfresco/example/webservice/repository/RepositoryServiceSystemTest.java +++ /dev/null @@ -1,535 +0,0 @@ -/* - * Copyright (C) 2005 Alfresco, Inc. - * - * Licensed under the Mozilla Public License version 1.1 - * with a permitted attribution clause. You may obtain a - * copy of the License at - * - * http://www.alfresco.org/legal/license.txt - * - * 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.alfresco.example.webservice.repository; - -import javax.xml.rpc.ServiceException; - -import junit.framework.AssertionFailedError; - -import org.alfresco.example.webservice.BaseWebServiceSystemTest; -import org.alfresco.example.webservice.WebServiceBootstrapSystemTest; -import org.alfresco.example.webservice.types.CML; -import org.alfresco.example.webservice.types.CMLAddAspect; -import org.alfresco.example.webservice.types.CMLCreate; -import org.alfresco.example.webservice.types.ClassDefinition; -import org.alfresco.example.webservice.types.NamedValue; -import org.alfresco.example.webservice.types.Node; -import org.alfresco.example.webservice.types.NodeDefinition; -import org.alfresco.example.webservice.types.ParentReference; -import org.alfresco.example.webservice.types.Predicate; -import org.alfresco.example.webservice.types.PropertyDefinition; -import org.alfresco.example.webservice.types.Query; -import org.alfresco.example.webservice.types.QueryConfiguration; -import org.alfresco.example.webservice.types.QueryLanguageEnum; -import org.alfresco.example.webservice.types.Reference; -import org.alfresco.example.webservice.types.ResultSet; -import org.alfresco.example.webservice.types.ResultSetRow; -import org.alfresco.example.webservice.types.ResultSetRowNode; -import org.alfresco.example.webservice.types.Store; -import org.alfresco.model.ContentModel; -import org.alfresco.repo.content.MimetypeMap; -import org.alfresco.service.cmr.repository.ContentData; -import org.alfresco.service.namespace.NamespaceService; -import org.alfresco.service.namespace.QName; -import org.apache.axis.EngineConfiguration; -import org.apache.axis.configuration.FileProvider; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - -public class RepositoryServiceSystemTest extends BaseWebServiceSystemTest -{ - private static Log logger = LogFactory - .getLog(RepositoryServiceSystemTest.class); - - private RepositoryServiceSoapBindingStub repoService; - - @Override - protected void setUp() throws Exception - { - super.setUp(); - - try - { - EngineConfiguration config = new FileProvider(getResourcesDir(), - "client-deploy.wsdd"); - this.repoService = (RepositoryServiceSoapBindingStub) new RepositoryServiceLocator( - config).getRepositoryService(); - } catch (ServiceException jre) - { - if (jre.getLinkedCause() != null) - { - jre.getLinkedCause().printStackTrace(); - } - - throw new AssertionFailedError("JAX-RPC ServiceException caught: " - + jre); - } - - assertNotNull("repoService is null", this.repoService); - - // Time out after a minute - this.repoService.setTimeout(60000); - } - - /** - * Tests the getStores method - * - * @throws Exception - */ - public void testGetStores() throws Exception - { - Store[] stores = this.repoService.getStores(); - assertNotNull("Stores array should not be null", stores); - assertTrue("There should be at least 1 store", stores.length >= 1); - } - - /** - * Tests the query service call - * - * @throws Exception - */ - public void testQuery() throws Exception - { - // Query query = new Query(QueryLanguageEnum.lucene, "*"); - Query query = new Query(QueryLanguageEnum.lucene, - "( +@\\{http\\://www.alfresco.org/1.0\\}name:test*) OR TEXT:test*"); - - QueryResult queryResult = this.repoService.query(getStore(), query, - false); - assertNotNull("queryResult should not be null", queryResult); - - ResultSet resultSet = queryResult.getResultSet(); - assertNotNull("The result set should not be null", resultSet); - logger.debug("There are " + resultSet.getTotalRowCount() + " rows:"); - - if (resultSet.getTotalRowCount() > 0) - { - ResultSetRow[] rows = resultSet.getRows(); - for (int x = 0; x < rows.length; x++) - { - ResultSetRow row = rows[x]; - NamedValue[] columns = row.getColumns(); - for (int y = 0; y < columns.length; y++) - { - logger.debug("row " + x + ": " - + row.getColumns(y).getName() + " = " - + row.getColumns(y).getValue()); - } - } - } else - { - logger.debug("The query returned no results"); - fail("The query returned no results"); - } - } - - /** - * Tests the ability to retrieve the results of a query in batches - * - * @throws Exception - */ - public void testQuerySession() throws Exception - { - // define a query that will return a lot of hits i.e. EVERYTHING - Query query = new Query(QueryLanguageEnum.lucene, "*"); - - // add the query configuration header to the call - int batchSize = 5; - QueryConfiguration queryCfg = new QueryConfiguration(); - queryCfg.setFetchSize(batchSize); - this.repoService.setHeader(new RepositoryServiceLocator() - .getServiceName().getNamespaceURI(), "QueryHeader", queryCfg); - - // get the first set of results back - QueryResult queryResult = this.repoService.query(getStore(), query, - false); - assertNotNull("queryResult should not be null", queryResult); - String querySession = queryResult.getQuerySession(); - String origQuerySession = querySession; - assertNotNull("querySession should not be null", querySession); - - ResultSet resultSet = queryResult.getResultSet(); - assertNotNull("The result set should not be null", resultSet); - logger.debug("There are " + resultSet.getTotalRowCount() - + " rows in total"); - logger.debug("There are " + resultSet.getRows().length - + " rows in the first set"); - assertEquals("The result set size should be " + batchSize, batchSize, - resultSet.getRows().length); - - // get the next batch of results - queryResult = this.repoService.fetchMore(querySession); - assertNotNull("queryResult should not be null", queryResult); - querySession = queryResult.getQuerySession(); - assertNotNull("querySession should not be null", querySession); - - ResultSet resultSet2 = queryResult.getResultSet(); - assertNotNull("The second result set should not be null", resultSet2); - logger.debug("There are " + resultSet2.getRows().length - + " rows in the second set"); - assertEquals("The result set size should be " + batchSize, batchSize, - resultSet2.getRows().length); - - // get the rest of the results to make sure it finishes properly - while (querySession != null) - { - queryResult = this.repoService.fetchMore(querySession); - assertNotNull("queryResult returned in loop should not be null", - queryResult); - querySession = queryResult.getQuerySession(); - logger.debug("There were another " - + queryResult.getResultSet().getRows().length - + " rows returned"); - } - - // try and fetch some more results and we should get an error - try - { - queryResult = this.repoService.fetchMore(origQuerySession); - fail("We should have seen an error as all the results have been returned"); - } catch (Exception e) - { - // expected - } - } - - /** - * Tests the queryParents service method - * - * @throws Exception - */ - public void testQueryParents() throws Exception - { - // query for all the child nodes of the root - Reference node = getRootNodeReference(); - String rootId = node.getUuid(); - - QueryResult rootChildren = this.repoService.queryChildren(node); - - assertNotNull("rootChildren should not be null", rootChildren); - ResultSet rootChildrenResults = rootChildren.getResultSet(); - assertNotNull("rootChildrenResults should not be null", - rootChildrenResults); - assertTrue("There should be at least one child of the root node", - rootChildrenResults.getRows().length > 0); - - // get hold of the id of the first child - ResultSetRow firstRow = rootChildrenResults.getRows(0); - assertNotNull("getColumns() should not return null", firstRow - .getColumns()); - String id = firstRow.getNode().getId(); - logger.debug("Retrieving parents for first node found: " + id + "...."); - - node = new Reference(); - node.setStore(getStore()); - node.setUuid(id); - QueryResult parents = this.repoService.queryParents(node); - - assertNotNull("parents should not be null", parents); - ResultSet parentsResults = parents.getResultSet(); - assertNotNull("parentsResults should not be null", parentsResults); - assertTrue("There should be at least one parent", parentsResults - .getRows().length > 0); - - // show the results - boolean rootFound = false; - ResultSetRow[] rows = parentsResults.getRows(); - for (int x = 0; x < rows.length; x++) - { - ResultSetRow row = rows[x]; - assertNotNull("getColumns() should not return null", row - .getColumns()); - ResultSetRowNode rowNode = row.getNode(); - String nodeId = rowNode.getId(); - logger.debug("parent node = " + nodeId + ", type = " - + rowNode.getType()); - - if (nodeId.equals(rootId) == true) - { - rootFound = true; - } - } - - // make sure the root node was one of the parents - assertTrue("The root node was not found as one of the parents!!", - rootFound); - } - - /* - * Tests the queryAssociated service method - * - * @throws Exception - */ - public void testQueryAssociated() throws Exception - { - Reference contentRef = this.getContentReference(); - - Association association = new Association(QName.createQName(NamespaceService.CONTENT_MODEL_PREFIX, "translations").toString(), AssociationDirectionEnum.target); - QueryResult result = this.repoService.queryAssociated(contentRef, new Association[]{association}); - assertNotNull(result); - assertNotNull(result.getResultSet()); - assertNotNull(result.getResultSet().getRows()); - assertEquals(1, result.getResultSet().getRows().length); - } - - /** - * Tests the describe service method - * - * @throws Exception - */ - public void testDescribe() throws Exception - { - // get hold of a node we know some info about so we can test the - // returned values (the Alfresco Tutorial PDF) - Query query = new Query(QueryLanguageEnum.lucene, - "( +@\\{http\\://www.alfresco.org/1.0\\}name:test*) OR TEXT:test*"); - QueryResult queryResult = this.repoService.query(getStore(), query, - false); - assertNotNull("queryResult should not be null", queryResult); - ResultSet resultSet = queryResult.getResultSet(); - assertNotNull("The result set should not be null", resultSet); - assertTrue("There should be at least one result", resultSet - .getTotalRowCount() > 0); - String id = resultSet.getRows(0).getNode().getId(); - assertNotNull("Id of Alfresco Tutorial PDF should not be null", id); - - // create a predicate object to to send to describe method - Reference ref = new Reference(); - ref.setStore(getStore()); - ref.setUuid(id); - Predicate predicate = new Predicate(new Reference[] { ref }, null, null); - - // make the service call - NodeDefinition[] nodeDefs = this.repoService.describe(predicate); - assertNotNull("nodeDefs should not be null", nodeDefs); - assertTrue("There should only be one result", nodeDefs.length == 1); - - // get the result - NodeDefinition nodeDef = nodeDefs[0]; - assertNotNull("The nodeDef should not be null", nodeDef); - ClassDefinition typeDef = nodeDef.getType(); - assertNotNull("Type definition should not be null", typeDef); - - assertEquals("Type name is incorrect", - "{http://www.alfresco.org/model/content/1.0}content", typeDef - .getName()); - assertEquals("Superclass type name is incorrect", - "{http://www.alfresco.org/model/content/1.0}cmobject", typeDef - .getSuperClass()); - assertEquals("Type title is incorrect", "Content", typeDef.getTitle()); - assertEquals("Type description is incorrect", "Base Content Object", typeDef - .getDescription()); - assertFalse("Type is an aspect and it shouldn't be", typeDef - .isIsAspect()); - assertNull("There should not be any associations", typeDef - .getAssociations()); - assertNotNull("Properties should not be null", typeDef.getProperties()); - assertEquals("There should be 2 properties", 2, - typeDef.getProperties().length); - - // check the name and type of each of the properties - assertEquals("Property1 name is incorrect", - "{http://www.alfresco.org/model/content/1.0}content", typeDef - .getProperties(0).getName()); - assertEquals("Property1 type name is incorrect", - "{http://www.alfresco.org/model/dictionary/1.0}content", typeDef - .getProperties(0).getDataType()); - - assertEquals("Property5 name is incorrect", - "{http://www.alfresco.org/model/content/1.0}name", typeDef - .getProperties(1).getName()); - assertEquals("Property5 type name is incorrect", - "{http://www.alfresco.org/model/dictionary/1.0}text", typeDef - .getProperties(1).getDataType()); - - // check the aspects - ClassDefinition[] aspects = nodeDef.getAspects(); - assertNotNull("aspects should not be null", aspects); - assertEquals("There should be 2 aspects", 2, aspects.length); - - // check the first aspect - ClassDefinition aspect1 = aspects[0]; - assertEquals("Aspect1 name is incorrect", - "{http://www.alfresco.org/model/system/1.0}referenceable", - aspect1.getName()); - assertTrue("Aspect1 should be an aspect", aspect1.isIsAspect()); - assertNotNull("Aspect1 should have properties", aspect1.getProperties()); - assertEquals("Aspect1 has wrong number of properties", 3, aspect1 - .getProperties().length); - - // check the second aspect - ClassDefinition aspect2 = aspects[1]; - assertEquals("Aspect2 name is incorrect", - "{http://www.alfresco.org/model/content/1.0}auditable", aspect2 - .getName()); - assertTrue("Aspect2 should be an aspect", aspect2.isIsAspect()); - assertNotNull("Aspect2 should have properties", aspect2.getProperties()); - assertEquals("Aspect2 has wrong number of properties", 5, aspect2 - .getProperties().length); - } - - /** - * Tests passing a query in the predicate to return items to describe - * - * @throws Exception - */ - public void testPredicateQuery() throws Exception - { - // define a query to add to the predicate (get everything that mentions - // 'test') - Query query = new Query(QueryLanguageEnum.lucene, - "( +@\\{http\\://www.alfresco.org/1.0\\}name:test*) OR TEXT:test*"); - - Predicate predicate = new Predicate(); - predicate.setQuery(query); - predicate.setStore(getStore()); - - // call the service and make sure we get some details back - NodeDefinition[] nodeDefs = this.repoService.describe(predicate); - assertNotNull("nodeDefs should not be null", nodeDefs); - assertTrue("There should be at least one result", nodeDefs.length > 0); - - NodeDefinition nodeDef = nodeDefs[0]; - assertNotNull("The nodeDef should not be null", nodeDef); - ClassDefinition typeDef = nodeDef.getType(); - assertNotNull("Type definition should not be null", typeDef); - - logger.debug("type name = " + typeDef.getName()); - logger.debug("is aspect = " + typeDef.isIsAspect()); - PropertyDefinition[] propDefs = typeDef.getProperties(); - if (propDefs != null) - { - logger.debug("There are " + propDefs.length + " properties:"); - for (int x = 0; x < propDefs.length; x++) - { - PropertyDefinition propDef = propDefs[x]; - logger.debug("name = " + propDef.getName() + " type = " - + propDef.getDataType()); - } - } - } - - /** - * Tests the use of a path within a reference - * - * @throws Exception - */ - public void testPathReference() throws Exception - { - // setup a predicate to find the test folder using an xpath - Reference ref = new Reference(); - ref.setStore(getStore()); - ref.setPath("//*[@cm:name = '" - + WebServiceBootstrapSystemTest.FOLDER_NAME + "']"); - Predicate predicate = new Predicate(); - predicate.setNodes(new Reference[] { ref }); - - // call the service and make sure we get some details back - NodeDefinition[] nodeDefs = this.repoService.describe(predicate); - assertNotNull("nodeDefs should not be null", nodeDefs); - assertTrue("There should be at least one result", nodeDefs.length > 0); - - NodeDefinition nodeDef = nodeDefs[0]; - assertNotNull("The nodeDef should not be null", nodeDef); - ClassDefinition typeDef = nodeDef.getType(); - assertNotNull("Type definition should not be null", typeDef); - - logger.debug("type name = " + typeDef.getName()); - assertEquals("Type is incorrect", - "{http://www.alfresco.org/model/content/1.0}folder", typeDef - .getName()); - logger.debug("is aspect = " + typeDef.isIsAspect()); - assertFalse("Item should not be an aspect", typeDef.isIsAspect()); - PropertyDefinition[] propDefs = typeDef.getProperties(); - if (propDefs != null) - { - logger.debug("There are " + propDefs.length + " properties:"); - for (int x = 0; x < propDefs.length; x++) - { - PropertyDefinition propDef = propDefs[x]; - logger.debug("name = " + propDef.getName() + " type = " - + propDef.getDataType()); - } - } - } - - /** - * Tests the update service method - * - * @throws Exception - */ - public void testUpdate() throws Exception - { - CMLCreate create = new CMLCreate(); - create.setId("id1"); - create.setType(ContentModel.TYPE_CONTENT.toString()); - - ParentReference parentReference = new ParentReference(); - parentReference.setAssociationType(ContentModel.ASSOC_CHILDREN - .toString()); - parentReference.setChildName(ContentModel.ASSOC_CHILDREN.toString()); - parentReference.setStore(getStore()); - parentReference.setUuid(getRootNodeReference().getUuid()); - - create.setParent(parentReference); - create.setProperty(new NamedValue[] { - new NamedValue( - ContentModel.PROP_NAME.toString(), - "name"), - new NamedValue( - ContentModel.PROP_CONTENT.toString(), - new ContentData(null, MimetypeMap.MIMETYPE_TEXT_PLAIN, 0L, "UTF-8").toString()) - }); - - CMLAddAspect aspect = new CMLAddAspect(); - aspect.setAspect(ContentModel.ASPECT_VERSIONABLE.toString()); - aspect.setWhere_id("id1"); - - CML cml = new CML(); - cml.setCreate(new CMLCreate[]{create}); - cml.setAddAspect(new CMLAddAspect[]{aspect}); - - UpdateResult[] results = this.repoService.update(cml); - assertNotNull(results); - assertEquals(2, results.length); - } - - public void testGet() - throws Exception - { - Predicate predicate = new Predicate(null, getStore(), null); - Node[] nodes = this.repoService.get(predicate); - assertNotNull(nodes); - assertEquals(1, nodes.length); - - Node rootNode = nodes[0]; - assertEquals(getRootNodeReference().getUuid(), rootNode.getReference().getUuid()); - - logger.debug("Root node type = " + rootNode.getType()); - String aspects = ""; - for (String aspect : rootNode.getAspects()) - { - aspects += aspect + ", "; - } - logger.debug("Root node aspects = " + aspects); - for (NamedValue prop : rootNode.getProperties()) - { - logger.debug("Root node property " + prop.getName() + " = " + prop.getValue()); - } - - } -} diff --git a/source/java/org/alfresco/example/webservice/sample/WebServiceSample1.java b/source/java/org/alfresco/example/webservice/sample/WebServiceSample1.java deleted file mode 100644 index 44d820b26a..0000000000 --- a/source/java/org/alfresco/example/webservice/sample/WebServiceSample1.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright (C) 2005 Alfresco, Inc. - * - * Licensed under the Mozilla Public License version 1.1 - * with a permitted attribution clause. You may obtain a - * copy of the License at - * - * http://www.alfresco.org/legal/license.txt - * - * 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.alfresco.example.webservice.sample; - -import java.io.ByteArrayInputStream; -import java.io.IOException; - -import javax.security.auth.callback.Callback; -import javax.security.auth.callback.CallbackHandler; -import javax.security.auth.callback.UnsupportedCallbackException; -import javax.xml.rpc.ServiceException; - -import org.alfresco.example.webservice.authentication.AuthenticationResult; -import org.alfresco.example.webservice.authentication.AuthenticationServiceLocator; -import org.alfresco.example.webservice.authentication.AuthenticationServiceSoapBindingStub; -import org.alfresco.example.webservice.repository.RepositoryServiceLocator; -import org.alfresco.example.webservice.repository.RepositoryServiceSoapBindingStub; -import org.alfresco.example.webservice.types.Store; -import org.apache.axis.EngineConfiguration; -import org.apache.axis.configuration.FileProvider; -import org.apache.ws.security.WSPasswordCallback; - -/** - * Web service sample 1. - *

- * Connect to the reposity and get a list of all the stores available in the repository. - * - * @author Roy Wetherall - */ -public class WebServiceSample1 implements CallbackHandler -{ - /** Admin user name and password used to connect to the repository */ - public static final String USERNAME = "admin"; - public static final String PASSWORD = "admin"; - - /** The current ticket */ - public static String currentTicket; - - /** WS security information */ - public static final String WS_SECURITY_INFO = - "" + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - ""; - - /** - * Connect to the respository and print out the names of the available - * - * @param args - */ - public static void main(String[] args) - throws Exception - { - AuthenticationServiceSoapBindingStub authenticationService = (AuthenticationServiceSoapBindingStub)new AuthenticationServiceLocator().getAuthenticationService(); - - // Start the session - AuthenticationResult result = authenticationService.startSession(WebServiceSample1.USERNAME, WebServiceSample1.PASSWORD); - WebServiceSample1.currentTicket = result.getTicket(); - - // Get a reference to the respository web service - RepositoryServiceSoapBindingStub repositoryService = getRepositoryWebService(); - - // Get array of stores available in the repository - Store[] stores = repositoryService.getStores(); - if (stores == null) - { - // NOTE: empty array are returned as a null object, this is a issue with the generated web service code. - System.out.println("There are no stores avilable in the repository."); - } - else - { - // Output the names of all the stores available in the repository - System.out.println("The following stores are available in the repository:"); - for (Store store : stores) - { - System.out.println(store.getAddress()); - } - } - - // End the session - authenticationService.endSession(); - } - - /** - * Get the respository web service. - * - * @return the respository web service - * @throws ServiceException Service Exception - */ - public static RepositoryServiceSoapBindingStub getRepositoryWebService() throws ServiceException - { - // Create the respository service, adding the WS security header information - EngineConfiguration config = new FileProvider(new ByteArrayInputStream(WebServiceSample1.WS_SECURITY_INFO.getBytes())); - RepositoryServiceLocator repositoryServiceLocator = new RepositoryServiceLocator(config); - RepositoryServiceSoapBindingStub repositoryService = (RepositoryServiceSoapBindingStub)repositoryServiceLocator.getRepositoryService(); - return repositoryService; - } - - /** - * The implementation of the passwrod call back used by the WS Security - * - * @see javax.security.auth.callback.CallbackHandler#handle(javax.security.auth.callback.Callback[]) - */ - public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException - { - for (int i = 0; i < callbacks.length; i++) - { - if (callbacks[i] instanceof WSPasswordCallback) - { - WSPasswordCallback pc = (WSPasswordCallback)callbacks[i]; - pc.setPassword(currentTicket); - } - else - { - throw new UnsupportedCallbackException(callbacks[i], "Unrecognized Callback"); - } - } - } -} diff --git a/source/java/org/alfresco/example/webservice/sample/WebServiceSample2.java b/source/java/org/alfresco/example/webservice/sample/WebServiceSample2.java deleted file mode 100644 index 9f690a1cc0..0000000000 --- a/source/java/org/alfresco/example/webservice/sample/WebServiceSample2.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Copyright (C) 2005 Alfresco, Inc. - * - * Licensed under the Mozilla Public License version 1.1 - * with a permitted attribution clause. You may obtain a - * copy of the License at - * - * http://www.alfresco.org/legal/license.txt - * - * 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.alfresco.example.webservice.sample; - -import java.rmi.RemoteException; - -import javax.xml.rpc.ServiceException; - -import org.alfresco.example.webservice.authentication.AuthenticationResult; -import org.alfresco.example.webservice.authentication.AuthenticationServiceLocator; -import org.alfresco.example.webservice.authentication.AuthenticationServiceSoapBindingStub; -import org.alfresco.example.webservice.repository.QueryResult; -import org.alfresco.example.webservice.repository.RepositoryFault; -import org.alfresco.example.webservice.repository.RepositoryServiceSoapBindingStub; -import org.alfresco.example.webservice.types.NamedValue; -import org.alfresco.example.webservice.types.Query; -import org.alfresco.example.webservice.types.QueryLanguageEnum; -import org.alfresco.example.webservice.types.Reference; -import org.alfresco.example.webservice.types.ResultSet; -import org.alfresco.example.webservice.types.ResultSetRow; -import org.alfresco.example.webservice.types.Store; -import org.alfresco.example.webservice.types.StoreEnum; - -/** - * Web service sample 2 - *

- * This sample shows how to execute a search using the repository web service and how to - * query for a nodes parents. - * - * @author Roy Wetherall - */ -public class WebServiceSample2 -{ - /** - * Main function - */ - public static void main(String[] args) - throws Exception - { - // Get the authentication service - AuthenticationServiceSoapBindingStub authenticationService = (AuthenticationServiceSoapBindingStub)new AuthenticationServiceLocator().getAuthenticationService(); - - // Start the session - AuthenticationResult result = authenticationService.startSession(WebServiceSample1.USERNAME, WebServiceSample1.PASSWORD); - WebServiceSample1.currentTicket = result.getTicket(); - - // Execute the search sample - executeSearch(); - - // End the session - authenticationService.endSession(); - } - - /** - * Executes a sample query and provides an example of using a parent query. - * - * @return returns a reference to a folder that is the parent of the search results - * ( used in further samples) - * @throws ServiceException Service exception - * @throws RemoteException Remove exception - * @throws RepositoryFault Repository fault - */ - public static Reference executeSearch() throws ServiceException, RemoteException, RepositoryFault - { - Reference parentReference = null; - - // Get a reference to the respository web service - RepositoryServiceSoapBindingStub repositoryService = WebServiceSample1.getRepositoryWebService(); - - // Create a store object referencing the main spaced store - Store store = new Store(StoreEnum.workspace, "SpacesStore"); - - // Create a query object, looking for all items with alfresco in the name of text - Query query = new Query(QueryLanguageEnum.lucene, "( +@\\{http\\://www.alfresco.org/1.0\\}name:alfresco*) OR TEXT:alfresco*"); - - // Execute the query - QueryResult queryResult = repositoryService.query(store, query, false); - - // Display the results - ResultSet resultSet = queryResult.getResultSet(); - ResultSetRow[] rows = resultSet.getRows(); - if (rows == null) - { - System.out.println("No query results found."); - } - else - { - System.out.println("Results from query:"); - outputResultSet(rows); - - // Get the id of the first result - String firstResultId = rows[0].getNode().getId(); - Reference reference = new Reference(store, firstResultId, null); - - // Get the parent(s) of the first result - QueryResult parentQueryResult = repositoryService.queryParents(reference); - - // Get the parent of the first result - ResultSet parentResultSet = parentQueryResult.getResultSet(); - ResultSetRow[] parentRows = parentResultSet.getRows(); - if (parentRows == null) - { - System.out.println("No query results found."); - } - else - { - System.out.println("Results from parent query:"); - outputResultSet(parentRows); - - // Return the first parent (we can use in other samples) - String firstParentId = parentRows[0].getNode().getId(); - parentReference = new Reference(store, firstParentId, null); - } - } - - return parentReference; - } - - /** - * Helper method to output the rows contained within a result set - * - * @param rows an array of rows - */ - public static void outputResultSet(ResultSetRow[] rows) - { - for (int x = 0; x < rows.length; x++) - { - ResultSetRow row = rows[x]; - - NamedValue[] columns = row.getColumns(); - for (int y = 0; y < columns.length; y++) - { - System.out.println("row " + x + ": " - + row.getColumns(y).getName() + " = " - + row.getColumns(y).getValue()); - } - } - } - -} diff --git a/source/java/org/alfresco/example/webservice/sample/WebServiceSample3.java b/source/java/org/alfresco/example/webservice/sample/WebServiceSample3.java deleted file mode 100644 index e99b3dfad8..0000000000 --- a/source/java/org/alfresco/example/webservice/sample/WebServiceSample3.java +++ /dev/null @@ -1,185 +0,0 @@ -/* - * Copyright (C) 2005 Alfresco, Inc. - * - * Licensed under the Mozilla Public License version 1.1 - * with a permitted attribution clause. You may obtain a - * copy of the License at - * - * http://www.alfresco.org/legal/license.txt - * - * 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.alfresco.example.webservice.sample; - -import java.io.ByteArrayInputStream; -import java.io.InputStream; -import java.net.URL; -import java.net.URLConnection; - -import javax.xml.rpc.ServiceException; - -import org.alfresco.example.webservice.authentication.AuthenticationResult; -import org.alfresco.example.webservice.authentication.AuthenticationServiceLocator; -import org.alfresco.example.webservice.authentication.AuthenticationServiceSoapBindingStub; -import org.alfresco.example.webservice.content.Content; -import org.alfresco.example.webservice.content.ContentServiceLocator; -import org.alfresco.example.webservice.content.ContentServiceSoapBindingStub; -import org.alfresco.example.webservice.repository.UpdateResult; -import org.alfresco.example.webservice.types.CML; -import org.alfresco.example.webservice.types.CMLCreate; -import org.alfresco.example.webservice.types.ContentFormat; -import org.alfresco.example.webservice.types.NamedValue; -import org.alfresco.example.webservice.types.ParentReference; -import org.alfresco.example.webservice.types.Predicate; -import org.alfresco.example.webservice.types.Reference; -import org.alfresco.example.webservice.types.Store; -import org.alfresco.example.webservice.types.StoreEnum; -import org.alfresco.model.ContentModel; -import org.apache.axis.EngineConfiguration; -import org.apache.axis.configuration.FileProvider; - -/** - * Web service sample 3 - *

- * This web service sample shows how new content can be added to the repository and how content - * can be read and updated via the web service API. - * - * @author Roy Wetherall - */ -public class WebServiceSample3 -{ - /** Content strings used in the sample */ - private static final String INITIAL_CONTENT = "This is some new content that I am adding to the repository"; - private static final String UPDATED_CONTENT = "This is the updated content"; - - /** The type of the association we are creating to the new content */ - private static final String ASSOC_CONTAINS = "{http://www.alfresco.org/model/content/1.0}contains"; - - /** - * Main function - */ - public static void main(String[] args) throws Exception - { - AuthenticationServiceSoapBindingStub authenticationService = (AuthenticationServiceSoapBindingStub)new AuthenticationServiceLocator().getAuthenticationService(); - - // Start the session - AuthenticationResult result = authenticationService.startSession(WebServiceSample1.USERNAME, WebServiceSample1.PASSWORD); - WebServiceSample1.currentTicket = result.getTicket(); - - // Get the content service - ContentServiceSoapBindingStub contentService = getContentWebService(); - - // Create new content in the respository - Reference newContentReference = createNewContent(contentService, "sampleThreeFileOne.txt", INITIAL_CONTENT); - - // Read the newly added content from the respository - Store store = new Store(StoreEnum.workspace, "SpacesStore"); - Content[] readResult = contentService.read( - new Predicate(new Reference[]{newContentReference}, store, null), - ContentModel.PROP_CONTENT.toString()); - Content content = readResult[0]; - - // Get the content from the download servlet using the URL and display it - System.out.println("The newly added content is:"); - System.out.println(getContentAsString(WebServiceSample1.currentTicket, content.getUrl())); - - // Update the content with something new - contentService.write(newContentReference, ContentModel.PROP_CONTENT.toString(), UPDATED_CONTENT.getBytes(), null); - - // Now output the updated content - Content[] readResult2 = contentService.read( - new Predicate(new Reference[]{newContentReference}, store, null), - ContentModel.PROP_CONTENT.toString()); - Content content2 = readResult2[0]; - System.out.println("The updated content is:"); - System.out.println(getContentAsString(WebServiceSample1.currentTicket, content2.getUrl())); - - // End the session - authenticationService.endSession(); - } - - /** - * Get the content web service - * - * @return content web service - * @throws ServiceException - */ - public static ContentServiceSoapBindingStub getContentWebService() throws ServiceException - { - // Create the content service, adding the WS security header information - EngineConfiguration config = new FileProvider(new ByteArrayInputStream(WebServiceSample1.WS_SECURITY_INFO.getBytes())); - ContentServiceLocator contentServiceLocator = new ContentServiceLocator(config); - ContentServiceSoapBindingStub contentService = (ContentServiceSoapBindingStub)contentServiceLocator.getContentService(); - return contentService; - } - - /** - * Helper method to create new content. - * - * @param contentService the content web service - * @param content the content itself - * @return a reference to the created content node - * @throws Exception - */ - public static Reference createNewContent(ContentServiceSoapBindingStub contentService, String name, String contentString) - throws Exception - { - // First we'll use the previous sample to get hold of a reference to a space that we can create the content within - Reference reference = WebServiceSample2.executeSearch(); - - // Create a parent reference, this contains information about the association we are createing to the new content and the - // parent of the new content (the space retrived from the search) - ParentReference parentReference = new ParentReference(ASSOC_CONTAINS, ASSOC_CONTAINS); - parentReference.setStore(reference.getStore()); - parentReference.setUuid(reference.getUuid()); - - // Define the content format for the content we are adding - ContentFormat contentFormat = new ContentFormat("text/plain", "UTF-8"); - - NamedValue[] properties = new NamedValue[]{new NamedValue(ContentModel.PROP_NAME.toString(), name)}; - CMLCreate create = new CMLCreate("1", parentReference, ContentModel.TYPE_CONTENT.toString(), properties); - CML cml = new CML(); - cml.setCreate(new CMLCreate[]{create}); - UpdateResult[] result = WebServiceSample1.getRepositoryWebService().update(cml); - - Reference newContentNode = result[0].getDestination(); - Content content = contentService.write(newContentNode, ContentModel.PROP_CONTENT.toString(), contentString.getBytes(), contentFormat); - - // Get a reference to the newly created content - return content.getNode(); - } - - /** - * This method gets the content from the download servlet for a given URL and returns it as a string. - * - * @param ticket the current ticket - * @param strUrl the content URL - * @return the content as a string - * @throws Exception - */ - public static String getContentAsString(String ticket, String strUrl) throws Exception - { - // Add the ticket to the url - strUrl += "?ticket=" + ticket; - - // Connect to donwload servlet - StringBuilder readContent = new StringBuilder(); - URL url = new URL(strUrl); - URLConnection conn = url.openConnection(); - InputStream is = conn.getInputStream(); - int read = is.read(); - while (read != -1) - { - readContent.append((char)read); - read = is.read(); - } - - // return content as a string - return readContent.toString(); - } -} diff --git a/source/java/org/alfresco/example/webservice/sample/WebServiceSample4.java b/source/java/org/alfresco/example/webservice/sample/WebServiceSample4.java deleted file mode 100644 index a2858071c5..0000000000 --- a/source/java/org/alfresco/example/webservice/sample/WebServiceSample4.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright (C) 2005 Alfresco, Inc. - * - * Licensed under the Mozilla Public License version 1.1 - * with a permitted attribution clause. You may obtain a - * copy of the License at - * - * http://www.alfresco.org/legal/license.txt - * - * 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.alfresco.example.webservice.sample; - -import org.alfresco.example.webservice.authentication.AuthenticationResult; -import org.alfresco.example.webservice.authentication.AuthenticationServiceLocator; -import org.alfresco.example.webservice.authentication.AuthenticationServiceSoapBindingStub; -import org.alfresco.example.webservice.repository.RepositoryServiceSoapBindingStub; -import org.alfresco.example.webservice.repository.UpdateResult; -import org.alfresco.example.webservice.types.CML; -import org.alfresco.example.webservice.types.CMLAddAspect; -import org.alfresco.example.webservice.types.CMLCreate; -import org.alfresco.example.webservice.types.Node; -import org.alfresco.example.webservice.types.ParentReference; -import org.alfresco.example.webservice.types.Predicate; -import org.alfresco.example.webservice.types.Reference; -import org.alfresco.example.webservice.types.Store; -import org.alfresco.example.webservice.types.StoreEnum; -import org.alfresco.model.ContentModel; - -/** - * Web service sample 4 - *

- * This sample shows how to construct and execute CML queries using the respository web service. - * - * @author Roy Wetherall - */ -public class WebServiceSample4 -{ - /** - * Main function - */ - public static void main(String[] args) - throws Exception - { - // Start the session - AuthenticationServiceSoapBindingStub authenticationService = (AuthenticationServiceSoapBindingStub)new AuthenticationServiceLocator().getAuthenticationService(); - AuthenticationResult result = authenticationService.startSession(WebServiceSample1.USERNAME, WebServiceSample1.PASSWORD); - WebServiceSample1.currentTicket = result.getTicket(); - - // Create a store object referencing the main spaced store - Store store = new Store(StoreEnum.workspace, "SpacesStore"); - - // Get the repository - RepositoryServiceSoapBindingStub repositoryService = WebServiceSample1.getRepositoryWebService(); - Reference folder = getTutorialFolder(store, repositoryService); - - // Create the CML structure - // When executed this cml update query will create a new content node beneth the tutorial folder and the add the - // versionable aspect to the newly created node - ParentReference parentReference = new ParentReference(ContentModel.ASSOC_CONTAINS.toString(), ContentModel.ASSOC_CONTAINS.toString()); - parentReference.setStore(store); - parentReference.setUuid(folder.getUuid()); - CMLCreate create = new CMLCreate("id1", parentReference, ContentModel.TYPE_CONTENT.toString(), null); - CMLAddAspect addAspect = new CMLAddAspect(ContentModel.ASPECT_VERSIONABLE.toString(), null, null, "id1"); - CML cml = new CML(); - cml.setCreate(new CMLCreate[]{create}); - cml.setAddAspect(new CMLAddAspect[]{addAspect}); - - // Execute the update - UpdateResult[] updateResults = repositoryService.update(cml); - - for (UpdateResult updateResult : updateResults) - { - String sourceId = "none"; - Reference source = updateResult.getSource(); - if (source != null) - { - sourceId = source.getUuid(); - } - - String destinationId = "none"; - Reference destination = updateResult.getDestination(); - if (destination != null) - { - destinationId = destination.getUuid(); - } - - System.out.println( - "Command = " + updateResult.getStatement() + - "; Source = " + sourceId + - "; Destination = " + destinationId); - } - - // End the session - authenticationService.endSession(); - } - - /** - * Get the space immediatly beneth company home call "Alfresco Tutorial" - * - * @param store - * @param repositoryService - * @return - * @throws Exception - */ - public static Reference getTutorialFolder(Store store, RepositoryServiceSoapBindingStub repositoryService) - throws Exception - { - Reference reference = new Reference(store, null, "/app:company_home/*[@cm:name=\"Alfresco Tutorial\"]"); - Predicate predicate = new Predicate(new Reference[]{reference}, null, null); - Node[] nodes = repositoryService.get(predicate); - return nodes[0].getReference(); - } - -} diff --git a/source/java/org/alfresco/example/webservice/sample/WebServiceSample5.java b/source/java/org/alfresco/example/webservice/sample/WebServiceSample5.java deleted file mode 100644 index a6851fb377..0000000000 --- a/source/java/org/alfresco/example/webservice/sample/WebServiceSample5.java +++ /dev/null @@ -1,170 +0,0 @@ -/* - * Copyright (C) 2005 Alfresco, Inc. - * - * Licensed under the Mozilla Public License version 1.1 - * with a permitted attribution clause. You may obtain a - * copy of the License at - * - * http://www.alfresco.org/legal/license.txt - * - * 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.alfresco.example.webservice.sample; - -import java.io.ByteArrayInputStream; - -import javax.xml.rpc.ServiceException; - -import org.alfresco.example.webservice.authentication.AuthenticationResult; -import org.alfresco.example.webservice.authentication.AuthenticationServiceLocator; -import org.alfresco.example.webservice.authentication.AuthenticationServiceSoapBindingStub; -import org.alfresco.example.webservice.authoring.AuthoringServiceLocator; -import org.alfresco.example.webservice.authoring.AuthoringServiceSoapBindingStub; -import org.alfresco.example.webservice.authoring.CheckoutResult; -import org.alfresco.example.webservice.content.Content; -import org.alfresco.example.webservice.content.ContentServiceSoapBindingStub; -import org.alfresco.example.webservice.repository.RepositoryServiceSoapBindingStub; -import org.alfresco.example.webservice.types.CML; -import org.alfresco.example.webservice.types.CMLAddAspect; -import org.alfresco.example.webservice.types.ContentFormat; -import org.alfresco.example.webservice.types.NamedValue; -import org.alfresco.example.webservice.types.Predicate; -import org.alfresco.example.webservice.types.Reference; -import org.alfresco.example.webservice.types.Store; -import org.alfresco.example.webservice.types.StoreEnum; -import org.alfresco.example.webservice.types.Version; -import org.alfresco.example.webservice.types.VersionHistory; -import org.alfresco.model.ContentModel; -import org.alfresco.repo.content.MimetypeMap; -import org.apache.axis.EngineConfiguration; -import org.apache.axis.configuration.FileProvider; - -/** - * Web service sample 5 - *

- * This sample shows how to check documents out, check them back in and then view the - * version history. - * - * @author Roy Wetherall - */ -public class WebServiceSample5 -{ - private final static String INITIAL_CONTENT = "This is the content pror to checkout"; - private final static String UPDATED_CONTENT = "This is the updated content"; - - private final static String VERSIONABLE_ASPECT = "{http://www.alfresco.org/model/content/1.0}versionable"; - - /** - * Main function - */ - public static void main(String[] args) - throws Exception - { - // Start the session - AuthenticationServiceSoapBindingStub authenticationService = (AuthenticationServiceSoapBindingStub)new AuthenticationServiceLocator().getAuthenticationService(); - AuthenticationResult result = authenticationService.startSession(WebServiceSample1.USERNAME, WebServiceSample1.PASSWORD); - WebServiceSample1.currentTicket = result.getTicket(); - - // Get the content and authoring service - RepositoryServiceSoapBindingStub repositoryService = WebServiceSample1.getRepositoryWebService(); - ContentServiceSoapBindingStub contentService = WebServiceSample3.getContentWebService(); - AuthoringServiceSoapBindingStub authoringService = WebServiceSample5.getAuthoringWebService(); - - // Get a reference to a newly created content - Reference contentReference = WebServiceSample3.createNewContent(contentService, "SampleFiveFileOne.txt", INITIAL_CONTENT); - - // Add the versionable aspect to the newly created content. This will allows the content to be versioned - makeVersionable(repositoryService, contentReference); - - // Checkout the newly created content, placing the working document in the same folder - Predicate itemsToCheckOut = new Predicate(new Reference[]{contentReference}, null, null); - CheckoutResult checkOutResult = authoringService.checkout(itemsToCheckOut, null); - - // Get a reference to the working copy - Reference workingCopyReference = checkOutResult.getWorkingCopies()[0]; - - // Update the content of the working copy - ContentFormat format = new ContentFormat(MimetypeMap.MIMETYPE_TEXT_PLAIN, "UTF-8"); - contentService.write(workingCopyReference, ContentModel.PROP_CONTENT.toString(), UPDATED_CONTENT.getBytes(), format); - - // Now check the working copy in with a description of the change made that will be recorded in the version history - Predicate predicate = new Predicate(new Reference[]{workingCopyReference}, null, null); - NamedValue[] comments = new NamedValue[]{new NamedValue("description", "The content has been updated")}; - authoringService.checkin(predicate, comments, false); - - // Output the updated content - Store store = new Store(StoreEnum.workspace, "SpacesStore"); - Content[] readResult = contentService.read( - new Predicate(new Reference[]{contentReference}, store, null), - ContentModel.PROP_CONTENT.toString()); - Content content = readResult[0]; - System.out.println("This is the checked-in content:"); - System.out.println(WebServiceSample3.getContentAsString(WebServiceSample1.currentTicket, content.getUrl())); - - // Get the version history - System.out.println("The version history:"); - VersionHistory versionHistory = authoringService.getVersionHistory(contentReference); - for (Version version : versionHistory.getVersions()) - { - // Output the version details - outputVersion(version); - } - - // End the session - authenticationService.endSession(); - } - - /** - * Get a reference to the authoring web service - * - * @return the authoring web service - * @throws ServiceException - */ - public static AuthoringServiceSoapBindingStub getAuthoringWebService() throws ServiceException - { - // Create the content service, adding the WS security header information - EngineConfiguration config = new FileProvider(new ByteArrayInputStream(WebServiceSample1.WS_SECURITY_INFO.getBytes())); - AuthoringServiceLocator authoringServiceLocator = new AuthoringServiceLocator(config); - AuthoringServiceSoapBindingStub authoringService = (AuthoringServiceSoapBindingStub)authoringServiceLocator.getAuthoringService(); - return authoringService; - } - - /** - * Helper method to make apply the versionable aspect to a given reference - *

- * See sample 4 for more CML examples - * - * @param respositoryService the respository service - * @param reference the reference - * @throws Exception - */ - public static void makeVersionable(RepositoryServiceSoapBindingStub respositoryService, Reference reference) - throws Exception - { - // Create the add aspect query object - Predicate predicate = new Predicate(new Reference[]{reference}, null, null); - CMLAddAspect addAspect = new CMLAddAspect(VERSIONABLE_ASPECT, null, predicate, null); - - // Create the content management language query - CML cml = new CML(); - cml.setAddAspect(new CMLAddAspect[]{addAspect}); - - // Execute the query, which will add the versionable aspect to the node is question - respositoryService.update(cml); - } - - /** - * Helper to output the version details - * - * @param version the version - */ - private static void outputVersion(Version version) - { - System.out.println("Version label = " + version.getLabel() + "; Version description = " + version.getCommentaries()[0].getValue()); - } -} diff --git a/source/java/org/alfresco/example/webservice/sample/WebServiceSample6.java b/source/java/org/alfresco/example/webservice/sample/WebServiceSample6.java deleted file mode 100644 index 8951c9e438..0000000000 --- a/source/java/org/alfresco/example/webservice/sample/WebServiceSample6.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright (C) 2005 Alfresco, Inc. - * - * Licensed under the Mozilla Public License version 1.1 - * with a permitted attribution clause. You may obtain a - * copy of the License at - * - * http://www.alfresco.org/legal/license.txt - * - * 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.alfresco.example.webservice.sample; - -import java.io.ByteArrayInputStream; - -import org.alfresco.example.webservice.authentication.AuthenticationResult; -import org.alfresco.example.webservice.authentication.AuthenticationServiceLocator; -import org.alfresco.example.webservice.authentication.AuthenticationServiceSoapBindingStub; -import org.alfresco.example.webservice.classification.ClassificationServiceLocator; -import org.alfresco.example.webservice.classification.ClassificationServiceSoapBindingStub; -import org.alfresco.example.webservice.repository.QueryResult; -import org.alfresco.example.webservice.repository.RepositoryServiceSoapBindingStub; -import org.alfresco.example.webservice.types.Category; -import org.alfresco.example.webservice.types.Classification; -import org.alfresco.example.webservice.types.Query; -import org.alfresco.example.webservice.types.QueryLanguageEnum; -import org.alfresco.example.webservice.types.Store; -import org.alfresco.example.webservice.types.StoreEnum; -import org.alfresco.util.ISO9075; -import org.apache.axis.EngineConfiguration; -import org.apache.axis.configuration.FileProvider; - -/** - * Web service sample 6 - *

- * Example showing how content can be queried for using categories - * - * @author Roy Wetherall - */ -public class WebServiceSample6 -{ - /** - * Main function - */ - public static void main(String[] args) - throws Exception - { - // Start the session - AuthenticationServiceSoapBindingStub authenticationService = (AuthenticationServiceSoapBindingStub)new AuthenticationServiceLocator().getAuthenticationService(); - AuthenticationResult result = authenticationService.startSession(WebServiceSample1.USERNAME, WebServiceSample1.PASSWORD); - WebServiceSample1.currentTicket = result.getTicket(); - - // Get the content and authoring service - RepositoryServiceSoapBindingStub repositoryService = WebServiceSample1.getRepositoryWebService(); - - // Get the classification service - EngineConfiguration config = new FileProvider(new ByteArrayInputStream(WebServiceSample1.WS_SECURITY_INFO.getBytes())); - ClassificationServiceSoapBindingStub classificationService = (ClassificationServiceSoapBindingStub) new ClassificationServiceLocator(config).getClassificationService(); - - // Create the store reference - Store store = new Store(StoreEnum.workspace, "SpacesStore"); - - // Get all the classifications - Classification[] classifications = classificationService.getClassifications(store); - - // Output some details - System.out.println("All classifications:"); - for (Classification classification : classifications) - { - System.out.println(classification.getClassification()); - System.out.println("Classification = " + classification.getTitle() + "; Root category = " + classification.getRootCategory().getTitle()); - } - - // Get the class definition for the classification we are interested in - Classification classification = classifications[0]; - - // Get the child categories - Category[] categories = null; - if (classifications.length > 0) - { - categories = classificationService.getChildCategories(classifications[0].getRootCategory().getId()); - if (categories != null) - { - // Output some details - System.out.println("The child categories of classification '" + classifications[0].getTitle() + "':"); - for (Category category : categories) - { - System.out.println("Title = " + category.getTitle()); - } - } - else - { - System.out.println("No child categories found."); - } - } - - // Now build a path query - StringBuilder pathQuery = new StringBuilder(128); - - //pathQuery.append("PATH:\"cm:generalclassifiable/cm:MyTestCategory/cm:One/member\""); - - // Encode the root category name - String encodedRoot = ISO9075.encode(classification.getRootCategory().getTitle()); - - // Build up the search path - if (categories != null && categories.length != 0) - { - for (int i=0; i" + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - ""; - - /** - * Main method - * - * @param args - */ - public static void main(String[] args) - { - WebServiceSampleGetRankedContent sample = new WebServiceSampleGetRankedContent(); - List results = sample.getRankedContent("Alfresco Tutorial", "alfresco*"); - - // Output the results for visual inspection - int iCount = 1; - for (ContentResult result : results) - { - System.out.println("Result " + iCount + ": " + result.toString()); - iCount ++; - } - } - - /** - * Get a list of ordered results of documents in the space specified matching the search - * text provided. - * - * @param spaceName the name of the space (immediatly beneth the company home space) to search - * @param searchValue the FTS search value - * @return list of results - */ - public List getRankedContent(String spaceName, String searchValue) - { - List results = new ArrayList(); - - try - { - // Get the authentication service - AuthenticationServiceSoapBindingStub authenticationService = (AuthenticationServiceSoapBindingStub)new AuthenticationServiceLocator().getAuthenticationService(); - - // Start the session - AuthenticationResult authenticationResult = authenticationService.startSession(WebServiceSample1.USERNAME, WebServiceSample1.PASSWORD); - WebServiceSampleGetRankedContent.currentTicket = authenticationResult.getTicket(); - - // Create the respository service, adding the WS security header information - EngineConfiguration config = new FileProvider(new ByteArrayInputStream(WebServiceSampleGetRankedContent.WS_SECURITY_INFO.getBytes())); - RepositoryServiceLocator repositoryServiceLocator = new RepositoryServiceLocator(config); - RepositoryServiceSoapBindingStub repositoryService = (RepositoryServiceSoapBindingStub)repositoryServiceLocator.getRepositoryService(); - - // Create a store object referencing the main spaced store - Store store = new Store(StoreEnum.workspace, "SpacesStore"); - - // Get a reference to the space we have named - Reference reference = new Reference(store, null, "/app:company_home/*[@cm:name=\"" + spaceName + "\"]"); - Predicate predicate = new Predicate(new Reference[]{reference}, null, null); - Node[] nodes = repositoryService.get(predicate); - - // Create a query object, looking for all items with alfresco in the name of text - Query query = new Query( - QueryLanguageEnum.lucene, - "+PARENT:\"workspace://SpacesStore/"+ nodes[0].getReference().getUuid() + "\" +TEXT:\"" + searchValue + "\""); - - // Execute the query - QueryResult queryResult = repositoryService.query(store, query, false); - - // Display the results - ResultSet resultSet = queryResult.getResultSet(); - ResultSetRow[] rows = resultSet.getRows(); - - if (rows != null) - { - // Get the infomation from the result set - for(ResultSetRow row : rows) - { - String nodeId = row.getNode().getId(); - ContentResult contentResult = new ContentResult(nodeId); - - for (NamedValue namedValue : row.getColumns()) - { - if (namedValue.getName().endsWith(ContentModel.PROP_CREATED.toString()) == true) - { - contentResult.setCreateDate(namedValue.getValue()); - } - else if (namedValue.getName().endsWith(ContentModel.PROP_NAME.toString()) == true) - { - contentResult.setName(namedValue.getValue()); - } - else if (namedValue.getName().endsWith(ContentModel.PROP_DESCRIPTION.toString()) == true) - { - contentResult.setDescription(namedValue.getValue()); - } - else if (namedValue.getName().endsWith(ContentModel.PROP_CONTENT.toString()) == true) - { - // We could go to the content service and ask for the content to get the URL but to save time we - // might as well dig the content URL out of the results. - String contentString = namedValue.getValue(); - String[] values = contentString.split("[|=]"); - contentResult.setUrl(values[1]); - } - } - - results.add(contentResult); - } - } - - // End the session - authenticationService.endSession(); - } - catch (Exception serviceException) - { - throw new AlfrescoRuntimeException("Unable to perform search.", serviceException); - } - - return results; - } - - /** - * Security callback handler - */ - public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException - { - for (int i = 0; i < callbacks.length; i++) - { - if (callbacks[i] instanceof WSPasswordCallback) - { - WSPasswordCallback pc = (WSPasswordCallback)callbacks[i]; - pc.setPassword(WebServiceSampleGetRankedContent.currentTicket); - } - else - { - throw new UnsupportedCallbackException(callbacks[i], "Unrecognized Callback"); - } - } - } - - /** - * Class to contain the information about the result from the query - */ - public class ContentResult - { - private String id; - private String name; - private String description; - private String url; - private String createDate; - - public ContentResult(String id) - { - this.id = id; - } - - public String getCreateDate() - { - return createDate; - } - - public void setCreateDate(String createDate) - { - this.createDate = createDate; - } - - public String getDescription() - { - return description; - } - - public void setDescription(String description) - { - this.description = description; - } - - public String getId() - { - return id; - } - - public String getName() - { - return name; - } - - public void setName(String name) - { - this.name = name; - } - - public String getUrl() - { - return url; - } - - public void setUrl(String url) - { - this.url = url; - } - - @Override - public String toString() - { - return "id=" + this.id + - "; name=" + this.name + - "; description=" + this.description + - "; created=" + this.createDate + - "; url=" + this.url; - } - } -} diff --git a/source/java/org/alfresco/repo/webservice/action/ActionWebService.java b/source/java/org/alfresco/repo/webservice/action/ActionWebService.java index 583863ef86..15fc12641f 100644 --- a/source/java/org/alfresco/repo/webservice/action/ActionWebService.java +++ b/source/java/org/alfresco/repo/webservice/action/ActionWebService.java @@ -27,6 +27,9 @@ import org.alfresco.repo.action.ActionImpl; import org.alfresco.repo.action.CompositeActionImpl; import org.alfresco.repo.action.executer.CompositeActionExecuter; import org.alfresco.repo.rule.RuleImpl; +import org.alfresco.repo.transaction.TransactionComponent; +import org.alfresco.repo.transaction.TransactionUtil; +import org.alfresco.repo.transaction.TransactionUtil.TransactionWork; import org.alfresco.repo.webservice.AbstractWebService; import org.alfresco.repo.webservice.Utils; import org.alfresco.repo.webservice.types.NamedValue; @@ -66,6 +69,9 @@ public class ActionWebService extends AbstractWebService implements ActionServic /** The dictionary service */ private DictionaryService dictionaryService; + /** The transaction service */ + private TransactionComponent transactionService; + /** * Set the action service * @@ -96,21 +102,47 @@ public class ActionWebService extends AbstractWebService implements ActionServic this.dictionaryService = dictionaryService; } + /** + * Sets the transaction service + * + * @param transactionService the transaction service + */ + public void setTransactionService(TransactionComponent transactionService) + { + this.transactionService = transactionService; + } + /** * @see org.alfresco.repo.webservice.action.ActionServiceSoapPort#getConditionDefinitions() */ - public ActionItemType[] getConditionDefinitions() throws RemoteException, + public ActionItemDefinition[] getConditionDefinitions() throws RemoteException, ActionFault + { + return TransactionUtil.executeInUserTransaction(this.transactionService, new TransactionWork() + { + public ActionItemDefinition[] doWork() throws Exception + { + return getConditionDefintionsImpl(); + } + }); + } + + /** + * + * @return + * @throws RemoteException + */ + private ActionItemDefinition[] getConditionDefintionsImpl() throws RemoteException { // Get the action condition defintions from the action service List definitions = this.actionService.getActionConditionDefinitions(); // Marshal the results into an array of action item types - ActionItemType[] result = new ActionItemType[definitions.size()]; + ActionItemDefinition[] result = new ActionItemDefinition[definitions.size()]; int index = 0; for (ActionConditionDefinition definition : definitions) { - result[index] = convertToActionItemType(definition); + result[index] = convertToActionItemDefintion(definition, ActionItemDefinitionType.condition); index++; } @@ -120,29 +152,99 @@ public class ActionWebService extends AbstractWebService implements ActionServic /** * @see org.alfresco.repo.webservice.action.ActionServiceSoapPort#getActionDefinitions() */ - public ActionItemType[] getActionDefinitions() throws RemoteException, + public ActionItemDefinition[] getActionDefinitions() throws RemoteException, ActionFault + { + return TransactionUtil.executeInUserTransaction(this.transactionService, new TransactionWork() + { + public ActionItemDefinition[] doWork() throws Exception + { + return getActionDefinitionsImpl(); + } + }); + } + + /** + * + * @return + * @throws RemoteException + */ + private ActionItemDefinition[] getActionDefinitionsImpl() throws RemoteException { // Get the action defintions from the action service List definitions = this.actionService.getActionDefinitions(); // Marshal the results into an array of action item types - ActionItemType[] result = new ActionItemType[definitions.size()]; + ActionItemDefinition[] result = new ActionItemDefinition[definitions.size()]; int index = 0; for (ActionDefinition definition : definitions) { - result[index] = convertToActionItemType(definition); + result[index] = convertToActionItemDefintion(definition, ActionItemDefinitionType.action); index++; } return result; } - private ActionItemType convertToActionItemType(ParameterizedItemDefinition definition) + /** + * @see org.alfresco.repo.webservice.action.ActionServiceSoapPort#getActionItemDefinition(java.lang.String, org.alfresco.repo.webservice.action.ActionItemDefinitionType) + */ + public ActionItemDefinition getActionItemDefinition(final String name, final ActionItemDefinitionType definitionType) throws RemoteException, ActionFault { - // Create action item type - ActionItemType actionItemType = new ActionItemType(); + return TransactionUtil.executeInUserTransaction(this.transactionService, new TransactionWork() + { + public ActionItemDefinition doWork() throws Exception + { + return getActionItemDefinitionImpl(name, definitionType); + } + }); + } + + /** + * + * @param name + * @param definitionType + * @return + * @throws RemoteException + * @throws ActionFault + */ + public ActionItemDefinition getActionItemDefinitionImpl(String name, ActionItemDefinitionType definitionType) throws RemoteException, ActionFault + { + ActionItemDefinition result = null; + + if (definitionType.equals(ActionItemDefinitionType.action) == true) + { + ActionDefinition actionDefinition = this.actionService.getActionDefinition(name); + if (actionDefinition != null) + { + result = convertToActionItemDefintion(actionDefinition, definitionType); + } + } + else + { + ActionConditionDefinition conditionDefinition = this.actionService.getActionConditionDefinition(name); + if (conditionDefinition != null) + { + result = convertToActionItemDefintion(conditionDefinition, definitionType); + } + } + + return result; + } + + /** + * Marshal the parameterized item defintion into a action item defition object. + * + * @param definition + * @param type + * @return + */ + private ActionItemDefinition convertToActionItemDefintion(ParameterizedItemDefinition definition, ActionItemDefinitionType type) + { + // Create action item defintion + ActionItemDefinition actionItemType = new ActionItemDefinition(); actionItemType.setName(definition.getName()); + actionItemType.setType(type); actionItemType.setTitle(definition.getTitle()); actionItemType.setDescription(definition.getDescription()); actionItemType.setAdHocPropertiesAllowed(definition.getAdhocPropertiesAllowed()); @@ -170,6 +272,17 @@ public class ActionWebService extends AbstractWebService implements ActionServic * @see org.alfresco.repo.webservice.action.ActionServiceSoapPort#getRuleTypes() */ public org.alfresco.repo.webservice.action.RuleType[] getRuleTypes() throws RemoteException, ActionFault + { + return TransactionUtil.executeInUserTransaction(this.transactionService, new TransactionWork() + { + public org.alfresco.repo.webservice.action.RuleType[] doWork() throws Exception + { + return getRuleTypesImpl(); + } + }); + } + + public org.alfresco.repo.webservice.action.RuleType[] getRuleTypesImpl() throws RemoteException, ActionFault { // Get the list of rule types List ruleTypes = this.ruleService.getRuleTypes(); @@ -189,10 +302,48 @@ public class ActionWebService extends AbstractWebService implements ActionServic return results; } + /** + * @see org.alfresco.repo.webservice.action.ActionServiceSoapPort#getRuleType(java.lang.String) + */ + public org.alfresco.repo.webservice.action.RuleType getRuleType(final String name) throws RemoteException, ActionFault + { + return TransactionUtil.executeInUserTransaction(this.transactionService, new TransactionWork() + { + public org.alfresco.repo.webservice.action.RuleType doWork() throws Exception + { + return getRuleTypeImpl(name); + } + }); + } + + public org.alfresco.repo.webservice.action.RuleType getRuleTypeImpl(String name) throws RemoteException, ActionFault + { + org.alfresco.repo.webservice.action.RuleType result = null; + + RuleType ruleType = this.ruleService.getRuleType(name); + if (ruleType != null) + { + result = new org.alfresco.repo.webservice.action.RuleType(ruleType.getName(), ruleType.getDisplayLabel()); + } + + return result; + } + /** * @see org.alfresco.repo.webservice.action.ActionServiceSoapPort#getActions(org.alfresco.repo.webservice.types.Reference, java.lang.String[]) */ - public org.alfresco.repo.webservice.action.Action[] getActions(Reference reference, ActionFilter filter) throws RemoteException, ActionFault + public org.alfresco.repo.webservice.action.Action[] getActions(final Reference reference, final ActionFilter filter) throws RemoteException, ActionFault + { + return TransactionUtil.executeInUserTransaction(this.transactionService, new TransactionWork() + { + public org.alfresco.repo.webservice.action.Action[] doWork() throws Exception + { + return getActionsImpl(reference, filter); + } + }); + } + + private org.alfresco.repo.webservice.action.Action[] getActionsImpl(Reference reference, ActionFilter filter) throws RemoteException, ActionFault { // Get the actions NodeRef nodeRef = Utils.convertToNodeRef(reference, this.nodeService, this.searchService, this.namespaceService); @@ -219,10 +370,6 @@ public class ActionWebService extends AbstractWebService implements ActionServic private org.alfresco.repo.webservice.action.Action convertToWebServiceAction(Action action) { - // Create the action item type for the action - ActionDefinition actionDefinition = this.actionService.getActionDefinition(action.getActionDefinitionName()); - ActionItemType actionItemType = convertToActionItemType(actionDefinition); - // Get the parameters into a named value array NamedValue[] namedValues = convertParametersToNamedValues(action); @@ -238,7 +385,11 @@ public class ActionWebService extends AbstractWebService implements ActionServic // Get the compenstaing action Action compensatingAction = action.getCompensatingAction(); - org.alfresco.repo.webservice.action.Action webServiceCompensatingAction = convertToWebServiceAction(compensatingAction); + org.alfresco.repo.webservice.action.Action webServiceCompensatingAction = null; + if (compensatingAction != null) + { + webServiceCompensatingAction = convertToWebServiceAction(compensatingAction); + } // Sort out any sub-actions org.alfresco.repo.webservice.action.Action[] childWebServiceActions = null; @@ -265,7 +416,7 @@ public class ActionWebService extends AbstractWebService implements ActionServic // Create the web service action object org.alfresco.repo.webservice.action.Action webServiceAction = new org.alfresco.repo.webservice.action.Action( action.getId(), - actionItemType, + action.getActionDefinitionName(), action.getTitle(), action.getDescription(), action.getExecuteAsychronously(), @@ -285,22 +436,26 @@ public class ActionWebService extends AbstractWebService implements ActionServic */ private NamedValue[] convertParametersToNamedValues(ParameterizedItem item) { - Map params = item.getParameterValues(); - NamedValue[] namedValues = new NamedValue[params.size()]; - int index = 0; - for (Map.Entry entry : params.entrySet()) + NamedValue[] namedValues = null; + if (item != null) { - String value = null; - try + Map params = item.getParameterValues(); + namedValues = new NamedValue[params.size()]; + int index = 0; + for (Map.Entry entry : params.entrySet()) { - value = DefaultTypeConverter.INSTANCE.convert(String.class, entry.getValue()); - } - catch (Throwable exception) - { - value = entry.getValue().toString(); - } - namedValues[index] = new NamedValue(entry.getKey(), value); - index++; + String value = null; + try + { + value = DefaultTypeConverter.INSTANCE.convert(String.class, entry.getValue()); + } + catch (Throwable exception) + { + value = entry.getValue().toString(); + } + namedValues[index] = new NamedValue(entry.getKey(), value); + index++; + } } return namedValues; } @@ -312,16 +467,12 @@ public class ActionWebService extends AbstractWebService implements ActionServic */ private Condition convertToWebServiceCondition(ActionCondition condition) { - // Create the action item type for the condition - ActionConditionDefinition conditionDefinition = this.actionService.getActionConditionDefinition(condition.getActionConditionDefinitionName()); - ActionItemType actionItemType = convertToActionItemType(conditionDefinition); - // Get the parameter values as an array of names values NamedValue[] namedValues = convertParametersToNamedValues(condition); Condition webServiceCondition = new Condition( condition.getId(), - actionItemType, + condition.getActionConditionDefinitionName(), condition.getInvertCondition(), namedValues); @@ -332,6 +483,19 @@ public class ActionWebService extends AbstractWebService implements ActionServic * @see org.alfresco.repo.webservice.action.ActionServiceSoapPort#saveActions(org.alfresco.repo.webservice.types.Reference, org.alfresco.repo.webservice.action.Action[]) */ public org.alfresco.repo.webservice.action.Action[] saveActions( + final Reference reference, + final org.alfresco.repo.webservice.action.Action[] webServiceActions) throws RemoteException, ActionFault + { + return TransactionUtil.executeInUserTransaction(this.transactionService, new TransactionWork() + { + public org.alfresco.repo.webservice.action.Action[] doWork() throws Exception + { + return saveActionsImpl(reference, webServiceActions); + } + }); + } + + private org.alfresco.repo.webservice.action.Action[] saveActionsImpl( Reference reference, org.alfresco.repo.webservice.action.Action[] webServiceActions) throws RemoteException, ActionFault { @@ -386,7 +550,7 @@ public class ActionWebService extends AbstractWebService implements ActionServic // Create the action (or composite action) ActionImpl action = null; - String actionDefinitionName = webServiceAction.getType().getName(); + String actionDefinitionName = webServiceAction.getActionName(); if (CompositeActionExecuter.NAME.equals(actionDefinitionName) == true) { action = new CompositeActionImpl(id, owningNodeRef); @@ -399,7 +563,10 @@ public class ActionWebService extends AbstractWebService implements ActionServic // Set some of the action's details action.setTitle(webServiceAction.getTitle()); action.setDescription(webServiceAction.getDescription()); - action.setExecuteAsynchronously(webServiceAction.isExecuteAsynchronously()); + if (webServiceAction.isExecuteAsynchronously() == true) + { + action.setExecuteAsynchronously(true); + } // Set the parameters NamedValue[] namedValues = webServiceAction.getParameters(); @@ -479,7 +646,7 @@ public class ActionWebService extends AbstractWebService implements ActionServic } // Create the action condition - ActionCondition actionCondition = new ActionConditionImpl(id, webServiceCondition.getType().getName()); + ActionCondition actionCondition = new ActionConditionImpl(id, webServiceCondition.getConditionName()); // Set the details of the condition actionCondition.setInvertCondition(webServiceCondition.isInvertCondition()); @@ -518,8 +685,21 @@ public class ActionWebService extends AbstractWebService implements ActionServic /** * @see org.alfresco.repo.webservice.action.ActionServiceSoapPort#removeActions(org.alfresco.repo.webservice.types.Reference, org.alfresco.repo.webservice.action.Action[]) */ - public void removeActions(Reference reference, org.alfresco.repo.webservice.action.Action[] webServiceActions) + public void removeActions(final Reference reference, final org.alfresco.repo.webservice.action.Action[] webServiceActions) throws RemoteException, ActionFault + { + TransactionUtil.executeInUserTransaction(this.transactionService, new TransactionWork() + { + public Object doWork() throws Exception + { + removeActionsImpl(reference, webServiceActions); + return null; + } + }); + } + + private void removeActionsImpl(Reference reference, org.alfresco.repo.webservice.action.Action[] webServiceActions) + throws RemoteException, ActionFault { // Get the node reference NodeRef nodeRef = Utils.convertToNodeRef(reference, this.nodeService, this.searchService, this.namespaceService); @@ -542,7 +722,27 @@ public class ActionWebService extends AbstractWebService implements ActionServic /** * @see org.alfresco.repo.webservice.action.ActionServiceSoapPort#executeActions(org.alfresco.repo.webservice.types.Predicate, org.alfresco.repo.webservice.action.Action[]) */ - public ActionExecutionResult[] executeActions(Predicate predicate, org.alfresco.repo.webservice.action.Action[] webServiceActions) throws RemoteException, ActionFault + public ActionExecutionResult[] executeActions(final Predicate predicate, final org.alfresco.repo.webservice.action.Action[] webServiceActions) throws RemoteException, ActionFault + { + return TransactionUtil.executeInUserTransaction(this.transactionService, new TransactionWork() + { + public ActionExecutionResult[] doWork() throws Exception + { + return executeActionsImpl(predicate, webServiceActions); + } + }); + } + + /** + * Execute actions implementation + * + * @param predicate + * @param webServiceActions + * @return + * @throws RemoteException + * @throws ActionFault + */ + public ActionExecutionResult[] executeActionsImpl(Predicate predicate, org.alfresco.repo.webservice.action.Action[] webServiceActions) throws RemoteException, ActionFault { List results = new ArrayList(10); @@ -583,8 +783,20 @@ public class ActionWebService extends AbstractWebService implements ActionServic /** * @see org.alfresco.repo.webservice.action.ActionServiceSoapPort#getRules(org.alfresco.repo.webservice.types.Reference, org.alfresco.repo.webservice.action.RuleFilter) */ - public org.alfresco.repo.webservice.action.Rule[] getRules(Reference reference, RuleFilter ruleFilter) + public org.alfresco.repo.webservice.action.Rule[] getRules(final Reference reference, final RuleFilter ruleFilter) throws RemoteException, ActionFault + { + return TransactionUtil.executeInUserTransaction(this.transactionService, new TransactionWork() + { + public org.alfresco.repo.webservice.action.Rule[] doWork() throws Exception + { + return getRulesImpl(reference, ruleFilter); + } + }); + } + + private org.alfresco.repo.webservice.action.Rule[] getRulesImpl(Reference reference, RuleFilter ruleFilter) + throws RemoteException, ActionFault { // Get the node reference NodeRef nodeRef = Utils.convertToNodeRef(reference, this.nodeService, this.searchService, this.namespaceService); @@ -610,12 +822,6 @@ public class ActionWebService extends AbstractWebService implements ActionServic private org.alfresco.repo.webservice.action.Rule convertToWebServiceRule(Rule rule) { - // Get the rule type - RuleType ruleType = this.ruleService.getRuleType(rule.getRuleTypeName()); - org.alfresco.repo.webservice.action.RuleType webServiceRuleType = new org.alfresco.repo.webservice.action.RuleType( - ruleType.getName(), - ruleType.getDisplayLabel()); - // Get the run as user // TODO for now set to null since this has no effect yet String runAsUserName = null; @@ -652,7 +858,7 @@ public class ActionWebService extends AbstractWebService implements ActionServic // Create the web service rule object org.alfresco.repo.webservice.action.Rule webServiceRule = new org.alfresco.repo.webservice.action.Rule( rule.getId(), - webServiceRuleType, + rule.getRuleTypeName(), rule.getTitle(), rule.getDescription(), rule.getExecuteAsychronously(), @@ -667,8 +873,20 @@ public class ActionWebService extends AbstractWebService implements ActionServic /** * @see org.alfresco.repo.webservice.action.ActionServiceSoapPort#saveRules(org.alfresco.repo.webservice.types.Reference, org.alfresco.repo.webservice.action.Rule[]) */ - public org.alfresco.repo.webservice.action.Rule[] saveRules(Reference reference, org.alfresco.repo.webservice.action.Rule[] webServiceRules) + public org.alfresco.repo.webservice.action.Rule[] saveRules(final Reference reference, final org.alfresco.repo.webservice.action.Rule[] webServiceRules) throws RemoteException, ActionFault + { + return TransactionUtil.executeInUserTransaction(this.transactionService, new TransactionWork() + { + public org.alfresco.repo.webservice.action.Rule[] doWork() throws Exception + { + return saveRulesImpl(reference, webServiceRules); + } + }); + } + + private org.alfresco.repo.webservice.action.Rule[] saveRulesImpl(Reference reference, org.alfresco.repo.webservice.action.Rule[] webServiceRules) + throws RemoteException, ActionFault { // Get the node reference NodeRef nodeRef = Utils.convertToNodeRef(reference, this.nodeService, this.searchService, this.namespaceService); @@ -696,8 +914,21 @@ public class ActionWebService extends AbstractWebService implements ActionServic /** * @see org.alfresco.repo.webservice.action.ActionServiceSoapPort#removeRules(org.alfresco.repo.webservice.types.Reference, org.alfresco.repo.webservice.action.Rule[]) */ - public void removeRules(Reference reference, org.alfresco.repo.webservice.action.Rule[] webServiceRules) + public void removeRules(final Reference reference, final org.alfresco.repo.webservice.action.Rule[] webServiceRules) throws RemoteException, ActionFault + { + TransactionUtil.executeInUserTransaction(this.transactionService, new TransactionWork() + { + public Object doWork() throws Exception + { + removeRulesImpl(reference, webServiceRules); + return null; + } + }); + } + + public void removeRulesImpl(Reference reference, org.alfresco.repo.webservice.action.Rule[] webServiceRules) + throws RemoteException, ActionFault { // Get the node reference NodeRef nodeRef = Utils.convertToNodeRef(reference, this.nodeService, this.searchService, this.namespaceService); @@ -739,7 +970,7 @@ public class ActionWebService extends AbstractWebService implements ActionServic } // Get the rule type name - String ruleTypeName = webServiceRule.getRuleType().getName(); + String ruleTypeName = webServiceRule.getRuleType(); // Create the rule RuleImpl rule = new RuleImpl(id, ruleTypeName, owningNodeRef); diff --git a/source/java/org/alfresco/repo/webservice/authentication/AuthenticationWebService.java b/source/java/org/alfresco/repo/webservice/authentication/AuthenticationWebService.java index 63cadba5dc..28fbfa15f4 100644 --- a/source/java/org/alfresco/repo/webservice/authentication/AuthenticationWebService.java +++ b/source/java/org/alfresco/repo/webservice/authentication/AuthenticationWebService.java @@ -18,7 +18,6 @@ package org.alfresco.repo.webservice.authentication; import java.rmi.RemoteException; -import org.alfresco.example.webservice.TicketHolder; import org.alfresco.repo.security.authentication.AuthenticationException; import org.alfresco.service.cmr.security.AuthenticationService; import org.apache.commons.logging.Log; @@ -80,11 +79,10 @@ public class AuthenticationWebService implements AuthenticationServiceSoapPort /** * @see org.alfresco.repo.webservice.authentication.AuthenticationServiceSoapPort#endSession() */ - public void endSession() throws RemoteException, AuthenticationFault + public void endSession(String ticket) throws RemoteException, AuthenticationFault { try { - String ticket = TicketHolder.ticket; if (ticket != null) { this.authenticationService.invalidateTicket(ticket); diff --git a/source/java/org/alfresco/repo/webservice/repository/RepositoryWebService.java b/source/java/org/alfresco/repo/webservice/repository/RepositoryWebService.java index 7a96b7bd66..b92c017754 100644 --- a/source/java/org/alfresco/repo/webservice/repository/RepositoryWebService.java +++ b/source/java/org/alfresco/repo/webservice/repository/RepositoryWebService.java @@ -100,6 +100,19 @@ public class RepositoryWebService extends AbstractWebService implements { this.querySessionCache = querySessionCache; } + + /** + * @see org.alfresco.repo.webservice.repository.RepositoryServiceSoapPort#createStore(org.alfresco.repo.webservice.types.StoreEnum, java.lang.String) + */ + public Store createStore(StoreEnum scheme, String address) throws RemoteException, RepositoryFault + { + String protocol = scheme.getValue(); + StoreRef storeRef = this.nodeService.createStore(protocol, address); + + StoreEnum storeEnum = StoreEnum.fromString(storeRef + .getProtocol()); + return new Store(storeEnum, storeRef.getIdentifier()); + } /** * @see org.alfresco.repo.webservice.repository.RepositoryServiceSoapPort#getStores() @@ -677,5 +690,5 @@ public class RepositoryWebService extends AbstractWebService implements } return nodes; - } + } } diff --git a/source/java/web-services-application-context.xml b/source/java/web-services-application-context.xml index dea510c853..7fae49ba3c 100644 --- a/source/java/web-services-application-context.xml +++ b/source/java/web-services-application-context.xml @@ -157,6 +157,9 @@ + + + diff --git a/source/test-resources/client-deploy.wsdd b/source/test-resources/client-deploy.wsdd deleted file mode 100644 index a571b046d2..0000000000 --- a/source/test-resources/client-deploy.wsdd +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/source/web/WEB-INF/server-config.wsdd b/source/web/WEB-INF/server-config.wsdd index 337bcd0549..a86de8ea61 100644 --- a/source/web/WEB-INF/server-config.wsdd +++ b/source/web/WEB-INF/server-config.wsdd @@ -369,8 +369,8 @@ /> @@ -409,6 +409,7 @@ + @@ -441,13 +442,18 @@ - + + + + + + @@ -486,7 +492,7 @@ - + + + - - + Provides read and write access to content streams. @@ -906,7 +920,7 @@ - + @@ -1585,7 +1599,7 @@ deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" /> - + Provides support for classifying content resources. @@ -1600,6 +1614,7 @@ + @@ -1625,6 +1640,214 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + Provides action and rule manipulation methods. /wsdl/action-service.wsdl + + + + @@ -1663,18 +1930,27 @@ - + - + + + + + + + + + + - + @@ -1707,7 +1983,7 @@ - + + - + - - + diff --git a/source/wsdl/action-service.wsdl b/source/wsdl/action-service.wsdl index 1793d305da..fdc5d53780 100644 --- a/source/wsdl/action-service.wsdl +++ b/source/wsdl/action-service.wsdl @@ -22,26 +22,34 @@ - + - + + + + + + + + - + + - + - + @@ -50,8 +58,8 @@ - - + + @@ -74,8 +82,8 @@ - - + + @@ -131,7 +139,7 @@ - + @@ -145,10 +153,27 @@ - + + + + + + + + + + + + + + + + + + @@ -162,6 +187,22 @@ + + + + + + + + + + + + + + + + @@ -297,6 +338,14 @@ + + + + + + + + @@ -306,6 +355,14 @@ + + + + + + + + @@ -379,12 +436,24 @@ + + Get a named action item definition. + + + + Gets the availble action types. + + Get a named rule type. + + + + Gets the actions saved against a reference. @@ -455,6 +524,18 @@ + + + + + + + + + + + + @@ -467,6 +548,18 @@ + + + + + + + + + + + + diff --git a/source/wsdl/authentication-service.wsdl b/source/wsdl/authentication-service.wsdl index f9c298cc3c..db339007c7 100644 --- a/source/wsdl/authentication-service.wsdl +++ b/source/wsdl/authentication-service.wsdl @@ -31,7 +31,9 @@ - + + + diff --git a/source/wsdl/repository-service.wsdl b/source/wsdl/repository-service.wsdl index 578489f70d..1c77335ff8 100644 --- a/source/wsdl/repository-service.wsdl +++ b/source/wsdl/repository-service.wsdl @@ -18,6 +18,23 @@ + + + + + + + + + + + + + + + + + @@ -213,6 +230,14 @@ + + + + + + + + @@ -290,6 +315,12 @@ + + Creates a new repository store. + + + + Retrieves a list of stores where content resources are held. @@ -347,7 +378,19 @@ - + + + + + + + + + + + + + Retrieves a list of stores where content resources are held.