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:
Andrei Rebegea
2017-06-14 17:02:36 +00:00
parent c1270defd1
commit f3e6780ff7

View File

@@ -113,7 +113,10 @@ public class Person implements Serializable
setLocation(location);
setTelephone(telephone);
setMobile(mobile);
if (email != null)
{
setEmail(email);
}
setSkypeId(skypeId);
setInstantMessageId(instantMessageId);
setUserStatus(userStatus);
@@ -125,8 +128,11 @@ public class Person implements Serializable
// system-maintained / derived
setStatusUpdatedAt(statusUpdatedAt);
setQuota(quota);
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());
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());
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());