CPD Results
The following document contains the results of PMD's CPD 5.3.5.
Duplications
File |
Line |
com/tvnavig/server/searchengine/SearchAssetServiceSoapBindingStub.java |
203 |
com/tvnavig/server/user/UserServiceSoapBindingStub.java |
223 |
cls = com.tvnavig.server.searchengine.SearchAssetServiceException.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("http://util.server.tvnavig.com", "ServiceException");
cachedSerQNames.add(qName);
cls = com.tvnavig.server.util.ServiceException.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
}
protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
try {
org.apache.axis.client.Call _call = super._createCall();
if (super.maintainSessionSet) {
_call.setMaintainSession(super.maintainSession);
}
if (super.cachedUsername != null) {
_call.setUsername(super.cachedUsername);
}
if (super.cachedPassword != null) {
_call.setPassword(super.cachedPassword);
}
if (super.cachedEndpoint != null) {
_call.setTargetEndpointAddress(super.cachedEndpoint);
}
if (super.cachedTimeout != null) {
_call.setTimeout(super.cachedTimeout);
}
if (super.cachedPortName != null) {
_call.setPortName(super.cachedPortName);
}
java.util.Enumeration keys = super.cachedProperties.keys();
while (keys.hasMoreElements()) {
java.lang.String key = (java.lang.String) keys.nextElement();
_call.setProperty(key, super.cachedProperties.get(key));
}
// All the type mapping information is registered
// when the first call is made.
// The type mapping information is actually registered in
// the TypeMappingRegistry of the service, which
// is the reason why registration is only needed for the first call.
synchronized (this) {
if (firstCall()) {
// must set encoding style before registering serializers
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
for (int i = 0; i < cachedSerFactories.size(); ++i) {
java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
javax.xml.namespace.QName qName =
(javax.xml.namespace.QName) cachedSerQNames.get(i);
java.lang.Object x = cachedSerFactories.get(i);
if (x instanceof Class) {
java.lang.Class sf = (java.lang.Class)
cachedSerFactories.get(i);
java.lang.Class df = (java.lang.Class)
cachedDeserFactories.get(i);
_call.registerTypeMapping(cls, qName, sf, df, false);
}
else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
cachedSerFactories.get(i);
org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
cachedDeserFactories.get(i);
_call.registerTypeMapping(cls, qName, sf, df, false);
}
}
}
}
return _call;
}
catch (java.lang.Throwable _t) {
throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
}
}
public com.tvnavig.server.searchengine.service.common.AssetOGC getAsset(int domainId, int id) throws java.rmi.RemoteException, com.tvnavig.server.searchengine.SearchAssetServiceException { |
File |
Line |
com/tvnavig/server/searchengine/SearchAssetServiceSoapBindingStub.java |
133 |
com/tvnavig/server/user/UserServiceSoapBindingStub.java |
130 |
public SearchAssetServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
if (service == null) {
super.service = new org.apache.axis.client.Service();
} else {
super.service = service;
}
((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
java.lang.Class cls;
javax.xml.namespace.QName qName;
javax.xml.namespace.QName qName2;
java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
qName = new javax.xml.namespace.QName("http://common.service.asset.server.tvnavig.com", "MetaValueResult"); |
File |
Line |
com/tvnavig/server/user/service/common/UserDomainResult.java |
145 |
com/tvnavig/server/user/service/common/UserGroupResult.java |
181 |
elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
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(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
} |
File |
Line |
com/tvnavig/server/searchengine/SearchAssetServiceException.java |
85 |
com/tvnavig/server/user/UserServiceException.java |
85 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "SearchAssetServiceException"));
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
/**
* Writes the exception data to the faultDetails
*/
public void writeDetails(javax.xml.namespace.QName qname, org.apache.axis.encoding.SerializationContext context) throws java.io.IOException {
context.serialize(qname, null, this);
}
} |
File |
Line |
com/tvnavig/server/searchengine/SearchAssetServiceException.java |
85 |
com/tvnavig/server/user/UserServiceException.java |
85 |
com/tvnavig/server/util/ServiceException.java |
126 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "SearchAssetServiceException"));
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
/**
* Writes the exception data to the faultDetails
*/
public void writeDetails(javax.xml.namespace.QName qname, org.apache.axis.encoding.SerializationContext context) throws java.io.IOException {
context.serialize(qname, null, this);
}
} |
File |
Line |
com/tvnavig/server/asset/service/common/MetaValueResult.java |
187 |
com/tvnavig/server/searchengine/service/common/AssetPlayer.java |
151 |
com/tvnavig/server/user/service/common/MetaDataResult.java |
223 |
com/tvnavig/server/user/service/common/UserDomainResult.java |
151 |
com/tvnavig/server/user/service/common/UserGroupResult.java |
187 |
elemField.setXmlName(new javax.xml.namespace.QName("", "value"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
} |
File |
Line |
com/tvnavig/server/searchengine/service/common/AssetOGC.java |
419 |
com/tvnavig/server/util/ServiceException.java |
123 |
elemField.setXmlName(new javax.xml.namespace.QName("", "videoURL"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
public int compareTo(AssetOGC assetOgc) |
File |
Line |
com/tvnavig/server/asset/service/common/MetaValueResult.java |
187 |
com/tvnavig/server/searchengine/service/common/AssetOGC.java |
419 |
com/tvnavig/server/searchengine/service/common/AssetPlayer.java |
151 |
com/tvnavig/server/user/service/common/MetaDataResult.java |
223 |
com/tvnavig/server/user/service/common/UserDomainResult.java |
151 |
com/tvnavig/server/user/service/common/UserGroupResult.java |
187 |
com/tvnavig/server/util/ServiceException.java |
123 |
elemField.setXmlName(new javax.xml.namespace.QName("", "value"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
} |
File |
Line |
com/tvnavig/server/asset/service/common/MetaValueResult.java |
188 |
com/tvnavig/server/searchengine/service/common/AssetPlayer.java |
152 |
com/tvnavig/server/user/service/common/MetaDataResult.java |
224 |
com/tvnavig/server/user/service/common/UserDomainResult.java |
152 |
com/tvnavig/server/user/service/common/UserGroupResult.java |
188 |
com/tvnavig/server/user/service/common/UserGroupandMetaDataResult.java |
168 |
com/tvnavig/server/user/service/common/UserServiceResult.java |
260 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
} |
File |
Line |
com/tvnavig/server/searchengine/service/common/AssetOGC.java |
420 |
com/tvnavig/server/user/service/common/UserGroupandMetaDataResult.java |
168 |
com/tvnavig/server/user/service/common/UserServiceResult.java |
260 |
com/tvnavig/server/util/ServiceException.java |
124 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
} |
File |
Line |
com/tvnavig/server/searchengine/SearchAssetServiceException.java |
85 |
com/tvnavig/server/searchengine/service/common/AssetOGC.java |
422 |
com/tvnavig/server/user/UserServiceException.java |
85 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "SearchAssetServiceException"));
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
/**
* Writes the exception data to the faultDetails
*/
public void writeDetails(javax.xml.namespace.QName qname, org.apache.axis.encoding.SerializationContext context) throws java.io.IOException { |
File |
Line |
com/tvnavig/server/asset/service/common/MetaValueResult.java |
190 |
com/tvnavig/server/searchengine/SearchAssetServiceException.java |
85 |
com/tvnavig/server/searchengine/service/common/AssetPlayer.java |
154 |
com/tvnavig/server/user/UserServiceException.java |
85 |
com/tvnavig/server/user/service/common/MetaDataResult.java |
226 |
com/tvnavig/server/user/service/common/UserDomainResult.java |
154 |
com/tvnavig/server/user/service/common/UserGroupResult.java |
190 |
com/tvnavig/server/user/service/common/UserGroupandMetaDataResult.java |
170 |
com/tvnavig/server/user/service/common/UserServiceResult.java |
262 |
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
} |
File |
Line |
com/tvnavig/server/searchengine/SearchAssetServiceServiceLocator.java |
110 |
com/tvnavig/server/user/UserServiceServiceLocator.java |
110 |
_stub.setPortName(getSearchAssetServiceWSDDServiceName());
return _stub;
}
}
catch (java.lang.Throwable t) {
throw new javax.xml.rpc.ServiceException(t);
}
throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
}
/**
* For the given interface, get the stub implementation.
* If this service has no port for the given interface,
* then ServiceException is thrown.
*/
public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
if (portName == null) {
return getPort(serviceEndpointInterface);
}
java.lang.String inputPortName = portName.getLocalPart();
if ("SearchAssetService".equals(inputPortName)) { |
File |
Line |
com/tvnavig/server/searchengine/SearchAssetServiceException.java |
56 |
com/tvnavig/server/user/UserServiceException.java |
56 |
SearchAssetServiceException other = (SearchAssetServiceException) 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(SearchAssetServiceException.class, true); |
File |
Line |
com/tvnavig/server/searchengine/SearchAssetServiceSoapBindingStub.java |
305 |
com/tvnavig/server/searchengine/SearchAssetServiceSoapBindingStub.java |
344 |
return (com.tvnavig.server.searchengine.service.common.AssetOGC) org.apache.axis.utils.JavaUtils.convert(_resp, com.tvnavig.server.searchengine.service.common.AssetOGC.class);
}
}
} catch (org.apache.axis.AxisFault axisFaultException) {
if (axisFaultException.detail != null) {
if (axisFaultException.detail instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException) axisFaultException.detail;
}
if (axisFaultException.detail instanceof com.tvnavig.server.searchengine.SearchAssetServiceException) {
throw (com.tvnavig.server.searchengine.SearchAssetServiceException) axisFaultException.detail;
}
}
throw axisFaultException;
}
}
public com.tvnavig.server.searchengine.service.common.AssetOGC[] getAssetsList(int domainId, java.lang.String searchSubject, com.tvnavig.server.asset.service.common.MetaValueResult[] metaValues, java.util.Calendar beginDate, java.util.Calendar endDate, java.lang.String format) throws java.rmi.RemoteException, com.tvnavig.server.searchengine.SearchAssetServiceException { |
File |
Line |
com/tvnavig/server/user/UserServiceSoapBindingStub.java |
349 |
com/tvnavig/server/user/UserServiceSoapBindingStub.java |
388 |
return (com.tvnavig.server.user.service.common.UserServiceResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.tvnavig.server.user.service.common.UserServiceResult.class);
}
}
} catch (org.apache.axis.AxisFault axisFaultException) {
if (axisFaultException.detail != null) {
if (axisFaultException.detail instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException) axisFaultException.detail;
}
if (axisFaultException.detail instanceof com.tvnavig.server.user.UserServiceException) {
throw (com.tvnavig.server.user.UserServiceException) axisFaultException.detail;
}
}
throw axisFaultException;
}
}
public com.tvnavig.server.user.service.common.UserDomainResult[] getDomainsFromUser(int userId) throws java.rmi.RemoteException, com.tvnavig.server.user.UserServiceException { |
File |
Line |
com/tvnavig/server/searchengine/service/common/AssetOGC.java |
401 |
com/tvnavig/server/searchengine/service/common/AssetPlayer.java |
145 |
elemField.setXmlName(new javax.xml.namespace.QName("", "previewURL"));
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("thumbnail");
elemField.setXmlName(new javax.xml.namespace.QName("", "thumbnail"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField); |