mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Update the SiteMembership Class
This commit is contained in:
@@ -29,10 +29,10 @@ import org.alfresco.api.AlfrescoPublicApi;
|
||||
import org.alfresco.query.CannedQuerySortDetails;
|
||||
import org.alfresco.service.cmr.site.SiteInfo;
|
||||
import org.alfresco.util.Pair;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
/**
|
||||
* Conveys information for a member of a site.
|
||||
@@ -78,7 +78,8 @@ public class SiteMembership extends AbstractSiteMembership
|
||||
"FirstName required building site membership of " + siteInfo.getShortName());
|
||||
}
|
||||
this.firstName = firstName;
|
||||
this.lastName = Optional.ofNullable(lastName).orElse("");
|
||||
// this.lastName = Optional.of(lastName).orElse("");
|
||||
this.lastName= StringUtils.isBlank(lastName) ? StringUtils.EMPTY : lastName;
|
||||
this.isMemberOfGroup = isMemberOfGroup;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user