mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged 5.2.N (5.2.2) to HEAD (5.2)
135306 cturlica: Merged 5.2.0-CLOUD45 (Cloud ) to 5.2.N (5.2.1) 135265 cturlica: CLD-67: TestSiteMembershipRequests tests failing after cloud update from 5.2-SNAPSHOT to 5.2.0-CLOUD45-SNAPSHOT (plat/share) - we shouldn't have default null value for not set properties (partial change for REPO-892) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@137385 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -113,7 +113,10 @@ public class Person implements Serializable
|
||||
setLocation(location);
|
||||
setTelephone(telephone);
|
||||
setMobile(mobile);
|
||||
setEmail(email);
|
||||
if (email != null)
|
||||
{
|
||||
setEmail(email);
|
||||
}
|
||||
setSkypeId(skypeId);
|
||||
setInstantMessageId(instantMessageId);
|
||||
setUserStatus(userStatus);
|
||||
@@ -125,7 +128,10 @@ public class Person implements Serializable
|
||||
// system-maintained / derived
|
||||
setStatusUpdatedAt(statusUpdatedAt);
|
||||
setQuota(quota);
|
||||
setQuotaUsed(quotaUsed);
|
||||
if (quotaUsed != null)
|
||||
{
|
||||
setQuotaUsed(quotaUsed);
|
||||
}
|
||||
}
|
||||
|
||||
public Person(NodeRef nodeRef, Map<QName, Serializable> nodeProps, boolean enabled)
|
||||
@@ -489,7 +495,10 @@ public class Person implements Serializable
|
||||
addToMap(properties, ContentModel.PROP_LOCATION, getLocation());
|
||||
addToMap(properties, ContentModel.PROP_TELEPHONE, getTelephone());
|
||||
addToMap(properties, ContentModel.PROP_MOBILE, getMobile());
|
||||
addToMap(properties, ContentModel.PROP_EMAIL, getEmail());
|
||||
if (wasSet(ContentModel.PROP_EMAIL))
|
||||
{
|
||||
addToMap(properties, ContentModel.PROP_EMAIL, getEmail());
|
||||
}
|
||||
|
||||
if (wasSet(PROP_PERSON_COMPANY))
|
||||
{
|
||||
@@ -568,7 +577,10 @@ public class Person implements Serializable
|
||||
addToMap(properties, ContentModel.PROP_USER_STATUS_TIME, getStatusUpdatedAt());
|
||||
addToMap(properties, ContentModel.PROP_GOOGLEUSERNAME, getGoogleId());
|
||||
addToMap(properties, ContentModel.PROP_SIZE_QUOTA, getQuota());
|
||||
addToMap(properties, ContentModel.PROP_SIZE_CURRENT, getQuotaUsed());
|
||||
if (wasSet(ContentModel.PROP_SIZE_CURRENT))
|
||||
{
|
||||
addToMap(properties, ContentModel.PROP_SIZE_CURRENT, getQuotaUsed());
|
||||
}
|
||||
addToMap(properties, ContentModel.PROP_PERSONDESC, getDescription());
|
||||
addToMap(properties, ContentModel.PROP_ENABLED, isEnabled());
|
||||
|
||||
|
Reference in New Issue
Block a user