mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merged V3.2 to HEAD
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16875 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -46,7 +46,6 @@ import org.alfresco.error.AlfrescoRuntimeException;
|
||||
import org.alfresco.service.cmr.dictionary.DataTypeDefinition;
|
||||
import org.alfresco.service.cmr.dictionary.DictionaryService;
|
||||
import org.alfresco.service.cmr.dictionary.PropertyDefinition;
|
||||
import org.alfresco.service.cmr.repository.ContentIOException;
|
||||
import org.alfresco.service.cmr.repository.ContentReader;
|
||||
import org.alfresco.service.cmr.repository.MimetypeService;
|
||||
import org.alfresco.service.cmr.repository.datatype.DefaultTypeConverter;
|
||||
@@ -757,7 +756,11 @@ abstract public class AbstractMappingMetadataExtracter implements MetadataExtrac
|
||||
// Attempt to make any date conversions
|
||||
if (propertyTypeDef.getName().equals(DataTypeDefinition.DATE) || propertyTypeDef.getName().equals(DataTypeDefinition.DATETIME))
|
||||
{
|
||||
if (propertyValue instanceof Collection)
|
||||
if (propertyValue instanceof Date)
|
||||
{
|
||||
convertedPropertyValue = propertyValue;
|
||||
}
|
||||
else if (propertyValue instanceof Collection)
|
||||
{
|
||||
convertedPropertyValue = (Serializable) makeDates((Collection) propertyValue);
|
||||
}
|
||||
@@ -765,9 +768,15 @@ abstract public class AbstractMappingMetadataExtracter implements MetadataExtrac
|
||||
{
|
||||
convertedPropertyValue = makeDate((String) propertyValue);
|
||||
}
|
||||
else if(propertyValue instanceof Date)
|
||||
else
|
||||
{
|
||||
convertedPropertyValue = propertyValue;
|
||||
if (logger.isWarnEnabled())
|
||||
{
|
||||
StringBuilder mesg = new StringBuilder();
|
||||
mesg.append("Unable to convert Date property: ").append(propertyQName)
|
||||
.append(", value: ").append(propertyValue).append(", type: ").append(propertyTypeDef.getName());
|
||||
logger.warn(mesg.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user