IDEA-120595 Restore compatibility with JIRA < 4.2. Return support of JIRA SOAP API. Move all JIRA related classes to dedicated module

This commit is contained in:
Mikhail Golubev
2014-02-17 20:33:23 +04:00
parent 0fcb597904
commit d0507fc069
167 changed files with 26870 additions and 235 deletions
+1
View File
@@ -91,6 +91,7 @@
<module fileurl="file://$PROJECT_DIR$/java/compiler/javac2/javac2.iml" filepath="$PROJECT_DIR$/java/compiler/javac2/javac2.iml" group="java/compiler" />
<module fileurl="file://$PROJECT_DIR$/plugins/cvs/javacvs-src/javacvs-src.iml" filepath="$PROJECT_DIR$/plugins/cvs/javacvs-src/javacvs-src.iml" group="plugins/VCS/cvs" />
<module fileurl="file://$PROJECT_DIR$/plugins/groovy/jetgroovy.iml" filepath="$PROJECT_DIR$/plugins/groovy/jetgroovy.iml" group="plugins/Groovy" />
<module fileurl="file://$PROJECT_DIR$/plugins/tasks/tasks-core/jira/jira.iml" filepath="$PROJECT_DIR$/plugins/tasks/tasks-core/jira/jira.iml" group="plugins/tasks" />
<module fileurl="file://$PROJECT_DIR$/jps/jps-builders/jps-builders.iml" filepath="$PROJECT_DIR$/jps/jps-builders/jps-builders.iml" group="jps" />
<module fileurl="file://$PROJECT_DIR$/jps/jps-launcher/jps-launcher.iml" filepath="$PROJECT_DIR$/jps/jps-launcher/jps-launcher.iml" group="java" />
<module fileurl="file://$PROJECT_DIR$/jps/model-api/jps-model-api.iml" filepath="$PROJECT_DIR$/jps/model-api/jps-model-api.iml" group="jps" />
+1
View File
@@ -96,6 +96,7 @@
<orderEntry type="module" module-name="ui-designer-jps-plugin" scope="TEST" />
<orderEntry type="module" module-name="java-tests" scope="TEST" />
<orderEntry type="module" module-name="community-tests" scope="TEST" />
<orderEntry type="module" module-name="jira" />
</component>
</module>
@@ -51,7 +51,7 @@ public abstract class TaskRepository {
* <p>
* If server supports this feature it MUST return tasks already filtered according
* to {@code query} parameter from {@link #getIssues}} method, otherwise they will
* be filtered internally in {@link TaskManager#getIssues}
* be filtered internally in {@link TaskManager#getIssues}.
*/
public static final int NATIVE_SEARCH = 0x0010;
@@ -0,0 +1,148 @@
/*
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* AbstractNamedRemoteEntity.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public abstract class AbstractNamedRemoteEntity extends AbstractRemoteEntity
implements java.io.Serializable {
private String name;
public AbstractNamedRemoteEntity() {
}
public AbstractNamedRemoteEntity(
String id,
String name) {
super(
id);
this.name = name;
}
/**
* Gets the name value for this AbstractNamedRemoteEntity.
*
* @return name
*/
public String getName() {
return name;
}
/**
* Sets the name value for this AbstractNamedRemoteEntity.
*
* @param name
*/
public void setName(String name) {
this.name = name;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof AbstractNamedRemoteEntity)) {
return false;
}
AbstractNamedRemoteEntity other = (AbstractNamedRemoteEntity) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((this.name == null && other.getName() == null) ||
(this.name != null &&
this.name.equals(other.getName())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getName() != null) {
_hashCode += getName().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(AbstractNamedRemoteEntity.class, true);
static {
typeDesc.setXmlType(
new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "AbstractNamedRemoteEntity"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("name");
elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,170 @@
/**
* AbstractRemoteConstant.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public abstract class AbstractRemoteConstant extends AbstractNamedRemoteEntity
implements java.io.Serializable {
private String description;
private String icon;
public AbstractRemoteConstant() {
}
public AbstractRemoteConstant(
String id,
String name,
String description,
String icon) {
super(
id,
name);
this.description = description;
this.icon = icon;
}
/**
* Gets the description value for this AbstractRemoteConstant.
*
* @return description
*/
public String getDescription() {
return description;
}
/**
* Sets the description value for this AbstractRemoteConstant.
*
* @param description
*/
public void setDescription(String description) {
this.description = description;
}
/**
* Gets the icon value for this AbstractRemoteConstant.
*
* @return icon
*/
public String getIcon() {
return icon;
}
/**
* Sets the icon value for this AbstractRemoteConstant.
*
* @param icon
*/
public void setIcon(String icon) {
this.icon = icon;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof AbstractRemoteConstant)) {
return false;
}
AbstractRemoteConstant other = (AbstractRemoteConstant) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((this.description == null && other.getDescription() == null) ||
(this.description != null &&
this.description.equals(other.getDescription()))) &&
((this.icon == null && other.getIcon() == null) ||
(this.icon != null &&
this.icon.equals(other.getIcon())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getDescription() != null) {
_hashCode += getDescription().hashCode();
}
if (getIcon() != null) {
_hashCode += getIcon().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(AbstractRemoteConstant.class, true);
static {
typeDesc.setXmlType(
new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "AbstractRemoteConstant"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("description");
elemField.setXmlName(new javax.xml.namespace.QName("", "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("icon");
elemField.setXmlName(new javax.xml.namespace.QName("", "icon"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,127 @@
/**
* AbstractRemoteEntity.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public abstract class AbstractRemoteEntity implements java.io.Serializable {
private String id;
public AbstractRemoteEntity() {
}
public AbstractRemoteEntity(
String id) {
this.id = id;
}
/**
* Gets the id value for this AbstractRemoteEntity.
*
* @return id
*/
public String getId() {
return id;
}
/**
* Sets the id value for this AbstractRemoteEntity.
*
* @param id
*/
public void setId(String id) {
this.id = id;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof AbstractRemoteEntity)) {
return false;
}
AbstractRemoteEntity other = (AbstractRemoteEntity) 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())));
__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();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(AbstractRemoteEntity.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "AbstractRemoteEntity"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("id");
elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,117 @@
/**
* IssueServiceImpl$RemoteWorklogImpl.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class IssueServiceImpl$RemoteWorklogImpl extends RemoteWorklog
implements java.io.Serializable {
public IssueServiceImpl$RemoteWorklogImpl() {
}
public IssueServiceImpl$RemoteWorklogImpl(
String author,
String comment,
java.util.Calendar created,
String groupLevel,
String id,
String roleLevelId,
java.util.Calendar startDate,
String timeSpent,
long timeSpentInSeconds,
String updateAuthor,
java.util.Calendar updated) {
super(
author,
comment,
created,
groupLevel,
id,
roleLevelId,
startDate,
timeSpent,
timeSpentInSeconds,
updateAuthor,
updated);
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof IssueServiceImpl$RemoteWorklogImpl)) {
return false;
}
IssueServiceImpl$RemoteWorklogImpl other = (IssueServiceImpl$RemoteWorklogImpl) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj);
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(IssueServiceImpl$RemoteWorklogImpl.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://service.soap.rpc.jira.atlassian.com",
"IssueServiceImpl$RemoteWorklogImpl"));
}
/**
* 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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,495 @@
/**
* JiraSoapService.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public interface JiraSoapService extends java.rmi.Remote {
public RemoteComment getComment(String in0, long in1)
throws java.rmi.RemoteException, RemoteException;
public RemoteGroup createGroup(String in0, String in1,
RemoteUser in2) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public RemoteSecurityLevel getSecurityLevel(String in0,
String in1) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteException;
public RemoteServerInfo getServerInfo(String in0)
throws java.rmi.RemoteException;
public RemoteGroup getGroup(String in0, String in1) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public RemoteUser createUser(String in0, String in1,
String in2, String in3, String in4) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public RemoteUser getUser(String in0, String in1) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException;
public String login(String in0, String in1) throws java.rmi.RemoteException,
RemoteAuthenticationException,
RemoteException;
public RemoteIssue getIssue(String in0, String in1) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException,
RemoteException;
public RemoteIssue createIssue(String in0,
RemoteIssue in1) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public RemoteNamedObject[] getAvailableActions(String in0,
String in1) throws java.rmi.RemoteException, RemoteException;
public RemoteIssue updateIssue(String in0, String in1,
RemoteFieldValue[] in2)
throws java.rmi.RemoteException, RemoteException;
public RemoteConfiguration getConfiguration(String in0) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException,
RemoteException;
public RemoteComponent[] getComponents(String in0,
String in1) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteAuthenticationException,
RemoteException;
public RemoteProject updateProject(String in0,
RemoteProject in1) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public RemoteProject getProjectByKey(String in0, String in1)
throws java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException,
RemoteException;
public RemotePriority[] getPriorities(String in0) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException;
public RemoteResolution[] getResolutions(String in0) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException;
public RemoteIssueType[] getIssueTypes(String in0) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException;
public RemoteStatus[] getStatuses(String in0) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException;
public RemoteIssueType[] getSubTaskIssueTypes(String in0) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException;
public RemoteProjectRole[] getProjectRoles(String in0)
throws java.rmi.RemoteException, RemoteException;
public RemoteProjectRole getProjectRole(String in0, long in1)
throws java.rmi.RemoteException, RemoteException;
public RemoteProjectRoleActors getProjectRoleActors(String in0,
RemoteProjectRole in1,
RemoteProject in2)
throws java.rmi.RemoteException, RemoteException;
public RemoteRoleActors getDefaultRoleActors(String in0,
RemoteProjectRole in1)
throws java.rmi.RemoteException, RemoteException;
public void removeAllRoleActorsByNameAndType(String in0, String in1, String in2)
throws java.rmi.RemoteException, RemoteException;
public void removeAllRoleActorsByProject(String in0, RemoteProject in1)
throws java.rmi.RemoteException, RemoteException;
public void deleteProjectRole(String in0, RemoteProjectRole in1,
boolean in2) throws java.rmi.RemoteException, RemoteException;
public void updateProjectRole(String in0, RemoteProjectRole in1)
throws java.rmi.RemoteException, RemoteException;
public RemoteProjectRole createProjectRole(String in0,
RemoteProjectRole in1)
throws java.rmi.RemoteException, RemoteException;
public boolean isProjectRoleNameUnique(String in0, String in1)
throws java.rmi.RemoteException, RemoteException;
public void addActorsToProjectRole(String in0, String[] in1,
RemoteProjectRole in2,
RemoteProject in3, String in4)
throws java.rmi.RemoteException, RemoteException;
public void removeActorsFromProjectRole(String in0, String[] in1,
RemoteProjectRole in2,
RemoteProject in3, String in4)
throws java.rmi.RemoteException, RemoteException;
public void addDefaultActorsToProjectRole(String in0, String[] in1,
RemoteProjectRole in2, String in3)
throws java.rmi.RemoteException, RemoteException;
public void removeDefaultActorsFromProjectRole(String in0, String[] in1,
RemoteProjectRole in2, String in3)
throws java.rmi.RemoteException, RemoteException;
public RemoteScheme[] getAssociatedNotificationSchemes(String in0,
RemoteProjectRole in1)
throws java.rmi.RemoteException, RemoteException;
public RemoteScheme[] getAssociatedPermissionSchemes(String in0,
RemoteProjectRole in1)
throws java.rmi.RemoteException, RemoteException;
public RemoteField[] getCustomFields(String in0)
throws java.rmi.RemoteException, RemoteException;
public RemoteComment[] getComments(String in0, String in1)
throws java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException,
RemoteException;
public RemoteFilter[] getFavouriteFilters(String in0) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException,
RemoteException;
public void archiveVersion(String in0, String in1, String in2, boolean in3)
throws java.rmi.RemoteException, RemoteException;
public RemoteVersion[] getVersions(String in0, String in1)
throws java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException,
RemoteException;
public RemoteProject createProject(String in0, String in1,
String in2, String in3, String in4, String in5,
RemotePermissionScheme in6,
RemoteScheme in7,
RemoteScheme in8) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public void addComment(String in0, String in1,
RemoteComment in2) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteAuthenticationException,
RemoteException;
public RemoteField[] getFieldsForEdit(String in0, String in1)
throws java.rmi.RemoteException, RemoteException;
public RemoteIssueType[] getIssueTypesForProject(String in0,
String in1) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteAuthenticationException;
public RemoteIssueType[] getSubTaskIssueTypesForProject(String in0,
String in1) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteAuthenticationException;
public void addUserToGroup(String in0, RemoteGroup in1,
RemoteUser in2) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public void removeUserFromGroup(String in0, RemoteGroup in1,
RemoteUser in2) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public boolean logout(String in0) throws java.rmi.RemoteException;
public RemoteProject getProjectById(String in0, long in1) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException,
RemoteException;
public RemoteProject getProjectWithSchemesById(String in0, long in1)
throws java.rmi.RemoteException, RemoteException;
public void deleteProject(String in0, String in1) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteAuthenticationException,
RemoteException;
public void releaseVersion(String in0, String in1,
RemoteVersion in2)
throws java.rmi.RemoteException, RemoteException;
public RemoteSecurityLevel[] getSecurityLevels(String in0,
String in1) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteException;
public void deleteIssue(String in0, String in1) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteAuthenticationException,
RemoteException;
public RemoteIssue createIssueWithSecurityLevel(String in0,
RemoteIssue in1, long in2) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public boolean addAttachmentsToIssue(String in0, String in1, String[] in2, byte[][] in3)
throws java.rmi.RemoteException, RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public RemoteAttachment[] getAttachmentsFromIssue(String in0,
String in1) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public boolean hasPermissionToEditComment(String in0,
RemoteComment in1)
throws java.rmi.RemoteException, RemoteException;
public RemoteComment editComment(String in0,
RemoteComment in1)
throws java.rmi.RemoteException, RemoteException;
public RemoteField[] getFieldsForAction(String in0,
String in1, String in2)
throws java.rmi.RemoteException, RemoteException;
public RemoteIssue progressWorkflowAction(String in0,
String in1, String in2, RemoteFieldValue[] in3)
throws java.rmi.RemoteException, RemoteException;
public RemoteIssue getIssueById(String in0, String in1)
throws java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException,
RemoteException;
public RemoteWorklog addWorklogWithNewRemainingEstimate(String in0,
String in1, RemoteWorklog in2, String in3) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteValidationException,
RemoteException;
public RemoteWorklog addWorklogAndAutoAdjustRemainingEstimate(
String in0, String in1, RemoteWorklog in2) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteValidationException,
RemoteException;
public RemoteWorklog addWorklogAndRetainRemainingEstimate(String in0,
String in1, RemoteWorklog in2) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteException;
public void deleteWorklogWithNewRemainingEstimate(String in0, String in1, String in2) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteValidationException,
RemoteException;
public void deleteWorklogAndAutoAdjustRemainingEstimate(String in0, String in1) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteValidationException,
RemoteException;
public void deleteWorklogAndRetainRemainingEstimate(String in0, String in1) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteValidationException,
RemoteException;
public void updateWorklogWithNewRemainingEstimate(String in0,
RemoteWorklog in1, String in2) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteException;
public void updateWorklogAndAutoAdjustRemainingEstimate(String in0,
RemoteWorklog in1) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteException;
public void updateWorklogAndRetainRemainingEstimate(String in0,
RemoteWorklog in1) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteException;
public RemoteWorklog[] getWorklogs(String in0, String in1)
throws java.rmi.RemoteException, RemotePermissionException,
RemoteValidationException,
RemoteException;
public boolean hasPermissionToCreateWorklog(String in0, String in1) throws java.rmi.RemoteException,
RemoteValidationException,
RemoteException;
public boolean hasPermissionToDeleteWorklog(String in0, String in1) throws java.rmi.RemoteException,
RemoteValidationException,
RemoteException;
public boolean hasPermissionToUpdateWorklog(String in0, String in1) throws java.rmi.RemoteException,
RemoteValidationException,
RemoteException;
public RemoteScheme[] getNotificationSchemes(String in0) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException,
RemoteException;
public RemotePermissionScheme[] getPermissionSchemes(String in0) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException,
RemoteException;
public RemotePermissionScheme createPermissionScheme(String in0,
String in1, String in2) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public void deletePermissionScheme(String in0, String in1) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public RemotePermissionScheme addPermissionTo(String in0,
RemotePermissionScheme in1,
RemotePermission in2,
RemoteEntity in3) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public RemotePermissionScheme deletePermissionFrom(String in0,
RemotePermissionScheme in1,
RemotePermission in2,
RemoteEntity in3) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public RemotePermission[] getAllPermissions(String in0) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException,
RemoteException;
public long getIssueCountForFilter(String in0, String in1)
throws java.rmi.RemoteException, RemoteException;
public RemoteIssue[] getIssuesFromTextSearch(String in0,
String in1) throws java.rmi.RemoteException, RemoteException;
public RemoteIssue[] getIssuesFromTextSearchWithProject(String in0,
String[] in1, String in2, int in3)
throws java.rmi.RemoteException, RemoteException;
public void deleteUser(String in0, String in1) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public RemoteGroup updateGroup(String in0,
RemoteGroup in1) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public void deleteGroup(String in0, String in1, String in2) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public void refreshCustomFields(String in0)
throws java.rmi.RemoteException, RemoteException;
public RemoteProject[] getProjectsNoSchemes(String in0) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException,
RemoteException;
public RemoteVersion addVersion(String in0, String in1,
RemoteVersion in2)
throws java.rmi.RemoteException, RemoteException;
public RemoteFilter[] getSavedFilters(String in0) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException,
RemoteException;
public boolean addBase64EncodedAttachmentsToIssue(String in0, String in1, String[] in2,
String[] in3) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public RemoteProject createProjectFromObject(String in0,
RemoteProject in1) throws java.rmi.RemoteException,
RemotePermissionException,
RemoteValidationException,
RemoteAuthenticationException,
RemoteException;
public RemoteScheme[] getSecuritySchemes(String in0) throws
java.rmi.RemoteException, RemotePermissionException,
RemoteAuthenticationException,
RemoteException;
public RemoteIssue[] getIssuesFromFilter(String in0,
String in1) throws java.rmi.RemoteException, RemoteException;
public RemoteIssue[] getIssuesFromFilterWithLimit(String in0,
String in1, int in2, int in3)
throws java.rmi.RemoteException, RemoteException;
public RemoteIssue[] getIssuesFromTextSearchWithLimit(String in0,
String in1, int in2, int in3)
throws java.rmi.RemoteException, RemoteException;
}
@@ -0,0 +1,18 @@
/**
* JiraSoapServiceService.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public interface JiraSoapServiceService extends javax.xml.rpc.Service {
public String getJirasoapserviceV2Address();
public JiraSoapService getJirasoapserviceV2()
throws javax.xml.rpc.ServiceException;
public JiraSoapService getJirasoapserviceV2(java.net.URL portAddress)
throws javax.xml.rpc.ServiceException;
}
@@ -0,0 +1,179 @@
/**
* JiraSoapServiceServiceLocator.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
import org.apache.axis.EngineConfiguration;
public class JiraSoapServiceServiceLocator extends org.apache.axis.client.Service
implements JiraSoapServiceService {
public JiraSoapServiceServiceLocator() {
}
public JiraSoapServiceServiceLocator(EngineConfiguration config) {
super(config);
}
public JiraSoapServiceServiceLocator(String wsdlLoc, javax.xml.namespace.QName sName)
throws javax.xml.rpc.ServiceException {
super(wsdlLoc, sName);
}
// Use to get a proxy class for JirasoapserviceV2
private String JirasoapserviceV2_address = "http://jira.atlassian.com/rpc/soap/jirasoapservice-v2";
public String getJirasoapserviceV2Address() {
return JirasoapserviceV2_address;
}
// The WSDD service name defaults to the port name.
private String JirasoapserviceV2WSDDServiceName = "jirasoapservice-v2";
public String getJirasoapserviceV2WSDDServiceName() {
return JirasoapserviceV2WSDDServiceName;
}
public void setJirasoapserviceV2WSDDServiceName(String name) {
JirasoapserviceV2WSDDServiceName = name;
}
/*
overiden configuration from file client-config.wsdd
* */
@Override
protected EngineConfiguration getEngineConfiguration() {
StringBuffer sb = new StringBuffer();
sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+ "<deployment name=\"defaultClientConfig\"\n"
+ " xmlns=\"http://xml.apache.org/axis/wsdd/\"\n"
+ " xmlns:java=\"http://xml.apache.org/axis/wsdd/providers/java\">\n"
+ " <globalConfiguration>\n"
+ " <parameter name=\"disablePrettyXML\" value=\"true\"/>\n"
+ " <parameter name=\"enableNamespacePrefixOptimization\" value=\"false\"/>\n"
+ " </globalConfiguration>");
sb.append("<transport name=\"http\" pivot=\"java:").append(org.apache.axis.transport.http.HTTPSender.class.getName()).append("\" />\r\n");
sb.append("<transport name=\"local\" pivot=\"java:").append(org.apache.axis.transport.local.LocalSender.class.getName()).append("\" />\r\n");
sb.append("<transport name=\"java\" pivot=\"java:").append(org.apache.axis.transport.java.JavaSender.class.getName()).append("\" />\r\n");
sb.append("</deployment>\r\n");
org.apache.axis.configuration.XMLStringProvider config =
new org.apache.axis.configuration.XMLStringProvider(sb.toString());
return config;
}
public JiraSoapService getJirasoapserviceV2()
throws javax.xml.rpc.ServiceException {
java.net.URL endpoint;
try {
endpoint = new java.net.URL(JirasoapserviceV2_address);
} catch (java.net.MalformedURLException e) {
throw new javax.xml.rpc.ServiceException(e);
}
return getJirasoapserviceV2(endpoint);
}
public JiraSoapService getJirasoapserviceV2(java.net.URL portAddress)
throws javax.xml.rpc.ServiceException {
try {
JirasoapserviceV2SoapBindingStub _stub
= new JirasoapserviceV2SoapBindingStub(portAddress,
this);
_stub.setPortName(getJirasoapserviceV2WSDDServiceName());
return _stub;
} catch (org.apache.axis.AxisFault e) {
return null;
}
}
public void setJirasoapserviceV2EndpointAddress(String address) {
JirasoapserviceV2_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 (JiraSoapService.class
.isAssignableFrom(serviceEndpointInterface)) {
JirasoapserviceV2SoapBindingStub _stub
= new JirasoapserviceV2SoapBindingStub(
new java.net.URL(JirasoapserviceV2_address), this);
_stub.setPortName(getJirasoapserviceV2WSDDServiceName());
return _stub;
}
} catch (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);
}
String inputPortName = portName.getLocalPart();
if ("jirasoapservice-v2".equals(inputPortName)) {
return getJirasoapserviceV2();
} 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://jira.atlassian.com/rpc/soap/jirasoapservice-v2",
"JiraSoapServiceService");
}
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://jira.atlassian.com/rpc/soap/jirasoapservice-v2",
"jirasoapservice-v2"));
}
return ports.iterator();
}
/**
* Set the endpoint address for the specified port name.
*/
public void setEndpointAddress(String portName, String address)
throws javax.xml.rpc.ServiceException {
if ("JirasoapserviceV2".equals(portName)) {
setJirasoapserviceV2EndpointAddress(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, String address)
throws javax.xml.rpc.ServiceException {
setEndpointAddress(portName.getLocalPart(), address);
}
}
@@ -0,0 +1,275 @@
/**
* RemoteAttachment.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteAttachment extends AbstractRemoteEntity
implements java.io.Serializable {
private String author;
private java.util.Calendar created;
private String filename;
private Long filesize;
private String mimetype;
public RemoteAttachment() {
}
public RemoteAttachment(
String id,
String author,
java.util.Calendar created,
String filename,
Long filesize,
String mimetype) {
super(
id);
this.author = author;
this.created = created;
this.filename = filename;
this.filesize = filesize;
this.mimetype = mimetype;
}
/**
* Gets the author value for this RemoteAttachment.
*
* @return author
*/
public String getAuthor() {
return author;
}
/**
* Sets the author value for this RemoteAttachment.
*
* @param author
*/
public void setAuthor(String author) {
this.author = author;
}
/**
* Gets the created value for this RemoteAttachment.
*
* @return created
*/
public java.util.Calendar getCreated() {
return created;
}
/**
* Sets the created value for this RemoteAttachment.
*
* @param created
*/
public void setCreated(java.util.Calendar created) {
this.created = created;
}
/**
* Gets the filename value for this RemoteAttachment.
*
* @return filename
*/
public String getFilename() {
return filename;
}
/**
* Sets the filename value for this RemoteAttachment.
*
* @param filename
*/
public void setFilename(String filename) {
this.filename = filename;
}
/**
* Gets the filesize value for this RemoteAttachment.
*
* @return filesize
*/
public Long getFilesize() {
return filesize;
}
/**
* Sets the filesize value for this RemoteAttachment.
*
* @param filesize
*/
public void setFilesize(Long filesize) {
this.filesize = filesize;
}
/**
* Gets the mimetype value for this RemoteAttachment.
*
* @return mimetype
*/
public String getMimetype() {
return mimetype;
}
/**
* Sets the mimetype value for this RemoteAttachment.
*
* @param mimetype
*/
public void setMimetype(String mimetype) {
this.mimetype = mimetype;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteAttachment)) {
return false;
}
RemoteAttachment other = (RemoteAttachment) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((this.author == null && other.getAuthor() == null) ||
(this.author != null &&
this.author.equals(other.getAuthor()))) &&
((this.created == null && other.getCreated() == null) ||
(this.created != null &&
this.created.equals(other.getCreated()))) &&
((this.filename == null && other.getFilename() == null) ||
(this.filename != null &&
this.filename.equals(other.getFilename()))) &&
((this.filesize == null && other.getFilesize() == null) ||
(this.filesize != null &&
this.filesize.equals(other.getFilesize()))) &&
((this.mimetype == null && other.getMimetype() == null) ||
(this.mimetype != null &&
this.mimetype.equals(other.getMimetype())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getAuthor() != null) {
_hashCode += getAuthor().hashCode();
}
if (getCreated() != null) {
_hashCode += getCreated().hashCode();
}
if (getFilename() != null) {
_hashCode += getFilename().hashCode();
}
if (getFilesize() != null) {
_hashCode += getFilesize().hashCode();
}
if (getMimetype() != null) {
_hashCode += getMimetype().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteAttachment.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteAttachment"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("author");
elemField.setXmlName(new javax.xml.namespace.QName("", "author"));
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("created");
elemField.setXmlName(new javax.xml.namespace.QName("", "created"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("filename");
elemField.setXmlName(new javax.xml.namespace.QName("", "filename"));
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("filesize");
elemField.setXmlName(new javax.xml.namespace.QName("", "filesize"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("mimetype");
elemField.setXmlName(new javax.xml.namespace.QName("", "mimetype"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,98 @@
/**
* RemoteAuthenticationException.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteAuthenticationException extends RemoteException
implements java.io.Serializable {
public RemoteAuthenticationException() {
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteAuthenticationException)) {
return false;
}
RemoteAuthenticationException other = (RemoteAuthenticationException) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj);
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteAuthenticationException.class, true);
static {
typeDesc.setXmlType(
new javax.xml.namespace.QName("http://exception.rpc.jira.atlassian.com", "RemoteAuthenticationException"));
}
/**
* 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(
String mechType,
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(
String mechType,
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,379 @@
/**
* RemoteComment.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteComment implements java.io.Serializable {
private String author;
private String body;
private java.util.Calendar created;
private String groupLevel;
private String id;
private String roleLevel;
private String updateAuthor;
private java.util.Calendar updated;
public RemoteComment() {
}
public RemoteComment(
String author,
String body,
java.util.Calendar created,
String groupLevel,
String id,
String roleLevel,
String updateAuthor,
java.util.Calendar updated) {
this.author = author;
this.body = body;
this.created = created;
this.groupLevel = groupLevel;
this.id = id;
this.roleLevel = roleLevel;
this.updateAuthor = updateAuthor;
this.updated = updated;
}
/**
* Gets the author value for this RemoteComment.
*
* @return author
*/
public String getAuthor() {
return author;
}
/**
* Sets the author value for this RemoteComment.
*
* @param author
*/
public void setAuthor(String author) {
this.author = author;
}
/**
* Gets the body value for this RemoteComment.
*
* @return body
*/
public String getBody() {
return body;
}
/**
* Sets the body value for this RemoteComment.
*
* @param body
*/
public void setBody(String body) {
this.body = body;
}
/**
* Gets the created value for this RemoteComment.
*
* @return created
*/
public java.util.Calendar getCreated() {
return created;
}
/**
* Sets the created value for this RemoteComment.
*
* @param created
*/
public void setCreated(java.util.Calendar created) {
this.created = created;
}
/**
* Gets the groupLevel value for this RemoteComment.
*
* @return groupLevel
*/
public String getGroupLevel() {
return groupLevel;
}
/**
* Sets the groupLevel value for this RemoteComment.
*
* @param groupLevel
*/
public void setGroupLevel(String groupLevel) {
this.groupLevel = groupLevel;
}
/**
* Gets the id value for this RemoteComment.
*
* @return id
*/
public String getId() {
return id;
}
/**
* Sets the id value for this RemoteComment.
*
* @param id
*/
public void setId(String id) {
this.id = id;
}
/**
* Gets the roleLevel value for this RemoteComment.
*
* @return roleLevel
*/
public String getRoleLevel() {
return roleLevel;
}
/**
* Sets the roleLevel value for this RemoteComment.
*
* @param roleLevel
*/
public void setRoleLevel(String roleLevel) {
this.roleLevel = roleLevel;
}
/**
* Gets the updateAuthor value for this RemoteComment.
*
* @return updateAuthor
*/
public String getUpdateAuthor() {
return updateAuthor;
}
/**
* Sets the updateAuthor value for this RemoteComment.
*
* @param updateAuthor
*/
public void setUpdateAuthor(String updateAuthor) {
this.updateAuthor = updateAuthor;
}
/**
* Gets the updated value for this RemoteComment.
*
* @return updated
*/
public java.util.Calendar getUpdated() {
return updated;
}
/**
* Sets the updated value for this RemoteComment.
*
* @param updated
*/
public void setUpdated(java.util.Calendar updated) {
this.updated = updated;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteComment)) {
return false;
}
RemoteComment other = (RemoteComment) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.author == null && other.getAuthor() == null) ||
(this.author != null &&
this.author.equals(other.getAuthor()))) &&
((this.body == null && other.getBody() == null) ||
(this.body != null &&
this.body.equals(other.getBody()))) &&
((this.created == null && other.getCreated() == null) ||
(this.created != null &&
this.created.equals(other.getCreated()))) &&
((this.groupLevel == null && other.getGroupLevel() == null) ||
(this.groupLevel != null &&
this.groupLevel.equals(other.getGroupLevel()))) &&
((this.id == null && other.getId() == null) ||
(this.id != null &&
this.id.equals(other.getId()))) &&
((this.roleLevel == null && other.getRoleLevel() == null) ||
(this.roleLevel != null &&
this.roleLevel.equals(other.getRoleLevel()))) &&
((this.updateAuthor == null && other.getUpdateAuthor() == null) ||
(this.updateAuthor != null &&
this.updateAuthor.equals(other.getUpdateAuthor()))) &&
((this.updated == null && other.getUpdated() == null) ||
(this.updated != null &&
this.updated.equals(other.getUpdated())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getAuthor() != null) {
_hashCode += getAuthor().hashCode();
}
if (getBody() != null) {
_hashCode += getBody().hashCode();
}
if (getCreated() != null) {
_hashCode += getCreated().hashCode();
}
if (getGroupLevel() != null) {
_hashCode += getGroupLevel().hashCode();
}
if (getId() != null) {
_hashCode += getId().hashCode();
}
if (getRoleLevel() != null) {
_hashCode += getRoleLevel().hashCode();
}
if (getUpdateAuthor() != null) {
_hashCode += getUpdateAuthor().hashCode();
}
if (getUpdated() != null) {
_hashCode += getUpdated().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteComment.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteComment"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("author");
elemField.setXmlName(new javax.xml.namespace.QName("", "author"));
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("body");
elemField.setXmlName(new javax.xml.namespace.QName("", "body"));
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("created");
elemField.setXmlName(new javax.xml.namespace.QName("", "created"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("groupLevel");
elemField.setXmlName(new javax.xml.namespace.QName("", "groupLevel"));
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("id");
elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
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("roleLevel");
elemField.setXmlName(new javax.xml.namespace.QName("", "roleLevel"));
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("updateAuthor");
elemField.setXmlName(new javax.xml.namespace.QName("", "updateAuthor"));
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("updated");
elemField.setXmlName(new javax.xml.namespace.QName("", "updated"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,97 @@
/**
* RemoteComponent.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteComponent extends AbstractNamedRemoteEntity
implements java.io.Serializable {
public RemoteComponent() {
}
public RemoteComponent(
String id,
String name) {
super(
id,
name);
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteComponent)) {
return false;
}
RemoteComponent other = (RemoteComponent) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj);
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteComponent.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteComponent"));
}
/**
* 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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,411 @@
/**
* RemoteConfiguration.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteConfiguration implements java.io.Serializable {
private boolean allowAttachments;
private boolean allowExternalUserManagment;
private boolean allowIssueLinking;
private boolean allowSubTasks;
private boolean allowTimeTracking;
private boolean allowUnassignedIssues;
private boolean allowVoting;
private boolean allowWatching;
private int timeTrackingDaysPerWeek;
private int timeTrackingHoursPerDay;
public RemoteConfiguration() {
}
public RemoteConfiguration(
boolean allowAttachments,
boolean allowExternalUserManagment,
boolean allowIssueLinking,
boolean allowSubTasks,
boolean allowTimeTracking,
boolean allowUnassignedIssues,
boolean allowVoting,
boolean allowWatching,
int timeTrackingDaysPerWeek,
int timeTrackingHoursPerDay) {
this.allowAttachments = allowAttachments;
this.allowExternalUserManagment = allowExternalUserManagment;
this.allowIssueLinking = allowIssueLinking;
this.allowSubTasks = allowSubTasks;
this.allowTimeTracking = allowTimeTracking;
this.allowUnassignedIssues = allowUnassignedIssues;
this.allowVoting = allowVoting;
this.allowWatching = allowWatching;
this.timeTrackingDaysPerWeek = timeTrackingDaysPerWeek;
this.timeTrackingHoursPerDay = timeTrackingHoursPerDay;
}
/**
* Gets the allowAttachments value for this RemoteConfiguration.
*
* @return allowAttachments
*/
public boolean isAllowAttachments() {
return allowAttachments;
}
/**
* Sets the allowAttachments value for this RemoteConfiguration.
*
* @param allowAttachments
*/
public void setAllowAttachments(boolean allowAttachments) {
this.allowAttachments = allowAttachments;
}
/**
* Gets the allowExternalUserManagment value for this RemoteConfiguration.
*
* @return allowExternalUserManagment
*/
public boolean isAllowExternalUserManagment() {
return allowExternalUserManagment;
}
/**
* Sets the allowExternalUserManagment value for this RemoteConfiguration.
*
* @param allowExternalUserManagment
*/
public void setAllowExternalUserManagment(boolean allowExternalUserManagment) {
this.allowExternalUserManagment = allowExternalUserManagment;
}
/**
* Gets the allowIssueLinking value for this RemoteConfiguration.
*
* @return allowIssueLinking
*/
public boolean isAllowIssueLinking() {
return allowIssueLinking;
}
/**
* Sets the allowIssueLinking value for this RemoteConfiguration.
*
* @param allowIssueLinking
*/
public void setAllowIssueLinking(boolean allowIssueLinking) {
this.allowIssueLinking = allowIssueLinking;
}
/**
* Gets the allowSubTasks value for this RemoteConfiguration.
*
* @return allowSubTasks
*/
public boolean isAllowSubTasks() {
return allowSubTasks;
}
/**
* Sets the allowSubTasks value for this RemoteConfiguration.
*
* @param allowSubTasks
*/
public void setAllowSubTasks(boolean allowSubTasks) {
this.allowSubTasks = allowSubTasks;
}
/**
* Gets the allowTimeTracking value for this RemoteConfiguration.
*
* @return allowTimeTracking
*/
public boolean isAllowTimeTracking() {
return allowTimeTracking;
}
/**
* Sets the allowTimeTracking value for this RemoteConfiguration.
*
* @param allowTimeTracking
*/
public void setAllowTimeTracking(boolean allowTimeTracking) {
this.allowTimeTracking = allowTimeTracking;
}
/**
* Gets the allowUnassignedIssues value for this RemoteConfiguration.
*
* @return allowUnassignedIssues
*/
public boolean isAllowUnassignedIssues() {
return allowUnassignedIssues;
}
/**
* Sets the allowUnassignedIssues value for this RemoteConfiguration.
*
* @param allowUnassignedIssues
*/
public void setAllowUnassignedIssues(boolean allowUnassignedIssues) {
this.allowUnassignedIssues = allowUnassignedIssues;
}
/**
* Gets the allowVoting value for this RemoteConfiguration.
*
* @return allowVoting
*/
public boolean isAllowVoting() {
return allowVoting;
}
/**
* Sets the allowVoting value for this RemoteConfiguration.
*
* @param allowVoting
*/
public void setAllowVoting(boolean allowVoting) {
this.allowVoting = allowVoting;
}
/**
* Gets the allowWatching value for this RemoteConfiguration.
*
* @return allowWatching
*/
public boolean isAllowWatching() {
return allowWatching;
}
/**
* Sets the allowWatching value for this RemoteConfiguration.
*
* @param allowWatching
*/
public void setAllowWatching(boolean allowWatching) {
this.allowWatching = allowWatching;
}
/**
* Gets the timeTrackingDaysPerWeek value for this RemoteConfiguration.
*
* @return timeTrackingDaysPerWeek
*/
public int getTimeTrackingDaysPerWeek() {
return timeTrackingDaysPerWeek;
}
/**
* Sets the timeTrackingDaysPerWeek value for this RemoteConfiguration.
*
* @param timeTrackingDaysPerWeek
*/
public void setTimeTrackingDaysPerWeek(int timeTrackingDaysPerWeek) {
this.timeTrackingDaysPerWeek = timeTrackingDaysPerWeek;
}
/**
* Gets the timeTrackingHoursPerDay value for this RemoteConfiguration.
*
* @return timeTrackingHoursPerDay
*/
public int getTimeTrackingHoursPerDay() {
return timeTrackingHoursPerDay;
}
/**
* Sets the timeTrackingHoursPerDay value for this RemoteConfiguration.
*
* @param timeTrackingHoursPerDay
*/
public void setTimeTrackingHoursPerDay(int timeTrackingHoursPerDay) {
this.timeTrackingHoursPerDay = timeTrackingHoursPerDay;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteConfiguration)) {
return false;
}
RemoteConfiguration other = (RemoteConfiguration) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
this.allowAttachments == other.isAllowAttachments() &&
this.allowExternalUserManagment == other.isAllowExternalUserManagment() &&
this.allowIssueLinking == other.isAllowIssueLinking() &&
this.allowSubTasks == other.isAllowSubTasks() &&
this.allowTimeTracking == other.isAllowTimeTracking() &&
this.allowUnassignedIssues == other.isAllowUnassignedIssues() &&
this.allowVoting == other.isAllowVoting() &&
this.allowWatching == other.isAllowWatching() &&
this.timeTrackingDaysPerWeek == other.getTimeTrackingDaysPerWeek() &&
this.timeTrackingHoursPerDay == other.getTimeTrackingHoursPerDay();
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
_hashCode += (isAllowAttachments() ? Boolean.TRUE : Boolean.FALSE).hashCode();
_hashCode += (isAllowExternalUserManagment() ? Boolean.TRUE : Boolean.FALSE).hashCode();
_hashCode += (isAllowIssueLinking() ? Boolean.TRUE : Boolean.FALSE).hashCode();
_hashCode += (isAllowSubTasks() ? Boolean.TRUE : Boolean.FALSE).hashCode();
_hashCode += (isAllowTimeTracking() ? Boolean.TRUE : Boolean.FALSE).hashCode();
_hashCode += (isAllowUnassignedIssues() ? Boolean.TRUE : Boolean.FALSE).hashCode();
_hashCode += (isAllowVoting() ? Boolean.TRUE : Boolean.FALSE).hashCode();
_hashCode += (isAllowWatching() ? Boolean.TRUE : Boolean.FALSE).hashCode();
_hashCode += getTimeTrackingDaysPerWeek();
_hashCode += getTimeTrackingHoursPerDay();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteConfiguration.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteConfiguration"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("allowAttachments");
elemField.setXmlName(new javax.xml.namespace.QName("", "allowAttachments"));
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("allowExternalUserManagment");
elemField.setXmlName(new javax.xml.namespace.QName("", "allowExternalUserManagment"));
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("allowIssueLinking");
elemField.setXmlName(new javax.xml.namespace.QName("", "allowIssueLinking"));
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("allowSubTasks");
elemField.setXmlName(new javax.xml.namespace.QName("", "allowSubTasks"));
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("allowTimeTracking");
elemField.setXmlName(new javax.xml.namespace.QName("", "allowTimeTracking"));
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("allowUnassignedIssues");
elemField.setXmlName(new javax.xml.namespace.QName("", "allowUnassignedIssues"));
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("allowVoting");
elemField.setXmlName(new javax.xml.namespace.QName("", "allowVoting"));
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("allowWatching");
elemField.setXmlName(new javax.xml.namespace.QName("", "allowWatching"));
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("timeTrackingDaysPerWeek");
elemField.setXmlName(new javax.xml.namespace.QName("", "timeTrackingDaysPerWeek"));
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("timeTrackingHoursPerDay");
elemField.setXmlName(new javax.xml.namespace.QName("", "timeTrackingHoursPerDay"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,208 @@
/**
* RemoteCustomFieldValue.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteCustomFieldValue implements java.io.Serializable {
private String customfieldId;
private String key;
private String[] values;
public RemoteCustomFieldValue() {
}
public RemoteCustomFieldValue(
String customfieldId,
String key,
String[] values) {
this.customfieldId = customfieldId;
this.key = key;
this.values = values;
}
/**
* Gets the customfieldId value for this RemoteCustomFieldValue.
*
* @return customfieldId
*/
public String getCustomfieldId() {
return customfieldId;
}
/**
* Sets the customfieldId value for this RemoteCustomFieldValue.
*
* @param customfieldId
*/
public void setCustomfieldId(String customfieldId) {
this.customfieldId = customfieldId;
}
/**
* Gets the key value for this RemoteCustomFieldValue.
*
* @return key
*/
public String getKey() {
return key;
}
/**
* Sets the key value for this RemoteCustomFieldValue.
*
* @param key
*/
public void setKey(String key) {
this.key = key;
}
/**
* Gets the values value for this RemoteCustomFieldValue.
*
* @return values
*/
public String[] getValues() {
return values;
}
/**
* Sets the values value for this RemoteCustomFieldValue.
*
* @param values
*/
public void setValues(String[] values) {
this.values = values;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteCustomFieldValue)) {
return false;
}
RemoteCustomFieldValue other = (RemoteCustomFieldValue) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.customfieldId == null && other.getCustomfieldId() == null) ||
(this.customfieldId != null &&
this.customfieldId.equals(other.getCustomfieldId()))) &&
((this.key == null && other.getKey() == null) ||
(this.key != null &&
this.key.equals(other.getKey()))) &&
((this.values == null && other.getValues() == null) ||
(this.values != null &&
java.util.Arrays.equals(this.values, other.getValues())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getCustomfieldId() != null) {
_hashCode += getCustomfieldId().hashCode();
}
if (getKey() != null) {
_hashCode += getKey().hashCode();
}
if (getValues() != null) {
for (int i = 0;
i < java.lang.reflect.Array.getLength(getValues());
i++) {
Object obj = java.lang.reflect.Array.get(getValues(), 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(RemoteCustomFieldValue.class, true);
static {
typeDesc.setXmlType(
new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteCustomFieldValue"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("customfieldId");
elemField.setXmlName(new javax.xml.namespace.QName("", "customfieldId"));
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("key");
elemField.setXmlName(new javax.xml.namespace.QName("", "key"));
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("values");
elemField.setXmlName(new javax.xml.namespace.QName("", "values"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,88 @@
/**
* RemoteEntity.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteEntity implements java.io.Serializable {
public RemoteEntity() {
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteEntity)) {
return false;
}
RemoteEntity other = (RemoteEntity) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true;
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteEntity.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteEntity"));
}
/**
* 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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,96 @@
/**
* RemoteException.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteException extends org.apache.axis.AxisFault implements java.io.Serializable {
public RemoteException() {
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteException)) {
return false;
}
RemoteException other = (RemoteException) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true;
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteException.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://exception.rpc.jira.atlassian.com", "RemoteException"));
}
/**
* 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(
String mechType,
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(
String mechType,
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,97 @@
/**
* RemoteField.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteField extends AbstractNamedRemoteEntity
implements java.io.Serializable {
public RemoteField() {
}
public RemoteField(
String id,
String name) {
super(
id,
name);
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteField)) {
return false;
}
RemoteField other = (RemoteField) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj);
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteField.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteField"));
}
/**
* 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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,171 @@
/**
* RemoteFieldValue.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteFieldValue implements java.io.Serializable {
private String id;
private String[] values;
public RemoteFieldValue() {
}
public RemoteFieldValue(
String id,
String[] values) {
this.id = id;
this.values = values;
}
/**
* Gets the id value for this RemoteFieldValue.
*
* @return id
*/
public String getId() {
return id;
}
/**
* Sets the id value for this RemoteFieldValue.
*
* @param id
*/
public void setId(String id) {
this.id = id;
}
/**
* Gets the values value for this RemoteFieldValue.
*
* @return values
*/
public String[] getValues() {
return values;
}
/**
* Sets the values value for this RemoteFieldValue.
*
* @param values
*/
public void setValues(String[] values) {
this.values = values;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteFieldValue)) {
return false;
}
RemoteFieldValue other = (RemoteFieldValue) 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.values == null && other.getValues() == null) ||
(this.values != null &&
java.util.Arrays.equals(this.values, other.getValues())));
__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 (getValues() != null) {
for (int i = 0;
i < java.lang.reflect.Array.getLength(getValues());
i++) {
Object obj = java.lang.reflect.Array.get(getValues(), 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(RemoteFieldValue.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteFieldValue"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("id");
elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
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("values");
elemField.setXmlName(new javax.xml.namespace.QName("", "values"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,241 @@
/**
* RemoteFilter.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteFilter extends AbstractNamedRemoteEntity
implements java.io.Serializable {
private String author;
private String description;
private String project;
private String xml;
public RemoteFilter() {
}
public RemoteFilter(
String id,
String name,
String author,
String description,
String project,
String xml) {
super(
id,
name);
this.author = author;
this.description = description;
this.project = project;
this.xml = xml;
}
/**
* Gets the author value for this RemoteFilter.
*
* @return author
*/
public String getAuthor() {
return author;
}
/**
* Sets the author value for this RemoteFilter.
*
* @param author
*/
public void setAuthor(String author) {
this.author = author;
}
/**
* Gets the description value for this RemoteFilter.
*
* @return description
*/
public String getDescription() {
return description;
}
/**
* Sets the description value for this RemoteFilter.
*
* @param description
*/
public void setDescription(String description) {
this.description = description;
}
/**
* Gets the project value for this RemoteFilter.
*
* @return project
*/
public String getProject() {
return project;
}
/**
* Sets the project value for this RemoteFilter.
*
* @param project
*/
public void setProject(String project) {
this.project = project;
}
/**
* Gets the xml value for this RemoteFilter.
*
* @return xml
*/
public String getXml() {
return xml;
}
/**
* Sets the xml value for this RemoteFilter.
*
* @param xml
*/
public void setXml(String xml) {
this.xml = xml;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteFilter)) {
return false;
}
RemoteFilter other = (RemoteFilter) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((this.author == null && other.getAuthor() == null) ||
(this.author != null &&
this.author.equals(other.getAuthor()))) &&
((this.description == null && other.getDescription() == null) ||
(this.description != null &&
this.description.equals(other.getDescription()))) &&
((this.project == null && other.getProject() == null) ||
(this.project != null &&
this.project.equals(other.getProject()))) &&
((this.xml == null && other.getXml() == null) ||
(this.xml != null &&
this.xml.equals(other.getXml())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getAuthor() != null) {
_hashCode += getAuthor().hashCode();
}
if (getDescription() != null) {
_hashCode += getDescription().hashCode();
}
if (getProject() != null) {
_hashCode += getProject().hashCode();
}
if (getXml() != null) {
_hashCode += getXml().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteFilter.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteFilter"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("author");
elemField.setXmlName(new javax.xml.namespace.QName("", "author"));
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("", "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("project");
elemField.setXmlName(new javax.xml.namespace.QName("", "project"));
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("xml");
elemField.setXmlName(new javax.xml.namespace.QName("", "xml"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,171 @@
/**
* RemoteGroup.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteGroup extends RemoteEntity implements java.io.Serializable {
private String name;
private RemoteUser[] users;
public RemoteGroup() {
}
public RemoteGroup(
String name,
RemoteUser[] users) {
this.name = name;
this.users = users;
}
/**
* Gets the name value for this RemoteGroup.
*
* @return name
*/
public String getName() {
return name;
}
/**
* Sets the name value for this RemoteGroup.
*
* @param name
*/
public void setName(String name) {
this.name = name;
}
/**
* Gets the users value for this RemoteGroup.
*
* @return users
*/
public RemoteUser[] getUsers() {
return users;
}
/**
* Sets the users value for this RemoteGroup.
*
* @param users
*/
public void setUsers(RemoteUser[] users) {
this.users = users;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteGroup)) {
return false;
}
RemoteGroup other = (RemoteGroup) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((this.name == null && other.getName() == null) ||
(this.name != null &&
this.name.equals(other.getName()))) &&
((this.users == null && other.getUsers() == null) ||
(this.users != null &&
java.util.Arrays.equals(this.users, other.getUsers())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getName() != null) {
_hashCode += getName().hashCode();
}
if (getUsers() != null) {
for (int i = 0;
i < java.lang.reflect.Array.getLength(getUsers());
i++) {
Object obj = java.lang.reflect.Array.get(getUsers(), 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(RemoteGroup.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteGroup"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("name");
elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
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("users");
elemField.setXmlName(new javax.xml.namespace.QName("", "users"));
elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteUser"));
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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,856 @@
/**
* RemoteIssue.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteIssue extends AbstractRemoteEntity
implements java.io.Serializable {
private RemoteVersion[] affectsVersions;
private String assignee;
private String[] attachmentNames;
private RemoteComponent[] components;
private java.util.Calendar created;
private RemoteCustomFieldValue[] customFieldValues;
private String description;
private java.util.Calendar duedate;
private String environment;
private RemoteVersion[] fixVersions;
private String key;
private String priority;
private String project;
private String reporter;
private String resolution;
private String status;
private String summary;
private String type;
private java.util.Calendar updated;
private Long votes;
public RemoteIssue() {
}
public RemoteIssue(
String id,
RemoteVersion[] affectsVersions,
String assignee,
String[] attachmentNames,
RemoteComponent[] components,
java.util.Calendar created,
RemoteCustomFieldValue[] customFieldValues,
String description,
java.util.Calendar duedate,
String environment,
RemoteVersion[] fixVersions,
String key,
String priority,
String project,
String reporter,
String resolution,
String status,
String summary,
String type,
java.util.Calendar updated,
Long votes) {
super(
id);
this.affectsVersions = affectsVersions;
this.assignee = assignee;
this.attachmentNames = attachmentNames;
this.components = components;
this.created = created;
this.customFieldValues = customFieldValues;
this.description = description;
this.duedate = duedate;
this.environment = environment;
this.fixVersions = fixVersions;
this.key = key;
this.priority = priority;
this.project = project;
this.reporter = reporter;
this.resolution = resolution;
this.status = status;
this.summary = summary;
this.type = type;
this.updated = updated;
this.votes = votes;
}
/**
* Gets the affectsVersions value for this RemoteIssue.
*
* @return affectsVersions
*/
public RemoteVersion[] getAffectsVersions() {
return affectsVersions;
}
/**
* Sets the affectsVersions value for this RemoteIssue.
*
* @param affectsVersions
*/
public void setAffectsVersions(RemoteVersion[] affectsVersions) {
this.affectsVersions = affectsVersions;
}
/**
* Gets the assignee value for this RemoteIssue.
*
* @return assignee
*/
public String getAssignee() {
return assignee;
}
/**
* Sets the assignee value for this RemoteIssue.
*
* @param assignee
*/
public void setAssignee(String assignee) {
this.assignee = assignee;
}
/**
* Gets the attachmentNames value for this RemoteIssue.
*
* @return attachmentNames
*/
public String[] getAttachmentNames() {
return attachmentNames;
}
/**
* Sets the attachmentNames value for this RemoteIssue.
*
* @param attachmentNames
*/
public void setAttachmentNames(String[] attachmentNames) {
this.attachmentNames = attachmentNames;
}
/**
* Gets the components value for this RemoteIssue.
*
* @return components
*/
public RemoteComponent[] getComponents() {
return components;
}
/**
* Sets the components value for this RemoteIssue.
*
* @param components
*/
public void setComponents(RemoteComponent[] components) {
this.components = components;
}
/**
* Gets the created value for this RemoteIssue.
*
* @return created
*/
public java.util.Calendar getCreated() {
return created;
}
/**
* Sets the created value for this RemoteIssue.
*
* @param created
*/
public void setCreated(java.util.Calendar created) {
this.created = created;
}
/**
* Gets the customFieldValues value for this RemoteIssue.
*
* @return customFieldValues
*/
public RemoteCustomFieldValue[] getCustomFieldValues() {
return customFieldValues;
}
/**
* Sets the customFieldValues value for this RemoteIssue.
*
* @param customFieldValues
*/
public void setCustomFieldValues(RemoteCustomFieldValue[] customFieldValues) {
this.customFieldValues = customFieldValues;
}
/**
* Gets the description value for this RemoteIssue.
*
* @return description
*/
public String getDescription() {
return description;
}
/**
* Sets the description value for this RemoteIssue.
*
* @param description
*/
public void setDescription(String description) {
this.description = description;
}
/**
* Gets the duedate value for this RemoteIssue.
*
* @return duedate
*/
public java.util.Calendar getDuedate() {
return duedate;
}
/**
* Sets the duedate value for this RemoteIssue.
*
* @param duedate
*/
public void setDuedate(java.util.Calendar duedate) {
this.duedate = duedate;
}
/**
* Gets the environment value for this RemoteIssue.
*
* @return environment
*/
public String getEnvironment() {
return environment;
}
/**
* Sets the environment value for this RemoteIssue.
*
* @param environment
*/
public void setEnvironment(String environment) {
this.environment = environment;
}
/**
* Gets the fixVersions value for this RemoteIssue.
*
* @return fixVersions
*/
public RemoteVersion[] getFixVersions() {
return fixVersions;
}
/**
* Sets the fixVersions value for this RemoteIssue.
*
* @param fixVersions
*/
public void setFixVersions(RemoteVersion[] fixVersions) {
this.fixVersions = fixVersions;
}
/**
* Gets the key value for this RemoteIssue.
*
* @return key
*/
public String getKey() {
return key;
}
/**
* Sets the key value for this RemoteIssue.
*
* @param key
*/
public void setKey(String key) {
this.key = key;
}
/**
* Gets the priority value for this RemoteIssue.
*
* @return priority
*/
public String getPriority() {
return priority;
}
/**
* Sets the priority value for this RemoteIssue.
*
* @param priority
*/
public void setPriority(String priority) {
this.priority = priority;
}
/**
* Gets the project value for this RemoteIssue.
*
* @return project
*/
public String getProject() {
return project;
}
/**
* Sets the project value for this RemoteIssue.
*
* @param project
*/
public void setProject(String project) {
this.project = project;
}
/**
* Gets the reporter value for this RemoteIssue.
*
* @return reporter
*/
public String getReporter() {
return reporter;
}
/**
* Sets the reporter value for this RemoteIssue.
*
* @param reporter
*/
public void setReporter(String reporter) {
this.reporter = reporter;
}
/**
* Gets the resolution value for this RemoteIssue.
*
* @return resolution
*/
public String getResolution() {
return resolution;
}
/**
* Sets the resolution value for this RemoteIssue.
*
* @param resolution
*/
public void setResolution(String resolution) {
this.resolution = resolution;
}
/**
* Gets the status value for this RemoteIssue.
*
* @return status
*/
public String getStatus() {
return status;
}
/**
* Sets the status value for this RemoteIssue.
*
* @param status
*/
public void setStatus(String status) {
this.status = status;
}
/**
* Gets the summary value for this RemoteIssue.
*
* @return summary
*/
public String getSummary() {
return summary;
}
/**
* Sets the summary value for this RemoteIssue.
*
* @param summary
*/
public void setSummary(String summary) {
this.summary = summary;
}
/**
* Gets the type value for this RemoteIssue.
*
* @return type
*/
public String getType() {
return type;
}
/**
* Sets the type value for this RemoteIssue.
*
* @param type
*/
public void setType(String type) {
this.type = type;
}
/**
* Gets the updated value for this RemoteIssue.
*
* @return updated
*/
public java.util.Calendar getUpdated() {
return updated;
}
/**
* Sets the updated value for this RemoteIssue.
*
* @param updated
*/
public void setUpdated(java.util.Calendar updated) {
this.updated = updated;
}
/**
* Gets the votes value for this RemoteIssue.
*
* @return votes
*/
public Long getVotes() {
return votes;
}
/**
* Sets the votes value for this RemoteIssue.
*
* @param votes
*/
public void setVotes(Long votes) {
this.votes = votes;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteIssue)) {
return false;
}
RemoteIssue other = (RemoteIssue) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((this.affectsVersions == null && other.getAffectsVersions() == null) ||
(this.affectsVersions != null &&
java.util.Arrays.equals(this.affectsVersions, other.getAffectsVersions()))) &&
((this.assignee == null && other.getAssignee() == null) ||
(this.assignee != null &&
this.assignee.equals(other.getAssignee()))) &&
((this.attachmentNames == null && other.getAttachmentNames() == null) ||
(this.attachmentNames != null &&
java.util.Arrays.equals(this.attachmentNames, other.getAttachmentNames()))) &&
((this.components == null && other.getComponents() == null) ||
(this.components != null &&
java.util.Arrays.equals(this.components, other.getComponents()))) &&
((this.created == null && other.getCreated() == null) ||
(this.created != null &&
this.created.equals(other.getCreated()))) &&
((this.customFieldValues == null && other.getCustomFieldValues() == null) ||
(this.customFieldValues != null &&
java.util.Arrays.equals(this.customFieldValues, other.getCustomFieldValues()))) &&
((this.description == null && other.getDescription() == null) ||
(this.description != null &&
this.description.equals(other.getDescription()))) &&
((this.duedate == null && other.getDuedate() == null) ||
(this.duedate != null &&
this.duedate.equals(other.getDuedate()))) &&
((this.environment == null && other.getEnvironment() == null) ||
(this.environment != null &&
this.environment.equals(other.getEnvironment()))) &&
((this.fixVersions == null && other.getFixVersions() == null) ||
(this.fixVersions != null &&
java.util.Arrays.equals(this.fixVersions, other.getFixVersions()))) &&
((this.key == null && other.getKey() == null) ||
(this.key != null &&
this.key.equals(other.getKey()))) &&
((this.priority == null && other.getPriority() == null) ||
(this.priority != null &&
this.priority.equals(other.getPriority()))) &&
((this.project == null && other.getProject() == null) ||
(this.project != null &&
this.project.equals(other.getProject()))) &&
((this.reporter == null && other.getReporter() == null) ||
(this.reporter != null &&
this.reporter.equals(other.getReporter()))) &&
((this.resolution == null && other.getResolution() == null) ||
(this.resolution != null &&
this.resolution.equals(other.getResolution()))) &&
((this.status == null && other.getStatus() == null) ||
(this.status != null &&
this.status.equals(other.getStatus()))) &&
((this.summary == null && other.getSummary() == null) ||
(this.summary != null &&
this.summary.equals(other.getSummary()))) &&
((this.type == null && other.getType() == null) ||
(this.type != null &&
this.type.equals(other.getType()))) &&
((this.updated == null && other.getUpdated() == null) ||
(this.updated != null &&
this.updated.equals(other.getUpdated()))) &&
((this.votes == null && other.getVotes() == null) ||
(this.votes != null &&
this.votes.equals(other.getVotes())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getAffectsVersions() != null) {
for (int i = 0;
i < java.lang.reflect.Array.getLength(getAffectsVersions());
i++) {
Object obj = java.lang.reflect.Array.get(getAffectsVersions(), i);
if (obj != null &&
!obj.getClass().isArray()) {
_hashCode += obj.hashCode();
}
}
}
if (getAssignee() != null) {
_hashCode += getAssignee().hashCode();
}
if (getAttachmentNames() != null) {
for (int i = 0;
i < java.lang.reflect.Array.getLength(getAttachmentNames());
i++) {
Object obj = java.lang.reflect.Array.get(getAttachmentNames(), i);
if (obj != null &&
!obj.getClass().isArray()) {
_hashCode += obj.hashCode();
}
}
}
if (getComponents() != null) {
for (int i = 0;
i < java.lang.reflect.Array.getLength(getComponents());
i++) {
Object obj = java.lang.reflect.Array.get(getComponents(), i);
if (obj != null &&
!obj.getClass().isArray()) {
_hashCode += obj.hashCode();
}
}
}
if (getCreated() != null) {
_hashCode += getCreated().hashCode();
}
if (getCustomFieldValues() != null) {
for (int i = 0;
i < java.lang.reflect.Array.getLength(getCustomFieldValues());
i++) {
Object obj = java.lang.reflect.Array.get(getCustomFieldValues(), i);
if (obj != null &&
!obj.getClass().isArray()) {
_hashCode += obj.hashCode();
}
}
}
if (getDescription() != null) {
_hashCode += getDescription().hashCode();
}
if (getDuedate() != null) {
_hashCode += getDuedate().hashCode();
}
if (getEnvironment() != null) {
_hashCode += getEnvironment().hashCode();
}
if (getFixVersions() != null) {
for (int i = 0;
i < java.lang.reflect.Array.getLength(getFixVersions());
i++) {
Object obj = java.lang.reflect.Array.get(getFixVersions(), i);
if (obj != null &&
!obj.getClass().isArray()) {
_hashCode += obj.hashCode();
}
}
}
if (getKey() != null) {
_hashCode += getKey().hashCode();
}
if (getPriority() != null) {
_hashCode += getPriority().hashCode();
}
if (getProject() != null) {
_hashCode += getProject().hashCode();
}
if (getReporter() != null) {
_hashCode += getReporter().hashCode();
}
if (getResolution() != null) {
_hashCode += getResolution().hashCode();
}
if (getStatus() != null) {
_hashCode += getStatus().hashCode();
}
if (getSummary() != null) {
_hashCode += getSummary().hashCode();
}
if (getType() != null) {
_hashCode += getType().hashCode();
}
if (getUpdated() != null) {
_hashCode += getUpdated().hashCode();
}
if (getVotes() != null) {
_hashCode += getVotes().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteIssue.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteIssue"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("affectsVersions");
elemField.setXmlName(new javax.xml.namespace.QName("", "affectsVersions"));
elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteVersion"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("assignee");
elemField.setXmlName(new javax.xml.namespace.QName("", "assignee"));
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("attachmentNames");
elemField.setXmlName(new javax.xml.namespace.QName("", "attachmentNames"));
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("components");
elemField.setXmlName(new javax.xml.namespace.QName("", "components"));
elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteComponent"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("created");
elemField.setXmlName(new javax.xml.namespace.QName("", "created"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("customFieldValues");
elemField.setXmlName(new javax.xml.namespace.QName("", "customFieldValues"));
elemField.setXmlType(
new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteCustomFieldValue"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("description");
elemField.setXmlName(new javax.xml.namespace.QName("", "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("duedate");
elemField.setXmlName(new javax.xml.namespace.QName("", "duedate"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("environment");
elemField.setXmlName(new javax.xml.namespace.QName("", "environment"));
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("fixVersions");
elemField.setXmlName(new javax.xml.namespace.QName("", "fixVersions"));
elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteVersion"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("key");
elemField.setXmlName(new javax.xml.namespace.QName("", "key"));
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("priority");
elemField.setXmlName(new javax.xml.namespace.QName("", "priority"));
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("project");
elemField.setXmlName(new javax.xml.namespace.QName("", "project"));
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("reporter");
elemField.setXmlName(new javax.xml.namespace.QName("", "reporter"));
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("resolution");
elemField.setXmlName(new javax.xml.namespace.QName("", "resolution"));
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("status");
elemField.setXmlName(new javax.xml.namespace.QName("", "status"));
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("summary");
elemField.setXmlName(new javax.xml.namespace.QName("", "summary"));
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("type");
elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
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("updated");
elemField.setXmlName(new javax.xml.namespace.QName("", "updated"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("votes");
elemField.setXmlName(new javax.xml.namespace.QName("", "votes"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,133 @@
/**
* RemoteIssueType.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteIssueType extends AbstractRemoteConstant
implements java.io.Serializable {
private boolean subTask;
public RemoteIssueType() {
}
public RemoteIssueType(
String id,
String name,
String description,
String icon,
boolean subTask) {
super(
id,
name,
description,
icon);
this.subTask = subTask;
}
/**
* Gets the subTask value for this RemoteIssueType.
*
* @return subTask
*/
public boolean isSubTask() {
return subTask;
}
/**
* Sets the subTask value for this RemoteIssueType.
*
* @param subTask
*/
public void setSubTask(boolean subTask) {
this.subTask = subTask;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteIssueType)) {
return false;
}
RemoteIssueType other = (RemoteIssueType) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
this.subTask == other.isSubTask();
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
_hashCode += (isSubTask() ? 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(RemoteIssueType.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteIssueType"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("subTask");
elemField.setXmlName(new javax.xml.namespace.QName("", "subTask"));
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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,97 @@
/**
* RemoteNamedObject.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteNamedObject extends AbstractNamedRemoteEntity
implements java.io.Serializable {
public RemoteNamedObject() {
}
public RemoteNamedObject(
String id,
String name) {
super(
id,
name);
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteNamedObject)) {
return false;
}
RemoteNamedObject other = (RemoteNamedObject) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj);
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteNamedObject.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteNamedObject"));
}
/**
* 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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,163 @@
/**
* RemotePermission.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemotePermission implements java.io.Serializable {
private String name;
private Long permission;
public RemotePermission() {
}
public RemotePermission(
String name,
Long permission) {
this.name = name;
this.permission = permission;
}
/**
* Gets the name value for this RemotePermission.
*
* @return name
*/
public String getName() {
return name;
}
/**
* Sets the name value for this RemotePermission.
*
* @param name
*/
public void setName(String name) {
this.name = name;
}
/**
* Gets the permission value for this RemotePermission.
*
* @return permission
*/
public Long getPermission() {
return permission;
}
/**
* Sets the permission value for this RemotePermission.
*
* @param permission
*/
public void setPermission(Long permission) {
this.permission = permission;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemotePermission)) {
return false;
}
RemotePermission other = (RemotePermission) 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.permission == null && other.getPermission() == null) ||
(this.permission != null &&
this.permission.equals(other.getPermission())));
__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 (getPermission() != null) {
_hashCode += getPermission().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemotePermission.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemotePermission"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("name");
elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
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("permission");
elemField.setXmlName(new javax.xml.namespace.QName("", "permission"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,98 @@
/**
* RemotePermissionException.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemotePermissionException extends RemoteException
implements java.io.Serializable {
public RemotePermissionException() {
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemotePermissionException)) {
return false;
}
RemotePermissionException other = (RemotePermissionException) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj);
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemotePermissionException.class, true);
static {
typeDesc.setXmlType(
new javax.xml.namespace.QName("http://exception.rpc.jira.atlassian.com", "RemotePermissionException"));
}
/**
* 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(
String mechType,
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(
String mechType,
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,172 @@
/**
* RemotePermissionMapping.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemotePermissionMapping implements java.io.Serializable {
private RemotePermission permission;
private RemoteEntity[] remoteEntities;
public RemotePermissionMapping() {
}
public RemotePermissionMapping(
RemotePermission permission,
RemoteEntity[] remoteEntities) {
this.permission = permission;
this.remoteEntities = remoteEntities;
}
/**
* Gets the permission value for this RemotePermissionMapping.
*
* @return permission
*/
public RemotePermission getPermission() {
return permission;
}
/**
* Sets the permission value for this RemotePermissionMapping.
*
* @param permission
*/
public void setPermission(RemotePermission permission) {
this.permission = permission;
}
/**
* Gets the remoteEntities value for this RemotePermissionMapping.
*
* @return remoteEntities
*/
public RemoteEntity[] getRemoteEntities() {
return remoteEntities;
}
/**
* Sets the remoteEntities value for this RemotePermissionMapping.
*
* @param remoteEntities
*/
public void setRemoteEntities(RemoteEntity[] remoteEntities) {
this.remoteEntities = remoteEntities;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemotePermissionMapping)) {
return false;
}
RemotePermissionMapping other = (RemotePermissionMapping) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.permission == null && other.getPermission() == null) ||
(this.permission != null &&
this.permission.equals(other.getPermission()))) &&
((this.remoteEntities == null && other.getRemoteEntities() == null) ||
(this.remoteEntities != null &&
java.util.Arrays.equals(this.remoteEntities, other.getRemoteEntities())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getPermission() != null) {
_hashCode += getPermission().hashCode();
}
if (getRemoteEntities() != null) {
for (int i = 0;
i < java.lang.reflect.Array.getLength(getRemoteEntities());
i++) {
Object obj = java.lang.reflect.Array.get(getRemoteEntities(), 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(RemotePermissionMapping.class, true);
static {
typeDesc.setXmlType(
new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemotePermissionMapping"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("permission");
elemField.setXmlName(new javax.xml.namespace.QName("", "permission"));
elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemotePermission"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("remoteEntities");
elemField.setXmlName(new javax.xml.namespace.QName("", "remoteEntities"));
elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteEntity"));
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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,147 @@
/**
* RemotePermissionScheme.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemotePermissionScheme extends RemoteScheme
implements java.io.Serializable {
private RemotePermissionMapping[] permissionMappings;
public RemotePermissionScheme() {
}
public RemotePermissionScheme(
String description,
Long id,
String name,
String type,
RemotePermissionMapping[] permissionMappings) {
super(
description,
id,
name,
type);
this.permissionMappings = permissionMappings;
}
/**
* Gets the permissionMappings value for this RemotePermissionScheme.
*
* @return permissionMappings
*/
public RemotePermissionMapping[] getPermissionMappings() {
return permissionMappings;
}
/**
* Sets the permissionMappings value for this RemotePermissionScheme.
*
* @param permissionMappings
*/
public void setPermissionMappings(RemotePermissionMapping[] permissionMappings) {
this.permissionMappings = permissionMappings;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemotePermissionScheme)) {
return false;
}
RemotePermissionScheme other = (RemotePermissionScheme) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((this.permissionMappings == null && other.getPermissionMappings() == null) ||
(this.permissionMappings != null &&
java.util.Arrays.equals(this.permissionMappings, other.getPermissionMappings())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getPermissionMappings() != null) {
for (int i = 0;
i < java.lang.reflect.Array.getLength(getPermissionMappings());
i++) {
Object obj = java.lang.reflect.Array.get(getPermissionMappings(), 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(RemotePermissionScheme.class, true);
static {
typeDesc.setXmlType(
new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemotePermissionScheme"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("permissionMappings");
elemField.setXmlName(new javax.xml.namespace.QName("", "permissionMappings"));
elemField.setXmlType(
new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemotePermissionMapping"));
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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,137 @@
/**
* RemotePriority.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemotePriority extends AbstractRemoteConstant
implements java.io.Serializable {
private String color;
public RemotePriority() {
}
public RemotePriority(
String id,
String name,
String description,
String icon,
String color) {
super(
id,
name,
description,
icon);
this.color = color;
}
/**
* Gets the color value for this RemotePriority.
*
* @return color
*/
public String getColor() {
return color;
}
/**
* Sets the color value for this RemotePriority.
*
* @param color
*/
public void setColor(String color) {
this.color = color;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemotePriority)) {
return false;
}
RemotePriority other = (RemotePriority) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((this.color == null && other.getColor() == null) ||
(this.color != null &&
this.color.equals(other.getColor())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getColor() != null) {
_hashCode += getColor().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemotePriority.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemotePriority"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("color");
elemField.setXmlName(new javax.xml.namespace.QName("", "color"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,386 @@
/**
* RemoteProject.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteProject extends AbstractNamedRemoteEntity
implements java.io.Serializable {
private String description;
private RemoteScheme issueSecurityScheme;
private String key;
private String lead;
private RemoteScheme notificationScheme;
private RemotePermissionScheme permissionScheme;
private String projectUrl;
private String url;
public RemoteProject() {
}
public RemoteProject(
String id,
String name,
String description,
RemoteScheme issueSecurityScheme,
String key,
String lead,
RemoteScheme notificationScheme,
RemotePermissionScheme permissionScheme,
String projectUrl,
String url) {
super(
id,
name);
this.description = description;
this.issueSecurityScheme = issueSecurityScheme;
this.key = key;
this.lead = lead;
this.notificationScheme = notificationScheme;
this.permissionScheme = permissionScheme;
this.projectUrl = projectUrl;
this.url = url;
}
/**
* Gets the description value for this RemoteProject.
*
* @return description
*/
public String getDescription() {
return description;
}
/**
* Sets the description value for this RemoteProject.
*
* @param description
*/
public void setDescription(String description) {
this.description = description;
}
/**
* Gets the issueSecurityScheme value for this RemoteProject.
*
* @return issueSecurityScheme
*/
public RemoteScheme getIssueSecurityScheme() {
return issueSecurityScheme;
}
/**
* Sets the issueSecurityScheme value for this RemoteProject.
*
* @param issueSecurityScheme
*/
public void setIssueSecurityScheme(RemoteScheme issueSecurityScheme) {
this.issueSecurityScheme = issueSecurityScheme;
}
/**
* Gets the key value for this RemoteProject.
*
* @return key
*/
public String getKey() {
return key;
}
/**
* Sets the key value for this RemoteProject.
*
* @param key
*/
public void setKey(String key) {
this.key = key;
}
/**
* Gets the lead value for this RemoteProject.
*
* @return lead
*/
public String getLead() {
return lead;
}
/**
* Sets the lead value for this RemoteProject.
*
* @param lead
*/
public void setLead(String lead) {
this.lead = lead;
}
/**
* Gets the notificationScheme value for this RemoteProject.
*
* @return notificationScheme
*/
public RemoteScheme getNotificationScheme() {
return notificationScheme;
}
/**
* Sets the notificationScheme value for this RemoteProject.
*
* @param notificationScheme
*/
public void setNotificationScheme(RemoteScheme notificationScheme) {
this.notificationScheme = notificationScheme;
}
/**
* Gets the permissionScheme value for this RemoteProject.
*
* @return permissionScheme
*/
public RemotePermissionScheme getPermissionScheme() {
return permissionScheme;
}
/**
* Sets the permissionScheme value for this RemoteProject.
*
* @param permissionScheme
*/
public void setPermissionScheme(RemotePermissionScheme permissionScheme) {
this.permissionScheme = permissionScheme;
}
/**
* Gets the projectUrl value for this RemoteProject.
*
* @return projectUrl
*/
public String getProjectUrl() {
return projectUrl;
}
/**
* Sets the projectUrl value for this RemoteProject.
*
* @param projectUrl
*/
public void setProjectUrl(String projectUrl) {
this.projectUrl = projectUrl;
}
/**
* Gets the url value for this RemoteProject.
*
* @return url
*/
public String getUrl() {
return url;
}
/**
* Sets the url value for this RemoteProject.
*
* @param url
*/
public void setUrl(String url) {
this.url = url;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteProject)) {
return false;
}
RemoteProject other = (RemoteProject) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((this.description == null && other.getDescription() == null) ||
(this.description != null &&
this.description.equals(other.getDescription()))) &&
((this.issueSecurityScheme == null && other.getIssueSecurityScheme() == null) ||
(this.issueSecurityScheme != null &&
this.issueSecurityScheme.equals(other.getIssueSecurityScheme()))) &&
((this.key == null && other.getKey() == null) ||
(this.key != null &&
this.key.equals(other.getKey()))) &&
((this.lead == null && other.getLead() == null) ||
(this.lead != null &&
this.lead.equals(other.getLead()))) &&
((this.notificationScheme == null && other.getNotificationScheme() == null) ||
(this.notificationScheme != null &&
this.notificationScheme.equals(other.getNotificationScheme()))) &&
((this.permissionScheme == null && other.getPermissionScheme() == null) ||
(this.permissionScheme != null &&
this.permissionScheme.equals(other.getPermissionScheme()))) &&
((this.projectUrl == null && other.getProjectUrl() == null) ||
(this.projectUrl != null &&
this.projectUrl.equals(other.getProjectUrl()))) &&
((this.url == null && other.getUrl() == null) ||
(this.url != null &&
this.url.equals(other.getUrl())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getDescription() != null) {
_hashCode += getDescription().hashCode();
}
if (getIssueSecurityScheme() != null) {
_hashCode += getIssueSecurityScheme().hashCode();
}
if (getKey() != null) {
_hashCode += getKey().hashCode();
}
if (getLead() != null) {
_hashCode += getLead().hashCode();
}
if (getNotificationScheme() != null) {
_hashCode += getNotificationScheme().hashCode();
}
if (getPermissionScheme() != null) {
_hashCode += getPermissionScheme().hashCode();
}
if (getProjectUrl() != null) {
_hashCode += getProjectUrl().hashCode();
}
if (getUrl() != null) {
_hashCode += getUrl().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteProject.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteProject"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("description");
elemField.setXmlName(new javax.xml.namespace.QName("", "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("issueSecurityScheme");
elemField.setXmlName(new javax.xml.namespace.QName("", "issueSecurityScheme"));
elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteScheme"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("key");
elemField.setXmlName(new javax.xml.namespace.QName("", "key"));
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("lead");
elemField.setXmlName(new javax.xml.namespace.QName("", "lead"));
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("notificationScheme");
elemField.setXmlName(new javax.xml.namespace.QName("", "notificationScheme"));
elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteScheme"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("permissionScheme");
elemField.setXmlName(new javax.xml.namespace.QName("", "permissionScheme"));
elemField.setXmlType(
new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemotePermissionScheme"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("projectUrl");
elemField.setXmlName(new javax.xml.namespace.QName("", "projectUrl"));
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("url");
elemField.setXmlName(new javax.xml.namespace.QName("", "url"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,199 @@
/**
* RemoteProjectRole.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteProjectRole implements java.io.Serializable {
private String description;
private Long id;
private String name;
public RemoteProjectRole() {
}
public RemoteProjectRole(
String description,
Long id,
String name) {
this.description = description;
this.id = id;
this.name = name;
}
/**
* Gets the description value for this RemoteProjectRole.
*
* @return description
*/
public String getDescription() {
return description;
}
/**
* Sets the description value for this RemoteProjectRole.
*
* @param description
*/
public void setDescription(String description) {
this.description = description;
}
/**
* Gets the id value for this RemoteProjectRole.
*
* @return id
*/
public Long getId() {
return id;
}
/**
* Sets the id value for this RemoteProjectRole.
*
* @param id
*/
public void setId(Long id) {
this.id = id;
}
/**
* Gets the name value for this RemoteProjectRole.
*
* @return name
*/
public String getName() {
return name;
}
/**
* Sets the name value for this RemoteProjectRole.
*
* @param name
*/
public void setName(String name) {
this.name = name;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteProjectRole)) {
return false;
}
RemoteProjectRole other = (RemoteProjectRole) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.description == null && other.getDescription() == null) ||
(this.description != null &&
this.description.equals(other.getDescription()))) &&
((this.id == null && other.getId() == null) ||
(this.id != null &&
this.id.equals(other.getId()))) &&
((this.name == null && other.getName() == null) ||
(this.name != null &&
this.name.equals(other.getName())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getDescription() != null) {
_hashCode += getDescription().hashCode();
}
if (getId() != null) {
_hashCode += getId().hashCode();
}
if (getName() != null) {
_hashCode += getName().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteProjectRole.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteProjectRole"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("description");
elemField.setXmlName(new javax.xml.namespace.QName("", "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("id");
elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("name");
elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,136 @@
/**
* RemoteProjectRoleActors.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteProjectRoleActors extends RemoteRoleActors
implements java.io.Serializable {
private RemoteProject project;
public RemoteProjectRoleActors() {
}
public RemoteProjectRoleActors(
RemoteProjectRole projectRole,
RemoteRoleActor[] roleActors,
RemoteUser[] users,
RemoteProject project) {
super(
projectRole,
roleActors,
users);
this.project = project;
}
/**
* Gets the project value for this RemoteProjectRoleActors.
*
* @return project
*/
public RemoteProject getProject() {
return project;
}
/**
* Sets the project value for this RemoteProjectRoleActors.
*
* @param project
*/
public void setProject(RemoteProject project) {
this.project = project;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteProjectRoleActors)) {
return false;
}
RemoteProjectRoleActors other = (RemoteProjectRoleActors) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((this.project == null && other.getProject() == null) ||
(this.project != null &&
this.project.equals(other.getProject())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getProject() != null) {
_hashCode += getProject().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteProjectRoleActors.class, true);
static {
typeDesc.setXmlType(
new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteProjectRoleActors"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("project");
elemField.setXmlName(new javax.xml.namespace.QName("", "project"));
elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteProject"));
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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,101 @@
/**
* RemoteResolution.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteResolution extends AbstractRemoteConstant
implements java.io.Serializable {
public RemoteResolution() {
}
public RemoteResolution(
String id,
String name,
String description,
String icon) {
super(
id,
name,
description,
icon);
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteResolution)) {
return false;
}
RemoteResolution other = (RemoteResolution) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj);
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteResolution.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteResolution"));
}
/**
* 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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,279 @@
/**
* RemoteRoleActor.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteRoleActor implements java.io.Serializable {
private String descriptor;
private String parameter;
private RemoteProjectRole projectRole;
private String type;
private RemoteUser[] users;
public RemoteRoleActor() {
}
public RemoteRoleActor(
String descriptor,
String parameter,
RemoteProjectRole projectRole,
String type,
RemoteUser[] users) {
this.descriptor = descriptor;
this.parameter = parameter;
this.projectRole = projectRole;
this.type = type;
this.users = users;
}
/**
* Gets the descriptor value for this RemoteRoleActor.
*
* @return descriptor
*/
public String getDescriptor() {
return descriptor;
}
/**
* Sets the descriptor value for this RemoteRoleActor.
*
* @param descriptor
*/
public void setDescriptor(String descriptor) {
this.descriptor = descriptor;
}
/**
* Gets the parameter value for this RemoteRoleActor.
*
* @return parameter
*/
public String getParameter() {
return parameter;
}
/**
* Sets the parameter value for this RemoteRoleActor.
*
* @param parameter
*/
public void setParameter(String parameter) {
this.parameter = parameter;
}
/**
* Gets the projectRole value for this RemoteRoleActor.
*
* @return projectRole
*/
public RemoteProjectRole getProjectRole() {
return projectRole;
}
/**
* Sets the projectRole value for this RemoteRoleActor.
*
* @param projectRole
*/
public void setProjectRole(RemoteProjectRole projectRole) {
this.projectRole = projectRole;
}
/**
* Gets the type value for this RemoteRoleActor.
*
* @return type
*/
public String getType() {
return type;
}
/**
* Sets the type value for this RemoteRoleActor.
*
* @param type
*/
public void setType(String type) {
this.type = type;
}
/**
* Gets the users value for this RemoteRoleActor.
*
* @return users
*/
public RemoteUser[] getUsers() {
return users;
}
/**
* Sets the users value for this RemoteRoleActor.
*
* @param users
*/
public void setUsers(RemoteUser[] users) {
this.users = users;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteRoleActor)) {
return false;
}
RemoteRoleActor other = (RemoteRoleActor) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.descriptor == null && other.getDescriptor() == null) ||
(this.descriptor != null &&
this.descriptor.equals(other.getDescriptor()))) &&
((this.parameter == null && other.getParameter() == null) ||
(this.parameter != null &&
this.parameter.equals(other.getParameter()))) &&
((this.projectRole == null && other.getProjectRole() == null) ||
(this.projectRole != null &&
this.projectRole.equals(other.getProjectRole()))) &&
((this.type == null && other.getType() == null) ||
(this.type != null &&
this.type.equals(other.getType()))) &&
((this.users == null && other.getUsers() == null) ||
(this.users != null &&
java.util.Arrays.equals(this.users, other.getUsers())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getDescriptor() != null) {
_hashCode += getDescriptor().hashCode();
}
if (getParameter() != null) {
_hashCode += getParameter().hashCode();
}
if (getProjectRole() != null) {
_hashCode += getProjectRole().hashCode();
}
if (getType() != null) {
_hashCode += getType().hashCode();
}
if (getUsers() != null) {
for (int i = 0;
i < java.lang.reflect.Array.getLength(getUsers());
i++) {
Object obj = java.lang.reflect.Array.get(getUsers(), 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(RemoteRoleActor.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteRoleActor"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("descriptor");
elemField.setXmlName(new javax.xml.namespace.QName("", "descriptor"));
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("parameter");
elemField.setXmlName(new javax.xml.namespace.QName("", "parameter"));
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("projectRole");
elemField.setXmlName(new javax.xml.namespace.QName("", "projectRole"));
elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteProjectRole"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("type");
elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
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("users");
elemField.setXmlName(new javax.xml.namespace.QName("", "users"));
elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteUser"));
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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,215 @@
/**
* RemoteRoleActors.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteRoleActors implements java.io.Serializable {
private RemoteProjectRole projectRole;
private RemoteRoleActor[] roleActors;
private RemoteUser[] users;
public RemoteRoleActors() {
}
public RemoteRoleActors(
RemoteProjectRole projectRole,
RemoteRoleActor[] roleActors,
RemoteUser[] users) {
this.projectRole = projectRole;
this.roleActors = roleActors;
this.users = users;
}
/**
* Gets the projectRole value for this RemoteRoleActors.
*
* @return projectRole
*/
public RemoteProjectRole getProjectRole() {
return projectRole;
}
/**
* Sets the projectRole value for this RemoteRoleActors.
*
* @param projectRole
*/
public void setProjectRole(RemoteProjectRole projectRole) {
this.projectRole = projectRole;
}
/**
* Gets the roleActors value for this RemoteRoleActors.
*
* @return roleActors
*/
public RemoteRoleActor[] getRoleActors() {
return roleActors;
}
/**
* Sets the roleActors value for this RemoteRoleActors.
*
* @param roleActors
*/
public void setRoleActors(RemoteRoleActor[] roleActors) {
this.roleActors = roleActors;
}
/**
* Gets the users value for this RemoteRoleActors.
*
* @return users
*/
public RemoteUser[] getUsers() {
return users;
}
/**
* Sets the users value for this RemoteRoleActors.
*
* @param users
*/
public void setUsers(RemoteUser[] users) {
this.users = users;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteRoleActors)) {
return false;
}
RemoteRoleActors other = (RemoteRoleActors) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.projectRole == null && other.getProjectRole() == null) ||
(this.projectRole != null &&
this.projectRole.equals(other.getProjectRole()))) &&
((this.roleActors == null && other.getRoleActors() == null) ||
(this.roleActors != null &&
java.util.Arrays.equals(this.roleActors, other.getRoleActors()))) &&
((this.users == null && other.getUsers() == null) ||
(this.users != null &&
java.util.Arrays.equals(this.users, other.getUsers())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getProjectRole() != null) {
_hashCode += getProjectRole().hashCode();
}
if (getRoleActors() != null) {
for (int i = 0;
i < java.lang.reflect.Array.getLength(getRoleActors());
i++) {
Object obj = java.lang.reflect.Array.get(getRoleActors(), i);
if (obj != null &&
!obj.getClass().isArray()) {
_hashCode += obj.hashCode();
}
}
}
if (getUsers() != null) {
for (int i = 0;
i < java.lang.reflect.Array.getLength(getUsers());
i++) {
Object obj = java.lang.reflect.Array.get(getUsers(), 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(RemoteRoleActors.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteRoleActors"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("projectRole");
elemField.setXmlName(new javax.xml.namespace.QName("", "projectRole"));
elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteProjectRole"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("roleActors");
elemField.setXmlName(new javax.xml.namespace.QName("", "roleActors"));
elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteRoleActor"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("users");
elemField.setXmlName(new javax.xml.namespace.QName("", "users"));
elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteUser"));
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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,235 @@
/**
* RemoteScheme.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteScheme implements java.io.Serializable {
private String description;
private Long id;
private String name;
private String type;
public RemoteScheme() {
}
public RemoteScheme(
String description,
Long id,
String name,
String type) {
this.description = description;
this.id = id;
this.name = name;
this.type = type;
}
/**
* Gets the description value for this RemoteScheme.
*
* @return description
*/
public String getDescription() {
return description;
}
/**
* Sets the description value for this RemoteScheme.
*
* @param description
*/
public void setDescription(String description) {
this.description = description;
}
/**
* Gets the id value for this RemoteScheme.
*
* @return id
*/
public Long getId() {
return id;
}
/**
* Sets the id value for this RemoteScheme.
*
* @param id
*/
public void setId(Long id) {
this.id = id;
}
/**
* Gets the name value for this RemoteScheme.
*
* @return name
*/
public String getName() {
return name;
}
/**
* Sets the name value for this RemoteScheme.
*
* @param name
*/
public void setName(String name) {
this.name = name;
}
/**
* Gets the type value for this RemoteScheme.
*
* @return type
*/
public String getType() {
return type;
}
/**
* Sets the type value for this RemoteScheme.
*
* @param type
*/
public void setType(String type) {
this.type = type;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteScheme)) {
return false;
}
RemoteScheme other = (RemoteScheme) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.description == null && other.getDescription() == null) ||
(this.description != null &&
this.description.equals(other.getDescription()))) &&
((this.id == null && other.getId() == null) ||
(this.id != null &&
this.id.equals(other.getId()))) &&
((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())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getDescription() != null) {
_hashCode += getDescription().hashCode();
}
if (getId() != null) {
_hashCode += getId().hashCode();
}
if (getName() != null) {
_hashCode += getName().hashCode();
}
if (getType() != null) {
_hashCode += getType().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteScheme.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteScheme"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("description");
elemField.setXmlName(new javax.xml.namespace.QName("", "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("id");
elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("name");
elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
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("type");
elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,133 @@
/**
* RemoteSecurityLevel.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteSecurityLevel extends AbstractNamedRemoteEntity
implements java.io.Serializable {
private String description;
public RemoteSecurityLevel() {
}
public RemoteSecurityLevel(
String id,
String name,
String description) {
super(
id,
name);
this.description = description;
}
/**
* Gets the description value for this RemoteSecurityLevel.
*
* @return description
*/
public String getDescription() {
return description;
}
/**
* Sets the description value for this RemoteSecurityLevel.
*
* @param description
*/
public void setDescription(String description) {
this.description = description;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteSecurityLevel)) {
return false;
}
RemoteSecurityLevel other = (RemoteSecurityLevel) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((this.description == null && other.getDescription() == null) ||
(this.description != null &&
this.description.equals(other.getDescription())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getDescription() != null) {
_hashCode += getDescription().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteSecurityLevel.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteSecurityLevel"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("description");
elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,307 @@
/**
* RemoteServerInfo.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteServerInfo implements java.io.Serializable {
private String baseUrl;
private java.util.Calendar buildDate;
private String buildNumber;
private String edition;
private RemoteTimeInfo serverTime;
private String version;
public RemoteServerInfo() {
}
public RemoteServerInfo(
String baseUrl,
java.util.Calendar buildDate,
String buildNumber,
String edition,
RemoteTimeInfo serverTime,
String version) {
this.baseUrl = baseUrl;
this.buildDate = buildDate;
this.buildNumber = buildNumber;
this.edition = edition;
this.serverTime = serverTime;
this.version = version;
}
/**
* Gets the baseUrl value for this RemoteServerInfo.
*
* @return baseUrl
*/
public String getBaseUrl() {
return baseUrl;
}
/**
* Sets the baseUrl value for this RemoteServerInfo.
*
* @param baseUrl
*/
public void setBaseUrl(String baseUrl) {
this.baseUrl = baseUrl;
}
/**
* Gets the buildDate value for this RemoteServerInfo.
*
* @return buildDate
*/
public java.util.Calendar getBuildDate() {
return buildDate;
}
/**
* Sets the buildDate value for this RemoteServerInfo.
*
* @param buildDate
*/
public void setBuildDate(java.util.Calendar buildDate) {
this.buildDate = buildDate;
}
/**
* Gets the buildNumber value for this RemoteServerInfo.
*
* @return buildNumber
*/
public String getBuildNumber() {
return buildNumber;
}
/**
* Sets the buildNumber value for this RemoteServerInfo.
*
* @param buildNumber
*/
public void setBuildNumber(String buildNumber) {
this.buildNumber = buildNumber;
}
/**
* Gets the edition value for this RemoteServerInfo.
*
* @return edition
*/
public String getEdition() {
return edition;
}
/**
* Sets the edition value for this RemoteServerInfo.
*
* @param edition
*/
public void setEdition(String edition) {
this.edition = edition;
}
/**
* Gets the serverTime value for this RemoteServerInfo.
*
* @return serverTime
*/
public RemoteTimeInfo getServerTime() {
return serverTime;
}
/**
* Sets the serverTime value for this RemoteServerInfo.
*
* @param serverTime
*/
public void setServerTime(RemoteTimeInfo serverTime) {
this.serverTime = serverTime;
}
/**
* Gets the version value for this RemoteServerInfo.
*
* @return version
*/
public String getVersion() {
return version;
}
/**
* Sets the version value for this RemoteServerInfo.
*
* @param version
*/
public void setVersion(String version) {
this.version = version;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteServerInfo)) {
return false;
}
RemoteServerInfo other = (RemoteServerInfo) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.baseUrl == null && other.getBaseUrl() == null) ||
(this.baseUrl != null &&
this.baseUrl.equals(other.getBaseUrl()))) &&
((this.buildDate == null && other.getBuildDate() == null) ||
(this.buildDate != null &&
this.buildDate.equals(other.getBuildDate()))) &&
((this.buildNumber == null && other.getBuildNumber() == null) ||
(this.buildNumber != null &&
this.buildNumber.equals(other.getBuildNumber()))) &&
((this.edition == null && other.getEdition() == null) ||
(this.edition != null &&
this.edition.equals(other.getEdition()))) &&
((this.serverTime == null && other.getServerTime() == null) ||
(this.serverTime != null &&
this.serverTime.equals(other.getServerTime()))) &&
((this.version == null && other.getVersion() == null) ||
(this.version != null &&
this.version.equals(other.getVersion())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getBaseUrl() != null) {
_hashCode += getBaseUrl().hashCode();
}
if (getBuildDate() != null) {
_hashCode += getBuildDate().hashCode();
}
if (getBuildNumber() != null) {
_hashCode += getBuildNumber().hashCode();
}
if (getEdition() != null) {
_hashCode += getEdition().hashCode();
}
if (getServerTime() != null) {
_hashCode += getServerTime().hashCode();
}
if (getVersion() != null) {
_hashCode += getVersion().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteServerInfo.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteServerInfo"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("baseUrl");
elemField.setXmlName(new javax.xml.namespace.QName("", "baseUrl"));
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("buildDate");
elemField.setXmlName(new javax.xml.namespace.QName("", "buildDate"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("buildNumber");
elemField.setXmlName(new javax.xml.namespace.QName("", "buildNumber"));
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("edition");
elemField.setXmlName(new javax.xml.namespace.QName("", "edition"));
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("serverTime");
elemField.setXmlName(new javax.xml.namespace.QName("", "serverTime"));
elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteTimeInfo"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("version");
elemField.setXmlName(new javax.xml.namespace.QName("", "version"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,101 @@
/**
* RemoteStatus.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteStatus extends AbstractRemoteConstant
implements java.io.Serializable {
public RemoteStatus() {
}
public RemoteStatus(
String id,
String name,
String description,
String icon) {
super(
id,
name,
description,
icon);
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteStatus)) {
return false;
}
RemoteStatus other = (RemoteStatus) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj);
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteStatus.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteStatus"));
}
/**
* 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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,163 @@
/**
* RemoteTimeInfo.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteTimeInfo implements java.io.Serializable {
private String serverTime;
private String timeZoneId;
public RemoteTimeInfo() {
}
public RemoteTimeInfo(
String serverTime,
String timeZoneId) {
this.serverTime = serverTime;
this.timeZoneId = timeZoneId;
}
/**
* Gets the serverTime value for this RemoteTimeInfo.
*
* @return serverTime
*/
public String getServerTime() {
return serverTime;
}
/**
* Sets the serverTime value for this RemoteTimeInfo.
*
* @param serverTime
*/
public void setServerTime(String serverTime) {
this.serverTime = serverTime;
}
/**
* Gets the timeZoneId value for this RemoteTimeInfo.
*
* @return timeZoneId
*/
public String getTimeZoneId() {
return timeZoneId;
}
/**
* Sets the timeZoneId value for this RemoteTimeInfo.
*
* @param timeZoneId
*/
public void setTimeZoneId(String timeZoneId) {
this.timeZoneId = timeZoneId;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteTimeInfo)) {
return false;
}
RemoteTimeInfo other = (RemoteTimeInfo) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.serverTime == null && other.getServerTime() == null) ||
(this.serverTime != null &&
this.serverTime.equals(other.getServerTime()))) &&
((this.timeZoneId == null && other.getTimeZoneId() == null) ||
(this.timeZoneId != null &&
this.timeZoneId.equals(other.getTimeZoneId())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getServerTime() != null) {
_hashCode += getServerTime().hashCode();
}
if (getTimeZoneId() != null) {
_hashCode += getTimeZoneId().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteTimeInfo.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteTimeInfo"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("serverTime");
elemField.setXmlName(new javax.xml.namespace.QName("", "serverTime"));
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("timeZoneId");
elemField.setXmlName(new javax.xml.namespace.QName("", "timeZoneId"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,199 @@
/**
* RemoteUser.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteUser extends RemoteEntity implements java.io.Serializable {
private String email;
private String fullname;
private String name;
public RemoteUser() {
}
public RemoteUser(
String email,
String fullname,
String name) {
this.email = email;
this.fullname = fullname;
this.name = name;
}
/**
* Gets the email value for this RemoteUser.
*
* @return email
*/
public String getEmail() {
return email;
}
/**
* Sets the email value for this RemoteUser.
*
* @param email
*/
public void setEmail(String email) {
this.email = email;
}
/**
* Gets the fullname value for this RemoteUser.
*
* @return fullname
*/
public String getFullname() {
return fullname;
}
/**
* Sets the fullname value for this RemoteUser.
*
* @param fullname
*/
public void setFullname(String fullname) {
this.fullname = fullname;
}
/**
* Gets the name value for this RemoteUser.
*
* @return name
*/
public String getName() {
return name;
}
/**
* Sets the name value for this RemoteUser.
*
* @param name
*/
public void setName(String name) {
this.name = name;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteUser)) {
return false;
}
RemoteUser other = (RemoteUser) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((this.email == null && other.getEmail() == null) ||
(this.email != null &&
this.email.equals(other.getEmail()))) &&
((this.fullname == null && other.getFullname() == null) ||
(this.fullname != null &&
this.fullname.equals(other.getFullname()))) &&
((this.name == null && other.getName() == null) ||
(this.name != null &&
this.name.equals(other.getName())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getEmail() != null) {
_hashCode += getEmail().hashCode();
}
if (getFullname() != null) {
_hashCode += getFullname().hashCode();
}
if (getName() != null) {
_hashCode += getName().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteUser.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteUser"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("email");
elemField.setXmlName(new javax.xml.namespace.QName("", "email"));
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("fullname");
elemField.setXmlName(new javax.xml.namespace.QName("", "fullname"));
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("name");
elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,98 @@
/**
* RemoteValidationException.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteValidationException extends RemoteException
implements java.io.Serializable {
public RemoteValidationException() {
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteValidationException)) {
return false;
}
RemoteValidationException other = (RemoteValidationException) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj);
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteValidationException.class, true);
static {
typeDesc.setXmlType(
new javax.xml.namespace.QName("http://exception.rpc.jira.atlassian.com", "RemoteValidationException"));
}
/**
* 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(
String mechType,
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(
String mechType,
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,233 @@
/**
* RemoteVersion.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteVersion extends AbstractNamedRemoteEntity
implements java.io.Serializable {
private boolean archived;
private java.util.Calendar releaseDate;
private boolean released;
private Long sequence;
public RemoteVersion() {
}
public RemoteVersion(
String id,
String name,
boolean archived,
java.util.Calendar releaseDate,
boolean released,
Long sequence) {
super(
id,
name);
this.archived = archived;
this.releaseDate = releaseDate;
this.released = released;
this.sequence = sequence;
}
/**
* Gets the archived value for this RemoteVersion.
*
* @return archived
*/
public boolean isArchived() {
return archived;
}
/**
* Sets the archived value for this RemoteVersion.
*
* @param archived
*/
public void setArchived(boolean archived) {
this.archived = archived;
}
/**
* Gets the releaseDate value for this RemoteVersion.
*
* @return releaseDate
*/
public java.util.Calendar getReleaseDate() {
return releaseDate;
}
/**
* Sets the releaseDate value for this RemoteVersion.
*
* @param releaseDate
*/
public void setReleaseDate(java.util.Calendar releaseDate) {
this.releaseDate = releaseDate;
}
/**
* Gets the released value for this RemoteVersion.
*
* @return released
*/
public boolean isReleased() {
return released;
}
/**
* Sets the released value for this RemoteVersion.
*
* @param released
*/
public void setReleased(boolean released) {
this.released = released;
}
/**
* Gets the sequence value for this RemoteVersion.
*
* @return sequence
*/
public Long getSequence() {
return sequence;
}
/**
* Sets the sequence value for this RemoteVersion.
*
* @param sequence
*/
public void setSequence(Long sequence) {
this.sequence = sequence;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteVersion)) {
return false;
}
RemoteVersion other = (RemoteVersion) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
this.archived == other.isArchived() &&
((this.releaseDate == null && other.getReleaseDate() == null) ||
(this.releaseDate != null &&
this.releaseDate.equals(other.getReleaseDate()))) &&
this.released == other.isReleased() &&
((this.sequence == null && other.getSequence() == null) ||
(this.sequence != null &&
this.sequence.equals(other.getSequence())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
_hashCode += (isArchived() ? Boolean.TRUE : Boolean.FALSE).hashCode();
if (getReleaseDate() != null) {
_hashCode += getReleaseDate().hashCode();
}
_hashCode += (isReleased() ? Boolean.TRUE : Boolean.FALSE).hashCode();
if (getSequence() != null) {
_hashCode += getSequence().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteVersion.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteVersion"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("archived");
elemField.setXmlName(new javax.xml.namespace.QName("", "archived"));
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("releaseDate");
elemField.setXmlName(new javax.xml.namespace.QName("", "releaseDate"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("released");
elemField.setXmlName(new javax.xml.namespace.QName("", "released"));
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("sequence");
elemField.setXmlName(new javax.xml.namespace.QName("", "sequence"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,483 @@
/**
* RemoteWorklog.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.connector.commons.jira.soap.axis;
public class RemoteWorklog implements java.io.Serializable {
private String author;
private String comment;
private java.util.Calendar created;
private String groupLevel;
private String id;
private String roleLevelId;
private java.util.Calendar startDate;
private String timeSpent;
private long timeSpentInSeconds;
private String updateAuthor;
private java.util.Calendar updated;
public RemoteWorklog() {
}
public RemoteWorklog(
String author,
String comment,
java.util.Calendar created,
String groupLevel,
String id,
String roleLevelId,
java.util.Calendar startDate,
String timeSpent,
long timeSpentInSeconds,
String updateAuthor,
java.util.Calendar updated) {
this.author = author;
this.comment = comment;
this.created = created;
this.groupLevel = groupLevel;
this.id = id;
this.roleLevelId = roleLevelId;
this.startDate = startDate;
this.timeSpent = timeSpent;
this.timeSpentInSeconds = timeSpentInSeconds;
this.updateAuthor = updateAuthor;
this.updated = updated;
}
/**
* Gets the author value for this RemoteWorklog.
*
* @return author
*/
public String getAuthor() {
return author;
}
/**
* Sets the author value for this RemoteWorklog.
*
* @param author
*/
public void setAuthor(String author) {
this.author = author;
}
/**
* Gets the comment value for this RemoteWorklog.
*
* @return comment
*/
public String getComment() {
return comment;
}
/**
* Sets the comment value for this RemoteWorklog.
*
* @param comment
*/
public void setComment(String comment) {
this.comment = comment;
}
/**
* Gets the created value for this RemoteWorklog.
*
* @return created
*/
public java.util.Calendar getCreated() {
return created;
}
/**
* Sets the created value for this RemoteWorklog.
*
* @param created
*/
public void setCreated(java.util.Calendar created) {
this.created = created;
}
/**
* Gets the groupLevel value for this RemoteWorklog.
*
* @return groupLevel
*/
public String getGroupLevel() {
return groupLevel;
}
/**
* Sets the groupLevel value for this RemoteWorklog.
*
* @param groupLevel
*/
public void setGroupLevel(String groupLevel) {
this.groupLevel = groupLevel;
}
/**
* Gets the id value for this RemoteWorklog.
*
* @return id
*/
public String getId() {
return id;
}
/**
* Sets the id value for this RemoteWorklog.
*
* @param id
*/
public void setId(String id) {
this.id = id;
}
/**
* Gets the roleLevelId value for this RemoteWorklog.
*
* @return roleLevelId
*/
public String getRoleLevelId() {
return roleLevelId;
}
/**
* Sets the roleLevelId value for this RemoteWorklog.
*
* @param roleLevelId
*/
public void setRoleLevelId(String roleLevelId) {
this.roleLevelId = roleLevelId;
}
/**
* Gets the startDate value for this RemoteWorklog.
*
* @return startDate
*/
public java.util.Calendar getStartDate() {
return startDate;
}
/**
* Sets the startDate value for this RemoteWorklog.
*
* @param startDate
*/
public void setStartDate(java.util.Calendar startDate) {
this.startDate = startDate;
}
/**
* Gets the timeSpent value for this RemoteWorklog.
*
* @return timeSpent
*/
public String getTimeSpent() {
return timeSpent;
}
/**
* Sets the timeSpent value for this RemoteWorklog.
*
* @param timeSpent
*/
public void setTimeSpent(String timeSpent) {
this.timeSpent = timeSpent;
}
/**
* Gets the timeSpentInSeconds value for this RemoteWorklog.
*
* @return timeSpentInSeconds
*/
public long getTimeSpentInSeconds() {
return timeSpentInSeconds;
}
/**
* Sets the timeSpentInSeconds value for this RemoteWorklog.
*
* @param timeSpentInSeconds
*/
public void setTimeSpentInSeconds(long timeSpentInSeconds) {
this.timeSpentInSeconds = timeSpentInSeconds;
}
/**
* Gets the updateAuthor value for this RemoteWorklog.
*
* @return updateAuthor
*/
public String getUpdateAuthor() {
return updateAuthor;
}
/**
* Sets the updateAuthor value for this RemoteWorklog.
*
* @param updateAuthor
*/
public void setUpdateAuthor(String updateAuthor) {
this.updateAuthor = updateAuthor;
}
/**
* Gets the updated value for this RemoteWorklog.
*
* @return updated
*/
public java.util.Calendar getUpdated() {
return updated;
}
/**
* Sets the updated value for this RemoteWorklog.
*
* @param updated
*/
public void setUpdated(java.util.Calendar updated) {
this.updated = updated;
}
private Object __equalsCalc = null;
public synchronized boolean equals(Object obj) {
if (!(obj instanceof RemoteWorklog)) {
return false;
}
RemoteWorklog other = (RemoteWorklog) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.author == null && other.getAuthor() == null) ||
(this.author != null &&
this.author.equals(other.getAuthor()))) &&
((this.comment == null && other.getComment() == null) ||
(this.comment != null &&
this.comment.equals(other.getComment()))) &&
((this.created == null && other.getCreated() == null) ||
(this.created != null &&
this.created.equals(other.getCreated()))) &&
((this.groupLevel == null && other.getGroupLevel() == null) ||
(this.groupLevel != null &&
this.groupLevel.equals(other.getGroupLevel()))) &&
((this.id == null && other.getId() == null) ||
(this.id != null &&
this.id.equals(other.getId()))) &&
((this.roleLevelId == null && other.getRoleLevelId() == null) ||
(this.roleLevelId != null &&
this.roleLevelId.equals(other.getRoleLevelId()))) &&
((this.startDate == null && other.getStartDate() == null) ||
(this.startDate != null &&
this.startDate.equals(other.getStartDate()))) &&
((this.timeSpent == null && other.getTimeSpent() == null) ||
(this.timeSpent != null &&
this.timeSpent.equals(other.getTimeSpent()))) &&
this.timeSpentInSeconds == other.getTimeSpentInSeconds() &&
((this.updateAuthor == null && other.getUpdateAuthor() == null) ||
(this.updateAuthor != null &&
this.updateAuthor.equals(other.getUpdateAuthor()))) &&
((this.updated == null && other.getUpdated() == null) ||
(this.updated != null &&
this.updated.equals(other.getUpdated())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getAuthor() != null) {
_hashCode += getAuthor().hashCode();
}
if (getComment() != null) {
_hashCode += getComment().hashCode();
}
if (getCreated() != null) {
_hashCode += getCreated().hashCode();
}
if (getGroupLevel() != null) {
_hashCode += getGroupLevel().hashCode();
}
if (getId() != null) {
_hashCode += getId().hashCode();
}
if (getRoleLevelId() != null) {
_hashCode += getRoleLevelId().hashCode();
}
if (getStartDate() != null) {
_hashCode += getStartDate().hashCode();
}
if (getTimeSpent() != null) {
_hashCode += getTimeSpent().hashCode();
}
_hashCode += new Long(getTimeSpentInSeconds()).hashCode();
if (getUpdateAuthor() != null) {
_hashCode += getUpdateAuthor().hashCode();
}
if (getUpdated() != null) {
_hashCode += getUpdated().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RemoteWorklog.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteWorklog"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("author");
elemField.setXmlName(new javax.xml.namespace.QName("", "author"));
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("comment");
elemField.setXmlName(new javax.xml.namespace.QName("", "comment"));
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("created");
elemField.setXmlName(new javax.xml.namespace.QName("", "created"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("groupLevel");
elemField.setXmlName(new javax.xml.namespace.QName("", "groupLevel"));
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("id");
elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
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("roleLevelId");
elemField.setXmlName(new javax.xml.namespace.QName("", "roleLevelId"));
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("startDate");
elemField.setXmlName(new javax.xml.namespace.QName("", "startDate"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("timeSpent");
elemField.setXmlName(new javax.xml.namespace.QName("", "timeSpent"));
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("timeSpentInSeconds");
elemField.setXmlName(new javax.xml.namespace.QName("", "timeSpentInSeconds"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("updateAuthor");
elemField.setXmlName(new javax.xml.namespace.QName("", "updateAuthor"));
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("updated");
elemField.setXmlName(new javax.xml.namespace.QName("", "updated"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
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(
String mechType,
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(
String mechType,
Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
@@ -0,0 +1,83 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.idea.jira;
import javax.swing.*;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
public final class CachedIconLoader {
private static Map<String, Icon> icons = new HashMap<String, Icon>();
private static Map<String, Icon> disabledIcons = new HashMap<String, Icon>();
private CachedIconLoader() {
}
public static Icon getDisabledIcon(String urlString) {
return disabledIcons.get(urlString);
}
private static void addDisabledIcon(String urlString, Icon icon) {
disabledIcons.put(urlString, icon);
}
private static Icon generateDisabledIcon(Icon icon) {
return new ImageIcon(GrayFilter.createDisabledImage(((ImageIcon) icon).getImage()));
}
private static void maybeGenerateDisabledIcon(String urlString, Icon icon) {
if (disabledIcons.containsKey(urlString) || icon == null) {
return;
}
addDisabledIcon(urlString, generateDisabledIcon(icon));
}
public static Icon getIcon(URL url) {
if (url != null) {
String key = url.toString();
if (!icons.containsKey(key)) {
Icon i = new ImageIcon(url);
icons.put(key, i);
maybeGenerateDisabledIcon(key, i);
}
return icons.get(key);
} else {
return null;
}
}
public static Icon getIcon(String urlString) {
if (urlString != null) {
if (!icons.containsKey(urlString)) {
try {
URL url = new URL(urlString);
Icon i = new ImageIcon(url);
icons.put(urlString, i);
maybeGenerateDisabledIcon(urlString, i);
} catch (MalformedURLException e1) {
return null;
}
}
return icons.get(urlString);
} else {
return null;
}
}
}
@@ -0,0 +1,73 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
public abstract class AbstractJIRAConstantBean implements JIRAConstant {
protected String name;
protected long id;
protected URL iconUrl = null;
public AbstractJIRAConstantBean() {
}
protected AbstractJIRAConstantBean(long id, String name, URL iconUrl) {
this.id = id;
this.name = name;
this.iconUrl = iconUrl;
}
public AbstractJIRAConstantBean(Map<String, String> map) {
name = map.get("name");
id = Long.valueOf(map.get("id"));
if (map.containsKey("icon")) {
try {
iconUrl = new URL(map.get("icon"));
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
}
public HashMap<String, String> getMap() {
HashMap<String, String> map = new HashMap<String, String>();
map.put("name", getName());
map.put("id", Long.toString(id));
if (iconUrl != null) {
map.put("icon", iconUrl.toString());
}
map.put("filterTypeClass", this.getClass().getName());
return map;
}
public long getId() {
return id;
}
public String getName() {
return name;
}
public URL getIconUrl() {
return iconUrl;
}
}
@@ -0,0 +1,20 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
public interface JIRAAction extends JIRAConstant {
}
@@ -0,0 +1,40 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
public class JIRAActionBean extends AbstractJIRAConstantBean implements JIRAAction {
public JIRAActionBean(long id, String name) {
super(id, name, null);
}
public JIRAActionBean(JIRAActionBean other) {
this(other.id, other.name);
}
public String getQueryStringFragment() {
return "action=" + id;
}
public JIRAActionBean getClone() {
return new JIRAActionBean(this);
}
@Override
public String toString() {
return name;
}
}
@@ -0,0 +1,20 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
public interface JIRAActionField extends JIRAConstant {
}
@@ -0,0 +1,40 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
public class JIRAActionFieldBean extends AbstractJIRAConstantBean implements JIRAActionField {
private String fieldId;
public JIRAActionFieldBean(String fieldId, String name) {
super(fieldId.hashCode(), name, null);
this.fieldId = fieldId;
}
public JIRAActionFieldBean(JIRAActionFieldBean other) {
this(other.fieldId, other.name);
}
public String getQueryStringFragment() {
// todo: I am almost absolutely sure this is wrong. Once we get
// to actually handling action fields, this will have to be fixed
return fieldId + "=";
}
public JIRAActionFieldBean getClone() {
return new JIRAActionFieldBean(this);
}
}
@@ -0,0 +1,45 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
import java.util.Map;
public class JIRAAssigneeBean extends JIRAUserBean {
public JIRAAssigneeBean() {
}
public JIRAAssigneeBean(long id, String name, String value) {
super(id, name, value);
}
public JIRAAssigneeBean(Map<String, String> map) {
super(map);
}
public JIRAAssigneeBean(JIRAAssigneeBean other) {
this(other.getMap());
}
@Override
public String getQueryStringFragment() {
return "assignee=" + getValue();
}
public JIRAAssigneeBean getClone() {
return new JIRAAssigneeBean(this);
}
}
@@ -0,0 +1,28 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
import java.util.Calendar;
public interface JIRAComment {
String getId();
String getAuthor();
String getAuthorFullName();
void setAuthorFullName(String author);
String getBody();
Calendar getCreationDate();
}
@@ -0,0 +1,58 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
import java.util.Calendar;
public class JIRACommentBean implements JIRAComment {
private String id;
private String author;
private String authorFullName;
private String body;
private Calendar created;
public JIRACommentBean(String id, String author, String body, Calendar created) {
this.id = id;
this.author = author;
this.authorFullName = author;
this.body = body;
this.created = created;
}
public String getId() {
return id;
}
public String getAuthor() {
return author;
}
public void setAuthorFullName(String authorFullName) {
this.authorFullName = authorFullName;
}
public String getAuthorFullName() {
return authorFullName;
}
public String getBody() {
return body;
}
public Calendar getCreationDate() {
return created;
}
}
@@ -0,0 +1,42 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
import java.util.Map;
public class JIRAComponentBean extends AbstractJIRAConstantBean {
public JIRAComponentBean(Map<String, String> map) {
super(map);
}
public JIRAComponentBean(long id, String name) {
super(id, name, null);
}
public JIRAComponentBean(JIRAComponentBean other) {
this(other.getMap());
}
// returns from this object a fragment of a query string that the IssueNavigator will understand
public String getQueryStringFragment() {
return "component=" + getId();
}
public JIRAComponentBean getClone() {
return new JIRAComponentBean(this);
}
}
@@ -0,0 +1,23 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
import java.net.URL;
public interface JIRAConstant extends JIRAQueryFragment {
URL getIconUrl();
}
@@ -0,0 +1,31 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
/**
* Generic Bamboo Excepion.
*/
public class JIRAException extends Exception {
public JIRAException(String message) {
super(message);
}
public JIRAException(String message, Throwable throwable) {
super(message, throwable);
}
}
@@ -0,0 +1,49 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
import java.util.Map;
public class JIRAFixForVersionBean extends JIRAVersionBean {
public JIRAFixForVersionBean(Map<String, String> map) {
super(map);
}
public JIRAFixForVersionBean(long id, String name) {
super(id, name);
}
public JIRAFixForVersionBean(JIRAFixForVersionBean other) {
super(other.getId(), other.getName());
}
public JIRAFixForVersionBean(JIRAVersionBean other) {
super(other.getId(), other.getName());
}
@Override
public String getQueryStringFragment() {
return "fixfor=" + getId();
}
@Override
public JIRAFixForVersionBean getClone() {
return new JIRAFixForVersionBean(this);
}
}
@@ -0,0 +1,109 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
import java.util.List;
public interface JIRAIssue {
String getServerUrl();
String getProjectUrl();
String getIssueUrl();
Long getId();
String getKey();
String getProjectKey();
String getStatus();
String getStatusTypeUrl();
String getSummary();
String getType();
String getTypeIconUrl();
String getPriority();
String getPriorityIconUrl();
String getDescription();
JIRAConstant getTypeConstant();
JIRAConstant getStatusConstant();
JIRAConstant getPriorityConstant();
String getAssignee();
String getAssigneeId();
String getReporter();
String getReporterId();
String getResolution();
String getCreated();
String getUpdated();
boolean isSubTask();
String getParentIssueKey();
List<String> getSubTaskKeys();
long getPriorityId();
long getStatusId();
long getTypeId();
void setAssignee(String assignee);
List<JIRAConstant> getAffectsVersions();
List<JIRAConstant> getFixVersions();
List<JIRAConstant> getComponents();
void setAffectsVersions(List<JIRAConstant> versions);
void setFixVersions(List<JIRAConstant> versions);
void setComponents(List<JIRAConstant> components);
String getOriginalEstimate();
void setOriginalEstimate(String t);
String getRemainingEstimate();
void setRemainingEstimate(String t);
String getTimeSpent();
void setTimeSpent(String t);
List<JIRAComment> getComments();
}
@@ -0,0 +1,487 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
import org.jdom.Element;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.*;
public class JIRAIssueBean implements JIRAIssue {
private String serverUrl;
private Long id;
private String key;
private String summary;
private String status;
private String statusUrl;
private String type;
private String typeUrl;
private String priority;
private String priorityUrl;
private String description;
private String projectKey;
private JIRAConstant statusConstant;
private JIRAConstant typeConstant;
private JIRAConstant priorityConstant;
private String assignee;
private String assigneeId;
private String reporter;
private String reporterId;
private String resolution;
private String created;
private String updated;
private long statusId;
private long priorityId;
private long typeId;
private List<JIRAConstant> affectsVersions;
private List<JIRAConstant> fixVersions;
private List<JIRAConstant> components;
private List<String> subTaskList;
private boolean thisIsASubTask;
private String parentIssueKey;
private String originalEstimate;
private String remainingEstimate;
private String timeSpent;
private List<JIRAComment> commentsList;
public JIRAIssueBean() {
}
public JIRAIssueBean(String serverUrl) {
this.serverUrl = serverUrl;
}
public JIRAIssueBean(JIRAIssue issue) {
serverUrl = issue.getServerUrl();
id = issue.getId();
key = issue.getKey();
summary = issue.getSummary();
status = issue.getStatus();
statusUrl = issue.getStatusTypeUrl();
type = issue.getType();
typeUrl = issue.getTypeIconUrl();
priority = issue.getPriority();
priorityUrl = issue.getPriorityIconUrl();
description = issue.getDescription();
projectKey = issue.getProjectKey();
statusConstant = issue.getStatusConstant();
typeConstant = issue.getTypeConstant();
priorityConstant = issue.getPriorityConstant();
assignee = issue.getAssignee();
assigneeId = issue.getAssigneeId();
reporter = issue.getReporter();
reporterId = issue.getReporterId();
resolution = issue.getResolution();
created = issue.getCreated();
updated = issue.getUpdated();
statusId = issue.getStatusId();
priorityId = issue.getPriorityId();
typeId = issue.getTypeId();
thisIsASubTask = issue.isSubTask();
subTaskList = issue.getSubTaskKeys();
parentIssueKey = issue.getParentIssueKey();
}
public JIRAIssueBean(String serverUrl, Element e, boolean getComments) {
this.serverUrl = serverUrl;
this.summary = getTextSafely(e, "summary");
this.key = getTextSafely(e, "key");
this.id = new Long(getAttributeSafely(e, "key", "id"));
updateProjectKey();
this.status = getTextSafely(e, "status");
this.statusUrl = getAttributeSafely(e, "status", "iconUrl");
try {
this.statusId = Long.parseLong(getAttributeSafely(e, "status", "id"));
} catch (NumberFormatException ex) {
this.statusId = 0;
}
this.priority = getTextSafely(e, "priority");
this.priorityUrl = getAttributeSafely(e, "priority", "iconUrl");
try {
this.priorityId = Long.parseLong(getAttributeSafely(e, "priority", "id"));
} catch (NumberFormatException ex) {
this.priorityId = 0;
}
this.description = getTextSafely(e, "description");
this.type = getTextSafely(e, "type");
this.typeUrl = getAttributeSafely(e, "type", "iconUrl");
try {
this.typeId = Long.parseLong(getAttributeSafely(e, "type", "id"));
} catch (NumberFormatException ex) {
this.typeId = 0;
}
this.assignee = getTextSafely(e, "assignee");
this.assigneeId = getAttributeSafely(e, "assignee", "username");
this.reporter = getTextSafely(e, "reporter");
this.reporterId = getAttributeSafely(e, "reporter", "username");
this.created = getTextSafely(e, "created");
this.updated = getTextSafely(e, "updated");
this.resolution = getTextSafely(e, "resolution");
this.parentIssueKey = getTextSafely(e, "parent");
this.thisIsASubTask = parentIssueKey != null;
subTaskList = new ArrayList<String>();
Element subtasks = e.getChild("subtasks");
if (subtasks != null) {
for (Object subtask : subtasks.getChildren("subtask")) {
String subTaskKey = ((Element) subtask).getText();
if (subTaskKey != null) {
subTaskList.add(subTaskKey);
}
}
}
this.originalEstimate = getTextSafely(e, "timeoriginalestimate");
this.remainingEstimate = getTextSafely(e, "timeestimate");
this.timeSpent = getTextSafely(e, "timespent");
Element comments = e.getChild("comments");
if (comments != null && getComments) {
commentsList = new ArrayList<JIRAComment>();
for (Object comment : comments.getChildren("comment")) {
Element el = (Element) comment;
String commentId = el.getAttributeValue("id", "-1");
String author = el.getAttributeValue("author", "Unknown");
String text = el.getText();
String creationDate = el.getAttributeValue("created", "Unknown");
Calendar cal = Calendar.getInstance();
DateFormat df = new SimpleDateFormat("EEE MMM d HH:mm:ss Z yyyy", Locale.US);
try {
cal.setTime(df.parse(creationDate));
} catch (java.text.ParseException ex) {
// oh well, invalid time - now what? :(
}
commentsList.add(new JIRACommentBean(commentId, author, text, cal));
}
}
}
public JIRAConstant getPriorityConstant() {
return priorityConstant;
}
public void setPriority(JIRAConstant priority) {
this.priority = priority.getName();
this.priorityConstant = priority;
}
public JIRAIssueBean(String serverUrl, Map params) {
this.serverUrl = serverUrl;
this.summary = (String) params.get("summary");
this.status = (String) params.get("status");
this.key = (String) params.get("key");
this.id = new Long(params.get("key").toString());
updateProjectKey();
this.description = (String) params.get("description");
this.type = (String) params.get("type");
this.priority = (String) params.get("priority");
}
private void updateProjectKey() {
if (key != null) {
if (key.indexOf("-") >= 0) {
projectKey = key.substring(0, key.indexOf("-"));
} else {
projectKey = key;
}
}
}
private String getTextSafely(Element e, String name) {
Element child = e.getChild(name);
if (child == null) {
return null;
}
return child.getText();
}
private String getAttributeSafely(Element e, String elementName, String attributeName) {
Element child = e.getChild(elementName);
if (child == null || child.getAttribute(attributeName) == null) {
return null;
}
return child.getAttributeValue(attributeName);
}
public String getServerUrl() {
return serverUrl;
}
public void setServerUrl(String serverUrl) {
this.serverUrl = serverUrl;
}
public String getProjectUrl() {
return serverUrl + "/browse/" + getProjectKey();
}
public String getIssueUrl() {
return serverUrl + "/browse/" + getKey();
}
public Long getId() {
return id;
}
public boolean isSubTask() {
return thisIsASubTask;
}
public String getParentIssueKey() {
return parentIssueKey;
}
public List<String> getSubTaskKeys() {
return subTaskList;
}
public String getProjectKey() {
return projectKey;
}
public String getStatus() {
return status;
}
public String getStatusTypeUrl() {
return statusUrl;
}
public String getPriority() {
return priority;
}
public String getPriorityIconUrl() {
return priorityUrl;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getSummary() {
return summary;
}
public String getType() {
return type;
}
public String getTypeIconUrl() {
return typeUrl;
}
public void setTypeIconUrl(String newTypeUrl) {
this.typeUrl = newTypeUrl;
}
public String getDescription() {
return description;
}
public void setSummary(String summary) {
this.summary = summary;
}
public void setProjectKey(String projectKey) {
this.projectKey = projectKey;
}
public void setDescription(String description) {
this.description = description;
}
public JIRAConstant getTypeConstant() {
return typeConstant;
}
public void setType(JIRAConstant type) {
this.type = type.getName();
this.typeConstant = type;
}
public JIRAConstant getStatusConstant() {
return statusConstant;
}
public void setStatus(JIRAConstant status) {
this.status = status.getName();
this.statusConstant = status;
}
public String getAssignee() {
return assignee;
}
public void setAssignee(String assignee) {
this.assignee = assignee;
}
public long getPriorityId() {
return priorityId;
}
public long getStatusId() {
return statusId;
}
public long getTypeId() {
return typeId;
}
public String getReporter() {
return reporter;
}
public void setReporter(String reporter) {
this.reporter = reporter;
}
public String getResolution() {
return resolution;
}
public void setResolution(String resolution) {
this.resolution = resolution;
}
public String getCreated() {
return created;
}
public void setCreated(String created) {
this.created = created;
}
public String getUpdated() {
return updated;
}
public void setUpdated(String updated) {
this.updated = updated;
}
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
JIRAIssueBean that = (JIRAIssueBean) o;
if (key != null ? !key.equals(that.key) : that.key != null) {
return false;
}
if (serverUrl != null ? !serverUrl.equals(that.serverUrl) : that.serverUrl != null) {
return false;
}
return !(summary != null ? !summary.equals(that.summary) : that.summary != null);
}
private static final int ONE_EFF = 31;
public int hashCode() {
int result;
result = (serverUrl != null ? serverUrl.hashCode() : 0);
result = ONE_EFF * result + (key != null ? key.hashCode() : 0);
result = ONE_EFF * result + (summary != null ? summary.hashCode() : 0);
return result;
}
public String getAssigneeId() {
return assigneeId;
}
public void setAssigneeId(String assigneeId) {
this.assigneeId = assigneeId;
}
public String getReporterId() {
return reporterId;
}
public void setReporterId(String reporterId) {
this.reporterId = reporterId;
}
public List<JIRAConstant> getAffectsVersions() {
return affectsVersions;
}
public void setAffectsVersions(List<JIRAConstant> affectsVersions) {
this.affectsVersions = affectsVersions;
}
public List<JIRAConstant> getFixVersions() {
return fixVersions;
}
public void setFixVersions(List<JIRAConstant> fixVersions) {
this.fixVersions = fixVersions;
}
public List<JIRAConstant> getComponents() {
return components;
}
public void setComponents(List<JIRAConstant> components) {
this.components = components;
}
public String getOriginalEstimate() {
return originalEstimate;
}
public void setOriginalEstimate(String originalEstimate) {
this.originalEstimate = originalEstimate;
}
public String getRemainingEstimate() {
return remainingEstimate;
}
public void setRemainingEstimate(String remainingEstimate) {
this.remainingEstimate = remainingEstimate;
}
public String getTimeSpent() {
return timeSpent;
}
public void setTimeSpent(String timeSpent) {
this.timeSpent = timeSpent;
}
public List<JIRAComment> getComments() {
return commentsList;
}
}
@@ -0,0 +1,48 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
import java.net.URL;
import java.util.Map;
public class JIRAIssueTypeBean extends AbstractJIRAConstantBean {
private boolean subTask = false;
public JIRAIssueTypeBean(Map<String, String> map) {
super(map);
subTask = Boolean.valueOf(map.get("subTask"));
}
public JIRAIssueTypeBean(long id, String name, URL iconUrl) {
super(id, name, iconUrl);
}
public JIRAIssueTypeBean(JIRAIssueTypeBean other) {
this(other.getMap());
}
public String getQueryStringFragment() {
return "type=" + getId();
}
public JIRAIssueTypeBean getClone() {
return new JIRAIssueTypeBean(this);
}
public boolean isSubTask() {
return subTask;
}
}
@@ -0,0 +1,31 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
/**
* Generic Bamboo Excepion.
*/
public class JIRALoginException extends JIRAException {
public JIRALoginException(String message) {
super(message);
}
public JIRALoginException(String message, Throwable throwable) {
super(message, throwable);
}
}
@@ -0,0 +1,44 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
import java.net.URL;
import java.util.Map;
public class JIRAPriorityBean extends AbstractJIRAConstantBean {
public JIRAPriorityBean(Map<String, String> map) {
super(map);
}
public JIRAPriorityBean(long id, String name, URL iconUrl) {
super(id, name, iconUrl);
}
public JIRAPriorityBean(JIRAPriorityBean other) {
super(other.getMap());
}
public String getQueryStringFragment() {
return "priority=" + getId();
}
public JIRAPriorityBean getClone() {
return new JIRAPriorityBean(this);
}
}
@@ -0,0 +1,27 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
public interface JIRAProject extends JIRAQueryFragment {
String getKey();
String getUrl();
String getLead();
String getDescription();
}
@@ -0,0 +1,121 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
import com.intellij.util.xmlb.annotations.Transient;
import java.util.HashMap;
import java.util.Map;
public class JIRAProjectBean implements JIRAProject {
private String name;
private String key;
private String url;
private long id;
private String description;
private String lead;
public JIRAProjectBean() {
}
public JIRAProjectBean(Map projMap) {
name = (String) projMap.get("name");
key = (String) projMap.get("key");
description = (String) projMap.get("description");
url = (String) projMap.get("url");
lead = (String) projMap.get("lead");
id = Long.valueOf((String) projMap.get("id"));
}
public JIRAProjectBean(long id, String name) {
this.id = id;
this.name = name;
}
public JIRAProjectBean(JIRAProjectBean other) {
this(other.getMap());
}
public String getName() {
return name;
}
public HashMap<String, String> getMap() {
HashMap<String, String> map = new HashMap<String, String>();
map.put("name", getName());
map.put("id", Long.toString(id));
map.put("key", getKey());
map.put("description", getDescription());
map.put("url", getUrl());
map.put("lead", getLead());
map.put("filterTypeClass", this.getClass().getName());
return map;
}
public JIRAProjectBean getClone() {
return new JIRAProjectBean(this);
}
public String getKey() {
return key;
}
public String getUrl() {
return url;
}
public long getId() {
return id;
}
public String getDescription() {
return description;
}
public String getLead() {
return lead;
}
@Transient
public String getQueryStringFragment() {
return "pid=" + id;
}
public void setName(String name) {
this.name = name;
}
public void setKey(String key) {
this.key = key;
}
public void setUrl(String url) {
this.url = url;
}
public void setId(long id) {
this.id = id;
}
public void setDescription(String description) {
this.description = description;
}
public void setLead(String lead) {
this.lead = lead;
}
}
@@ -0,0 +1,31 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
import java.util.HashMap;
public interface JIRAQueryFragment {
String getQueryStringFragment();
long getId();
String getName();
HashMap<String, String> getMap();
JIRAQueryFragment getClone();
}
@@ -0,0 +1,45 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
import java.util.Map;
public class JIRAReporterBean extends JIRAUserBean {
public JIRAReporterBean() {
}
public JIRAReporterBean(long id, String name, String value) {
super(id, name, value);
}
public JIRAReporterBean(Map<String, String> map) {
super(map);
}
public JIRAReporterBean(JIRAReporterBean other) {
this(other.getMap());
}
@Override
public String getQueryStringFragment() {
return "reporter=" + getValue();
}
public JIRAReporterBean getClone() {
return new JIRAReporterBean(this);
}
}
@@ -0,0 +1,42 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
import java.util.Map;
public class JIRAResolutionBean extends AbstractJIRAConstantBean {
public JIRAResolutionBean(Map<String, String> map) {
super(map);
}
public JIRAResolutionBean(long id, String name) {
super(id, name, null);
}
public JIRAResolutionBean(JIRAResolutionBean other) {
this(other.getMap());
}
public String getQueryStringFragment() {
return "resolution=" + id;
}
public JIRAResolutionBean getClone() {
return new JIRAResolutionBean(this);
}
}
@@ -0,0 +1,23 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
public interface JIRASavedFilter extends JIRAQueryFragment {
String getAuthor();
String getProject();
}
@@ -0,0 +1,77 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
import java.util.HashMap;
import java.util.Map;
public class JIRASavedFilterBean implements JIRASavedFilter {
private String name;
private String author;
private String project;
private long id;
public JIRASavedFilterBean(Map projMap) {
name = (String) projMap.get("name");
author = (String) projMap.get("author");
project = (String) projMap.get("project");
id = Long.valueOf((String) projMap.get("id"));
}
public JIRASavedFilterBean(String n, long id) {
name = n;
this.id = id;
}
public JIRASavedFilterBean(JIRASavedFilterBean other) {
this(other.getMap());
}
public String getName() {
return name;
}
public HashMap<String, String> getMap() {
HashMap<String, String> map = new HashMap<String, String>();
map.put("name", getName());
map.put("id", Long.toString(id));
map.put("author", getAuthor());
map.put("project", getProject());
map.put("filterTypeClass", this.getClass().getName());
return map;
}
public JIRASavedFilterBean getClone() {
return new JIRASavedFilterBean(this);
}
public long getId() {
return id;
}
public String getAuthor() {
return author;
}
public String getProject() {
return project;
}
public String getQueryStringFragment() {
return Long.toString(id);
}
}
@@ -0,0 +1,42 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
import java.net.URL;
import java.util.Map;
public class JIRAStatusBean extends AbstractJIRAConstantBean {
public JIRAStatusBean(Map<String, String> map) {
super(map);
}
public JIRAStatusBean(long id, String name, URL iconUrl) {
super(id, name, iconUrl);
}
public JIRAStatusBean(JIRAStatusBean other) {
this(other.getMap());
}
public String getQueryStringFragment() {
return "status=" + getId();
}
public JIRAStatusBean getClone() {
return new JIRAStatusBean(this);
}
}
@@ -0,0 +1,50 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
import java.util.HashMap;
import java.util.Map;
public abstract class JIRAUserBean extends AbstractJIRAConstantBean {
protected String value = "";
public JIRAUserBean() {
super();
}
public JIRAUserBean(long id, String name, String value) {
super(id, name, null);
this.value = value;
}
public JIRAUserBean(Map<String, String> map) {
super(map);
value = map.get("value");
}
public HashMap<String, String> getMap() {
HashMap<String, String> map = super.getMap();
map.put("value", getValue());
return map;
}
public String getValue() {
return value;
}
public abstract String getQueryStringFragment();
}
@@ -0,0 +1,53 @@
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.theplugin.jira.api;
import java.util.Map;
public class JIRAVersionBean extends AbstractJIRAConstantBean {
protected boolean isReleased;
public JIRAVersionBean(Map<String, String> map) {
super(map);
isReleased = Boolean.valueOf(map.get("released"));
}
public JIRAVersionBean(long id, String name) {
this.id = id;
this.name = name;
}
public JIRAVersionBean(JIRAVersionBean other) {
this(other.getMap());
}
public boolean isReleased() {
return isReleased;
}
public void setReleased(boolean released) {
isReleased = released;
}
public String getQueryStringFragment() {
return "version=" + getId();
}
public JIRAVersionBean getClone() {
return new JIRAVersionBean(this);
}
}
@@ -0,0 +1,10 @@
package com.atlassian.theplugin.jira.api;
/**
* User: jgorycki
* Date: Dec 8, 2008
* Time: 6:22:09 PM
*/
public class JiraUserNotFoundException extends Exception {
public JiraUserNotFoundException(String message) { super(message); }
}
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" generated="true" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="tasks-core" />
<orderEntry type="module" module-name="lang-api" />
<orderEntry type="module" module-name="lang-impl" />
</component>
</module>
@@ -0,0 +1,50 @@
package com.intellij.tasks.jira;
import com.intellij.tasks.LocalTask;
import com.intellij.tasks.Task;
import com.intellij.tasks.TaskState;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.List;
/**
* Because of the number of available remote interfaces in JIRA, {@link JiraRepository} delegates
* almost all its functionality to classes extending this class.
*
* @author Mikhail Golubev
*/
public abstract class JiraRemoteApi {
protected final JiraRepository myRepository;
protected JiraRemoteApi(@NotNull JiraRepository repository) {
myRepository = repository;
}
/**
* Used to clone original repository in {@link TaskRepositoryConfigurable}
* @param repository new repository for which copy should be created
* @return new instance of this {@link JiraRemoteApi}
*/
public abstract JiraRemoteApi cloneFor(@NotNull JiraRepository repository);
@NotNull
public abstract List<Task> findTasks(String jql, int max) throws Exception;
@Nullable
public abstract Task findTask(String key) throws Exception;
public abstract void setTaskState(Task task, TaskState state) throws Exception;
public abstract void updateTimeSpend(LocalTask task, String timeSpent, String comment) throws Exception;
@NotNull
public abstract String getVersionName();
@NotNull
public abstract ApiType getType();
public enum ApiType {
SOAP,
REST
}
}
@@ -13,11 +13,12 @@ import com.intellij.tasks.Task;
import com.intellij.tasks.TaskState;
import com.intellij.tasks.impl.BaseRepositoryImpl;
import com.intellij.tasks.impl.TaskUtil;
import com.intellij.tasks.jira.model.JiraIssue;
import com.intellij.util.Function;
import com.intellij.util.containers.ContainerUtil;
import com.intellij.tasks.jira.rest.JiraRestApi;
import com.intellij.tasks.jira.soap.JiraSoapApi;
import com.intellij.util.ArrayUtil;
import com.intellij.util.xmlb.annotations.Tag;
import org.apache.commons.httpclient.Header;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpMethod;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.commons.httpclient.methods.GetMethod;
@@ -25,7 +26,6 @@ import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.io.InputStream;
import java.util.List;
/**
* @author Dmitry Avdeev
@@ -35,6 +35,7 @@ public class JiraRepository extends BaseRepositoryImpl {
public static final Gson GSON = TaskUtil.installDateDeserializer(new GsonBuilder()).create();
private final static Logger LOG = Logger.getInstance("#com.intellij.tasks.jira.JiraRepository");
// TODO: move to bundle
public static final String LOGIN_FAILED_CHECK_YOUR_PERMISSIONS = "Login failed. Check your permissions.";
public static final String REST_API_PATH = "/rest/api/latest";
@@ -43,7 +44,7 @@ public class JiraRepository extends BaseRepositoryImpl {
*/
private String mySearchQuery = "assignee = currentUser() and resolution = Unresolved order by updated";
private JiraRestApi myRestApiVersion;
private JiraRemoteApi myApiVersion;
/**
* Serialization constructor
@@ -59,6 +60,9 @@ public class JiraRepository extends BaseRepositoryImpl {
private JiraRepository(JiraRepository other) {
super(other);
mySearchQuery = other.mySearchQuery;
if (other.myApiVersion != null) {
myApiVersion = other.myApiVersion.cloneFor(this);
}
}
@Override
@@ -69,106 +73,93 @@ public class JiraRepository extends BaseRepositoryImpl {
}
/**
* Always use Basic HTTP authentication for JIRA REST interface
*/
@Override
public boolean isUseHttpAuthentication() {
return true;
public JiraRepository clone() {
return new JiraRepository(this);
}
public Task[] getIssues(@Nullable String query, int max, long since) throws Exception {
if (myRestApiVersion == null) {
myRestApiVersion = discoverRestApiVersion();
}
ensureApiVersionDiscovered();
String jqlQuery = mySearchQuery;
if (!StringUtil.isEmpty(query)) {
jqlQuery = String.format("summary ~ '%s'", query);
if (!StringUtil.isEmpty(mySearchQuery)) {
jqlQuery += String.format(" and %s", mySearchQuery);
}
if (StringUtil.isNotEmpty(mySearchQuery) && StringUtil.isNotEmpty(query)) {
jqlQuery += String.format("and summary ~ '%s'", query);
}
List<JiraIssue> issues = myRestApiVersion.findIssues(jqlQuery, max);
return ContainerUtil.map2Array(issues, Task.class, new Function<JiraIssue, Task>() {
@Override
public JiraTask fun(JiraIssue issue) {
return new JiraTask(issue, JiraRepository.this);
}
});
else if (StringUtil.isNotEmpty(query)) {
jqlQuery = String.format("summary ~ '%s'", query);
}
return ArrayUtil.toObjectArray(myApiVersion.findTasks(jqlQuery, max), Task.class);
}
@Nullable
@Override
public Task findTask(String id) throws Exception {
if (myRestApiVersion == null) {
myRestApiVersion = discoverRestApiVersion();
}
JiraIssue issue = myRestApiVersion.findIssue(id);
return issue == null ? null : new JiraTask(issue, this);
ensureApiVersionDiscovered();
return myApiVersion.findTask(id);
}
@Override
public void updateTimeSpent(@NotNull LocalTask task, @NotNull String timeSpent, @NotNull String comment) throws Exception {
myApiVersion.updateTimeSpend(task, timeSpent, comment);
}
@Nullable
@Override
public CancellableConnection createCancellableConnection() {
String uri = getUrl() + REST_API_PATH + "/search?maxResults=1&jql=" + encodeUrl(mySearchQuery);
return new HttpTestConnection<GetMethod>(new GetMethod(uri)) {
// TODO cancellable connection for SOAP?
return new CancellableConnection() {
@Override
public void doTest(GetMethod method) throws Exception {
executeMethod(method);
protected void doTest() throws Exception {
ensureApiVersionDiscovered();
myApiVersion.findTasks("", 1);
}
@Override
public void cancel() {
// do nothing for now
}
};
}
public JiraRepository clone() {
return new JiraRepository(this);
}
@Override
protected int getFeatures() {
return super.getFeatures() | TIME_MANAGEMENT;
}
public String getSearchQuery() {
return mySearchQuery;
}
public void setSearchQuery(String searchQuery) {
mySearchQuery = searchQuery;
}
@NotNull
public JiraRestApi discoverRestApiVersion() throws Exception {
public JiraRemoteApi discoverRestApiVersion() throws Exception {
String responseBody;
GetMethod method = new GetMethod(getRestUrl("serverInfo"));
try {
responseBody = executeMethod(new GetMethod(getRestUrl("serverInfo")));
responseBody = executeMethod(method);
}
catch (Exception e) {
LOG.warn("Can't find out JIRA REST API version");
throw e;
// probably JIRA version prior 4.2
if (method.getStatusCode() == HttpStatus.SC_NOT_FOUND) {
return new JiraSoapApi(this);
}
else {
throw e;
}
}
JsonObject object = GSON.fromJson(responseBody, JsonObject.class);
// when JIRA 4.x support will be dropped 'versionNumber' array in response
// may be used instead version string parsing
JiraRestApi version = JiraRestApi.fromJiraVersion(object.get("version").getAsString(), this);
if (version == null) {
JiraRestApi restApi = JiraRestApi.fromJiraVersion(object.get("version").getAsString(), this);
if (restApi == null) {
throw new Exception("JIRA below 4.2.0 doesn't have REST API and is no longer supported.");
}
return version;
return restApi;
//return new JiraSoapApi(this);
}
@Override
public void setTaskState(Task task, TaskState state) throws Exception {
myRestApiVersion.setTaskState(task, state);
private void ensureApiVersionDiscovered() throws Exception {
if (myApiVersion == null) {
myApiVersion = discoverRestApiVersion();
}
}
@Override
public void updateTimeSpent(@NotNull LocalTask task, @NotNull String timeSpent, @NotNull String comment) throws Exception {
myRestApiVersion.updateTimeSpend(task, timeSpent, comment);
// Used primarily for SOAP API
@NotNull
public String executeMethod(@NotNull HttpMethod method) throws Exception {
return executeMethod(getHttpClient(), method);
}
@NotNull
public String executeMethod(@NotNull HttpMethod method) throws Exception {
public String executeMethod(@NotNull HttpClient client, @NotNull HttpMethod method) throws Exception {
LOG.debug("URI: " + method.getURI());
int statusCode;
String entityContent;
@@ -215,9 +206,54 @@ public class JiraRepository extends BaseRepositoryImpl {
throw new Exception(String.format("Request failed with HTTP error: %d %s", statusCode, statusText));
}
/*
@Override
protected void configureHttpClient(HttpClient client) {
super.configureHttpClient(client);
// TODO: is it really necessary?
client.getParams().setCookiePolicy(CookiePolicy.BROWSER_COMPATIBILITY);
}
*/
// Made public for SOAP API compatibility
@Override
public HttpClient getHttpClient() {
return super.getHttpClient();
}
/**
* Always use Basic HTTP authentication for JIRA REST interface
*/
@Override
public boolean isUseHttpAuthentication() {
return true;
}
@Override
protected int getFeatures() {
int features = super.getFeatures() | TIME_MANAGEMENT;
if (myApiVersion == null || myApiVersion.getType() != JiraRemoteApi.ApiType.REST) {
return features & ~NATIVE_SEARCH & ~STATE_UPDATING & ~TIME_MANAGEMENT;
}
return features;
}
public String getSearchQuery() {
return mySearchQuery;
}
@Override
public void setTaskState(Task task, TaskState state) throws Exception {
myApiVersion.setTaskState(task, state);
}
public void setSearchQuery(String searchQuery) {
mySearchQuery = searchQuery;
}
@Override
public void setUrl(String url) {
myRestApiVersion = null;
myApiVersion = null;
super.setUrl(url);
}
@@ -16,6 +16,7 @@
package com.intellij.tasks.jira;
import com.intellij.openapi.project.Project;
import com.intellij.tasks.TaskRepository;
import com.intellij.tasks.config.BaseRepositoryEditor;
import com.intellij.tasks.jira.jql.JqlLanguage;
import com.intellij.ui.EditorTextField;
@@ -23,6 +24,7 @@ import com.intellij.ui.LanguageTextField;
import com.intellij.ui.components.JBLabel;
import com.intellij.util.Consumer;
import com.intellij.util.ui.FormBuilder;
import com.intellij.util.ui.UIUtil;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
@@ -42,15 +44,30 @@ public class JiraRepositoryEditor extends BaseRepositoryEditor<JiraRepository> {
public void apply() {
myRepository.setSearchQuery(mySearchQueryField.getText());
super.apply();
enableJqlSearchIfSupported();
}
@Override
protected void afterTestConnection(boolean connectionSuccessful) {
super.afterTestConnection(connectionSuccessful);
if (connectionSuccessful) {
enableJqlSearchIfSupported();
}
}
@Nullable
@Override
protected JComponent createCustomPanel() {
mySearchQueryField = new LanguageTextField(JqlLanguage.INSTANCE, myProject, myRepository.getSearchQuery());
enableJqlSearchIfSupported();
installListener(mySearchQueryField);
mySearchLabel = new JBLabel("Search:", SwingConstants.RIGHT);
return FormBuilder.createFormBuilder().addLabeledComponent(mySearchLabel, mySearchQueryField).getPanel();
JBLabel note = new JBLabel("JQL search is supported only for JIRA version >= 4.2");
note.setComponentStyle(UIUtil.ComponentStyle.SMALL);
return FormBuilder.createFormBuilder()
.addLabeledComponent(mySearchLabel, mySearchQueryField)
.addComponentToRightColumn(note)
.getPanel();
}
@Override
@@ -58,4 +75,8 @@ public class JiraRepositoryEditor extends BaseRepositoryEditor<JiraRepository> {
super.setAnchor(anchor);
mySearchLabel.setAnchor(anchor);
}
private void enableJqlSearchIfSupported() {
mySearchQueryField.setEnabled(myRepository.isSupported(TaskRepository.NATIVE_SEARCH));
}
}
@@ -0,0 +1,148 @@
package com.intellij.tasks.jira;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.tasks.*;
import icons.TasksIcons;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
import java.util.Date;
/**
* Base class containing common interpretation of issues object's fields in
* JIRA's SOAP and REST interfaces.
*
* @author Mikhail Golubev
*/
public abstract class JiraTask extends Task {
protected final TaskRepository myRepository;
protected JiraTask(@NotNull TaskRepository repository) {
myRepository = repository;
}
@NotNull
public abstract String getId();
@NotNull
public abstract String getSummary();
public abstract String getDescription();
@NotNull
public abstract Comment[] getComments();
// iconUrl will be null in JIRA versions prior 5.x.x
@Nullable
protected abstract String getIconUrl();
@NotNull
@Override
public abstract TaskType getType();
@Override
public abstract TaskState getState();
@Nullable
@Override
public abstract Date getUpdated();
@Override
public abstract Date getCreated();
@Override
public abstract String getIssueUrl();
@Override
@NotNull
public final Icon getIcon() {
return getIconByUrl(getIconUrl());
}
@Nullable
@Override
public final TaskRepository getRepository() {
return myRepository;
}
@Override
public final boolean isClosed() {
return getState() == TaskState.RESOLVED;
}
public final boolean isIssue() {
return true;
}
/**
* Pick appropriate issue type's icon by its URL, contained in JIRA's responses.
* Icons will be lazily fetched using {@link CachedIconLoader}.
*
* @param iconUrl unique icon URL as returned from {@link #getIconUrl()}
* @return task con.
*/
@NotNull
protected final Icon getIconByUrl(@Nullable String iconUrl) {
if (StringUtil.isEmpty(iconUrl)) {
return TasksIcons.Jira;
}
Icon icon;
if (isClosed()) {
icon = CachedIconLoader.getDisabledIcon(iconUrl);
}
else {
icon = CachedIconLoader.getIcon(iconUrl);
}
return icon != null ? icon : TasksIcons.Other;
}
/**
* Map unique state id to corresponding {@link TaskState} item.
*
* @param id issue's state numeric id
* @return {@link TaskState} item or {@code null}, if none matches
*/
@SuppressWarnings("MethodMayBeStatic")
@Nullable
protected final TaskState getStateById(int id) {
switch (id) {
case 1:
return TaskState.OPEN;
case 3:
return TaskState.IN_PROGRESS;
case 4:
return TaskState.REOPENED;
case 5: // resolved
case 6: // closed
return TaskState.RESOLVED;
default:
return null;
}
}
/**
* Map task's type name in JIRA's API to corresponding {@link TaskType} item.
*
* @param type issue's type name
* @return {@link TaskType} item or {@link TaskType.OTHER}, if none matches
*/
@SuppressWarnings("MethodMayBeStatic")
protected final TaskType getTypeByName(@Nullable String type) {
if (type == null) {
return TaskType.OTHER;
}
else if ("Bug".equals(type)) {
return TaskType.BUG;
}
else if ("Exception".equals(type)) {
return TaskType.EXCEPTION;
}
else if ("New Feature".equals(type)) {
return TaskType.FEATURE;
}
else {
return TaskType.OTHER;
}
}
}

Some files were not shown because too many files have changed in this diff Show More