mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
- Action web service implementation
- Simple Ruby web service examples - Outstanding work around persiatancy of models in the repository git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2094 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
</delete>
|
||||
</target>
|
||||
|
||||
<target name="gen-all-services" depends="gen-auth-service, gen-repo-service, gen-content-service, gen-authoring-service, gen-classification-service" />
|
||||
<target name="gen-all-services" depends="gen-auth-service, gen-repo-service, gen-content-service, gen-authoring-service, gen-classification-service, gen-action-service" />
|
||||
|
||||
<target name="gen-auth-service" depends="gen-auth-service-client, gen-auth-service-server" />
|
||||
|
||||
@@ -190,4 +190,31 @@
|
||||
</delete>
|
||||
</target>
|
||||
|
||||
<target name="gen-action-service" depends="gen-action-service-client, gen-action-service-server" />
|
||||
|
||||
<target name="gen-action-service-client" depends="init">
|
||||
<mkdir dir="${dir.src.java.generated}/org/alfresco/example/webservice/action" />
|
||||
<delete>
|
||||
<fileset dir="${dir.src.java.generated}/org/alfresco/example/webservice/action" />
|
||||
</delete>
|
||||
<wsdl2java url="${dir.src}/wsdl/action-service.wsdl" output="${dir.src.java.generated}" testcase="no" all="true">
|
||||
<mapping namespace="http://www.alfresco.org/ws/service/action/1.0" package="org.alfresco.example.webservice.action" />
|
||||
<mapping namespace="http://www.alfresco.org/ws/model/content/1.0" package="org.alfresco.example.webservice.types" />
|
||||
</wsdl2java>
|
||||
</target>
|
||||
|
||||
<target name="gen-action-service-server" depends="init">
|
||||
<mkdir dir="${dir.src.java.generated}/org/alfresco/repo/webservice/action" />
|
||||
<delete>
|
||||
<fileset dir="${dir.src.java.generated}/org/alfresco/repo/webservice/action" />
|
||||
</delete>
|
||||
<wsdl2java url="${dir.src}/wsdl/action-service.wsdl" output="${dir.src.java.generated}" serverSide="true" skeletondeploy="false" all="true">
|
||||
<mapping namespace="http://www.alfresco.org/ws/service/action/1.0" package="org.alfresco.repo.webservice.action" />
|
||||
<mapping namespace="http://www.alfresco.org/ws/model/content/1.0" package="org.alfresco.repo.webservice.types" />
|
||||
</wsdl2java>
|
||||
<delete>
|
||||
<fileset dir="${dir.src.java.generated}/org/alfresco/repo/webservice/action" includes="${files.delete.include}" />
|
||||
</delete>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
|
@@ -0,0 +1,484 @@
|
||||
/**
|
||||
* 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;
|
||||
i<java.lang.reflect.Array.getLength(getParameters());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getParameters(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getConditions() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getConditions());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getConditions(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getCompensatingAction() != null) {
|
||||
_hashCode += getCompensatingAction().hashCode();
|
||||
}
|
||||
if (getActions() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getActions());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getActions(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getReference() != null) {
|
||||
_hashCode += getReference().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(Action.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Action"));
|
||||
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/service/action/1.0", "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("type");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "type"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionItemType"));
|
||||
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/service/action/1.0", "title"));
|
||||
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("description");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "description"));
|
||||
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("executeAsynchronously");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "executeAsynchronously"));
|
||||
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("parameters");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "parameters"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "NamedValue"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("conditions");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "conditions"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Condition"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("compensatingAction");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "compensatingAction"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Action"));
|
||||
elemField.setNillable(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("actions");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "actions"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Action"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("reference");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "reference"));
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,172 @@
|
||||
/**
|
||||
* ActionExecutionResult.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 ActionExecutionResult implements java.io.Serializable {
|
||||
private org.alfresco.example.webservice.types.Reference reference;
|
||||
private org.alfresco.example.webservice.action.Action[] actions;
|
||||
|
||||
public ActionExecutionResult() {
|
||||
}
|
||||
|
||||
public ActionExecutionResult(
|
||||
org.alfresco.example.webservice.types.Reference reference,
|
||||
org.alfresco.example.webservice.action.Action[] actions) {
|
||||
this.reference = reference;
|
||||
this.actions = actions;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the reference value for this ActionExecutionResult.
|
||||
*
|
||||
* @return reference
|
||||
*/
|
||||
public org.alfresco.example.webservice.types.Reference getReference() {
|
||||
return reference;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the reference value for this ActionExecutionResult.
|
||||
*
|
||||
* @param reference
|
||||
*/
|
||||
public void setReference(org.alfresco.example.webservice.types.Reference reference) {
|
||||
this.reference = reference;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the actions value for this ActionExecutionResult.
|
||||
*
|
||||
* @return actions
|
||||
*/
|
||||
public org.alfresco.example.webservice.action.Action[] getActions() {
|
||||
return actions;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the actions value for this ActionExecutionResult.
|
||||
*
|
||||
* @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;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof ActionExecutionResult)) return false;
|
||||
ActionExecutionResult other = (ActionExecutionResult) 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.actions==null && other.getActions()==null) ||
|
||||
(this.actions!=null &&
|
||||
java.util.Arrays.equals(this.actions, other.getActions())));
|
||||
__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 (getActions() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getActions());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getActions(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(ActionExecutionResult.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionExecutionResult"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("reference");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "reference"));
|
||||
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("actions");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "actions"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Action"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,157 @@
|
||||
/**
|
||||
* ActionFault.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 ActionFault extends org.apache.axis.AxisFault implements java.io.Serializable {
|
||||
private int errorCode;
|
||||
private java.lang.String message1;
|
||||
|
||||
public ActionFault() {
|
||||
}
|
||||
|
||||
public ActionFault(
|
||||
int errorCode,
|
||||
java.lang.String message1) {
|
||||
this.errorCode = errorCode;
|
||||
this.message1 = message1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the errorCode value for this ActionFault.
|
||||
*
|
||||
* @return errorCode
|
||||
*/
|
||||
public int getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the errorCode value for this ActionFault.
|
||||
*
|
||||
* @param errorCode
|
||||
*/
|
||||
public void setErrorCode(int errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the message1 value for this ActionFault.
|
||||
*
|
||||
* @return message1
|
||||
*/
|
||||
public java.lang.String getMessage1() {
|
||||
return message1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the message1 value for this ActionFault.
|
||||
*
|
||||
* @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 ActionFault)) return false;
|
||||
ActionFault other = (ActionFault) 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(ActionFault.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionFault"));
|
||||
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/action/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/action/1.0", "message"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Writes the exception data to the faultDetails
|
||||
*/
|
||||
public void writeDetails(javax.xml.namespace.QName qname, org.apache.axis.encoding.SerializationContext context) throws java.io.IOException {
|
||||
context.serialize(qname, null, this);
|
||||
}
|
||||
}
|
@@ -0,0 +1,190 @@
|
||||
/**
|
||||
* ActionFilter.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 ActionFilter implements java.io.Serializable {
|
||||
private java.lang.String[] ids;
|
||||
private java.lang.String[] types;
|
||||
|
||||
public ActionFilter() {
|
||||
}
|
||||
|
||||
public ActionFilter(
|
||||
java.lang.String[] ids,
|
||||
java.lang.String[] types) {
|
||||
this.ids = ids;
|
||||
this.types = types;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the ids value for this ActionFilter.
|
||||
*
|
||||
* @return ids
|
||||
*/
|
||||
public java.lang.String[] getIds() {
|
||||
return ids;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the ids value for this ActionFilter.
|
||||
*
|
||||
* @param ids
|
||||
*/
|
||||
public void setIds(java.lang.String[] ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public java.lang.String getIds(int i) {
|
||||
return this.ids[i];
|
||||
}
|
||||
|
||||
public void setIds(int i, java.lang.String _value) {
|
||||
this.ids[i] = _value;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the types value for this ActionFilter.
|
||||
*
|
||||
* @return types
|
||||
*/
|
||||
public java.lang.String[] getTypes() {
|
||||
return types;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the types value for this ActionFilter.
|
||||
*
|
||||
* @param types
|
||||
*/
|
||||
public void setTypes(java.lang.String[] types) {
|
||||
this.types = types;
|
||||
}
|
||||
|
||||
public java.lang.String getTypes(int i) {
|
||||
return this.types[i];
|
||||
}
|
||||
|
||||
public void setTypes(int i, java.lang.String _value) {
|
||||
this.types[i] = _value;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof ActionFilter)) return false;
|
||||
ActionFilter other = (ActionFilter) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this.ids==null && other.getIds()==null) ||
|
||||
(this.ids!=null &&
|
||||
java.util.Arrays.equals(this.ids, other.getIds()))) &&
|
||||
((this.types==null && other.getTypes()==null) ||
|
||||
(this.types!=null &&
|
||||
java.util.Arrays.equals(this.types, other.getTypes())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (getIds() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getIds());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getIds(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getTypes() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getTypes());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getTypes(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(ActionFilter.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionFilter"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("ids");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ids"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("types");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "types"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,273 @@
|
||||
/**
|
||||
* ActionItemType.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 ActionItemType implements java.io.Serializable {
|
||||
private java.lang.String name;
|
||||
private java.lang.String title;
|
||||
private java.lang.String description;
|
||||
private boolean adHocPropertiesAllowed;
|
||||
private org.alfresco.example.webservice.action.ParameterDefinition[] parameterDefinition;
|
||||
|
||||
public ActionItemType() {
|
||||
}
|
||||
|
||||
public ActionItemType(
|
||||
java.lang.String name,
|
||||
java.lang.String title,
|
||||
java.lang.String description,
|
||||
boolean adHocPropertiesAllowed,
|
||||
org.alfresco.example.webservice.action.ParameterDefinition[] parameterDefinition) {
|
||||
this.name = name;
|
||||
this.title = title;
|
||||
this.description = description;
|
||||
this.adHocPropertiesAllowed = adHocPropertiesAllowed;
|
||||
this.parameterDefinition = parameterDefinition;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the name value for this ActionItemType.
|
||||
*
|
||||
* @return name
|
||||
*/
|
||||
public java.lang.String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the name value for this ActionItemType.
|
||||
*
|
||||
* @param name
|
||||
*/
|
||||
public void setName(java.lang.String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the title value for this ActionItemType.
|
||||
*
|
||||
* @return title
|
||||
*/
|
||||
public java.lang.String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the title value for this ActionItemType.
|
||||
*
|
||||
* @param title
|
||||
*/
|
||||
public void setTitle(java.lang.String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the description value for this ActionItemType.
|
||||
*
|
||||
* @return description
|
||||
*/
|
||||
public java.lang.String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the description value for this ActionItemType.
|
||||
*
|
||||
* @param description
|
||||
*/
|
||||
public void setDescription(java.lang.String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the adHocPropertiesAllowed value for this ActionItemType.
|
||||
*
|
||||
* @return adHocPropertiesAllowed
|
||||
*/
|
||||
public boolean isAdHocPropertiesAllowed() {
|
||||
return adHocPropertiesAllowed;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the adHocPropertiesAllowed value for this ActionItemType.
|
||||
*
|
||||
* @param adHocPropertiesAllowed
|
||||
*/
|
||||
public void setAdHocPropertiesAllowed(boolean adHocPropertiesAllowed) {
|
||||
this.adHocPropertiesAllowed = adHocPropertiesAllowed;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the parameterDefinition value for this ActionItemType.
|
||||
*
|
||||
* @return parameterDefinition
|
||||
*/
|
||||
public org.alfresco.example.webservice.action.ParameterDefinition[] getParameterDefinition() {
|
||||
return parameterDefinition;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the parameterDefinition value for this ActionItemType.
|
||||
*
|
||||
* @param parameterDefinition
|
||||
*/
|
||||
public void setParameterDefinition(org.alfresco.example.webservice.action.ParameterDefinition[] parameterDefinition) {
|
||||
this.parameterDefinition = parameterDefinition;
|
||||
}
|
||||
|
||||
public org.alfresco.example.webservice.action.ParameterDefinition getParameterDefinition(int i) {
|
||||
return this.parameterDefinition[i];
|
||||
}
|
||||
|
||||
public void setParameterDefinition(int i, org.alfresco.example.webservice.action.ParameterDefinition _value) {
|
||||
this.parameterDefinition[i] = _value;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof ActionItemType)) return false;
|
||||
ActionItemType other = (ActionItemType) 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.adHocPropertiesAllowed == other.isAdHocPropertiesAllowed() &&
|
||||
((this.parameterDefinition==null && other.getParameterDefinition()==null) ||
|
||||
(this.parameterDefinition!=null &&
|
||||
java.util.Arrays.equals(this.parameterDefinition, other.getParameterDefinition())));
|
||||
__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 += (isAdHocPropertiesAllowed() ? Boolean.TRUE : Boolean.FALSE).hashCode();
|
||||
if (getParameterDefinition() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getParameterDefinition());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getParameterDefinition(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(ActionItemType.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionItemType"));
|
||||
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/service/action/1.0", "name"));
|
||||
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("title");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "title"));
|
||||
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("description");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "description"));
|
||||
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("adHocPropertiesAllowed");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "adHocPropertiesAllowed"));
|
||||
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("parameterDefinition");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "parameterDefinition"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ParameterDefinition"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* ActionService.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 ActionService extends javax.xml.rpc.Service {
|
||||
|
||||
/**
|
||||
* Provides Action and Rule manipulation methods.
|
||||
*/
|
||||
public java.lang.String getActionServiceAddress();
|
||||
|
||||
public org.alfresco.example.webservice.action.ActionServiceSoapPort getActionService() throws javax.xml.rpc.ServiceException;
|
||||
|
||||
public org.alfresco.example.webservice.action.ActionServiceSoapPort getActionService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
|
||||
}
|
@@ -0,0 +1,146 @@
|
||||
/**
|
||||
* ActionServiceLocator.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 ActionServiceLocator extends org.apache.axis.client.Service implements org.alfresco.example.webservice.action.ActionService {
|
||||
|
||||
/**
|
||||
* Provides Action and Rule manipulation methods.
|
||||
*/
|
||||
|
||||
public ActionServiceLocator() {
|
||||
}
|
||||
|
||||
|
||||
public ActionServiceLocator(org.apache.axis.EngineConfiguration config) {
|
||||
super(config);
|
||||
}
|
||||
|
||||
public ActionServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
|
||||
super(wsdlLoc, sName);
|
||||
}
|
||||
|
||||
// Use to get a proxy class for ActionService
|
||||
private java.lang.String ActionService_address = "http://localhost:8080/alfresco/api/ActionService";
|
||||
|
||||
public java.lang.String getActionServiceAddress() {
|
||||
return ActionService_address;
|
||||
}
|
||||
|
||||
// The WSDD service name defaults to the port name.
|
||||
private java.lang.String ActionServiceWSDDServiceName = "ActionService";
|
||||
|
||||
public java.lang.String getActionServiceWSDDServiceName() {
|
||||
return ActionServiceWSDDServiceName;
|
||||
}
|
||||
|
||||
public void setActionServiceWSDDServiceName(java.lang.String name) {
|
||||
ActionServiceWSDDServiceName = name;
|
||||
}
|
||||
|
||||
public org.alfresco.example.webservice.action.ActionServiceSoapPort getActionService() throws javax.xml.rpc.ServiceException {
|
||||
java.net.URL endpoint;
|
||||
try {
|
||||
endpoint = new java.net.URL(ActionService_address);
|
||||
}
|
||||
catch (java.net.MalformedURLException e) {
|
||||
throw new javax.xml.rpc.ServiceException(e);
|
||||
}
|
||||
return getActionService(endpoint);
|
||||
}
|
||||
|
||||
public org.alfresco.example.webservice.action.ActionServiceSoapPort getActionService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
|
||||
try {
|
||||
org.alfresco.example.webservice.action.ActionServiceSoapBindingStub _stub = new org.alfresco.example.webservice.action.ActionServiceSoapBindingStub(portAddress, this);
|
||||
_stub.setPortName(getActionServiceWSDDServiceName());
|
||||
return _stub;
|
||||
}
|
||||
catch (org.apache.axis.AxisFault e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public void setActionServiceEndpointAddress(java.lang.String address) {
|
||||
ActionService_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.action.ActionServiceSoapPort.class.isAssignableFrom(serviceEndpointInterface)) {
|
||||
org.alfresco.example.webservice.action.ActionServiceSoapBindingStub _stub = new org.alfresco.example.webservice.action.ActionServiceSoapBindingStub(new java.net.URL(ActionService_address), this);
|
||||
_stub.setPortName(getActionServiceWSDDServiceName());
|
||||
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 ("ActionService".equals(inputPortName)) {
|
||||
return getActionService();
|
||||
}
|
||||
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/action/1.0", "ActionService");
|
||||
}
|
||||
|
||||
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/action/1.0", "ActionService"));
|
||||
}
|
||||
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 ("ActionService".equals(portName)) {
|
||||
setActionServiceEndpointAddress(address);
|
||||
}
|
||||
else
|
||||
{ // Unknown Port Name
|
||||
throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the endpoint address for the specified port name.
|
||||
*/
|
||||
public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
|
||||
setEndpointAddress(portName.getLocalPart(), address);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,990 @@
|
||||
/**
|
||||
* ActionServiceSoapBindingStub.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 ActionServiceSoapBindingStub extends org.apache.axis.client.Stub implements org.alfresco.example.webservice.action.ActionServiceSoapPort {
|
||||
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[10];
|
||||
_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("getConditionDefinitions");
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionItemType"));
|
||||
oper.setReturnClass(org.alfresco.example.webservice.action.ActionItemType[].class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "actionItemType"));
|
||||
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/action/1.0", "ActionFault"),
|
||||
"org.alfresco.example.webservice.action.ActionFault",
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionFault"),
|
||||
true
|
||||
));
|
||||
_operations[0] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("getActionDefinitions");
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionItemType"));
|
||||
oper.setReturnClass(org.alfresco.example.webservice.action.ActionItemType[].class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "actionItemType"));
|
||||
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/action/1.0", "ActionFault"),
|
||||
"org.alfresco.example.webservice.action.ActionFault",
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionFault"),
|
||||
true
|
||||
));
|
||||
_operations[1] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("getRuleTypes");
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "RuleType"));
|
||||
oper.setReturnClass(org.alfresco.example.webservice.action.RuleType[].class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ruleType"));
|
||||
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/action/1.0", "ActionFault"),
|
||||
"org.alfresco.example.webservice.action.ActionFault",
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionFault"),
|
||||
true
|
||||
));
|
||||
_operations[2] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("getActions");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "reference"), 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/action/1.0", "filter"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionFilter"), org.alfresco.example.webservice.action.ActionFilter.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Action"));
|
||||
oper.setReturnClass(org.alfresco.example.webservice.action.Action[].class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "action"));
|
||||
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/action/1.0", "ActionFault"),
|
||||
"org.alfresco.example.webservice.action.ActionFault",
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionFault"),
|
||||
true
|
||||
));
|
||||
_operations[3] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("saveActions");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "reference"), 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/action/1.0", "actions"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Action"), org.alfresco.example.webservice.action.Action[].class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Action"));
|
||||
oper.setReturnClass(org.alfresco.example.webservice.action.Action[].class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "action"));
|
||||
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/action/1.0", "ActionFault"),
|
||||
"org.alfresco.example.webservice.action.ActionFault",
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionFault"),
|
||||
true
|
||||
));
|
||||
_operations[4] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("removeActions");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "reference"), 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/action/1.0", "actions"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Action"), org.alfresco.example.webservice.action.Action[].class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
|
||||
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/action/1.0", "ActionFault"),
|
||||
"org.alfresco.example.webservice.action.ActionFault",
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionFault"),
|
||||
true
|
||||
));
|
||||
_operations[5] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("executeActions");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "predicate"), 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/action/1.0", "actions"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Action"), org.alfresco.example.webservice.action.Action[].class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionExecutionResult"));
|
||||
oper.setReturnClass(org.alfresco.example.webservice.action.ActionExecutionResult[].class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "actionExecutionResult"));
|
||||
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/action/1.0", "ActionFault"),
|
||||
"org.alfresco.example.webservice.action.ActionFault",
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionFault"),
|
||||
true
|
||||
));
|
||||
_operations[6] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("getRules");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "reference"), 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/action/1.0", "ruleFilter"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "RuleFilter"), org.alfresco.example.webservice.action.RuleFilter.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Rule"));
|
||||
oper.setReturnClass(org.alfresco.example.webservice.action.Rule[].class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "rule"));
|
||||
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/action/1.0", "ActionFault"),
|
||||
"org.alfresco.example.webservice.action.ActionFault",
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionFault"),
|
||||
true
|
||||
));
|
||||
_operations[7] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("saveRules");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "reference"), 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/action/1.0", "rules"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Rule"), org.alfresco.example.webservice.action.Rule[].class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Rule"));
|
||||
oper.setReturnClass(org.alfresco.example.webservice.action.Rule[].class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "rule"));
|
||||
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/action/1.0", "ActionFault"),
|
||||
"org.alfresco.example.webservice.action.ActionFault",
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionFault"),
|
||||
true
|
||||
));
|
||||
_operations[8] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("removeRules");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "reference"), 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/action/1.0", "rules"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Rule"), org.alfresco.example.webservice.action.Rule[].class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
|
||||
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/action/1.0", "ActionFault"),
|
||||
"org.alfresco.example.webservice.action.ActionFault",
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionFault"),
|
||||
true
|
||||
));
|
||||
_operations[9] = oper;
|
||||
|
||||
}
|
||||
|
||||
public ActionServiceSoapBindingStub() throws org.apache.axis.AxisFault {
|
||||
this(null);
|
||||
}
|
||||
|
||||
public ActionServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
|
||||
this(service);
|
||||
super.cachedEndpoint = endpointURL;
|
||||
}
|
||||
|
||||
public ActionServiceSoapBindingStub(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/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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
/**
|
||||
* 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;
|
||||
}
|
@@ -0,0 +1,238 @@
|
||||
/**
|
||||
* 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;
|
||||
i<java.lang.reflect.Array.getLength(getParameters());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getParameters(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(Condition.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Condition"));
|
||||
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/service/action/1.0", "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("type");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "type"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionItemType"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("invertCondition");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "invertCondition"));
|
||||
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("parameters");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "parameters"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "NamedValue"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,220 @@
|
||||
/**
|
||||
* ParameterDefinition.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 ParameterDefinition implements java.io.Serializable {
|
||||
private java.lang.String name;
|
||||
private java.lang.String type;
|
||||
private boolean isMandatory;
|
||||
private java.lang.String displayLabel;
|
||||
|
||||
public ParameterDefinition() {
|
||||
}
|
||||
|
||||
public ParameterDefinition(
|
||||
java.lang.String name,
|
||||
java.lang.String type,
|
||||
boolean isMandatory,
|
||||
java.lang.String displayLabel) {
|
||||
this.name = name;
|
||||
this.type = type;
|
||||
this.isMandatory = isMandatory;
|
||||
this.displayLabel = displayLabel;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the name value for this ParameterDefinition.
|
||||
*
|
||||
* @return name
|
||||
*/
|
||||
public java.lang.String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the name value for this ParameterDefinition.
|
||||
*
|
||||
* @param name
|
||||
*/
|
||||
public void setName(java.lang.String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the type value for this ParameterDefinition.
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public java.lang.String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the type value for this ParameterDefinition.
|
||||
*
|
||||
* @param type
|
||||
*/
|
||||
public void setType(java.lang.String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the isMandatory value for this ParameterDefinition.
|
||||
*
|
||||
* @return isMandatory
|
||||
*/
|
||||
public boolean isIsMandatory() {
|
||||
return isMandatory;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the isMandatory value for this ParameterDefinition.
|
||||
*
|
||||
* @param isMandatory
|
||||
*/
|
||||
public void setIsMandatory(boolean isMandatory) {
|
||||
this.isMandatory = isMandatory;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the displayLabel value for this ParameterDefinition.
|
||||
*
|
||||
* @return displayLabel
|
||||
*/
|
||||
public java.lang.String getDisplayLabel() {
|
||||
return displayLabel;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the displayLabel value for this ParameterDefinition.
|
||||
*
|
||||
* @param displayLabel
|
||||
*/
|
||||
public void setDisplayLabel(java.lang.String displayLabel) {
|
||||
this.displayLabel = displayLabel;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof ParameterDefinition)) return false;
|
||||
ParameterDefinition other = (ParameterDefinition) 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.type==null && other.getType()==null) ||
|
||||
(this.type!=null &&
|
||||
this.type.equals(other.getType()))) &&
|
||||
this.isMandatory == other.isIsMandatory() &&
|
||||
((this.displayLabel==null && other.getDisplayLabel()==null) ||
|
||||
(this.displayLabel!=null &&
|
||||
this.displayLabel.equals(other.getDisplayLabel())));
|
||||
__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 (getType() != null) {
|
||||
_hashCode += getType().hashCode();
|
||||
}
|
||||
_hashCode += (isIsMandatory() ? Boolean.TRUE : Boolean.FALSE).hashCode();
|
||||
if (getDisplayLabel() != null) {
|
||||
_hashCode += getDisplayLabel().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(ParameterDefinition.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ParameterDefinition"));
|
||||
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/service/action/1.0", "name"));
|
||||
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("type");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "type"));
|
||||
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("isMandatory");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "isMandatory"));
|
||||
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("displayLabel");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "displayLabel"));
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,430 @@
|
||||
/**
|
||||
* Rule.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 Rule implements java.io.Serializable {
|
||||
private java.lang.String id;
|
||||
private org.alfresco.example.webservice.action.RuleType ruleType;
|
||||
private java.lang.String title;
|
||||
private java.lang.String description;
|
||||
private boolean executeAsynchronously;
|
||||
private org.alfresco.example.webservice.action.Condition[] conditions;
|
||||
private org.alfresco.example.webservice.action.Action[] actions;
|
||||
private java.lang.String runAsUserName;
|
||||
private org.alfresco.example.webservice.types.Reference reference;
|
||||
|
||||
public Rule() {
|
||||
}
|
||||
|
||||
public Rule(
|
||||
java.lang.String id,
|
||||
org.alfresco.example.webservice.action.RuleType ruleType,
|
||||
java.lang.String title,
|
||||
java.lang.String description,
|
||||
boolean executeAsynchronously,
|
||||
org.alfresco.example.webservice.action.Condition[] conditions,
|
||||
org.alfresco.example.webservice.action.Action[] actions,
|
||||
java.lang.String runAsUserName,
|
||||
org.alfresco.example.webservice.types.Reference reference) {
|
||||
this.id = id;
|
||||
this.ruleType = ruleType;
|
||||
this.title = title;
|
||||
this.description = description;
|
||||
this.executeAsynchronously = executeAsynchronously;
|
||||
this.conditions = conditions;
|
||||
this.actions = actions;
|
||||
this.runAsUserName = runAsUserName;
|
||||
this.reference = reference;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the id value for this Rule.
|
||||
*
|
||||
* @return id
|
||||
*/
|
||||
public java.lang.String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the id value for this Rule.
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
public void setId(java.lang.String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the ruleType value for this Rule.
|
||||
*
|
||||
* @return ruleType
|
||||
*/
|
||||
public org.alfresco.example.webservice.action.RuleType getRuleType() {
|
||||
return ruleType;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the ruleType value for this Rule.
|
||||
*
|
||||
* @param ruleType
|
||||
*/
|
||||
public void setRuleType(org.alfresco.example.webservice.action.RuleType ruleType) {
|
||||
this.ruleType = ruleType;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the title value for this Rule.
|
||||
*
|
||||
* @return title
|
||||
*/
|
||||
public java.lang.String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the title value for this Rule.
|
||||
*
|
||||
* @param title
|
||||
*/
|
||||
public void setTitle(java.lang.String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the description value for this Rule.
|
||||
*
|
||||
* @return description
|
||||
*/
|
||||
public java.lang.String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the description value for this Rule.
|
||||
*
|
||||
* @param description
|
||||
*/
|
||||
public void setDescription(java.lang.String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the executeAsynchronously value for this Rule.
|
||||
*
|
||||
* @return executeAsynchronously
|
||||
*/
|
||||
public boolean isExecuteAsynchronously() {
|
||||
return executeAsynchronously;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the executeAsynchronously value for this Rule.
|
||||
*
|
||||
* @param executeAsynchronously
|
||||
*/
|
||||
public void setExecuteAsynchronously(boolean executeAsynchronously) {
|
||||
this.executeAsynchronously = executeAsynchronously;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the conditions value for this Rule.
|
||||
*
|
||||
* @return conditions
|
||||
*/
|
||||
public org.alfresco.example.webservice.action.Condition[] getConditions() {
|
||||
return conditions;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the conditions value for this Rule.
|
||||
*
|
||||
* @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 actions value for this Rule.
|
||||
*
|
||||
* @return actions
|
||||
*/
|
||||
public org.alfresco.example.webservice.action.Action[] getActions() {
|
||||
return actions;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the actions value for this Rule.
|
||||
*
|
||||
* @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 runAsUserName value for this Rule.
|
||||
*
|
||||
* @return runAsUserName
|
||||
*/
|
||||
public java.lang.String getRunAsUserName() {
|
||||
return runAsUserName;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the runAsUserName value for this Rule.
|
||||
*
|
||||
* @param runAsUserName
|
||||
*/
|
||||
public void setRunAsUserName(java.lang.String runAsUserName) {
|
||||
this.runAsUserName = runAsUserName;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the reference value for this Rule.
|
||||
*
|
||||
* @return reference
|
||||
*/
|
||||
public org.alfresco.example.webservice.types.Reference getReference() {
|
||||
return reference;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the reference value for this Rule.
|
||||
*
|
||||
* @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 Rule)) return false;
|
||||
Rule other = (Rule) 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.ruleType==null && other.getRuleType()==null) ||
|
||||
(this.ruleType!=null &&
|
||||
this.ruleType.equals(other.getRuleType()))) &&
|
||||
((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.conditions==null && other.getConditions()==null) ||
|
||||
(this.conditions!=null &&
|
||||
java.util.Arrays.equals(this.conditions, other.getConditions()))) &&
|
||||
((this.actions==null && other.getActions()==null) ||
|
||||
(this.actions!=null &&
|
||||
java.util.Arrays.equals(this.actions, other.getActions()))) &&
|
||||
((this.runAsUserName==null && other.getRunAsUserName()==null) ||
|
||||
(this.runAsUserName!=null &&
|
||||
this.runAsUserName.equals(other.getRunAsUserName()))) &&
|
||||
((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 (getRuleType() != null) {
|
||||
_hashCode += getRuleType().hashCode();
|
||||
}
|
||||
if (getTitle() != null) {
|
||||
_hashCode += getTitle().hashCode();
|
||||
}
|
||||
if (getDescription() != null) {
|
||||
_hashCode += getDescription().hashCode();
|
||||
}
|
||||
_hashCode += (isExecuteAsynchronously() ? Boolean.TRUE : Boolean.FALSE).hashCode();
|
||||
if (getConditions() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getConditions());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getConditions(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getActions() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getActions());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getActions(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getRunAsUserName() != null) {
|
||||
_hashCode += getRunAsUserName().hashCode();
|
||||
}
|
||||
if (getReference() != null) {
|
||||
_hashCode += getReference().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(Rule.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Rule"));
|
||||
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/service/action/1.0", "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("ruleType");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ruleType"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "RuleType"));
|
||||
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/service/action/1.0", "title"));
|
||||
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("description");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "description"));
|
||||
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("executeAsynchronously");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "executeAsynchronously"));
|
||||
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("conditions");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "conditions"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Condition"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("actions");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "actions"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Action"));
|
||||
elemField.setNillable(false);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("runAsUserName");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "runAsUserName"));
|
||||
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("reference");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "reference"));
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,221 @@
|
||||
/**
|
||||
* RuleFilter.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 RuleFilter implements java.io.Serializable {
|
||||
private java.lang.String[] ids;
|
||||
private java.lang.String[] ruleTypeNames;
|
||||
private boolean includeInherited;
|
||||
|
||||
public RuleFilter() {
|
||||
}
|
||||
|
||||
public RuleFilter(
|
||||
java.lang.String[] ids,
|
||||
java.lang.String[] ruleTypeNames,
|
||||
boolean includeInherited) {
|
||||
this.ids = ids;
|
||||
this.ruleTypeNames = ruleTypeNames;
|
||||
this.includeInherited = includeInherited;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the ids value for this RuleFilter.
|
||||
*
|
||||
* @return ids
|
||||
*/
|
||||
public java.lang.String[] getIds() {
|
||||
return ids;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the ids value for this RuleFilter.
|
||||
*
|
||||
* @param ids
|
||||
*/
|
||||
public void setIds(java.lang.String[] ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public java.lang.String getIds(int i) {
|
||||
return this.ids[i];
|
||||
}
|
||||
|
||||
public void setIds(int i, java.lang.String _value) {
|
||||
this.ids[i] = _value;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the ruleTypeNames value for this RuleFilter.
|
||||
*
|
||||
* @return ruleTypeNames
|
||||
*/
|
||||
public java.lang.String[] getRuleTypeNames() {
|
||||
return ruleTypeNames;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the ruleTypeNames value for this RuleFilter.
|
||||
*
|
||||
* @param ruleTypeNames
|
||||
*/
|
||||
public void setRuleTypeNames(java.lang.String[] ruleTypeNames) {
|
||||
this.ruleTypeNames = ruleTypeNames;
|
||||
}
|
||||
|
||||
public java.lang.String getRuleTypeNames(int i) {
|
||||
return this.ruleTypeNames[i];
|
||||
}
|
||||
|
||||
public void setRuleTypeNames(int i, java.lang.String _value) {
|
||||
this.ruleTypeNames[i] = _value;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the includeInherited value for this RuleFilter.
|
||||
*
|
||||
* @return includeInherited
|
||||
*/
|
||||
public boolean isIncludeInherited() {
|
||||
return includeInherited;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the includeInherited value for this RuleFilter.
|
||||
*
|
||||
* @param includeInherited
|
||||
*/
|
||||
public void setIncludeInherited(boolean includeInherited) {
|
||||
this.includeInherited = includeInherited;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof RuleFilter)) return false;
|
||||
RuleFilter other = (RuleFilter) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this.ids==null && other.getIds()==null) ||
|
||||
(this.ids!=null &&
|
||||
java.util.Arrays.equals(this.ids, other.getIds()))) &&
|
||||
((this.ruleTypeNames==null && other.getRuleTypeNames()==null) ||
|
||||
(this.ruleTypeNames!=null &&
|
||||
java.util.Arrays.equals(this.ruleTypeNames, other.getRuleTypeNames()))) &&
|
||||
this.includeInherited == other.isIncludeInherited();
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (getIds() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getIds());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getIds(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getRuleTypeNames() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getRuleTypeNames());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getRuleTypeNames(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
_hashCode += (isIncludeInherited() ? Boolean.TRUE : Boolean.FALSE).hashCode();
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(RuleFilter.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "RuleFilter"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("ids");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ids"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("ruleTypeNames");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ruleTypeNames"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("includeInherited");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "includeInherited"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,154 @@
|
||||
/**
|
||||
* RuleType.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 RuleType implements java.io.Serializable {
|
||||
private java.lang.String name;
|
||||
private java.lang.String displayLabel;
|
||||
|
||||
public RuleType() {
|
||||
}
|
||||
|
||||
public RuleType(
|
||||
java.lang.String name,
|
||||
java.lang.String displayLabel) {
|
||||
this.name = name;
|
||||
this.displayLabel = displayLabel;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the name value for this RuleType.
|
||||
*
|
||||
* @return name
|
||||
*/
|
||||
public java.lang.String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the name value for this RuleType.
|
||||
*
|
||||
* @param name
|
||||
*/
|
||||
public void setName(java.lang.String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the displayLabel value for this RuleType.
|
||||
*
|
||||
* @return displayLabel
|
||||
*/
|
||||
public java.lang.String getDisplayLabel() {
|
||||
return displayLabel;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the displayLabel value for this RuleType.
|
||||
*
|
||||
* @param displayLabel
|
||||
*/
|
||||
public void setDisplayLabel(java.lang.String displayLabel) {
|
||||
this.displayLabel = displayLabel;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof RuleType)) return false;
|
||||
RuleType other = (RuleType) 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.displayLabel==null && other.getDisplayLabel()==null) ||
|
||||
(this.displayLabel!=null &&
|
||||
this.displayLabel.equals(other.getDisplayLabel())));
|
||||
__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 (getDisplayLabel() != null) {
|
||||
_hashCode += getDisplayLabel().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(RuleType.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "RuleType"));
|
||||
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/service/action/1.0", "name"));
|
||||
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("displayLabel");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "displayLabel"));
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
@@ -295,13 +295,6 @@ public class RepositoryServiceSoapBindingStub extends org.apache.axis.client.Stu
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/headers/1.0", ">NamespaceConfiguration>mapping");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.NamespaceConfigurationMapping.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;
|
||||
@@ -311,13 +304,20 @@ public class RepositoryServiceSoapBindingStub extends org.apache.axis.client.Stu
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/headers/1.0", "NamespaceConfiguration");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.types.NamespaceConfigurationMapping[].class;
|
||||
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", ">NamespaceConfiguration>mapping");
|
||||
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;
|
||||
|
@@ -0,0 +1,154 @@
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
|
||||
}
|
484
source/generated/org/alfresco/repo/webservice/action/Action.java
Normal file
484
source/generated/org/alfresco/repo/webservice/action/Action.java
Normal file
@@ -0,0 +1,484 @@
|
||||
/**
|
||||
* 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.repo.webservice.action;
|
||||
|
||||
public class Action implements java.io.Serializable {
|
||||
private java.lang.String id;
|
||||
private org.alfresco.repo.webservice.action.ActionItemType type;
|
||||
private java.lang.String title;
|
||||
private java.lang.String description;
|
||||
private boolean executeAsynchronously;
|
||||
private org.alfresco.repo.webservice.types.NamedValue[] parameters;
|
||||
private org.alfresco.repo.webservice.action.Condition[] conditions;
|
||||
private org.alfresco.repo.webservice.action.Action compensatingAction;
|
||||
private org.alfresco.repo.webservice.action.Action[] actions;
|
||||
private org.alfresco.repo.webservice.types.Reference reference;
|
||||
|
||||
public Action() {
|
||||
}
|
||||
|
||||
public Action(
|
||||
java.lang.String id,
|
||||
org.alfresco.repo.webservice.action.ActionItemType type,
|
||||
java.lang.String title,
|
||||
java.lang.String description,
|
||||
boolean executeAsynchronously,
|
||||
org.alfresco.repo.webservice.types.NamedValue[] parameters,
|
||||
org.alfresco.repo.webservice.action.Condition[] conditions,
|
||||
org.alfresco.repo.webservice.action.Action compensatingAction,
|
||||
org.alfresco.repo.webservice.action.Action[] actions,
|
||||
org.alfresco.repo.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.repo.webservice.action.ActionItemType getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the type value for this Action.
|
||||
*
|
||||
* @param type
|
||||
*/
|
||||
public void setType(org.alfresco.repo.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.repo.webservice.types.NamedValue[] getParameters() {
|
||||
return parameters;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the parameters value for this Action.
|
||||
*
|
||||
* @param parameters
|
||||
*/
|
||||
public void setParameters(org.alfresco.repo.webservice.types.NamedValue[] parameters) {
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
public org.alfresco.repo.webservice.types.NamedValue getParameters(int i) {
|
||||
return this.parameters[i];
|
||||
}
|
||||
|
||||
public void setParameters(int i, org.alfresco.repo.webservice.types.NamedValue _value) {
|
||||
this.parameters[i] = _value;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the conditions value for this Action.
|
||||
*
|
||||
* @return conditions
|
||||
*/
|
||||
public org.alfresco.repo.webservice.action.Condition[] getConditions() {
|
||||
return conditions;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the conditions value for this Action.
|
||||
*
|
||||
* @param conditions
|
||||
*/
|
||||
public void setConditions(org.alfresco.repo.webservice.action.Condition[] conditions) {
|
||||
this.conditions = conditions;
|
||||
}
|
||||
|
||||
public org.alfresco.repo.webservice.action.Condition getConditions(int i) {
|
||||
return this.conditions[i];
|
||||
}
|
||||
|
||||
public void setConditions(int i, org.alfresco.repo.webservice.action.Condition _value) {
|
||||
this.conditions[i] = _value;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the compensatingAction value for this Action.
|
||||
*
|
||||
* @return compensatingAction
|
||||
*/
|
||||
public org.alfresco.repo.webservice.action.Action getCompensatingAction() {
|
||||
return compensatingAction;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the compensatingAction value for this Action.
|
||||
*
|
||||
* @param compensatingAction
|
||||
*/
|
||||
public void setCompensatingAction(org.alfresco.repo.webservice.action.Action compensatingAction) {
|
||||
this.compensatingAction = compensatingAction;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the actions value for this Action.
|
||||
*
|
||||
* @return actions
|
||||
*/
|
||||
public org.alfresco.repo.webservice.action.Action[] getActions() {
|
||||
return actions;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the actions value for this Action.
|
||||
*
|
||||
* @param actions
|
||||
*/
|
||||
public void setActions(org.alfresco.repo.webservice.action.Action[] actions) {
|
||||
this.actions = actions;
|
||||
}
|
||||
|
||||
public org.alfresco.repo.webservice.action.Action getActions(int i) {
|
||||
return this.actions[i];
|
||||
}
|
||||
|
||||
public void setActions(int i, org.alfresco.repo.webservice.action.Action _value) {
|
||||
this.actions[i] = _value;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the reference value for this Action.
|
||||
*
|
||||
* @return reference
|
||||
*/
|
||||
public org.alfresco.repo.webservice.types.Reference getReference() {
|
||||
return reference;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the reference value for this Action.
|
||||
*
|
||||
* @param reference
|
||||
*/
|
||||
public void setReference(org.alfresco.repo.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;
|
||||
i<java.lang.reflect.Array.getLength(getParameters());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getParameters(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getConditions() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getConditions());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getConditions(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getCompensatingAction() != null) {
|
||||
_hashCode += getCompensatingAction().hashCode();
|
||||
}
|
||||
if (getActions() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getActions());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getActions(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getReference() != null) {
|
||||
_hashCode += getReference().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(Action.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Action"));
|
||||
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/service/action/1.0", "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("type");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "type"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionItemType"));
|
||||
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/service/action/1.0", "title"));
|
||||
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("description");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "description"));
|
||||
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("executeAsynchronously");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "executeAsynchronously"));
|
||||
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("parameters");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "parameters"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "NamedValue"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("conditions");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "conditions"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Condition"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("compensatingAction");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "compensatingAction"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Action"));
|
||||
elemField.setNillable(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("actions");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "actions"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Action"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("reference");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "reference"));
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,172 @@
|
||||
/**
|
||||
* ActionExecutionResult.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.repo.webservice.action;
|
||||
|
||||
public class ActionExecutionResult implements java.io.Serializable {
|
||||
private org.alfresco.repo.webservice.types.Reference reference;
|
||||
private org.alfresco.repo.webservice.action.Action[] actions;
|
||||
|
||||
public ActionExecutionResult() {
|
||||
}
|
||||
|
||||
public ActionExecutionResult(
|
||||
org.alfresco.repo.webservice.types.Reference reference,
|
||||
org.alfresco.repo.webservice.action.Action[] actions) {
|
||||
this.reference = reference;
|
||||
this.actions = actions;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the reference value for this ActionExecutionResult.
|
||||
*
|
||||
* @return reference
|
||||
*/
|
||||
public org.alfresco.repo.webservice.types.Reference getReference() {
|
||||
return reference;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the reference value for this ActionExecutionResult.
|
||||
*
|
||||
* @param reference
|
||||
*/
|
||||
public void setReference(org.alfresco.repo.webservice.types.Reference reference) {
|
||||
this.reference = reference;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the actions value for this ActionExecutionResult.
|
||||
*
|
||||
* @return actions
|
||||
*/
|
||||
public org.alfresco.repo.webservice.action.Action[] getActions() {
|
||||
return actions;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the actions value for this ActionExecutionResult.
|
||||
*
|
||||
* @param actions
|
||||
*/
|
||||
public void setActions(org.alfresco.repo.webservice.action.Action[] actions) {
|
||||
this.actions = actions;
|
||||
}
|
||||
|
||||
public org.alfresco.repo.webservice.action.Action getActions(int i) {
|
||||
return this.actions[i];
|
||||
}
|
||||
|
||||
public void setActions(int i, org.alfresco.repo.webservice.action.Action _value) {
|
||||
this.actions[i] = _value;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof ActionExecutionResult)) return false;
|
||||
ActionExecutionResult other = (ActionExecutionResult) 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.actions==null && other.getActions()==null) ||
|
||||
(this.actions!=null &&
|
||||
java.util.Arrays.equals(this.actions, other.getActions())));
|
||||
__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 (getActions() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getActions());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getActions(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(ActionExecutionResult.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionExecutionResult"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("reference");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "reference"));
|
||||
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("actions");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "actions"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Action"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,157 @@
|
||||
/**
|
||||
* ActionFault.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.repo.webservice.action;
|
||||
|
||||
public class ActionFault extends org.apache.axis.AxisFault implements java.io.Serializable {
|
||||
private int errorCode;
|
||||
private java.lang.String message1;
|
||||
|
||||
public ActionFault() {
|
||||
}
|
||||
|
||||
public ActionFault(
|
||||
int errorCode,
|
||||
java.lang.String message1) {
|
||||
this.errorCode = errorCode;
|
||||
this.message1 = message1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the errorCode value for this ActionFault.
|
||||
*
|
||||
* @return errorCode
|
||||
*/
|
||||
public int getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the errorCode value for this ActionFault.
|
||||
*
|
||||
* @param errorCode
|
||||
*/
|
||||
public void setErrorCode(int errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the message1 value for this ActionFault.
|
||||
*
|
||||
* @return message1
|
||||
*/
|
||||
public java.lang.String getMessage1() {
|
||||
return message1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the message1 value for this ActionFault.
|
||||
*
|
||||
* @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 ActionFault)) return false;
|
||||
ActionFault other = (ActionFault) 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(ActionFault.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionFault"));
|
||||
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/action/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/action/1.0", "message"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Writes the exception data to the faultDetails
|
||||
*/
|
||||
public void writeDetails(javax.xml.namespace.QName qname, org.apache.axis.encoding.SerializationContext context) throws java.io.IOException {
|
||||
context.serialize(qname, null, this);
|
||||
}
|
||||
}
|
@@ -0,0 +1,190 @@
|
||||
/**
|
||||
* ActionFilter.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.repo.webservice.action;
|
||||
|
||||
public class ActionFilter implements java.io.Serializable {
|
||||
private java.lang.String[] ids;
|
||||
private java.lang.String[] types;
|
||||
|
||||
public ActionFilter() {
|
||||
}
|
||||
|
||||
public ActionFilter(
|
||||
java.lang.String[] ids,
|
||||
java.lang.String[] types) {
|
||||
this.ids = ids;
|
||||
this.types = types;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the ids value for this ActionFilter.
|
||||
*
|
||||
* @return ids
|
||||
*/
|
||||
public java.lang.String[] getIds() {
|
||||
return ids;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the ids value for this ActionFilter.
|
||||
*
|
||||
* @param ids
|
||||
*/
|
||||
public void setIds(java.lang.String[] ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public java.lang.String getIds(int i) {
|
||||
return this.ids[i];
|
||||
}
|
||||
|
||||
public void setIds(int i, java.lang.String _value) {
|
||||
this.ids[i] = _value;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the types value for this ActionFilter.
|
||||
*
|
||||
* @return types
|
||||
*/
|
||||
public java.lang.String[] getTypes() {
|
||||
return types;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the types value for this ActionFilter.
|
||||
*
|
||||
* @param types
|
||||
*/
|
||||
public void setTypes(java.lang.String[] types) {
|
||||
this.types = types;
|
||||
}
|
||||
|
||||
public java.lang.String getTypes(int i) {
|
||||
return this.types[i];
|
||||
}
|
||||
|
||||
public void setTypes(int i, java.lang.String _value) {
|
||||
this.types[i] = _value;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof ActionFilter)) return false;
|
||||
ActionFilter other = (ActionFilter) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this.ids==null && other.getIds()==null) ||
|
||||
(this.ids!=null &&
|
||||
java.util.Arrays.equals(this.ids, other.getIds()))) &&
|
||||
((this.types==null && other.getTypes()==null) ||
|
||||
(this.types!=null &&
|
||||
java.util.Arrays.equals(this.types, other.getTypes())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (getIds() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getIds());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getIds(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getTypes() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getTypes());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getTypes(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(ActionFilter.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionFilter"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("ids");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ids"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("types");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "types"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,273 @@
|
||||
/**
|
||||
* ActionItemType.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.repo.webservice.action;
|
||||
|
||||
public class ActionItemType implements java.io.Serializable {
|
||||
private java.lang.String name;
|
||||
private java.lang.String title;
|
||||
private java.lang.String description;
|
||||
private boolean adHocPropertiesAllowed;
|
||||
private org.alfresco.repo.webservice.action.ParameterDefinition[] parameterDefinition;
|
||||
|
||||
public ActionItemType() {
|
||||
}
|
||||
|
||||
public ActionItemType(
|
||||
java.lang.String name,
|
||||
java.lang.String title,
|
||||
java.lang.String description,
|
||||
boolean adHocPropertiesAllowed,
|
||||
org.alfresco.repo.webservice.action.ParameterDefinition[] parameterDefinition) {
|
||||
this.name = name;
|
||||
this.title = title;
|
||||
this.description = description;
|
||||
this.adHocPropertiesAllowed = adHocPropertiesAllowed;
|
||||
this.parameterDefinition = parameterDefinition;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the name value for this ActionItemType.
|
||||
*
|
||||
* @return name
|
||||
*/
|
||||
public java.lang.String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the name value for this ActionItemType.
|
||||
*
|
||||
* @param name
|
||||
*/
|
||||
public void setName(java.lang.String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the title value for this ActionItemType.
|
||||
*
|
||||
* @return title
|
||||
*/
|
||||
public java.lang.String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the title value for this ActionItemType.
|
||||
*
|
||||
* @param title
|
||||
*/
|
||||
public void setTitle(java.lang.String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the description value for this ActionItemType.
|
||||
*
|
||||
* @return description
|
||||
*/
|
||||
public java.lang.String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the description value for this ActionItemType.
|
||||
*
|
||||
* @param description
|
||||
*/
|
||||
public void setDescription(java.lang.String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the adHocPropertiesAllowed value for this ActionItemType.
|
||||
*
|
||||
* @return adHocPropertiesAllowed
|
||||
*/
|
||||
public boolean isAdHocPropertiesAllowed() {
|
||||
return adHocPropertiesAllowed;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the adHocPropertiesAllowed value for this ActionItemType.
|
||||
*
|
||||
* @param adHocPropertiesAllowed
|
||||
*/
|
||||
public void setAdHocPropertiesAllowed(boolean adHocPropertiesAllowed) {
|
||||
this.adHocPropertiesAllowed = adHocPropertiesAllowed;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the parameterDefinition value for this ActionItemType.
|
||||
*
|
||||
* @return parameterDefinition
|
||||
*/
|
||||
public org.alfresco.repo.webservice.action.ParameterDefinition[] getParameterDefinition() {
|
||||
return parameterDefinition;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the parameterDefinition value for this ActionItemType.
|
||||
*
|
||||
* @param parameterDefinition
|
||||
*/
|
||||
public void setParameterDefinition(org.alfresco.repo.webservice.action.ParameterDefinition[] parameterDefinition) {
|
||||
this.parameterDefinition = parameterDefinition;
|
||||
}
|
||||
|
||||
public org.alfresco.repo.webservice.action.ParameterDefinition getParameterDefinition(int i) {
|
||||
return this.parameterDefinition[i];
|
||||
}
|
||||
|
||||
public void setParameterDefinition(int i, org.alfresco.repo.webservice.action.ParameterDefinition _value) {
|
||||
this.parameterDefinition[i] = _value;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof ActionItemType)) return false;
|
||||
ActionItemType other = (ActionItemType) 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.adHocPropertiesAllowed == other.isAdHocPropertiesAllowed() &&
|
||||
((this.parameterDefinition==null && other.getParameterDefinition()==null) ||
|
||||
(this.parameterDefinition!=null &&
|
||||
java.util.Arrays.equals(this.parameterDefinition, other.getParameterDefinition())));
|
||||
__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 += (isAdHocPropertiesAllowed() ? Boolean.TRUE : Boolean.FALSE).hashCode();
|
||||
if (getParameterDefinition() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getParameterDefinition());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getParameterDefinition(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(ActionItemType.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionItemType"));
|
||||
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/service/action/1.0", "name"));
|
||||
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("title");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "title"));
|
||||
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("description");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "description"));
|
||||
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("adHocPropertiesAllowed");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "adHocPropertiesAllowed"));
|
||||
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("parameterDefinition");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "parameterDefinition"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ParameterDefinition"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
/**
|
||||
* 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.repo.webservice.action;
|
||||
|
||||
public interface ActionServiceSoapPort extends java.rmi.Remote {
|
||||
|
||||
/**
|
||||
* Gets the available condition definitions.
|
||||
*/
|
||||
public org.alfresco.repo.webservice.action.ActionItemType[] getConditionDefinitions() throws java.rmi.RemoteException, org.alfresco.repo.webservice.action.ActionFault;
|
||||
|
||||
/**
|
||||
* Gets the available action definitions.
|
||||
*/
|
||||
public org.alfresco.repo.webservice.action.ActionItemType[] getActionDefinitions() throws java.rmi.RemoteException, org.alfresco.repo.webservice.action.ActionFault;
|
||||
|
||||
/**
|
||||
* Gets the availble action types.
|
||||
*/
|
||||
public org.alfresco.repo.webservice.action.RuleType[] getRuleTypes() throws java.rmi.RemoteException, org.alfresco.repo.webservice.action.ActionFault;
|
||||
|
||||
/**
|
||||
* Gets the actions saved against a reference.
|
||||
*/
|
||||
public org.alfresco.repo.webservice.action.Action[] getActions(org.alfresco.repo.webservice.types.Reference reference, org.alfresco.repo.webservice.action.ActionFilter filter) throws java.rmi.RemoteException, org.alfresco.repo.webservice.action.ActionFault;
|
||||
|
||||
/**
|
||||
* Save actions against a given reference.
|
||||
*/
|
||||
public org.alfresco.repo.webservice.action.Action[] saveActions(org.alfresco.repo.webservice.types.Reference reference, org.alfresco.repo.webservice.action.Action[] actions) throws java.rmi.RemoteException, org.alfresco.repo.webservice.action.ActionFault;
|
||||
|
||||
/**
|
||||
* Removes saved actions.
|
||||
*/
|
||||
public void removeActions(org.alfresco.repo.webservice.types.Reference reference, org.alfresco.repo.webservice.action.Action[] actions) throws java.rmi.RemoteException, org.alfresco.repo.webservice.action.ActionFault;
|
||||
|
||||
/**
|
||||
* Executes actions.
|
||||
*/
|
||||
public org.alfresco.repo.webservice.action.ActionExecutionResult[] executeActions(org.alfresco.repo.webservice.types.Predicate predicate, org.alfresco.repo.webservice.action.Action[] actions) throws java.rmi.RemoteException, org.alfresco.repo.webservice.action.ActionFault;
|
||||
|
||||
/**
|
||||
* Gets the rules for a reference.
|
||||
*/
|
||||
public org.alfresco.repo.webservice.action.Rule[] getRules(org.alfresco.repo.webservice.types.Reference reference, org.alfresco.repo.webservice.action.RuleFilter ruleFilter) throws java.rmi.RemoteException, org.alfresco.repo.webservice.action.ActionFault;
|
||||
|
||||
/**
|
||||
* Save rules.
|
||||
*/
|
||||
public org.alfresco.repo.webservice.action.Rule[] saveRules(org.alfresco.repo.webservice.types.Reference reference, org.alfresco.repo.webservice.action.Rule[] rules) throws java.rmi.RemoteException, org.alfresco.repo.webservice.action.ActionFault;
|
||||
|
||||
/**
|
||||
* Remove saved rules.
|
||||
*/
|
||||
public void removeRules(org.alfresco.repo.webservice.types.Reference reference, org.alfresco.repo.webservice.action.Rule[] rules) throws java.rmi.RemoteException, org.alfresco.repo.webservice.action.ActionFault;
|
||||
}
|
@@ -0,0 +1,238 @@
|
||||
/**
|
||||
* 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.repo.webservice.action;
|
||||
|
||||
public class Condition implements java.io.Serializable {
|
||||
private java.lang.String id;
|
||||
private org.alfresco.repo.webservice.action.ActionItemType type;
|
||||
private boolean invertCondition;
|
||||
private org.alfresco.repo.webservice.types.NamedValue[] parameters;
|
||||
|
||||
public Condition() {
|
||||
}
|
||||
|
||||
public Condition(
|
||||
java.lang.String id,
|
||||
org.alfresco.repo.webservice.action.ActionItemType type,
|
||||
boolean invertCondition,
|
||||
org.alfresco.repo.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.repo.webservice.action.ActionItemType getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the type value for this Condition.
|
||||
*
|
||||
* @param type
|
||||
*/
|
||||
public void setType(org.alfresco.repo.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.repo.webservice.types.NamedValue[] getParameters() {
|
||||
return parameters;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the parameters value for this Condition.
|
||||
*
|
||||
* @param parameters
|
||||
*/
|
||||
public void setParameters(org.alfresco.repo.webservice.types.NamedValue[] parameters) {
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
public org.alfresco.repo.webservice.types.NamedValue getParameters(int i) {
|
||||
return this.parameters[i];
|
||||
}
|
||||
|
||||
public void setParameters(int i, org.alfresco.repo.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;
|
||||
i<java.lang.reflect.Array.getLength(getParameters());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getParameters(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(Condition.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Condition"));
|
||||
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/service/action/1.0", "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("type");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "type"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ActionItemType"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("invertCondition");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "invertCondition"));
|
||||
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("parameters");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "parameters"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "NamedValue"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,220 @@
|
||||
/**
|
||||
* ParameterDefinition.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.repo.webservice.action;
|
||||
|
||||
public class ParameterDefinition implements java.io.Serializable {
|
||||
private java.lang.String name;
|
||||
private java.lang.String type;
|
||||
private boolean isMandatory;
|
||||
private java.lang.String displayLabel;
|
||||
|
||||
public ParameterDefinition() {
|
||||
}
|
||||
|
||||
public ParameterDefinition(
|
||||
java.lang.String name,
|
||||
java.lang.String type,
|
||||
boolean isMandatory,
|
||||
java.lang.String displayLabel) {
|
||||
this.name = name;
|
||||
this.type = type;
|
||||
this.isMandatory = isMandatory;
|
||||
this.displayLabel = displayLabel;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the name value for this ParameterDefinition.
|
||||
*
|
||||
* @return name
|
||||
*/
|
||||
public java.lang.String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the name value for this ParameterDefinition.
|
||||
*
|
||||
* @param name
|
||||
*/
|
||||
public void setName(java.lang.String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the type value for this ParameterDefinition.
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public java.lang.String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the type value for this ParameterDefinition.
|
||||
*
|
||||
* @param type
|
||||
*/
|
||||
public void setType(java.lang.String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the isMandatory value for this ParameterDefinition.
|
||||
*
|
||||
* @return isMandatory
|
||||
*/
|
||||
public boolean isIsMandatory() {
|
||||
return isMandatory;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the isMandatory value for this ParameterDefinition.
|
||||
*
|
||||
* @param isMandatory
|
||||
*/
|
||||
public void setIsMandatory(boolean isMandatory) {
|
||||
this.isMandatory = isMandatory;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the displayLabel value for this ParameterDefinition.
|
||||
*
|
||||
* @return displayLabel
|
||||
*/
|
||||
public java.lang.String getDisplayLabel() {
|
||||
return displayLabel;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the displayLabel value for this ParameterDefinition.
|
||||
*
|
||||
* @param displayLabel
|
||||
*/
|
||||
public void setDisplayLabel(java.lang.String displayLabel) {
|
||||
this.displayLabel = displayLabel;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof ParameterDefinition)) return false;
|
||||
ParameterDefinition other = (ParameterDefinition) 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.type==null && other.getType()==null) ||
|
||||
(this.type!=null &&
|
||||
this.type.equals(other.getType()))) &&
|
||||
this.isMandatory == other.isIsMandatory() &&
|
||||
((this.displayLabel==null && other.getDisplayLabel()==null) ||
|
||||
(this.displayLabel!=null &&
|
||||
this.displayLabel.equals(other.getDisplayLabel())));
|
||||
__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 (getType() != null) {
|
||||
_hashCode += getType().hashCode();
|
||||
}
|
||||
_hashCode += (isIsMandatory() ? Boolean.TRUE : Boolean.FALSE).hashCode();
|
||||
if (getDisplayLabel() != null) {
|
||||
_hashCode += getDisplayLabel().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(ParameterDefinition.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ParameterDefinition"));
|
||||
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/service/action/1.0", "name"));
|
||||
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("type");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "type"));
|
||||
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("isMandatory");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "isMandatory"));
|
||||
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("displayLabel");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "displayLabel"));
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
430
source/generated/org/alfresco/repo/webservice/action/Rule.java
Normal file
430
source/generated/org/alfresco/repo/webservice/action/Rule.java
Normal file
@@ -0,0 +1,430 @@
|
||||
/**
|
||||
* Rule.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.repo.webservice.action;
|
||||
|
||||
public class Rule implements java.io.Serializable {
|
||||
private java.lang.String id;
|
||||
private org.alfresco.repo.webservice.action.RuleType ruleType;
|
||||
private java.lang.String title;
|
||||
private java.lang.String description;
|
||||
private boolean executeAsynchronously;
|
||||
private org.alfresco.repo.webservice.action.Condition[] conditions;
|
||||
private org.alfresco.repo.webservice.action.Action[] actions;
|
||||
private java.lang.String runAsUserName;
|
||||
private org.alfresco.repo.webservice.types.Reference reference;
|
||||
|
||||
public Rule() {
|
||||
}
|
||||
|
||||
public Rule(
|
||||
java.lang.String id,
|
||||
org.alfresco.repo.webservice.action.RuleType ruleType,
|
||||
java.lang.String title,
|
||||
java.lang.String description,
|
||||
boolean executeAsynchronously,
|
||||
org.alfresco.repo.webservice.action.Condition[] conditions,
|
||||
org.alfresco.repo.webservice.action.Action[] actions,
|
||||
java.lang.String runAsUserName,
|
||||
org.alfresco.repo.webservice.types.Reference reference) {
|
||||
this.id = id;
|
||||
this.ruleType = ruleType;
|
||||
this.title = title;
|
||||
this.description = description;
|
||||
this.executeAsynchronously = executeAsynchronously;
|
||||
this.conditions = conditions;
|
||||
this.actions = actions;
|
||||
this.runAsUserName = runAsUserName;
|
||||
this.reference = reference;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the id value for this Rule.
|
||||
*
|
||||
* @return id
|
||||
*/
|
||||
public java.lang.String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the id value for this Rule.
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
public void setId(java.lang.String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the ruleType value for this Rule.
|
||||
*
|
||||
* @return ruleType
|
||||
*/
|
||||
public org.alfresco.repo.webservice.action.RuleType getRuleType() {
|
||||
return ruleType;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the ruleType value for this Rule.
|
||||
*
|
||||
* @param ruleType
|
||||
*/
|
||||
public void setRuleType(org.alfresco.repo.webservice.action.RuleType ruleType) {
|
||||
this.ruleType = ruleType;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the title value for this Rule.
|
||||
*
|
||||
* @return title
|
||||
*/
|
||||
public java.lang.String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the title value for this Rule.
|
||||
*
|
||||
* @param title
|
||||
*/
|
||||
public void setTitle(java.lang.String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the description value for this Rule.
|
||||
*
|
||||
* @return description
|
||||
*/
|
||||
public java.lang.String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the description value for this Rule.
|
||||
*
|
||||
* @param description
|
||||
*/
|
||||
public void setDescription(java.lang.String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the executeAsynchronously value for this Rule.
|
||||
*
|
||||
* @return executeAsynchronously
|
||||
*/
|
||||
public boolean isExecuteAsynchronously() {
|
||||
return executeAsynchronously;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the executeAsynchronously value for this Rule.
|
||||
*
|
||||
* @param executeAsynchronously
|
||||
*/
|
||||
public void setExecuteAsynchronously(boolean executeAsynchronously) {
|
||||
this.executeAsynchronously = executeAsynchronously;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the conditions value for this Rule.
|
||||
*
|
||||
* @return conditions
|
||||
*/
|
||||
public org.alfresco.repo.webservice.action.Condition[] getConditions() {
|
||||
return conditions;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the conditions value for this Rule.
|
||||
*
|
||||
* @param conditions
|
||||
*/
|
||||
public void setConditions(org.alfresco.repo.webservice.action.Condition[] conditions) {
|
||||
this.conditions = conditions;
|
||||
}
|
||||
|
||||
public org.alfresco.repo.webservice.action.Condition getConditions(int i) {
|
||||
return this.conditions[i];
|
||||
}
|
||||
|
||||
public void setConditions(int i, org.alfresco.repo.webservice.action.Condition _value) {
|
||||
this.conditions[i] = _value;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the actions value for this Rule.
|
||||
*
|
||||
* @return actions
|
||||
*/
|
||||
public org.alfresco.repo.webservice.action.Action[] getActions() {
|
||||
return actions;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the actions value for this Rule.
|
||||
*
|
||||
* @param actions
|
||||
*/
|
||||
public void setActions(org.alfresco.repo.webservice.action.Action[] actions) {
|
||||
this.actions = actions;
|
||||
}
|
||||
|
||||
public org.alfresco.repo.webservice.action.Action getActions(int i) {
|
||||
return this.actions[i];
|
||||
}
|
||||
|
||||
public void setActions(int i, org.alfresco.repo.webservice.action.Action _value) {
|
||||
this.actions[i] = _value;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the runAsUserName value for this Rule.
|
||||
*
|
||||
* @return runAsUserName
|
||||
*/
|
||||
public java.lang.String getRunAsUserName() {
|
||||
return runAsUserName;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the runAsUserName value for this Rule.
|
||||
*
|
||||
* @param runAsUserName
|
||||
*/
|
||||
public void setRunAsUserName(java.lang.String runAsUserName) {
|
||||
this.runAsUserName = runAsUserName;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the reference value for this Rule.
|
||||
*
|
||||
* @return reference
|
||||
*/
|
||||
public org.alfresco.repo.webservice.types.Reference getReference() {
|
||||
return reference;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the reference value for this Rule.
|
||||
*
|
||||
* @param reference
|
||||
*/
|
||||
public void setReference(org.alfresco.repo.webservice.types.Reference reference) {
|
||||
this.reference = reference;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof Rule)) return false;
|
||||
Rule other = (Rule) 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.ruleType==null && other.getRuleType()==null) ||
|
||||
(this.ruleType!=null &&
|
||||
this.ruleType.equals(other.getRuleType()))) &&
|
||||
((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.conditions==null && other.getConditions()==null) ||
|
||||
(this.conditions!=null &&
|
||||
java.util.Arrays.equals(this.conditions, other.getConditions()))) &&
|
||||
((this.actions==null && other.getActions()==null) ||
|
||||
(this.actions!=null &&
|
||||
java.util.Arrays.equals(this.actions, other.getActions()))) &&
|
||||
((this.runAsUserName==null && other.getRunAsUserName()==null) ||
|
||||
(this.runAsUserName!=null &&
|
||||
this.runAsUserName.equals(other.getRunAsUserName()))) &&
|
||||
((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 (getRuleType() != null) {
|
||||
_hashCode += getRuleType().hashCode();
|
||||
}
|
||||
if (getTitle() != null) {
|
||||
_hashCode += getTitle().hashCode();
|
||||
}
|
||||
if (getDescription() != null) {
|
||||
_hashCode += getDescription().hashCode();
|
||||
}
|
||||
_hashCode += (isExecuteAsynchronously() ? Boolean.TRUE : Boolean.FALSE).hashCode();
|
||||
if (getConditions() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getConditions());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getConditions(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getActions() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getActions());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getActions(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getRunAsUserName() != null) {
|
||||
_hashCode += getRunAsUserName().hashCode();
|
||||
}
|
||||
if (getReference() != null) {
|
||||
_hashCode += getReference().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(Rule.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Rule"));
|
||||
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/service/action/1.0", "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("ruleType");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ruleType"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "RuleType"));
|
||||
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/service/action/1.0", "title"));
|
||||
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("description");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "description"));
|
||||
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("executeAsynchronously");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "executeAsynchronously"));
|
||||
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("conditions");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "conditions"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Condition"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("actions");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "actions"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "Action"));
|
||||
elemField.setNillable(false);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("runAsUserName");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "runAsUserName"));
|
||||
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("reference");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "reference"));
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,221 @@
|
||||
/**
|
||||
* RuleFilter.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.repo.webservice.action;
|
||||
|
||||
public class RuleFilter implements java.io.Serializable {
|
||||
private java.lang.String[] ids;
|
||||
private java.lang.String[] ruleTypeNames;
|
||||
private boolean includeInherited;
|
||||
|
||||
public RuleFilter() {
|
||||
}
|
||||
|
||||
public RuleFilter(
|
||||
java.lang.String[] ids,
|
||||
java.lang.String[] ruleTypeNames,
|
||||
boolean includeInherited) {
|
||||
this.ids = ids;
|
||||
this.ruleTypeNames = ruleTypeNames;
|
||||
this.includeInherited = includeInherited;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the ids value for this RuleFilter.
|
||||
*
|
||||
* @return ids
|
||||
*/
|
||||
public java.lang.String[] getIds() {
|
||||
return ids;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the ids value for this RuleFilter.
|
||||
*
|
||||
* @param ids
|
||||
*/
|
||||
public void setIds(java.lang.String[] ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public java.lang.String getIds(int i) {
|
||||
return this.ids[i];
|
||||
}
|
||||
|
||||
public void setIds(int i, java.lang.String _value) {
|
||||
this.ids[i] = _value;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the ruleTypeNames value for this RuleFilter.
|
||||
*
|
||||
* @return ruleTypeNames
|
||||
*/
|
||||
public java.lang.String[] getRuleTypeNames() {
|
||||
return ruleTypeNames;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the ruleTypeNames value for this RuleFilter.
|
||||
*
|
||||
* @param ruleTypeNames
|
||||
*/
|
||||
public void setRuleTypeNames(java.lang.String[] ruleTypeNames) {
|
||||
this.ruleTypeNames = ruleTypeNames;
|
||||
}
|
||||
|
||||
public java.lang.String getRuleTypeNames(int i) {
|
||||
return this.ruleTypeNames[i];
|
||||
}
|
||||
|
||||
public void setRuleTypeNames(int i, java.lang.String _value) {
|
||||
this.ruleTypeNames[i] = _value;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the includeInherited value for this RuleFilter.
|
||||
*
|
||||
* @return includeInherited
|
||||
*/
|
||||
public boolean isIncludeInherited() {
|
||||
return includeInherited;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the includeInherited value for this RuleFilter.
|
||||
*
|
||||
* @param includeInherited
|
||||
*/
|
||||
public void setIncludeInherited(boolean includeInherited) {
|
||||
this.includeInherited = includeInherited;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof RuleFilter)) return false;
|
||||
RuleFilter other = (RuleFilter) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this.ids==null && other.getIds()==null) ||
|
||||
(this.ids!=null &&
|
||||
java.util.Arrays.equals(this.ids, other.getIds()))) &&
|
||||
((this.ruleTypeNames==null && other.getRuleTypeNames()==null) ||
|
||||
(this.ruleTypeNames!=null &&
|
||||
java.util.Arrays.equals(this.ruleTypeNames, other.getRuleTypeNames()))) &&
|
||||
this.includeInherited == other.isIncludeInherited();
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (getIds() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getIds());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getIds(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getRuleTypeNames() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(getRuleTypeNames());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(getRuleTypeNames(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
_hashCode += (isIncludeInherited() ? Boolean.TRUE : Boolean.FALSE).hashCode();
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(RuleFilter.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "RuleFilter"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("ids");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ids"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("ruleTypeNames");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ruleTypeNames"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(true);
|
||||
elemField.setMaxOccursUnbounded(true);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("includeInherited");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "includeInherited"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,154 @@
|
||||
/**
|
||||
* RuleType.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.repo.webservice.action;
|
||||
|
||||
public class RuleType implements java.io.Serializable {
|
||||
private java.lang.String name;
|
||||
private java.lang.String displayLabel;
|
||||
|
||||
public RuleType() {
|
||||
}
|
||||
|
||||
public RuleType(
|
||||
java.lang.String name,
|
||||
java.lang.String displayLabel) {
|
||||
this.name = name;
|
||||
this.displayLabel = displayLabel;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the name value for this RuleType.
|
||||
*
|
||||
* @return name
|
||||
*/
|
||||
public java.lang.String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the name value for this RuleType.
|
||||
*
|
||||
* @param name
|
||||
*/
|
||||
public void setName(java.lang.String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the displayLabel value for this RuleType.
|
||||
*
|
||||
* @return displayLabel
|
||||
*/
|
||||
public java.lang.String getDisplayLabel() {
|
||||
return displayLabel;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the displayLabel value for this RuleType.
|
||||
*
|
||||
* @param displayLabel
|
||||
*/
|
||||
public void setDisplayLabel(java.lang.String displayLabel) {
|
||||
this.displayLabel = displayLabel;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof RuleType)) return false;
|
||||
RuleType other = (RuleType) 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.displayLabel==null && other.getDisplayLabel()==null) ||
|
||||
(this.displayLabel!=null &&
|
||||
this.displayLabel.equals(other.getDisplayLabel())));
|
||||
__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 (getDisplayLabel() != null) {
|
||||
_hashCode += getDisplayLabel().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(RuleType.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "RuleType"));
|
||||
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/service/action/1.0", "name"));
|
||||
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("displayLabel");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "displayLabel"));
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
398
source/generated/org/alfresco/repo/webservice/action/deploy.wsdd
Normal file
398
source/generated/org/alfresco/repo/webservice/action/deploy.wsdd
Normal file
@@ -0,0 +1,398 @@
|
||||
<!-- Use this file to deploy some handlers/chains and services -->
|
||||
<!-- Two ways to do this: -->
|
||||
<!-- java org.apache.axis.client.AdminClient deploy.wsdd -->
|
||||
<!-- after the axis server is running -->
|
||||
<!-- or -->
|
||||
<!-- java org.apache.axis.utils.Admin client|server deploy.wsdd -->
|
||||
<!-- from the same directory that the Axis engine runs -->
|
||||
|
||||
<deployment
|
||||
xmlns="http://xml.apache.org/axis/wsdd/"
|
||||
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
|
||||
|
||||
<!-- Services from ActionService WSDL service -->
|
||||
|
||||
<service name="ActionService" provider="java:RPC" style="wrapped" use="literal">
|
||||
<parameter name="wsdlTargetNamespace" value="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
<parameter name="wsdlServiceElement" value="ActionService"/>
|
||||
<parameter name="schemaQualified" value="http://www.alfresco.org/ws/service/action/1.0,http://www.alfresco.org/ws/model/content/1.0"/>
|
||||
<parameter name="wsdlServicePort" value="ActionService"/>
|
||||
<parameter name="className" value="org.alfresco.repo.webservice.action.ActionServiceSoapBindingImpl"/>
|
||||
<parameter name="wsdlPortType" value="ActionServiceSoapPort"/>
|
||||
<parameter name="typeMappingVersion" value="1.2"/>
|
||||
<operation name="getConditionDefinitions" qname="operNS:getConditionDefinitions" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" returnQName="retNS:actionItemType" xmlns:retNS="http://www.alfresco.org/ws/service/action/1.0" returnType="rtns:ActionItemType" xmlns:rtns="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/getConditionDefinitions" >
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<operation name="getActionDefinitions" qname="operNS:getActionDefinitions" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" returnQName="retNS:actionItemType" xmlns:retNS="http://www.alfresco.org/ws/service/action/1.0" returnType="rtns:ActionItemType" xmlns:rtns="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/getActionDefinitions" >
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<operation name="getRuleTypes" qname="operNS:getRuleTypes" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" returnQName="retNS:ruleType" xmlns:retNS="http://www.alfresco.org/ws/service/action/1.0" returnType="rtns:RuleType" xmlns:rtns="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/getRuleTypes" >
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<operation name="getActions" qname="operNS:getActions" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" returnQName="retNS:action" xmlns:retNS="http://www.alfresco.org/ws/service/action/1.0" returnType="rtns:Action" xmlns:rtns="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/getActions" >
|
||||
<parameter qname="pns:reference" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Reference" xmlns:tns="http://www.alfresco.org/ws/model/content/1.0"/>
|
||||
<parameter qname="pns:filter" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:ActionFilter" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<operation name="saveActions" qname="operNS:saveActions" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" returnQName="retNS:action" xmlns:retNS="http://www.alfresco.org/ws/service/action/1.0" returnType="rtns:Action" xmlns:rtns="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/saveActions" >
|
||||
<parameter qname="pns:reference" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Reference" xmlns:tns="http://www.alfresco.org/ws/model/content/1.0"/>
|
||||
<parameter qname="pns:actions" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Action" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<operation name="removeActions" qname="operNS:removeActions" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/removeActions" >
|
||||
<parameter qname="pns:reference" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Reference" xmlns:tns="http://www.alfresco.org/ws/model/content/1.0"/>
|
||||
<parameter qname="pns:actions" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Action" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<operation name="executeActions" qname="operNS:executeActions" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" returnQName="retNS:actionExecutionResult" xmlns:retNS="http://www.alfresco.org/ws/service/action/1.0" returnType="rtns:ActionExecutionResult" xmlns:rtns="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/executeActions" >
|
||||
<parameter qname="pns:predicate" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Predicate" xmlns:tns="http://www.alfresco.org/ws/model/content/1.0"/>
|
||||
<parameter qname="pns:actions" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Action" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<operation name="getRules" qname="operNS:getRules" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" returnQName="retNS:rule" xmlns:retNS="http://www.alfresco.org/ws/service/action/1.0" returnType="rtns:Rule" xmlns:rtns="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/getRules" >
|
||||
<parameter qname="pns:reference" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Reference" xmlns:tns="http://www.alfresco.org/ws/model/content/1.0"/>
|
||||
<parameter qname="pns:ruleFilter" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:RuleFilter" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<operation name="saveRules" qname="operNS:saveRules" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" returnQName="retNS:rule" xmlns:retNS="http://www.alfresco.org/ws/service/action/1.0" returnType="rtns:Rule" xmlns:rtns="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/saveRules" >
|
||||
<parameter qname="pns:reference" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Reference" xmlns:tns="http://www.alfresco.org/ws/model/content/1.0"/>
|
||||
<parameter qname="pns:rules" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Rule" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<operation name="removeRules" qname="operNS:removeRules" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/removeRules" >
|
||||
<parameter qname="pns:reference" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Reference" xmlns:tns="http://www.alfresco.org/ws/model/content/1.0"/>
|
||||
<parameter qname="pns:rules" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Rule" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<parameter name="allowedMethods" value="saveRules saveActions getRules getActions executeActions removeRules getActionDefinitions getConditionDefinitions removeActions getRuleTypes"/>
|
||||
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:ParentReference"
|
||||
type="java:org.alfresco.repo.webservice.types.ParentReference"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:QueryLanguageEnum"
|
||||
type="java:org.alfresco.repo.webservice.types.QueryLanguageEnum"
|
||||
serializer="org.apache.axis.encoding.ser.EnumSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.EnumDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Cardinality"
|
||||
type="java:org.alfresco.repo.webservice.types.Cardinality"
|
||||
serializer="org.apache.axis.encoding.ser.EnumSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.EnumDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:ClassDefinition"
|
||||
type="java:org.alfresco.repo.webservice.types.ClassDefinition"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:Rule"
|
||||
type="java:org.alfresco.repo.webservice.action.Rule"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:ContentFormat"
|
||||
type="java:org.alfresco.repo.webservice.types.ContentFormat"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:Condition"
|
||||
type="java:org.alfresco.repo.webservice.action.Condition"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Version"
|
||||
type="java:org.alfresco.repo.webservice.types.Version"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Node"
|
||||
type="java:org.alfresco.repo.webservice.types.Node"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Predicate"
|
||||
type="java:org.alfresco.repo.webservice.types.Predicate"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:ResultSetRow"
|
||||
type="java:org.alfresco.repo.webservice.types.ResultSetRow"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Path"
|
||||
type="java:java.lang.String"
|
||||
serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:ResultSet"
|
||||
type="java:org.alfresco.repo.webservice.types.ResultSet"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:ResultSetMetaData"
|
||||
type="java:org.alfresco.repo.webservice.types.ResultSetMetaData"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:ActionItemType"
|
||||
type="java:org.alfresco.repo.webservice.action.ActionItemType"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:NodeDefinition"
|
||||
type="java:org.alfresco.repo.webservice.types.NodeDefinition"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Category"
|
||||
type="java:org.alfresco.repo.webservice.types.Category"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:ValueDefinition"
|
||||
type="java:org.alfresco.repo.webservice.types.ValueDefinition"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:ActionFault"
|
||||
type="java:org.alfresco.repo.webservice.action.ActionFault"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:RuleFilter"
|
||||
type="java:org.alfresco.repo.webservice.action.RuleFilter"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:>ContentFormat>mimetype"
|
||||
type="java:java.lang.String"
|
||||
serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Query"
|
||||
type="java:org.alfresco.repo.webservice.types.Query"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:StoreEnum"
|
||||
type="java:org.alfresco.repo.webservice.types.StoreEnum"
|
||||
serializer="org.apache.axis.encoding.ser.EnumSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.EnumDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Reference"
|
||||
type="java:org.alfresco.repo.webservice.types.Reference"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:NamedValue"
|
||||
type="java:org.alfresco.repo.webservice.types.NamedValue"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:UUID"
|
||||
type="java:java.lang.String"
|
||||
serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:Action"
|
||||
type="java:org.alfresco.repo.webservice.action.Action"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Name"
|
||||
type="java:java.lang.String"
|
||||
serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:>ResultSetRow>node"
|
||||
type="java:org.alfresco.repo.webservice.types.ResultSetRowNode"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:>ContentFormat>encoding"
|
||||
type="java:java.lang.String"
|
||||
serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:RuleType"
|
||||
type="java:org.alfresco.repo.webservice.action.RuleType"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Classification"
|
||||
type="java:org.alfresco.repo.webservice.types.Classification"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:ActionFilter"
|
||||
type="java:org.alfresco.repo.webservice.action.ActionFilter"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Store"
|
||||
type="java:org.alfresco.repo.webservice.types.Store"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:>Store>address"
|
||||
type="java:java.lang.String"
|
||||
serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:AssociationDefinition"
|
||||
type="java:org.alfresco.repo.webservice.types.AssociationDefinition"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:RoleDefinition"
|
||||
type="java:org.alfresco.repo.webservice.types.RoleDefinition"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:ActionExecutionResult"
|
||||
type="java:org.alfresco.repo.webservice.action.ActionExecutionResult"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:PropertyDefinition"
|
||||
type="java:org.alfresco.repo.webservice.types.PropertyDefinition"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:ParameterDefinition"
|
||||
type="java:org.alfresco.repo.webservice.action.ParameterDefinition"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:VersionHistory"
|
||||
type="java:org.alfresco.repo.webservice.types.VersionHistory"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
</service>
|
||||
</deployment>
|
@@ -116,6 +116,14 @@
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/headers/1.0"
|
||||
qname="ns:NamespaceConfigurationInner"
|
||||
type="java:org.alfresco.repo.webservice.types.NamespaceConfigurationInner"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:NodeDefinition"
|
||||
@@ -359,8 +367,8 @@
|
||||
<arrayMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/headers/1.0"
|
||||
qname="ns:NamespaceConfiguration"
|
||||
type="java:org.alfresco.repo.webservice.types.NamespaceConfigurationMapping[]"
|
||||
innerType="cmp-ns:>NamespaceConfiguration>mapping" xmlns:cmp-ns="http://www.alfresco.org/ws/headers/1.0"
|
||||
type="java:org.alfresco.repo.webservice.types.NamespaceConfigurationInner[]"
|
||||
innerType="cmp-ns:NamespaceConfigurationInner" xmlns:cmp-ns="http://www.alfresco.org/ws/headers/1.0"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
@@ -451,14 +459,6 @@
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/headers/1.0"
|
||||
qname="ns:>NamespaceConfiguration>mapping"
|
||||
type="java:org.alfresco.repo.webservice.types.NamespaceConfigurationMapping"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/headers/1.0"
|
||||
qname="ns:LocaleConfiguration"
|
||||
|
@@ -0,0 +1,154 @@
|
||||
/**
|
||||
* 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.repo.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);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,775 @@
|
||||
/*
|
||||
* 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.repo.webservice.action;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.rmi.RemoteException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.alfresco.repo.action.ActionConditionImpl;
|
||||
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.webservice.AbstractWebService;
|
||||
import org.alfresco.repo.webservice.Utils;
|
||||
import org.alfresco.repo.webservice.types.NamedValue;
|
||||
import org.alfresco.repo.webservice.types.Predicate;
|
||||
import org.alfresco.repo.webservice.types.Reference;
|
||||
import org.alfresco.service.cmr.action.Action;
|
||||
import org.alfresco.service.cmr.action.ActionCondition;
|
||||
import org.alfresco.service.cmr.action.ActionConditionDefinition;
|
||||
import org.alfresco.service.cmr.action.ActionDefinition;
|
||||
import org.alfresco.service.cmr.action.ActionService;
|
||||
import org.alfresco.service.cmr.action.CompositeAction;
|
||||
import org.alfresco.service.cmr.action.ParameterDefinition;
|
||||
import org.alfresco.service.cmr.action.ParameterizedItem;
|
||||
import org.alfresco.service.cmr.action.ParameterizedItemDefinition;
|
||||
import org.alfresco.service.cmr.dictionary.DataTypeDefinition;
|
||||
import org.alfresco.service.cmr.dictionary.DictionaryService;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.repository.datatype.DefaultTypeConverter;
|
||||
import org.alfresco.service.cmr.rule.Rule;
|
||||
import org.alfresco.service.cmr.rule.RuleService;
|
||||
import org.alfresco.service.cmr.rule.RuleType;
|
||||
import org.alfresco.util.GUID;
|
||||
|
||||
/**
|
||||
* Action web service implementation
|
||||
*
|
||||
* @author Roy Wetherall
|
||||
*/
|
||||
public class ActionWebService extends AbstractWebService implements ActionServiceSoapPort
|
||||
{
|
||||
/** The action service */
|
||||
private ActionService actionService;
|
||||
|
||||
/** The rule service */
|
||||
private RuleService ruleService;
|
||||
|
||||
/** The dictionary service */
|
||||
private DictionaryService dictionaryService;
|
||||
|
||||
/**
|
||||
* Set the action service
|
||||
*
|
||||
* @param actionService the action service
|
||||
*/
|
||||
public void setActionService(ActionService actionService)
|
||||
{
|
||||
this.actionService = actionService;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the rule service
|
||||
*
|
||||
* @param ruleService the rule service
|
||||
*/
|
||||
public void setRuleService(RuleService ruleService)
|
||||
{
|
||||
this.ruleService = ruleService;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the dictionary service
|
||||
*
|
||||
* @param dictionaryService the dictionary service
|
||||
*/
|
||||
public void setDictionaryService(DictionaryService dictionaryService)
|
||||
{
|
||||
this.dictionaryService = dictionaryService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.repo.webservice.action.ActionServiceSoapPort#getConditionDefinitions()
|
||||
*/
|
||||
public ActionItemType[] getConditionDefinitions() throws RemoteException,
|
||||
ActionFault
|
||||
{
|
||||
// Get the action condition defintions from the action service
|
||||
List<ActionConditionDefinition> definitions = this.actionService.getActionConditionDefinitions();
|
||||
|
||||
// Marshal the results into an array of action item types
|
||||
ActionItemType[] result = new ActionItemType[definitions.size()];
|
||||
int index = 0;
|
||||
for (ActionConditionDefinition definition : definitions)
|
||||
{
|
||||
result[index] = convertToActionItemType(definition);
|
||||
index++;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.repo.webservice.action.ActionServiceSoapPort#getActionDefinitions()
|
||||
*/
|
||||
public ActionItemType[] getActionDefinitions() throws RemoteException,
|
||||
ActionFault
|
||||
{
|
||||
// Get the action defintions from the action service
|
||||
List<ActionDefinition> definitions = this.actionService.getActionDefinitions();
|
||||
|
||||
// Marshal the results into an array of action item types
|
||||
ActionItemType[] result = new ActionItemType[definitions.size()];
|
||||
int index = 0;
|
||||
for (ActionDefinition definition : definitions)
|
||||
{
|
||||
result[index] = convertToActionItemType(definition);
|
||||
index++;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
private ActionItemType convertToActionItemType(ParameterizedItemDefinition definition)
|
||||
{
|
||||
// Create action item type
|
||||
ActionItemType actionItemType = new ActionItemType();
|
||||
actionItemType.setName(definition.getName());
|
||||
actionItemType.setTitle(definition.getTitle());
|
||||
actionItemType.setDescription(definition.getDescription());
|
||||
actionItemType.setAdHocPropertiesAllowed(definition.getAdhocPropertiesAllowed());
|
||||
|
||||
// Marshal the paremeter definitions
|
||||
List<ParameterDefinition> params = definition.getParameterDefinitions();
|
||||
org.alfresco.repo.webservice.action.ParameterDefinition[] parameterDefinitions = new org.alfresco.repo.webservice.action.ParameterDefinition[params.size()];
|
||||
int index = 0;
|
||||
for (ParameterDefinition paramDef : params)
|
||||
{
|
||||
org.alfresco.repo.webservice.action.ParameterDefinition parameterDefinition = new org.alfresco.repo.webservice.action.ParameterDefinition(
|
||||
paramDef.getName(),
|
||||
paramDef.getType().toString(),
|
||||
paramDef.isMandatory(),
|
||||
paramDef.getDisplayLabel());
|
||||
parameterDefinitions[index] = parameterDefinition;
|
||||
index ++;
|
||||
}
|
||||
actionItemType.setParameterDefinition(parameterDefinitions);
|
||||
|
||||
return actionItemType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.repo.webservice.action.ActionServiceSoapPort#getRuleTypes()
|
||||
*/
|
||||
public org.alfresco.repo.webservice.action.RuleType[] getRuleTypes() throws RemoteException, ActionFault
|
||||
{
|
||||
// Get the list of rule types
|
||||
List<RuleType> ruleTypes = this.ruleService.getRuleTypes();
|
||||
|
||||
// Marshal the rule types into an array
|
||||
org.alfresco.repo.webservice.action.RuleType[] results = new org.alfresco.repo.webservice.action.RuleType[ruleTypes.size()];
|
||||
int index = 0;
|
||||
for (RuleType ruleType : ruleTypes)
|
||||
{
|
||||
org.alfresco.repo.webservice.action.RuleType webServiceRuleType = new org.alfresco.repo.webservice.action.RuleType(
|
||||
ruleType.getName(),
|
||||
ruleType.getDisplayLabel());
|
||||
results[index] = webServiceRuleType;
|
||||
index ++;
|
||||
}
|
||||
|
||||
return results;
|
||||
}
|
||||
|
||||
/**
|
||||
* @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
|
||||
{
|
||||
// Get the actions
|
||||
NodeRef nodeRef = Utils.convertToNodeRef(reference, this.nodeService, this.searchService, this.namespaceService);
|
||||
List<Action> actions = this.actionService.getActions(nodeRef);
|
||||
|
||||
org.alfresco.repo.webservice.action.Action[] webServiceActions = new org.alfresco.repo.webservice.action.Action[actions.size()];
|
||||
|
||||
// Filter the results
|
||||
if (filter != null)
|
||||
{
|
||||
// TODO implement the filters
|
||||
}
|
||||
|
||||
// Marshal the results
|
||||
int index = 0;
|
||||
for (Action action : actions)
|
||||
{
|
||||
webServiceActions[index] = convertToWebServiceAction(action);
|
||||
index++;
|
||||
}
|
||||
|
||||
return webServiceActions;
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
// Get the conditions
|
||||
List<ActionCondition> conditions = action.getActionConditions();
|
||||
Condition[] webServiceConditions = new Condition[conditions.size()];
|
||||
int index2 = 0;
|
||||
for (ActionCondition condition : conditions)
|
||||
{
|
||||
webServiceConditions[index2] = convertToWebServiceCondition(condition);
|
||||
index2++;
|
||||
}
|
||||
|
||||
// Get the compenstaing action
|
||||
Action compensatingAction = action.getCompensatingAction();
|
||||
org.alfresco.repo.webservice.action.Action webServiceCompensatingAction = convertToWebServiceAction(compensatingAction);
|
||||
|
||||
// Sort out any sub-actions
|
||||
org.alfresco.repo.webservice.action.Action[] childWebServiceActions = null;
|
||||
if (action instanceof CompositeAction)
|
||||
{
|
||||
List<Action> childActions = ((CompositeAction)action).getActions();
|
||||
childWebServiceActions = new org.alfresco.repo.webservice.action.Action[childActions.size()];
|
||||
int index3 = 0;
|
||||
for (Action childAction : childActions)
|
||||
{
|
||||
childWebServiceActions[index3] = convertToWebServiceAction(childAction);
|
||||
index3 ++;
|
||||
}
|
||||
}
|
||||
|
||||
// Get the reference to the 'owning' node
|
||||
NodeRef owningNodeRef = action.getOwningNodeRef();
|
||||
Reference reference = null;
|
||||
if (owningNodeRef != null)
|
||||
{
|
||||
reference = Utils.convertToReference(owningNodeRef);
|
||||
}
|
||||
|
||||
// Create the web service action object
|
||||
org.alfresco.repo.webservice.action.Action webServiceAction = new org.alfresco.repo.webservice.action.Action(
|
||||
action.getId(),
|
||||
actionItemType,
|
||||
action.getTitle(),
|
||||
action.getDescription(),
|
||||
action.getExecuteAsychronously(),
|
||||
namedValues,
|
||||
webServiceConditions,
|
||||
webServiceCompensatingAction,
|
||||
childWebServiceActions,
|
||||
reference);
|
||||
|
||||
return webServiceAction;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param item
|
||||
* @return
|
||||
*/
|
||||
private NamedValue[] convertParametersToNamedValues(ParameterizedItem item)
|
||||
{
|
||||
Map<String, Serializable> params = item.getParameterValues();
|
||||
NamedValue[] namedValues = new NamedValue[params.size()];
|
||||
int index = 0;
|
||||
for (Map.Entry<String, Serializable> entry : params.entrySet())
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param condition
|
||||
* @return
|
||||
*/
|
||||
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.getInvertCondition(),
|
||||
namedValues);
|
||||
|
||||
return webServiceCondition;
|
||||
}
|
||||
|
||||
/**
|
||||
* @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(
|
||||
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);
|
||||
|
||||
// Create the result array
|
||||
org.alfresco.repo.webservice.action.Action[] results = new org.alfresco.repo.webservice.action.Action[webServiceActions.length];
|
||||
|
||||
int index = 0;
|
||||
for (org.alfresco.repo.webservice.action.Action webServiceAction : webServiceActions)
|
||||
{
|
||||
// Convert to a server action object
|
||||
Action action = convertToAction(webServiceAction);
|
||||
|
||||
// Save the action
|
||||
this.actionService.saveAction(nodeRef, action);
|
||||
|
||||
// Add the updated action to the results
|
||||
results[index] = convertToWebServiceAction(action);
|
||||
index++;
|
||||
}
|
||||
|
||||
return results;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a web service action object into a repository action object.
|
||||
*
|
||||
* @param webServiceAction the web service action object
|
||||
* @return the repository action object
|
||||
*/
|
||||
private Action convertToAction(org.alfresco.repo.webservice.action.Action webServiceAction)
|
||||
{
|
||||
// If the id is null then generate one
|
||||
String id = webServiceAction.getId();
|
||||
if (id == null || id.length() == 0)
|
||||
{
|
||||
id = GUID.generate();
|
||||
}
|
||||
|
||||
// Get the owning node ref
|
||||
NodeRef owningNodeRef = null;
|
||||
if (webServiceAction.getReference() != null)
|
||||
{
|
||||
owningNodeRef = Utils.convertToNodeRef(
|
||||
webServiceAction.getReference(),
|
||||
this.nodeService,
|
||||
this.searchService,
|
||||
this.namespaceService);
|
||||
}
|
||||
|
||||
// Create the action (or composite action)
|
||||
ActionImpl action = null;
|
||||
String actionDefinitionName = webServiceAction.getType().getName();
|
||||
if (CompositeActionExecuter.NAME.equals(actionDefinitionName) == true)
|
||||
{
|
||||
action = new CompositeActionImpl(id, owningNodeRef);
|
||||
}
|
||||
else
|
||||
{
|
||||
action = new ActionImpl(id, actionDefinitionName, owningNodeRef);
|
||||
}
|
||||
|
||||
// Set some of the action's details
|
||||
action.setTitle(webServiceAction.getTitle());
|
||||
action.setDescription(webServiceAction.getDescription());
|
||||
action.setExecuteAsynchronously(webServiceAction.isExecuteAsynchronously());
|
||||
|
||||
// Set the parameters
|
||||
NamedValue[] namedValues = webServiceAction.getParameters();
|
||||
for (NamedValue namedValue : namedValues)
|
||||
{
|
||||
// Get the type of the property
|
||||
DataTypeDefinition propertyType = null;
|
||||
ActionDefinition actionDefintion = this.actionService.getActionDefinition(action.getActionDefinitionName());
|
||||
ParameterDefinition propertyDefintion = actionDefintion.getParameterDefintion(namedValue.getName());
|
||||
if (propertyDefintion != null)
|
||||
{
|
||||
propertyType = this.dictionaryService.getDataType(propertyDefintion.getType());
|
||||
}
|
||||
|
||||
// Convert the value into the correct type
|
||||
Serializable value = null;
|
||||
if (propertyType != null)
|
||||
{
|
||||
value = (Serializable)DefaultTypeConverter.INSTANCE.convert(propertyType, namedValue.getValue());
|
||||
}
|
||||
else
|
||||
{
|
||||
value = namedValue.getValue();
|
||||
}
|
||||
|
||||
// Set the parameter
|
||||
action.setParameterValue(namedValue.getName(), value);
|
||||
}
|
||||
|
||||
// Set the conditions
|
||||
Condition[] webServiceConditions = webServiceAction.getConditions();
|
||||
if (webServiceConditions != null)
|
||||
{
|
||||
for (Condition webServiceCondition : webServiceConditions)
|
||||
{
|
||||
action.addActionCondition(convertToActionCondition(webServiceCondition));
|
||||
}
|
||||
}
|
||||
|
||||
// Set the compensating action
|
||||
org.alfresco.repo.webservice.action.Action webServiceCompensatingAction = webServiceAction.getCompensatingAction();
|
||||
if (webServiceCompensatingAction != null)
|
||||
{
|
||||
Action compensatingAction = convertToAction(webServiceCompensatingAction);
|
||||
action.setCompensatingAction(compensatingAction);
|
||||
}
|
||||
|
||||
// Set the child actions (if we are dealing with a composite action)
|
||||
if (CompositeActionExecuter.NAME.equals(actionDefinitionName) == true)
|
||||
{
|
||||
org.alfresco.repo.webservice.action.Action[] webServiceChildActions = webServiceAction.getActions();
|
||||
if (webServiceChildActions != null)
|
||||
{
|
||||
for (org.alfresco.repo.webservice.action.Action webServiceChildAction : webServiceChildActions)
|
||||
{
|
||||
Action childAction = convertToAction(webServiceChildAction);
|
||||
((CompositeAction)action).addAction(childAction);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return action;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param webServiceCondition
|
||||
* @return
|
||||
*/
|
||||
private ActionCondition convertToActionCondition(Condition webServiceCondition)
|
||||
{
|
||||
// If the id is null then generate one
|
||||
String id = webServiceCondition.getId();
|
||||
if (id == null || id.length() == 0)
|
||||
{
|
||||
id = GUID.generate();
|
||||
}
|
||||
|
||||
// Create the action condition
|
||||
ActionCondition actionCondition = new ActionConditionImpl(id, webServiceCondition.getType().getName());
|
||||
|
||||
// Set the details of the condition
|
||||
actionCondition.setInvertCondition(webServiceCondition.isInvertCondition());
|
||||
|
||||
// Set the condition parameters
|
||||
NamedValue[] namedValues = webServiceCondition.getParameters();
|
||||
for (NamedValue namedValue : namedValues)
|
||||
{
|
||||
// Get the type of the property
|
||||
DataTypeDefinition propertyType = null;
|
||||
ActionConditionDefinition actionConditionDefintion = this.actionService.getActionConditionDefinition(actionCondition.getActionConditionDefinitionName());
|
||||
ParameterDefinition propertyDefintion = actionConditionDefintion.getParameterDefintion(namedValue.getName());
|
||||
if (propertyDefintion != null)
|
||||
{
|
||||
propertyType = this.dictionaryService.getDataType(propertyDefintion.getType());
|
||||
}
|
||||
|
||||
// Convert the value into the correct type
|
||||
Serializable value = null;
|
||||
if (propertyType != null)
|
||||
{
|
||||
value = (Serializable)DefaultTypeConverter.INSTANCE.convert(propertyType, namedValue.getValue());
|
||||
}
|
||||
else
|
||||
{
|
||||
value = namedValue.getValue();
|
||||
}
|
||||
|
||||
// Set the parameter
|
||||
actionCondition.setParameterValue(namedValue.getName(), value);
|
||||
}
|
||||
|
||||
return actionCondition;
|
||||
}
|
||||
|
||||
/**
|
||||
* @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)
|
||||
throws RemoteException, ActionFault
|
||||
{
|
||||
// Get the node reference
|
||||
NodeRef nodeRef = Utils.convertToNodeRef(reference, this.nodeService, this.searchService, this.namespaceService);
|
||||
|
||||
if (webServiceActions == null)
|
||||
{
|
||||
// Remove all the actions
|
||||
this.actionService.removeAllActions(nodeRef);
|
||||
}
|
||||
else
|
||||
{
|
||||
for (org.alfresco.repo.webservice.action.Action webServiceAction : webServiceActions)
|
||||
{
|
||||
Action action = convertToAction(webServiceAction);
|
||||
this.actionService.removeAction(nodeRef, action);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @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
|
||||
{
|
||||
List<ActionExecutionResult> results = new ArrayList<ActionExecutionResult>(10);
|
||||
|
||||
// Resolve the predicate to a list of nodes
|
||||
List<NodeRef> nodeRefs = Utils.resolvePredicate(predicate, this.nodeService, this.searchService, this.namespaceService);
|
||||
for (NodeRef nodeRef : nodeRefs)
|
||||
{
|
||||
// Create the execution result object and set the action reference
|
||||
ActionExecutionResult executionResult = new ActionExecutionResult();
|
||||
executionResult.setReference(Utils.convertToReference(nodeRef));
|
||||
|
||||
// Tyr and execute the actions
|
||||
List<org.alfresco.repo.webservice.action.Action> executedActions = new ArrayList<org.alfresco.repo.webservice.action.Action>(10);
|
||||
for (org.alfresco.repo.webservice.action.Action webServiceAction : webServiceActions)
|
||||
{
|
||||
// Get the repository action object
|
||||
Action action = convertToAction(webServiceAction);
|
||||
|
||||
// TODO what about condition inversion
|
||||
if (this.actionService.evaluateAction(action, nodeRef) == true)
|
||||
{
|
||||
// Execute the action (now that we know the conditions have been met)
|
||||
this.actionService.executeAction(action, nodeRef, false);
|
||||
executedActions.add(webServiceAction);
|
||||
}
|
||||
}
|
||||
|
||||
// Set the executed actions on the execution result object
|
||||
org.alfresco.repo.webservice.action.Action[] executedWebServiceActions = (org.alfresco.repo.webservice.action.Action[])executedActions.toArray(new org.alfresco.repo.webservice.action.Action[executedActions.size()]);
|
||||
executionResult.setActions(executedWebServiceActions);
|
||||
|
||||
// Add the execution object to the result list
|
||||
results.add(executionResult);
|
||||
}
|
||||
return (ActionExecutionResult[])results.toArray(new ActionExecutionResult[results.size()]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @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)
|
||||
throws RemoteException, ActionFault
|
||||
{
|
||||
// Get the node reference
|
||||
NodeRef nodeRef = Utils.convertToNodeRef(reference, this.nodeService, this.searchService, this.namespaceService);
|
||||
|
||||
// Get the rules associtated with the node reference
|
||||
List<Rule> rules = this.ruleService.getRules(nodeRef);
|
||||
|
||||
// Filter the results based on the rule filter passed
|
||||
// TODO
|
||||
|
||||
// Marshal the results
|
||||
org.alfresco.repo.webservice.action.Rule[] webServiceRules = new org.alfresco.repo.webservice.action.Rule[rules.size()];
|
||||
int index = 0;
|
||||
for (Rule rule : rules)
|
||||
{
|
||||
webServiceRules[index] = convertToWebServiceRule(rule);
|
||||
index ++;
|
||||
}
|
||||
|
||||
|
||||
return webServiceRules;
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
// Get the conditions
|
||||
List<ActionCondition> conditions = rule.getActionConditions();
|
||||
Condition[] webServiceConditions = new Condition[conditions.size()];
|
||||
int index2 = 0;
|
||||
for (ActionCondition condition : conditions)
|
||||
{
|
||||
webServiceConditions[index2] = convertToWebServiceCondition(condition);
|
||||
index2++;
|
||||
}
|
||||
|
||||
// Sort out any sub-actions
|
||||
org.alfresco.repo.webservice.action.Action[] childWebServiceActions = null;
|
||||
List<Action> childActions = rule.getActions();
|
||||
childWebServiceActions = new org.alfresco.repo.webservice.action.Action[childActions.size()];
|
||||
int index3 = 0;
|
||||
for (Action childAction : childActions)
|
||||
{
|
||||
childWebServiceActions[index3] = convertToWebServiceAction(childAction);
|
||||
index3 ++;
|
||||
}
|
||||
|
||||
// Get the reference to the 'owning' node
|
||||
NodeRef owningNodeRef = rule.getOwningNodeRef();
|
||||
Reference reference = null;
|
||||
if (owningNodeRef != null)
|
||||
{
|
||||
reference = Utils.convertToReference(owningNodeRef);
|
||||
}
|
||||
|
||||
// Create the web service rule object
|
||||
org.alfresco.repo.webservice.action.Rule webServiceRule = new org.alfresco.repo.webservice.action.Rule(
|
||||
rule.getId(),
|
||||
webServiceRuleType,
|
||||
rule.getTitle(),
|
||||
rule.getDescription(),
|
||||
rule.getExecuteAsychronously(),
|
||||
webServiceConditions,
|
||||
childWebServiceActions,
|
||||
runAsUserName,
|
||||
reference);
|
||||
|
||||
return webServiceRule;
|
||||
}
|
||||
|
||||
/**
|
||||
* @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)
|
||||
throws RemoteException, ActionFault
|
||||
{
|
||||
// Get the node reference
|
||||
NodeRef nodeRef = Utils.convertToNodeRef(reference, this.nodeService, this.searchService, this.namespaceService);
|
||||
|
||||
// Create the result array
|
||||
org.alfresco.repo.webservice.action.Rule[] results = new org.alfresco.repo.webservice.action.Rule[webServiceRules.length];
|
||||
|
||||
int index = 0;
|
||||
for (org.alfresco.repo.webservice.action.Rule webServiceRule : webServiceRules)
|
||||
{
|
||||
// Convert to a server rule object
|
||||
Rule rule = convertToRule(webServiceRule);
|
||||
|
||||
// Save the rule
|
||||
this.ruleService.saveRule(nodeRef, rule);
|
||||
|
||||
// Add the updated rule to the results
|
||||
results[index] = convertToWebServiceRule(rule);
|
||||
index++;
|
||||
}
|
||||
|
||||
return results;
|
||||
}
|
||||
|
||||
/**
|
||||
* @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)
|
||||
throws RemoteException, ActionFault
|
||||
{
|
||||
// Get the node reference
|
||||
NodeRef nodeRef = Utils.convertToNodeRef(reference, this.nodeService, this.searchService, this.namespaceService);
|
||||
|
||||
if (webServiceRules == null)
|
||||
{
|
||||
// Remove all the actions
|
||||
this.ruleService.removeAllRules(nodeRef);
|
||||
}
|
||||
else
|
||||
{
|
||||
for (org.alfresco.repo.webservice.action.Rule webServiceRule : webServiceRules)
|
||||
{
|
||||
Rule rule = convertToRule(webServiceRule);
|
||||
this.ruleService.removeRule(nodeRef, rule);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private Rule convertToRule(org.alfresco.repo.webservice.action.Rule webServiceRule)
|
||||
{
|
||||
// If the id is null then generate one
|
||||
String id = webServiceRule.getId();
|
||||
if (id == null || id.length() == 0)
|
||||
{
|
||||
id = GUID.generate();
|
||||
}
|
||||
|
||||
// Get the owning node ref
|
||||
NodeRef owningNodeRef = null;
|
||||
if (webServiceRule.getReference() != null)
|
||||
{
|
||||
owningNodeRef = Utils.convertToNodeRef(
|
||||
webServiceRule.getReference(),
|
||||
this.nodeService,
|
||||
this.searchService,
|
||||
this.namespaceService);
|
||||
}
|
||||
|
||||
// Get the rule type name
|
||||
String ruleTypeName = webServiceRule.getRuleType().getName();
|
||||
|
||||
// Create the rule
|
||||
RuleImpl rule = new RuleImpl(id, ruleTypeName, owningNodeRef);
|
||||
|
||||
// Set some of the rules details
|
||||
rule.setTitle(webServiceRule.getTitle());
|
||||
rule.setDescription(webServiceRule.getDescription());
|
||||
rule.setExecuteAsynchronously(webServiceRule.isExecuteAsynchronously());
|
||||
|
||||
// Set the conditions
|
||||
Condition[] webServiceConditions = webServiceRule.getConditions();
|
||||
if (webServiceConditions != null)
|
||||
{
|
||||
for (Condition webServiceCondition : webServiceConditions)
|
||||
{
|
||||
rule.addActionCondition(convertToActionCondition(webServiceCondition));
|
||||
}
|
||||
}
|
||||
|
||||
// Set the child actions
|
||||
org.alfresco.repo.webservice.action.Action[] webServiceChildActions = webServiceRule.getActions();
|
||||
if (webServiceChildActions != null)
|
||||
{
|
||||
for (org.alfresco.repo.webservice.action.Action webServiceChildAction : webServiceChildActions)
|
||||
{
|
||||
Action childAction = convertToAction(webServiceChildAction);
|
||||
rule.addAction(childAction);
|
||||
}
|
||||
}
|
||||
|
||||
return rule;
|
||||
}
|
||||
}
|
@@ -135,4 +135,28 @@
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="actionWebService" class="org.alfresco.repo.webservice.action.ActionWebService">
|
||||
<property name="nodeService">
|
||||
<ref bean="NodeService"/>
|
||||
</property>
|
||||
<property name="contentService">
|
||||
<ref bean="ContentService"/>
|
||||
</property>
|
||||
<property name="searchService">
|
||||
<ref bean="SearchService"/>
|
||||
</property>
|
||||
<property name="namespaceService">
|
||||
<ref bean="namespaceService"/>
|
||||
</property>
|
||||
<property name="actionService">
|
||||
<ref bean="actionService"/>
|
||||
</property>
|
||||
<property name="ruleService">
|
||||
<ref bean="ruleService"/>
|
||||
</property>
|
||||
<property name="dictionaryService">
|
||||
<ref bean="dictionaryService"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
|
@@ -1651,6 +1651,392 @@
|
||||
/>
|
||||
</service>
|
||||
|
||||
<service name="ActionService" provider="java:SpringRPC" style="wrapped" use="literal">
|
||||
<documentation>Provides action and rule manipulation methods.</documentation>
|
||||
<wsdlFile>/wsdl/action-service.wsdl</wsdlFile>
|
||||
<parameter name="springBean" value="actionWebService"/>
|
||||
<!-- generated below here -->
|
||||
<parameter name="wsdlTargetNamespace" value="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
<parameter name="wsdlServiceElement" value="ActionService"/>
|
||||
<parameter name="schemaQualified" value="http://www.alfresco.org/ws/service/action/1.0,http://www.alfresco.org/ws/model/content/1.0"/>
|
||||
<parameter name="wsdlServicePort" value="ActionService"/>
|
||||
<parameter name="className" value="org.alfresco.repo.webservice.action.ActionServiceSoapBindingImpl"/>
|
||||
<parameter name="wsdlPortType" value="ActionServiceSoapPort"/>
|
||||
<parameter name="typeMappingVersion" value="1.2"/>
|
||||
<operation name="getConditionDefinitions" qname="operNS:getConditionDefinitions" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" returnQName="retNS:actionItemType" xmlns:retNS="http://www.alfresco.org/ws/service/action/1.0" returnType="rtns:ActionItemType" xmlns:rtns="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/getConditionDefinitions" >
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<operation name="getActionDefinitions" qname="operNS:getActionDefinitions" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" returnQName="retNS:actionItemType" xmlns:retNS="http://www.alfresco.org/ws/service/action/1.0" returnType="rtns:ActionItemType" xmlns:rtns="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/getActionDefinitions" >
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<operation name="getRuleTypes" qname="operNS:getRuleTypes" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" returnQName="retNS:ruleType" xmlns:retNS="http://www.alfresco.org/ws/service/action/1.0" returnType="rtns:RuleType" xmlns:rtns="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/getRuleTypes" >
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<operation name="getActions" qname="operNS:getActions" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" returnQName="retNS:action" xmlns:retNS="http://www.alfresco.org/ws/service/action/1.0" returnType="rtns:Action" xmlns:rtns="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/getActions" >
|
||||
<parameter qname="pns:reference" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Reference" xmlns:tns="http://www.alfresco.org/ws/model/content/1.0"/>
|
||||
<parameter qname="pns:filter" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:ActionFilter" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0" itemQName="itns:ids" xmlns:itns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<operation name="saveActions" qname="operNS:saveActions" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" returnQName="retNS:action" xmlns:retNS="http://www.alfresco.org/ws/service/action/1.0" returnType="rtns:Action" xmlns:rtns="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/saveActions" >
|
||||
<parameter qname="pns:reference" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Reference" xmlns:tns="http://www.alfresco.org/ws/model/content/1.0"/>
|
||||
<parameter qname="pns:actions" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Action" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<operation name="removeActions" qname="operNS:removeActions" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/removeActions" >
|
||||
<parameter qname="pns:reference" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Reference" xmlns:tns="http://www.alfresco.org/ws/model/content/1.0"/>
|
||||
<parameter qname="pns:actions" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Action" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<operation name="executeActions" qname="operNS:executeActions" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" returnQName="retNS:actionExecutionResult" xmlns:retNS="http://www.alfresco.org/ws/service/action/1.0" returnType="rtns:ActionExecutionResult" xmlns:rtns="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/executeActions" >
|
||||
<parameter qname="pns:predicate" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Predicate" xmlns:tns="http://www.alfresco.org/ws/model/content/1.0"/>
|
||||
<parameter qname="pns:actions" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Action" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<operation name="getRules" qname="operNS:getRules" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" returnQName="retNS:rule" xmlns:retNS="http://www.alfresco.org/ws/service/action/1.0" returnType="rtns:Rule" xmlns:rtns="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/getRules" >
|
||||
<parameter qname="pns:reference" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Reference" xmlns:tns="http://www.alfresco.org/ws/model/content/1.0"/>
|
||||
<parameter qname="pns:ruleFilter" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:RuleFilter" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<operation name="saveRules" qname="operNS:saveRules" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" returnQName="retNS:rule" xmlns:retNS="http://www.alfresco.org/ws/service/action/1.0" returnType="rtns:Rule" xmlns:rtns="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/saveRules" >
|
||||
<parameter qname="pns:reference" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Reference" xmlns:tns="http://www.alfresco.org/ws/model/content/1.0"/>
|
||||
<parameter qname="pns:rules" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Rule" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<operation name="removeRules" qname="operNS:removeRules" xmlns:operNS="http://www.alfresco.org/ws/service/action/1.0" soapAction="http://www.alfresco.org/ws/service/action/1.0/removeRules" >
|
||||
<parameter qname="pns:reference" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Reference" xmlns:tns="http://www.alfresco.org/ws/model/content/1.0"/>
|
||||
<parameter qname="pns:rules" xmlns:pns="http://www.alfresco.org/ws/service/action/1.0" type="tns:Rule" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
<fault name="ActionFault" qname="fns:ActionFault" xmlns:fns="http://www.alfresco.org/ws/service/action/1.0" class="org.alfresco.repo.webservice.action.ActionFault" type="tns:ActionFault" xmlns:tns="http://www.alfresco.org/ws/service/action/1.0"/>
|
||||
</operation>
|
||||
<parameter name="allowedMethods" value="saveRules saveActions getRules getActions executeActions removeRules getActionDefinitions getConditionDefinitions removeActions getRuleTypes"/>
|
||||
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:ParentReference"
|
||||
type="java:org.alfresco.repo.webservice.types.ParentReference"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:QueryLanguageEnum"
|
||||
type="java:org.alfresco.repo.webservice.types.QueryLanguageEnum"
|
||||
serializer="org.apache.axis.encoding.ser.EnumSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.EnumDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Cardinality"
|
||||
type="java:org.alfresco.repo.webservice.types.Cardinality"
|
||||
serializer="org.apache.axis.encoding.ser.EnumSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.EnumDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:ClassDefinition"
|
||||
type="java:org.alfresco.repo.webservice.types.ClassDefinition"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:Rule"
|
||||
type="java:org.alfresco.repo.webservice.action.Rule"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:ContentFormat"
|
||||
type="java:org.alfresco.repo.webservice.types.ContentFormat"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:Condition"
|
||||
type="java:org.alfresco.repo.webservice.action.Condition"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Version"
|
||||
type="java:org.alfresco.repo.webservice.types.Version"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Node"
|
||||
type="java:org.alfresco.repo.webservice.types.Node"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Predicate"
|
||||
type="java:org.alfresco.repo.webservice.types.Predicate"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:ResultSetRow"
|
||||
type="java:org.alfresco.repo.webservice.types.ResultSetRow"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Path"
|
||||
type="java:java.lang.String"
|
||||
serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:ResultSet"
|
||||
type="java:org.alfresco.repo.webservice.types.ResultSet"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:ResultSetMetaData"
|
||||
type="java:org.alfresco.repo.webservice.types.ResultSetMetaData"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:ActionItemType"
|
||||
type="java:org.alfresco.repo.webservice.action.ActionItemType"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:NodeDefinition"
|
||||
type="java:org.alfresco.repo.webservice.types.NodeDefinition"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Category"
|
||||
type="java:org.alfresco.repo.webservice.types.Category"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:ValueDefinition"
|
||||
type="java:org.alfresco.repo.webservice.types.ValueDefinition"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:ActionFault"
|
||||
type="java:org.alfresco.repo.webservice.action.ActionFault"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:RuleFilter"
|
||||
type="java:org.alfresco.repo.webservice.action.RuleFilter"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:>ContentFormat>mimetype"
|
||||
type="java:java.lang.String"
|
||||
serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Query"
|
||||
type="java:org.alfresco.repo.webservice.types.Query"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:StoreEnum"
|
||||
type="java:org.alfresco.repo.webservice.types.StoreEnum"
|
||||
serializer="org.apache.axis.encoding.ser.EnumSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.EnumDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Reference"
|
||||
type="java:org.alfresco.repo.webservice.types.Reference"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:NamedValue"
|
||||
type="java:org.alfresco.repo.webservice.types.NamedValue"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:UUID"
|
||||
type="java:java.lang.String"
|
||||
serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:Action"
|
||||
type="java:org.alfresco.repo.webservice.action.Action"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Name"
|
||||
type="java:java.lang.String"
|
||||
serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:>ResultSetRow>node"
|
||||
type="java:org.alfresco.repo.webservice.types.ResultSetRowNode"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:>ContentFormat>encoding"
|
||||
type="java:java.lang.String"
|
||||
serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:RuleType"
|
||||
type="java:org.alfresco.repo.webservice.action.RuleType"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Classification"
|
||||
type="java:org.alfresco.repo.webservice.types.Classification"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<arrayMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:ActionFilter"
|
||||
type="java:java.lang.String[]"
|
||||
innerType="cmp-ns:string" xmlns:cmp-ns="http://www.w3.org/2001/XMLSchema"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:Store"
|
||||
type="java:org.alfresco.repo.webservice.types.Store"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:>Store>address"
|
||||
type="java:java.lang.String"
|
||||
serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:AssociationDefinition"
|
||||
type="java:org.alfresco.repo.webservice.types.AssociationDefinition"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:RoleDefinition"
|
||||
type="java:org.alfresco.repo.webservice.types.RoleDefinition"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:ActionExecutionResult"
|
||||
type="java:org.alfresco.repo.webservice.action.ActionExecutionResult"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:PropertyDefinition"
|
||||
type="java:org.alfresco.repo.webservice.types.PropertyDefinition"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/service/action/1.0"
|
||||
qname="ns:ParameterDefinition"
|
||||
type="java:org.alfresco.repo.webservice.action.ParameterDefinition"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
<typeMapping
|
||||
xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
|
||||
qname="ns:VersionHistory"
|
||||
type="java:org.alfresco.repo.webservice.types.VersionHistory"
|
||||
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
|
||||
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
|
||||
encodingStyle=""
|
||||
/>
|
||||
</service>
|
||||
|
||||
<transport name="http">
|
||||
<requestFlow>
|
||||
|
563
source/wsdl/action-service.wsdl
Normal file
563
source/wsdl/action-service.wsdl
Normal file
@@ -0,0 +1,563 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<wsdl:definitions name="action-service"
|
||||
targetNamespace="http://www.alfresco.org/ws/service/action/1.0"
|
||||
xmlns:apachesoap="http://xml.apache.org/xml-soap"
|
||||
xmlns:action="http://www.alfresco.org/ws/service/action/1.0"
|
||||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
|
||||
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:cms="http://www.alfresco.org/ws/model/content/1.0"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<!-- ************************************** -->
|
||||
<!-- Copyright Alfresco Software, Inc. 2005 -->
|
||||
<!-- ************************************** -->
|
||||
<wsdl:import namespace="http://www.alfresco.org/ws/model/content/1.0" location="types.xsd"/>
|
||||
<wsdl:types>
|
||||
<schema elementFormDefault="qualified" targetNamespace="http://www.alfresco.org/ws/service/action/1.0" xmlns="http://www.w3.org/2001/XMLSchema">
|
||||
|
||||
<!-- Type Definitions -->
|
||||
|
||||
<complexType name="ParameterDefinition">
|
||||
<sequence>
|
||||
<element name="name" type="xsd:string"/>
|
||||
<element name="type" type="xsd:string"/>
|
||||
<element name="isMandatory" type="xsd:boolean"/>
|
||||
<element name="displayLabel" type="xsd:string"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
<element name="ParameterDefinition" type="action:ParameterDefinition"/>
|
||||
|
||||
<complexType name="ActionItemType">
|
||||
<sequence>
|
||||
<element name="name" type="xsd:string"/>
|
||||
<element name="title" type="xsd:string" nillable="true"/>
|
||||
<element name="description" type="xsd:string" nillable="true"/>
|
||||
<element name="adHocPropertiesAllowed" type="xsd:boolean"/>
|
||||
<element name="parameterDefinition" type="action:ParameterDefinition" maxOccurs="unbounded" minOccurs="0" nillable="true"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
<element name="ActionItemType" type="action:ActionItemType"/>
|
||||
|
||||
<complexType name="Condition">
|
||||
<sequence>
|
||||
<element name="id" type="xsd:string"/>
|
||||
<element name="type" type="action:ActionItemType"/>
|
||||
<element name="invertCondition" type="xsd:boolean"/>
|
||||
<element name="parameters" type="cms:NamedValue" maxOccurs="unbounded" minOccurs="0" nillable="true"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
<element name="Condition" type="action:Condition"/>
|
||||
|
||||
<complexType name="Action">
|
||||
<sequence>
|
||||
<element name="id" type="xsd:string"/>
|
||||
<element name="type" type="action:ActionItemType"/>
|
||||
<element name="title" type="xsd:string" nillable="true"/>
|
||||
<element name="description" type="xsd:string" nillable="true"/>
|
||||
<element name="executeAsynchronously" type="xsd:boolean"/>
|
||||
<element name="parameters" type="cms:NamedValue" maxOccurs="unbounded" minOccurs="0" nillable="true"/>
|
||||
<element name="conditions" type="action:Condition" maxOccurs="unbounded" minOccurs="0" nillable="true"/>
|
||||
<element name="compensatingAction" type="action:Action" nillable="true"/>
|
||||
<element name="actions" type="action:Action" maxOccurs="unbounded" minOccurs="0" nillable="true"/>
|
||||
<element name="reference" type="cms:Reference" nillable="true"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
<element name="Action" type="action:Action"/>
|
||||
|
||||
<complexType name="RuleType">
|
||||
<sequence>
|
||||
<element name="name" type="xsd:string"/>
|
||||
<element name="displayLabel" type="xsd:string"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
<element name="RuleType" type="action:RuleType"/>
|
||||
|
||||
<complexType name="Rule">
|
||||
<sequence>
|
||||
<element name="id" type="xsd:string"/>
|
||||
<element name="ruleType" type="action:RuleType"/>
|
||||
<element name="title" type="xsd:string" nillable="true"/>
|
||||
<element name="description" type="xsd:string" nillable="true"/>
|
||||
<element name="executeAsynchronously" type="xsd:boolean"/>
|
||||
<element name="conditions" type="action:Condition" maxOccurs="unbounded" minOccurs="0" nillable="true"/>
|
||||
<element name="actions" type="action:Action" maxOccurs="unbounded" minOccurs="1"/>
|
||||
<element name="runAsUserName" type="xsd:string" nillable="true"/>
|
||||
<element name="reference" type="cms:Reference" nillable="true"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
<element name="Rule" type="action:Rule"/>
|
||||
|
||||
<complexType name="ActionFilter">
|
||||
<sequence>
|
||||
<element name="ids" type="xsd:string" maxOccurs="unbounded" minOccurs="0" nillable="true"/>
|
||||
<element name="types" type="xsd:string" maxOccurs="unbounded" minOccurs="0" nillable="true"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
<element name="ActionFilter" type="action:ActionFilter"/>
|
||||
|
||||
<complexType name="RuleFilter">
|
||||
<sequence>
|
||||
<element name="ids" type="xsd:string" maxOccurs="unbounded" minOccurs="0" nillable="true"/>
|
||||
<element name="ruleTypeNames" type="xsd:string" maxOccurs="unbounded" minOccurs="0" nillable="true"/>
|
||||
<element name="includeInherited" type="xsd:boolean"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
<element name="RuleFilter" type="action:RuleFilter"/>
|
||||
|
||||
<complexType name="ActionExecutionResult">
|
||||
<sequence>
|
||||
<element name="reference" type="cms:Reference"/>
|
||||
<element name="actions" type="action:Action" maxOccurs="unbounded" minOccurs="0" nillable="true"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
<element name="ActionExecutionResult" type="action:ActionExecutionResult"/>
|
||||
|
||||
<complexType name="ActionFault">
|
||||
<sequence>
|
||||
<element name="errorCode" type="xsd:int"/>
|
||||
<element name="message" type="xsd:string"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
<element name="ActionFault" type="action:ActionFault"/>
|
||||
|
||||
<!-- Method Definitions -->
|
||||
|
||||
<element name="getConditionDefinitions">
|
||||
<complexType>
|
||||
<sequence/>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="getConditionDefinitionsResponse">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="actionItemType" type="action:ActionItemType" maxOccurs="unbounded" minOccurs="0"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="getActionDefinitions">
|
||||
<complexType>
|
||||
<sequence/>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="getActionDefinitionsResponse">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="actionItemType" type="action:ActionItemType" maxOccurs="unbounded" minOccurs="0"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="getRuleTypes">
|
||||
<complexType>
|
||||
<sequence/>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="getRuleTypesResponse">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="ruleType" type="action:RuleType" maxOccurs="unbounded" minOccurs="0"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="getActions">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="reference" type="cms:Reference"/>
|
||||
<element name="filter" type="action:ActionFilter"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="getActionsResponse">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="action" type="action:Action" maxOccurs="unbounded" minOccurs="0"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="saveActions">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="reference" type="cms:Reference"/>
|
||||
<element name="actions" type="action:Action" maxOccurs="unbounded" minOccurs="0"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="saveActionsResponse">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="action" type="action:Action" maxOccurs="unbounded" minOccurs="0"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="removeActions">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="reference" type="cms:Reference"/>
|
||||
<element name="actions" type="action:Action" maxOccurs="unbounded" minOccurs="0" nillable="true"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="removeActionsResponse">
|
||||
<complexType>
|
||||
<sequence/>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="executeActions">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="predicate" type="cms:Predicate"/>
|
||||
<element name="actions" type="action:Action" maxOccurs="unbounded" minOccurs="0"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="executeActionsResponse">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="actionExecutionResult" type="action:ActionExecutionResult" maxOccurs="unbounded" minOccurs="0"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="getRules">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="reference" type="cms:Reference"/>
|
||||
<element name="ruleFilter" type="action:RuleFilter"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="getRulesResponse">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="rule" type="action:Rule" maxOccurs="unbounded" minOccurs="0"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="saveRules">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="reference" type="cms:Reference"/>
|
||||
<element name="rules" type="action:Rule" maxOccurs="unbounded" minOccurs="0"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="saveRulesResponse">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="rule" type="action:Rule" maxOccurs="unbounded" minOccurs="0"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="removeRules">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="reference" type="cms:Reference"/>
|
||||
<element name="rules" type="action:Rule" maxOccurs="unbounded" minOccurs="0" nillable="true"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="removeRulesResponse">
|
||||
<complexType>
|
||||
<sequence/>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
</schema>
|
||||
</wsdl:types>
|
||||
|
||||
<wsdl:message name="getConditionDefinitionsRequest">
|
||||
<wsdl:part element="action:getConditionDefinitions" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="getConditionDefinitionsResponse">
|
||||
<wsdl:part element="action:getConditionDefinitionsResponse" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="getActionDefinitionsRequest">
|
||||
<wsdl:part element="action:getActionDefinitions" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="getActionDefinitionsResponse">
|
||||
<wsdl:part element="action:getActionDefinitionsResponse" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="getRuleTypesRequest">
|
||||
<wsdl:part element="action:getRuleTypes" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="getRuleTypesResponse">
|
||||
<wsdl:part element="action:getRuleTypesResponse" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="getActionsRequest">
|
||||
<wsdl:part element="action:getActions" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="getActionsResponse">
|
||||
<wsdl:part element="action:getActionsResponse" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="saveActionsRequest">
|
||||
<wsdl:part element="action:saveActions" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="saveActionsResponse">
|
||||
<wsdl:part element="action:saveActionsResponse" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="removeActionsRequest">
|
||||
<wsdl:part element="action:removeActions" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="removeActionsResponse">
|
||||
<wsdl:part element="action:removeActionsResponse" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="executeActionsRequest">
|
||||
<wsdl:part element="action:executeActions" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="executeActionsResponse">
|
||||
<wsdl:part element="action:executeActionsResponse" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="getRulesRequest">
|
||||
<wsdl:part element="action:getRules" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="getRulesResponse">
|
||||
<wsdl:part element="action:getRulesResponse" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="saveRulesRequest">
|
||||
<wsdl:part element="action:saveRules" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="saveRulesResponse">
|
||||
<wsdl:part element="action:saveRulesResponse" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="removeRulesRequest">
|
||||
<wsdl:part element="action:removeRules" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="removeRulesResponse">
|
||||
<wsdl:part element="action:removeRulesResponse" name="parameters"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="ActionFault">
|
||||
<wsdl:part element="action:ActionFault" name="fault"/>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:portType name="ActionServiceSoapPort">
|
||||
<wsdl:operation name="getConditionDefinitions">
|
||||
<wsdl:documentation>Gets the available condition definitions.</wsdl:documentation>
|
||||
<wsdl:input message="action:getConditionDefinitionsRequest" name="getConditionDefinitionsRequest"/>
|
||||
<wsdl:output message="action:getConditionDefinitionsResponse" name="getConditionDefinitionsResponse"/>
|
||||
<wsdl:fault message="action:ActionFault" name="ActionFault"/>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="getActionDefinitions">
|
||||
<wsdl:documentation>Gets the available action definitions.</wsdl:documentation>
|
||||
<wsdl:input message="action:getActionDefinitionsRequest" name="getActionDefinitionsRequest"/>
|
||||
<wsdl:output message="action:getActionDefinitionsResponse" name="getActionDefinitionsResponse"/>
|
||||
<wsdl:fault message="action:ActionFault" name="ActionFault"/>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="getRuleTypes">
|
||||
<wsdl:documentation>Gets the availble action types.</wsdl:documentation>
|
||||
<wsdl:input message="action:getRuleTypesRequest" name="getRuleTypesRequest"/>
|
||||
<wsdl:output message="action:getRuleTypesResponse" name="getRuleTypesResponse"/>
|
||||
<wsdl:fault message="action:ActionFault" name="ActionFault"/>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="getActions">
|
||||
<wsdl:documentation>Gets the actions saved against a reference.</wsdl:documentation>
|
||||
<wsdl:input message="action:getActionsRequest" name="getActionsRequest"/>
|
||||
<wsdl:output message="action:getActionsResponse" name="getActionsResponse"/>
|
||||
<wsdl:fault message="action:ActionFault" name="ActionFault"/>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="saveActions">
|
||||
<wsdl:documentation>Save actions against a given reference.</wsdl:documentation>
|
||||
<wsdl:input message="action:saveActionsRequest" name="saveActionsRequest"/>
|
||||
<wsdl:output message="action:saveActionsResponse" name="saveActionsResponse"/>
|
||||
<wsdl:fault message="action:ActionFault" name="ActionFault"/>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="removeActions">
|
||||
<wsdl:documentation>Removes saved actions.</wsdl:documentation>
|
||||
<wsdl:input message="action:removeActionsRequest" name="removeActionsRequest"/>
|
||||
<wsdl:output message="action:removeActionsResponse" name="removeActionsResponse"/>
|
||||
<wsdl:fault message="action:ActionFault" name="ActionFault"/>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="executeActions">
|
||||
<wsdl:documentation>Executes actions.</wsdl:documentation>
|
||||
<wsdl:input message="action:executeActionsRequest" name="executeActionsRequest"/>
|
||||
<wsdl:output message="action:executeActionsResponse" name="executeActionsResponse"/>
|
||||
<wsdl:fault message="action:ActionFault" name="ActionFault"/>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="getRules">
|
||||
<wsdl:documentation>Gets the rules for a reference.</wsdl:documentation>
|
||||
<wsdl:input message="action:getRulesRequest" name="getRulesRequest"/>
|
||||
<wsdl:output message="action:getRulesResponse" name="getRulesResponse"/>
|
||||
<wsdl:fault message="action:ActionFault" name="ActionFault"/>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="saveRules">
|
||||
<wsdl:documentation>Save rules.</wsdl:documentation>
|
||||
<wsdl:input message="action:saveRulesRequest" name="saveRulesRequest"/>
|
||||
<wsdl:output message="action:saveRulesResponse" name="saveRulesResponse"/>
|
||||
<wsdl:fault message="action:ActionFault" name="ActionFault"/>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="removeRules">
|
||||
<wsdl:documentation>Remove saved rules.</wsdl:documentation>
|
||||
<wsdl:input message="action:removeRulesRequest" name="removeRulesRequest"/>
|
||||
<wsdl:output message="action:removeRulesResponse" name="removeRulesResponse"/>
|
||||
<wsdl:fault message="action:ActionFault" name="ActionFault"/>
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
|
||||
<wsdl:binding name="ActionServiceSoapBinding" type="action:ActionServiceSoapPort">
|
||||
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
||||
<wsdl:operation name="getConditionDefinitions">
|
||||
<wsdlsoap:operation soapAction="http://www.alfresco.org/ws/service/action/1.0/getConditionDefinitions"/>
|
||||
<wsdl:input>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="ActionFault">
|
||||
<wsdlsoap:fault namespace="http://www.alfresco.org/ws/service/action/1.0" use="literal" name="ActionFault"/>
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="getActionDefinitions">
|
||||
<wsdlsoap:operation soapAction="http://www.alfresco.org/ws/service/action/1.0/getActionDefinitions"/>
|
||||
<wsdl:input>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="ActionFault">
|
||||
<wsdlsoap:fault namespace="http://www.alfresco.org/ws/service/action/1.0" use="literal" name="ActionFault"/>
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="getRuleTypes">
|
||||
<wsdlsoap:operation soapAction="http://www.alfresco.org/ws/service/action/1.0/getRuleTypes"/>
|
||||
<wsdl:input>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="ActionFault">
|
||||
<wsdlsoap:fault namespace="http://www.alfresco.org/ws/service/action/1.0" use="literal" name="ActionFault"/>
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="getActions">
|
||||
<wsdlsoap:operation soapAction="http://www.alfresco.org/ws/service/action/1.0/getActions"/>
|
||||
<wsdl:input>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="ActionFault">
|
||||
<wsdlsoap:fault namespace="http://www.alfresco.org/ws/service/action/1.0" use="literal" name="ActionFault"/>
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="saveActions">
|
||||
<wsdlsoap:operation soapAction="http://www.alfresco.org/ws/service/action/1.0/saveActions"/>
|
||||
<wsdl:input>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="ActionFault">
|
||||
<wsdlsoap:fault namespace="http://www.alfresco.org/ws/service/action/1.0" use="literal" name="ActionFault"/>
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="removeActions">
|
||||
<wsdlsoap:operation soapAction="http://www.alfresco.org/ws/service/action/1.0/removeActions"/>
|
||||
<wsdl:input>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="ActionFault">
|
||||
<wsdlsoap:fault namespace="http://www.alfresco.org/ws/service/action/1.0" use="literal" name="ActionFault"/>
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="executeActions">
|
||||
<wsdlsoap:operation soapAction="http://www.alfresco.org/ws/service/action/1.0/executeActions"/>
|
||||
<wsdl:input>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="ActionFault">
|
||||
<wsdlsoap:fault namespace="http://www.alfresco.org/ws/service/action/1.0" use="literal" name="ActionFault"/>
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="getRules">
|
||||
<wsdlsoap:operation soapAction="http://www.alfresco.org/ws/service/action/1.0/getRules"/>
|
||||
<wsdl:input>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="ActionFault">
|
||||
<wsdlsoap:fault namespace="http://www.alfresco.org/ws/service/action/1.0" use="literal" name="ActionFault"/>
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="saveRules">
|
||||
<wsdlsoap:operation soapAction="http://www.alfresco.org/ws/service/action/1.0/saveRules"/>
|
||||
<wsdl:input>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="ActionFault">
|
||||
<wsdlsoap:fault namespace="http://www.alfresco.org/ws/service/action/1.0" use="literal" name="ActionFault"/>
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="removeRules">
|
||||
<wsdlsoap:operation soapAction="http://www.alfresco.org/ws/service/action/1.0/removeRules"/>
|
||||
<wsdl:input>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="ActionFault">
|
||||
<wsdlsoap:fault namespace="http://www.alfresco.org/ws/service/action/1.0" use="literal" name="ActionFault"/>
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
|
||||
<wsdl:service name="ActionService">
|
||||
<wsdl:documentation>Provides Action and Rule manipulation methods.</wsdl:documentation>
|
||||
<wsdl:port binding="action:ActionServiceSoapBinding" name="ActionService">
|
||||
<wsdlsoap:address location="http://localhost:8080/alfresco/api/ActionService"/>
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
|
||||
</wsdl:definitions>
|
@@ -93,9 +93,12 @@
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
|
||||
<wsdl:binding name="AuthenticationServiceSoapBinding" type="auth:AuthenticationServiceSoapPort">
|
||||
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
||||
<wsdl:operation name="startSession">
|
||||
<wsdl:binding name="AuthenticationServiceSoapBinding" type="auth:AuthenticationServiceSoapPort">
|
||||
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
||||
<wsdl:operation name="startSession">
|
||||
<wsdlsoap:operation soapAction="http://www.alfresco.org/ws/service/authentication/1.0/startSession"/>
|
||||
<wsdl:input name="startSessionRequest">
|
||||
<wsdlsoap:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="startSessionResponse">
|
||||
<wsdlsoap:body use="literal"/>
|
||||
|
@@ -15,15 +15,15 @@
|
||||
|
||||
<complexType name="NamespaceConfiguration">
|
||||
<sequence>
|
||||
<element name="mapping" maxOccurs="unbounded" minOccurs="0">
|
||||
<complexType>
|
||||
<element name="mapping" maxOccurs="unbounded" minOccurs="0" type="headers:NamespaceConfigurationInner"></element>
|
||||
</sequence>
|
||||
</complexType>
|
||||
|
||||
<complexType name="NamespaceConfigurationInner">
|
||||
<sequence>
|
||||
<element name="prefix" type="NCName"></element>
|
||||
<element name="uri" type="string"></element>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
</sequence>
|
||||
</complexType>
|
||||
|
||||
</schema>
|
Reference in New Issue
Block a user