Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.greenpepper.server.rpc.xmlrpc;
import java.util.Collection;
import java.util.Hashtable;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.Vector;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.greenpepper.server.GreenPepperServerErrorKey;
import com.greenpepper.server.GreenPepperServerException;
import com.greenpepper.server.domain.ClasspathSet;
import com.greenpepper.server.domain.EnvironmentType;
import com.greenpepper.server.domain.Execution;
import com.greenpepper.server.domain.Project;
import com.greenpepper.server.domain.Reference;
import com.greenpepper.server.domain.Repository;
import com.greenpepper.server.domain.RepositoryType;
import com.greenpepper.server.domain.Requirement;
import com.greenpepper.server.domain.RequirementSummary;
import com.greenpepper.server.domain.Runner;
import com.greenpepper.server.domain.Specification;
import com.greenpepper.server.domain.SystemUnderTest;
import com.greenpepper.server.domain.SystemUnderTestByNameComparator;
import com.greenpepper.server.domain.component.ContentType;
import com.greenpepper.server.license.GreenPepperLicenceException;
import com.greenpepper.server.license.LicenseBean;
import com.greenpepper.server.license.LicenseErrorKey;
import com.greenpepper.util.FormatedDate;
/**
* The XML-RPC Data Marshaller.
* Provides static methods to pass from POJO to XML-RPC supported objects.
* Provides static methods to pass from XML-RPC supported objects to POJO.
*
* Copyright (c) 2006 Pyxis technologies inc. All Rights Reserved.
*
* @author JCHUET
* @version $Id: $Id
*/
public class XmlRpcDataMarshaller
{
/** Constant MARSHALLING_VERSION="Marshall v. 1.0" */
public static final String MARSHALLING_VERSION = "Marshall v. 1.0";
/** Constant LICENSE_TYPE_IDX=0 */
public static final int LICENSE_TYPE_IDX = 0;
/** Constant LICENSE_EXPIRY_DATE_IDX=1 */
public static final int LICENSE_EXPIRY_DATE_IDX = 1;
/** Constant LICENSE_SUPPORT_EXPIRY_DATE_IDX=2 */
public static final int LICENSE_SUPPORT_EXPIRY_DATE_IDX = 2;
/** Constant LICENSE_MAX_USERS_IDX=3 */
public static final int LICENSE_MAX_USERS_IDX = 3;
/** Constant LICENSE_INFO_IDX=4 */
public static final int LICENSE_INFO_IDX = 4;
/** Constant LICENSE_VERSION_IDX=5 */
public static final int LICENSE_VERSION_IDX = 5;
/** Constant LICENSE_EXTRA_IDX=6 */
public static final int LICENSE_EXTRA_IDX = 6;
/** Constant LICENSE_HOLDER_NAME_IDX=7 */
public static final int LICENSE_HOLDER_NAME_IDX = 7;
/** Constant LICENSE_EFFECTIVE_DATE_IDX=8 */
public static final int LICENSE_EFFECTIVE_DATE_IDX = 8;
/** Constant PROJECT_NAME_IDX=0 */
public static final int PROJECT_NAME_IDX = 0;
/** Constant REPOSITORY_TYPE_NAME_IDX=0 */
public static final int REPOSITORY_TYPE_NAME_IDX = 0;
/** Constant REPOSITORY_TYPE_REPOCLASSES_IDX=1 */
public static final int REPOSITORY_TYPE_REPOCLASSES_IDX = 1;
/** Constant REPOSITORY_TYPE_NAME_FORMAT_IDX=2 */
public static final int REPOSITORY_TYPE_NAME_FORMAT_IDX = 2;
/** Constant REPOSITORY_TYPE_URI_FORMAT_IDX=3 */
public static final int REPOSITORY_TYPE_URI_FORMAT_IDX = 3;
/** Constant REPOSITORY_NAME_IDX=0 */
public static final int REPOSITORY_NAME_IDX = 0;
/** Constant REPOSITORY_UID_IDX=1 */
public static final int REPOSITORY_UID_IDX = 1;
/** Constant REPOSITORY_PROJECT_IDX=2 */
public static final int REPOSITORY_PROJECT_IDX = 2;
/** Constant REPOSITORY_TYPE_IDX=3 */
public static final int REPOSITORY_TYPE_IDX = 3;
/** Constant REPOSITORY_CONTENTTYPE_IDX=4 */
public static final int REPOSITORY_CONTENTTYPE_IDX = 4;
/** Constant REPOSITORY_BASE_URL_IDX=5 */
public static final int REPOSITORY_BASE_URL_IDX = 5;
/** Constant REPOSITORY_BASEREPO_URL_IDX=6 */
public static final int REPOSITORY_BASEREPO_URL_IDX = 6;
/** Constant REPOSITORY_BASETEST_URL_IDX=7 */
public static final int REPOSITORY_BASETEST_URL_IDX = 7;
/** Constant REPOSITORY_USERNAME_IDX=8 */
public static final int REPOSITORY_USERNAME_IDX = 8;
/** Constant REPOSITORY_PASSWORD_IDX=9 */
public static final int REPOSITORY_PASSWORD_IDX = 9;
/** Constant REPOSITORY_MAX_USERS_IDX=10 */
public static final int REPOSITORY_MAX_USERS_IDX = 10;
/** Constant DOCUMENT_NAME_IDX=0 */
public static final int DOCUMENT_NAME_IDX = 0;
/** Constant DOCUMENT_REPOSITORY_IDX=1 */
public static final int DOCUMENT_REPOSITORY_IDX = 1;
/** Constant SPECIFICATION_SUTS_IDX=2 */
public static final int SPECIFICATION_SUTS_IDX = 2;
/** Constant RUNNER_NAME_IDX=0 */
public static final int RUNNER_NAME_IDX = 0;
/** Constant RUNNER_CMDLINE_IDX=1 */
public static final int RUNNER_CMDLINE_IDX = 1;
/** Constant RUNNER_ENVTYPE_IDX=2 */
public static final int RUNNER_ENVTYPE_IDX = 2;
/** Constant RUNNER_SERVER_NAME_IDX=3 */
public static final int RUNNER_SERVER_NAME_IDX = 3;
/** Constant RUNNER_SERVER_PORT_IDX=4 */
public static final int RUNNER_SERVER_PORT_IDX = 4;
/** Constant RUNNER_MAINCLASS_IDX=5 */
public static final int RUNNER_MAINCLASS_IDX = 5;
/** Constant RUNNER_CLASSPATH_IDX=6 */
public static final int RUNNER_CLASSPATH_IDX = 6;
/** Constant RUNNER_SECURED_IDX=7 */
public static final int RUNNER_SECURED_IDX = 7;
/** Constant ENVTYPE_NAME_IDX=0 */
public static final int ENVTYPE_NAME_IDX = 0;
/** Constant SUT_NAME_IDX=0 */
public static final int SUT_NAME_IDX = 0;
/** Constant SUT_PROJECT_IDX=1 */
public static final int SUT_PROJECT_IDX = 1;
/** Constant SUT_CLASSPATH_IDX=2 */
public static final int SUT_CLASSPATH_IDX = 2;
/** Constant SUT_FIXTURE_CLASSPATH_IDX=3 */
public static final int SUT_FIXTURE_CLASSPATH_IDX = 3;
/** Constant SUT_FIXTURE_FACTORY_IDX=4 */
public static final int SUT_FIXTURE_FACTORY_IDX = 4;
/** Constant SUT_FIXTURE_FACTORY_ARGS_IDX=5 */
public static final int SUT_FIXTURE_FACTORY_ARGS_IDX = 5;
/** Constant SUT_IS_DEFAULT_IDX=6 */
public static final int SUT_IS_DEFAULT_IDX = 6;
/** Constant SUT_RUNNER_IDX=7 */
public static final int SUT_RUNNER_IDX = 7;
/** Constant SUT_PROJECT_DEPENDENCY_DESCRIPTOR_IDX=8 */
public static final int SUT_PROJECT_DEPENDENCY_DESCRIPTOR_IDX = 8;
/** Constant REFERENCE_REQUIREMENT_IDX=0 */
public static final int REFERENCE_REQUIREMENT_IDX = 0;
/** Constant REFERENCE_SPECIFICATION_IDX=1 */
public static final int REFERENCE_SPECIFICATION_IDX = 1;
/** Constant REFERENCE_SUT_IDX=2 */
public static final int REFERENCE_SUT_IDX = 2;
/** Constant REFERENCE_SECTIONS_IDX=3 */
public static final int REFERENCE_SECTIONS_IDX = 3;
/** Constant REFERENCE_LAST_EXECUTION_IDX=4 */
public static final int REFERENCE_LAST_EXECUTION_IDX = 4;
/** Constant EXECUTION_RESULTS_IDX=0 */
public static final int EXECUTION_RESULTS_IDX = 0;
/** Constant EXECUTION_ERRORID_IDX=1 */
public static final int EXECUTION_ERRORID_IDX = 1;
/** Constant EXECUTION_FAILIURES_IDX=2 */
public static final int EXECUTION_FAILIURES_IDX = 2;
/** Constant EXECUTION_ERRORS_IDX=3 */
public static final int EXECUTION_ERRORS_IDX = 3;
/** Constant EXECUTION_SUCCESS_IDX=4 */
public static final int EXECUTION_SUCCESS_IDX = 4;
/** Constant EXECUTION_IGNORED_IDX=5 */
public static final int EXECUTION_IGNORED_IDX = 5;
/** Constant EXECUTION_EXECUTION_DATE_IDX=6 */
public static final int EXECUTION_EXECUTION_DATE_IDX = 6;
public static final int EXECUTION_LOGS_OUT_IDX = 7;
public static final int EXECUTION_LOGS_ERR_IDX = 8;
/** Constant SUMMARY_REFERENCES_IDX=0 */
public static final int SUMMARY_REFERENCES_IDX = 0;
/** Constant SUMMARY_FAILIURES_IDX=1 */
public static final int SUMMARY_FAILIURES_IDX = 1;
/** Constant SUMMARY_ERRORS_IDX=2 */
public static final int SUMMARY_ERRORS_IDX = 2;
/** Constant SUMMARY_SUCCESS_IDX=3 */
public static final int SUMMARY_SUCCESS_IDX = 3;
/** Constant SUMMARY_EXCEPTION_IDX=4 */
public static final int SUMMARY_EXCEPTION_IDX = 4;
private final static Logger logger = LoggerFactory.getLogger(XmlRpcDataMarshaller.class);
/**
* Transforms the Collection of projects into a Vector of project parameters.
*
*
* @param projects a {@link java.util.Collection} object.
* @return the Collection of projects into a Vector of projects parameters
*/
public static Vector