@Test public void testLoadProperties() { HashMap<String, Object> p = new HashMap<String, Object>(); p.put("__HSearch_id", personId); p.put("__HSearch_Score", searchScore); p.put("dateAdded", dateAdded); p.put("accountId", accountId); p.put("title", title); p.put("jobDescription", jobDescription); p.put("preferredName", "Hey"); p.put("lastName", "McNow"); p.put("followersCount", followersCount); p.put("updatesCount", updatesCount); p.put("avatarId", avatarId); p.put("updatesCount", updatesCount); p.put("streamId", streamId); p.put("compositeStreamId", compositeStreamId); p.put("tosAcceptance", tosAcceptance); p.put("authenticationType", authenticationType); p.put("email", EMAIL); p.put("commentable", commentable); p.put("streamPostable", streamPostable); p.put("lastAcceptedTermsOfService", lastAcceptedTermsOfService); p.put("accountLocked", Boolean.TRUE); PersonModelView sut = new PersonModelView(); assertDefaultValues(sut); sut.loadProperties(p); HashSet<Role> roles = new HashSet<Role>(); sut.setRoles(roles); assertEquals(roles, sut.getRoles()); assertAll(sut); assertEquals(searchScore, sut.getSearchIndexScore(), 0); }
@SuppressWarnings("unchecked") @Override public void loadProperties(final Map<String, Object> properties) { super.loadProperties(properties); if (properties.containsKey("dateAdded")) { setDateAdded((Date) properties.get("dateAdded")); } if (properties.containsKey("accountId")) { setAccountId((String) properties.get("accountId")); } if (properties.containsKey("openSocialId")) { setOpenSocialId((String) properties.get("openSocialId")); } if (properties.containsKey("avatarId")) { setAvatarId((String) properties.get("avatarId")); } if (properties.containsKey("avatarCropSize")) { setAvatarCropSize((Integer) properties.get("avatarCropSize")); } if (properties.containsKey("avatarCropX")) { setAvatarCropX((Integer) properties.get("avatarCropX")); } if (properties.containsKey("avatarCropY")) { setAvatarCropY((Integer) properties.get("avatarCropY")); } if (properties.containsKey("optOutVideoIds")) { String videoIds = (String) properties.get("optOutVideoIds"); HashSet<Long> videoIdSet = new HashSet(); if (videoIds != null && !(videoIds.isEmpty())) { String[] videoIdsArray = videoIds.split(";"); for (String vidId : videoIdsArray) { if (!vidId.isEmpty()) { videoIdSet.add(Long.valueOf(vidId.trim())); } } } setOptOutVideos(videoIdSet); } if (properties.containsKey("displayName")) { setDisplayName((String) properties.get("displayName")); } else { if (properties.containsKey("lastName") && properties.containsKey("preferredName")) { String dName = (String) properties.get("preferredName") + " " + (String) properties.get("lastName"); if (properties.containsKey("displayNameSuffix") && properties.get("displayNameSuffix") != null) { dName += (String) properties.get("displayNameSuffix"); } setDisplayName(dName); } } if (properties.containsKey("companyName")) { setCompanyName((String) properties.get("companyName")); } if (properties.containsKey("lastName")) { setLastName((String) properties.get("lastName")); } if (properties.containsKey(PREFERREDNAME_KEY)) { setPreferredName((String) properties.get(PREFERREDNAME_KEY)); } if (properties.containsKey("title")) { setTitle((String) properties.get("title")); } if (properties.containsKey("jobDescription")) { setDescription((String) properties.get("jobDescription")); } if (properties.containsKey("followersCount")) { setFollowersCount((Integer) properties.get("followersCount")); } if (properties.containsKey("followingCount")) { setFollowingCount((Integer) properties.get("followingCount")); } if (properties.containsKey("groupsCount")) { setGroupsCount((Integer) properties.get("groupsCount")); } if (properties.containsKey("updatesCount")) { setUpdatesCount((Integer) properties.get("updatesCount")); } if (properties.containsKey("streamId")) { setStreamId((Long) properties.get("streamId")); } if (properties.containsKey("compositeStreamHiddenLineIndex")) { setCompositeStreamHiddenLineIndex((Integer) properties.get("compositeStreamHiddenLineIndex")); } if (properties.containsKey("groupStreamHiddenLineIndex")) { setGroupStreamHiddenLineIndex((Integer) properties.get("groupStreamHiddenLineIndex")); } if (properties.containsKey("tosAcceptance")) { setTosAcceptance((Boolean) properties.get("tosAcceptance")); } if (properties.containsKey("authenticationType")) { setAuthenticationType((AuthenticationType) properties.get("authenticationType")); } if (properties.containsKey("email")) { setEmail((String) properties.get("email")); } if (properties.containsKey("commentable")) { setCommentable((Boolean) properties.get("commentable")); } if (properties.containsKey("streamPostable")) { setStreamPostable((Boolean) properties.get("streamPostable")); } if (properties.containsKey("lastAcceptedTermsOfService")) { setLastAcceptedTermsOfService((Date) properties.get("lastAcceptedTermsOfService")); } if (properties.containsKey("additionalProperties")) { setAdditionalProperties((HashMap<String, String>) properties.get("additionalProperties")); } if (properties.containsKey("accountLocked")) { if ((Boolean) properties.get("accountLocked")) { setAccountLocked(true); } } if (properties.containsKey("accountDeactivated")) { if ((Boolean) properties.get("accountDeactivated")) { setAccountLocked(true); } } if (properties.containsKey("jobDescription")) { setJobDescription((String) properties.get("jobDescription")); } if (properties.containsKey("workPhone")) { setWorkPhone((String) properties.get("workPhone")); } if (properties.containsKey("cellPhone")) { setCellPhone((String) properties.get("cellPhone")); } if (properties.containsKey("fax")) { setFax((String) properties.get("fax")); } if (properties.containsKey("interests")) { setInterests((List<String>) properties.get("interests")); } if (properties.containsKey("bannerId")) { setBannerId((String) properties.get("bannerId")); } }
PersonModelView extends ModelView implements Serializable, HasEmail, Followable,
        ActivityRestrictionEntity, AvatarEntity, Bannerable, Identifiable, StreamDTO { @SuppressWarnings("unchecked") @Override public void loadProperties(final Map<String, Object> properties) { super.loadProperties(properties); if (properties.containsKey("dateAdded")) { setDateAdded((Date) properties.get("dateAdded")); } if (properties.containsKey("accountId")) { setAccountId((String) properties.get("accountId")); } if (properties.containsKey("openSocialId")) { setOpenSocialId((String) properties.get("openSocialId")); } if (properties.containsKey("avatarId")) { setAvatarId((String) properties.get("avatarId")); } if (properties.containsKey("avatarCropSize")) { setAvatarCropSize((Integer) properties.get("avatarCropSize")); } if (properties.containsKey("avatarCropX")) { setAvatarCropX((Integer) properties.get("avatarCropX")); } if (properties.containsKey("avatarCropY")) { setAvatarCropY((Integer) properties.get("avatarCropY")); } if (properties.containsKey("optOutVideoIds")) { String videoIds = (String) properties.get("optOutVideoIds"); HashSet<Long> videoIdSet = new HashSet(); if (videoIds != null && !(videoIds.isEmpty())) { String[] videoIdsArray = videoIds.split(";"); for (String vidId : videoIdsArray) { if (!vidId.isEmpty()) { videoIdSet.add(Long.valueOf(vidId.trim())); } } } setOptOutVideos(videoIdSet); } if (properties.containsKey("displayName")) { setDisplayName((String) properties.get("displayName")); } else { if (properties.containsKey("lastName") && properties.containsKey("preferredName")) { String dName = (String) properties.get("preferredName") + " " + (String) properties.get("lastName"); if (properties.containsKey("displayNameSuffix") && properties.get("displayNameSuffix") != null) { dName += (String) properties.get("displayNameSuffix"); } setDisplayName(dName); } } if (properties.containsKey("companyName")) { setCompanyName((String) properties.get("companyName")); } if (properties.containsKey("lastName")) { setLastName((String) properties.get("lastName")); } if (properties.containsKey(PREFERREDNAME_KEY)) { setPreferredName((String) properties.get(PREFERREDNAME_KEY)); } if (properties.containsKey("title")) { setTitle((String) properties.get("title")); } if (properties.containsKey("jobDescription")) { setDescription((String) properties.get("jobDescription")); } if (properties.containsKey("followersCount")) { setFollowersCount((Integer) properties.get("followersCount")); } if (properties.containsKey("followingCount")) { setFollowingCount((Integer) properties.get("followingCount")); } if (properties.containsKey("groupsCount")) { setGroupsCount((Integer) properties.get("groupsCount")); } if (properties.containsKey("updatesCount")) { setUpdatesCount((Integer) properties.get("updatesCount")); } if (properties.containsKey("streamId")) { setStreamId((Long) properties.get("streamId")); } if (properties.containsKey("compositeStreamHiddenLineIndex")) { setCompositeStreamHiddenLineIndex((Integer) properties.get("compositeStreamHiddenLineIndex")); } if (properties.containsKey("groupStreamHiddenLineIndex")) { setGroupStreamHiddenLineIndex((Integer) properties.get("groupStreamHiddenLineIndex")); } if (properties.containsKey("tosAcceptance")) { setTosAcceptance((Boolean) properties.get("tosAcceptance")); } if (properties.containsKey("authenticationType")) { setAuthenticationType((AuthenticationType) properties.get("authenticationType")); } if (properties.containsKey("email")) { setEmail((String) properties.get("email")); } if (properties.containsKey("commentable")) { setCommentable((Boolean) properties.get("commentable")); } if (properties.containsKey("streamPostable")) { setStreamPostable((Boolean) properties.get("streamPostable")); } if (properties.containsKey("lastAcceptedTermsOfService")) { setLastAcceptedTermsOfService((Date) properties.get("lastAcceptedTermsOfService")); } if (properties.containsKey("additionalProperties")) { setAdditionalProperties((HashMap<String, String>) properties.get("additionalProperties")); } if (properties.containsKey("accountLocked")) { if ((Boolean) properties.get("accountLocked")) { setAccountLocked(true); } } if (properties.containsKey("accountDeactivated")) { if ((Boolean) properties.get("accountDeactivated")) { setAccountLocked(true); } } if (properties.containsKey("jobDescription")) { setJobDescription((String) properties.get("jobDescription")); } if (properties.containsKey("workPhone")) { setWorkPhone((String) properties.get("workPhone")); } if (properties.containsKey("cellPhone")) { setCellPhone((String) properties.get("cellPhone")); } if (properties.containsKey("fax")) { setFax((String) properties.get("fax")); } if (properties.containsKey("interests")) { setInterests((List<String>) properties.get("interests")); } if (properties.containsKey("bannerId")) { setBannerId((String) properties.get("bannerId")); } } }
PersonModelView extends ModelView implements Serializable, HasEmail, Followable,
        ActivityRestrictionEntity, AvatarEntity, Bannerable, Identifiable, StreamDTO { @SuppressWarnings("unchecked") @Override public void loadProperties(final Map<String, Object> properties) { super.loadProperties(properties); if (properties.containsKey("dateAdded")) { setDateAdded((Date) properties.get("dateAdded")); } if (properties.containsKey("accountId")) { setAccountId((String) properties.get("accountId")); } if (properties.containsKey("openSocialId")) { setOpenSocialId((String) properties.get("openSocialId")); } if (properties.containsKey("avatarId")) { setAvatarId((String) properties.get("avatarId")); } if (properties.containsKey("avatarCropSize")) { setAvatarCropSize((Integer) properties.get("avatarCropSize")); } if (properties.containsKey("avatarCropX")) { setAvatarCropX((Integer) properties.get("avatarCropX")); } if (properties.containsKey("avatarCropY")) { setAvatarCropY((Integer) properties.get("avatarCropY")); } if (properties.containsKey("optOutVideoIds")) { String videoIds = (String) properties.get("optOutVideoIds"); HashSet<Long> videoIdSet = new HashSet(); if (videoIds != null && !(videoIds.isEmpty())) { String[] videoIdsArray = videoIds.split(";"); for (String vidId : videoIdsArray) { if (!vidId.isEmpty()) { videoIdSet.add(Long.valueOf(vidId.trim())); } } } setOptOutVideos(videoIdSet); } if (properties.containsKey("displayName")) { setDisplayName((String) properties.get("displayName")); } else { if (properties.containsKey("lastName") && properties.containsKey("preferredName")) { String dName = (String) properties.get("preferredName") + " " + (String) properties.get("lastName"); if (properties.containsKey("displayNameSuffix") && properties.get("displayNameSuffix") != null) { dName += (String) properties.get("displayNameSuffix"); } setDisplayName(dName); } } if (properties.containsKey("companyName")) { setCompanyName((String) properties.get("companyName")); } if (properties.containsKey("lastName")) { setLastName((String) properties.get("lastName")); } if (properties.containsKey(PREFERREDNAME_KEY)) { setPreferredName((String) properties.get(PREFERREDNAME_KEY)); } if (properties.containsKey("title")) { setTitle((String) properties.get("title")); } if (properties.containsKey("jobDescription")) { setDescription((String) properties.get("jobDescription")); } if (properties.containsKey("followersCount")) { setFollowersCount((Integer) properties.get("followersCount")); } if (properties.containsKey("followingCount")) { setFollowingCount((Integer) properties.get("followingCount")); } if (properties.containsKey("groupsCount")) { setGroupsCount((Integer) properties.get("groupsCount")); } if (properties.containsKey("updatesCount")) { setUpdatesCount((Integer) properties.get("updatesCount")); } if (properties.containsKey("streamId")) { setStreamId((Long) properties.get("streamId")); } if (properties.containsKey("compositeStreamHiddenLineIndex")) { setCompositeStreamHiddenLineIndex((Integer) properties.get("compositeStreamHiddenLineIndex")); } if (properties.containsKey("groupStreamHiddenLineIndex")) { setGroupStreamHiddenLineIndex((Integer) properties.get("groupStreamHiddenLineIndex")); } if (properties.containsKey("tosAcceptance")) { setTosAcceptance((Boolean) properties.get("tosAcceptance")); } if (properties.containsKey("authenticationType")) { setAuthenticationType((AuthenticationType) properties.get("authenticationType")); } if (properties.containsKey("email")) { setEmail((String) properties.get("email")); } if (properties.containsKey("commentable")) { setCommentable((Boolean) properties.get("commentable")); } if (properties.containsKey("streamPostable")) { setStreamPostable((Boolean) properties.get("streamPostable")); } if (properties.containsKey("lastAcceptedTermsOfService")) { setLastAcceptedTermsOfService((Date) properties.get("lastAcceptedTermsOfService")); } if (properties.containsKey("additionalProperties")) { setAdditionalProperties((HashMap<String, String>) properties.get("additionalProperties")); } if (properties.containsKey("accountLocked")) { if ((Boolean) properties.get("accountLocked")) { setAccountLocked(true); } } if (properties.containsKey("accountDeactivated")) { if ((Boolean) properties.get("accountDeactivated")) { setAccountLocked(true); } } if (properties.containsKey("jobDescription")) { setJobDescription((String) properties.get("jobDescription")); } if (properties.containsKey("workPhone")) { setWorkPhone((String) properties.get("workPhone")); } if (properties.containsKey("cellPhone")) { setCellPhone((String) properties.get("cellPhone")); } if (properties.containsKey("fax")) { setFax((String) properties.get("fax")); } if (properties.containsKey("interests")) { setInterests((List<String>) properties.get("interests")); } if (properties.containsKey("bannerId")) { setBannerId((String) properties.get("bannerId")); } } PersonModelView();  PersonModelView(final Long inId, final String inAccountId, final String inPreferredName,
            final String inLastName, final String inDisplayName, final String inDisplayNameSuffix,
            final Integer inFollowerCount, final Date inDateAdded, final Long inStreamScopeId);  PersonModelView(final Long inId, final String inAccountId, final String inPreferredName,
            final String inLastName, final String inDisplayName, final String inDisplayNameSuffix,
            final Long inFollowerCount, final Date inDateAdded, final Long inStreamScopeId); }
PersonModelView extends ModelView implements Serializable, HasEmail, Followable,
        ActivityRestrictionEntity, AvatarEntity, Bannerable, Identifiable, StreamDTO { @SuppressWarnings("unchecked") @Override public void loadProperties(final Map<String, Object> properties) { super.loadProperties(properties); if (properties.containsKey("dateAdded")) { setDateAdded((Date) properties.get("dateAdded")); } if (properties.containsKey("accountId")) { setAccountId((String) properties.get("accountId")); } if (properties.containsKey("openSocialId")) { setOpenSocialId((String) properties.get("openSocialId")); } if (properties.containsKey("avatarId")) { setAvatarId((String) properties.get("avatarId")); } if (properties.containsKey("avatarCropSize")) { setAvatarCropSize((Integer) properties.get("avatarCropSize")); } if (properties.containsKey("avatarCropX")) { setAvatarCropX((Integer) properties.get("avatarCropX")); } if (properties.containsKey("avatarCropY")) { setAvatarCropY((Integer) properties.get("avatarCropY")); } if (properties.containsKey("optOutVideoIds")) { String videoIds = (String) properties.get("optOutVideoIds"); HashSet<Long> videoIdSet = new HashSet(); if (videoIds != null && !(videoIds.isEmpty())) { String[] videoIdsArray = videoIds.split(";"); for (String vidId : videoIdsArray) { if (!vidId.isEmpty()) { videoIdSet.add(Long.valueOf(vidId.trim())); } } } setOptOutVideos(videoIdSet); } if (properties.containsKey("displayName")) { setDisplayName((String) properties.get("displayName")); } else { if (properties.containsKey("lastName") && properties.containsKey("preferredName")) { String dName = (String) properties.get("preferredName") + " " + (String) properties.get("lastName"); if (properties.containsKey("displayNameSuffix") && properties.get("displayNameSuffix") != null) { dName += (String) properties.get("displayNameSuffix"); } setDisplayName(dName); } } if (properties.containsKey("companyName")) { setCompanyName((String) properties.get("companyName")); } if (properties.containsKey("lastName")) { setLastName((String) properties.get("lastName")); } if (properties.containsKey(PREFERREDNAME_KEY)) { setPreferredName((String) properties.get(PREFERREDNAME_KEY)); } if (properties.containsKey("title")) { setTitle((String) properties.get("title")); } if (properties.containsKey("jobDescription")) { setDescription((String) properties.get("jobDescription")); } if (properties.containsKey("followersCount")) { setFollowersCount((Integer) properties.get("followersCount")); } if (properties.containsKey("followingCount")) { setFollowingCount((Integer) properties.get("followingCount")); } if (properties.containsKey("groupsCount")) { setGroupsCount((Integer) properties.get("groupsCount")); } if (properties.containsKey("updatesCount")) { setUpdatesCount((Integer) properties.get("updatesCount")); } if (properties.containsKey("streamId")) { setStreamId((Long) properties.get("streamId")); } if (properties.containsKey("compositeStreamHiddenLineIndex")) { setCompositeStreamHiddenLineIndex((Integer) properties.get("compositeStreamHiddenLineIndex")); } if (properties.containsKey("groupStreamHiddenLineIndex")) { setGroupStreamHiddenLineIndex((Integer) properties.get("groupStreamHiddenLineIndex")); } if (properties.containsKey("tosAcceptance")) { setTosAcceptance((Boolean) properties.get("tosAcceptance")); } if (properties.containsKey("authenticationType")) { setAuthenticationType((AuthenticationType) properties.get("authenticationType")); } if (properties.containsKey("email")) { setEmail((String) properties.get("email")); } if (properties.containsKey("commentable")) { setCommentable((Boolean) properties.get("commentable")); } if (properties.containsKey("streamPostable")) { setStreamPostable((Boolean) properties.get("streamPostable")); } if (properties.containsKey("lastAcceptedTermsOfService")) { setLastAcceptedTermsOfService((Date) properties.get("lastAcceptedTermsOfService")); } if (properties.containsKey("additionalProperties")) { setAdditionalProperties((HashMap<String, String>) properties.get("additionalProperties")); } if (properties.containsKey("accountLocked")) { if ((Boolean) properties.get("accountLocked")) { setAccountLocked(true); } } if (properties.containsKey("accountDeactivated")) { if ((Boolean) properties.get("accountDeactivated")) { setAccountLocked(true); } } if (properties.containsKey("jobDescription")) { setJobDescription((String) properties.get("jobDescription")); } if (properties.containsKey("workPhone")) { setWorkPhone((String) properties.get("workPhone")); } if (properties.containsKey("cellPhone")) { setCellPhone((String) properties.get("cellPhone")); } if (properties.containsKey("fax")) { setFax((String) properties.get("fax")); } if (properties.containsKey("interests")) { setInterests((List<String>) properties.get("interests")); } if (properties.containsKey("bannerId")) { setBannerId((String) properties.get("bannerId")); } } PersonModelView();  PersonModelView(final Long inId, final String inAccountId, final String inPreferredName,
            final String inLastName, final String inDisplayName, final String inDisplayNameSuffix,
            final Integer inFollowerCount, final Date inDateAdded, final Long inStreamScopeId);  PersonModelView(final Long inId, final String inAccountId, final String inPreferredName,
            final String inLastName, final String inDisplayName, final String inDisplayNameSuffix,
            final Long inFollowerCount, final Date inDateAdded, final Long inStreamScopeId); @SuppressWarnings("unchecked") @Override void loadProperties(final Map<String, Object> properties); @Override Date getDateAdded(); void setDateAdded(final Date inDateAdded); String getAccountId(); void setAccountId(final String inAccountId); String getOpenSocialId(); void setOpenSocialId(final String inOpenSocialId); @Override String getTitle(); void setTitle(final String inTitle); String getDescription(); void setDescription(final String inDescription); @Override int getFollowersCount(); int getGroupsCount(); void setGroupsCount(final int inGroupsCount); void setFollowersCount(final int inFollowersCount); @Override String getDisplayName(); @Override void setDisplayName(final String inDisplayName); @Override String getAvatarId(); @Override void setAvatarId(final String inAvatarId); @Override void setEntityId(final long inEntityId); int getUpdatesCount(); void setUpdatesCount(final int inUpdatesCount); @Override long getStreamId(); void setStreamId(final long inStreamId); int getCompositeStreamHiddenLineIndex(); void setCompositeStreamHiddenLineIndex(final int inCompositeStreamHiddenLineIndex); int getGroupStreamHiddenLineIndex(); void setGroupStreamHiddenLineIndex(final int inGroupStreamHiddenLineIndex); void setRoles(final HashSet<Role> inRoles); Set<Role> getRoles(); boolean getTosAcceptance(); void setTosAcceptance(final boolean inToSAcceptance); AuthenticationType getAuthenticationType(); void setAuthenticationType(final AuthenticationType inAuthenticationType); @Override String getEmail(); void setEmail(final String inEmail); void setCommentable(final boolean inCommentable); @Override boolean isCommentable(); @Override boolean isStreamPostable(); void setStreamPostable(final boolean inStreamPostable); HashSet<Long> getOptOutVideos(); void setOptOutVideos(final HashSet<Long> inOptOutVideos); @Override long getId(); @Override String getUniqueId(); @Override String getStreamUniqueKey(); Date getLastAcceptedTermsOfService(); void setLastAcceptedTermsOfService(final Date inLastAcceptedTermsOfService); void setAdditionalProperties(final HashMap<String, String> inAdditionalProperties); HashMap<String, String> getAdditionalProperties(); boolean isAccountLocked(); void setAccountLocked(final boolean inAccountLocked); String getLastName(); void setLastName(final String inLastName); int getFollowingCount(); void setFollowingCount(final int inFollowingCount); String getPreferredName(); void setPreferredName(final String inPreferredName); String getJobDescription(); void setJobDescription(final String inJobDescription); @Override Integer getAvatarCropSize(); @Override void setAvatarCropSize(final Integer inAvatarCropSize); @Override Integer getAvatarCropX(); @Override void setAvatarCropX(final Integer inAvatarCropX); @Override Integer getAvatarCropY(); @Override void setAvatarCropY(final Integer inAvatarCropY); String getCellPhone(); void setCellPhone(final String inCellPhone); String getFax(); void setFax(final String inFax); String getWorkPhone(); void setWorkPhone(final String inWorkPhone); List<String> getInterests(); void setInterests(final List<String> inInterests); @Override Long getBannerEntityId(); @Override String getBannerId(); @Override void setBannerEntityId(final Long inBannerEntityId); @Override void setBannerId(final String inBannerId); String getCompanyName(); void setCompanyName(final String inCompanyName); @Override EntityType getEntityType(); @Override FollowerStatus getFollowerStatus(); @Override void setFollowerStatus(final FollowerStatus inFollowerStatus); @Override Long getStreamScopeId(); void setStreamScopeId(final Long inStreamScopeId); @Override Boolean isPublic(); String getDisplayNameSuffix(); void setDisplayNameSuffix(final String inDisplayNameSuffix); }
PersonModelView extends ModelView implements Serializable, HasEmail, Followable,
        ActivityRestrictionEntity, AvatarEntity, Bannerable, Identifiable, StreamDTO { @SuppressWarnings("unchecked") @Override public void loadProperties(final Map<String, Object> properties) { super.loadProperties(properties); if (properties.containsKey("dateAdded")) { setDateAdded((Date) properties.get("dateAdded")); } if (properties.containsKey("accountId")) { setAccountId((String) properties.get("accountId")); } if (properties.containsKey("openSocialId")) { setOpenSocialId((String) properties.get("openSocialId")); } if (properties.containsKey("avatarId")) { setAvatarId((String) properties.get("avatarId")); } if (properties.containsKey("avatarCropSize")) { setAvatarCropSize((Integer) properties.get("avatarCropSize")); } if (properties.containsKey("avatarCropX")) { setAvatarCropX((Integer) properties.get("avatarCropX")); } if (properties.containsKey("avatarCropY")) { setAvatarCropY((Integer) properties.get("avatarCropY")); } if (properties.containsKey("optOutVideoIds")) { String videoIds = (String) properties.get("optOutVideoIds"); HashSet<Long> videoIdSet = new HashSet(); if (videoIds != null && !(videoIds.isEmpty())) { String[] videoIdsArray = videoIds.split(";"); for (String vidId : videoIdsArray) { if (!vidId.isEmpty()) { videoIdSet.add(Long.valueOf(vidId.trim())); } } } setOptOutVideos(videoIdSet); } if (properties.containsKey("displayName")) { setDisplayName((String) properties.get("displayName")); } else { if (properties.containsKey("lastName") && properties.containsKey("preferredName")) { String dName = (String) properties.get("preferredName") + " " + (String) properties.get("lastName"); if (properties.containsKey("displayNameSuffix") && properties.get("displayNameSuffix") != null) { dName += (String) properties.get("displayNameSuffix"); } setDisplayName(dName); } } if (properties.containsKey("companyName")) { setCompanyName((String) properties.get("companyName")); } if (properties.containsKey("lastName")) { setLastName((String) properties.get("lastName")); } if (properties.containsKey(PREFERREDNAME_KEY)) { setPreferredName((String) properties.get(PREFERREDNAME_KEY)); } if (properties.containsKey("title")) { setTitle((String) properties.get("title")); } if (properties.containsKey("jobDescription")) { setDescription((String) properties.get("jobDescription")); } if (properties.containsKey("followersCount")) { setFollowersCount((Integer) properties.get("followersCount")); } if (properties.containsKey("followingCount")) { setFollowingCount((Integer) properties.get("followingCount")); } if (properties.containsKey("groupsCount")) { setGroupsCount((Integer) properties.get("groupsCount")); } if (properties.containsKey("updatesCount")) { setUpdatesCount((Integer) properties.get("updatesCount")); } if (properties.containsKey("streamId")) { setStreamId((Long) properties.get("streamId")); } if (properties.containsKey("compositeStreamHiddenLineIndex")) { setCompositeStreamHiddenLineIndex((Integer) properties.get("compositeStreamHiddenLineIndex")); } if (properties.containsKey("groupStreamHiddenLineIndex")) { setGroupStreamHiddenLineIndex((Integer) properties.get("groupStreamHiddenLineIndex")); } if (properties.containsKey("tosAcceptance")) { setTosAcceptance((Boolean) properties.get("tosAcceptance")); } if (properties.containsKey("authenticationType")) { setAuthenticationType((AuthenticationType) properties.get("authenticationType")); } if (properties.containsKey("email")) { setEmail((String) properties.get("email")); } if (properties.containsKey("commentable")) { setCommentable((Boolean) properties.get("commentable")); } if (properties.containsKey("streamPostable")) { setStreamPostable((Boolean) properties.get("streamPostable")); } if (properties.containsKey("lastAcceptedTermsOfService")) { setLastAcceptedTermsOfService((Date) properties.get("lastAcceptedTermsOfService")); } if (properties.containsKey("additionalProperties")) { setAdditionalProperties((HashMap<String, String>) properties.get("additionalProperties")); } if (properties.containsKey("accountLocked")) { if ((Boolean) properties.get("accountLocked")) { setAccountLocked(true); } } if (properties.containsKey("accountDeactivated")) { if ((Boolean) properties.get("accountDeactivated")) { setAccountLocked(true); } } if (properties.containsKey("jobDescription")) { setJobDescription((String) properties.get("jobDescription")); } if (properties.containsKey("workPhone")) { setWorkPhone((String) properties.get("workPhone")); } if (properties.containsKey("cellPhone")) { setCellPhone((String) properties.get("cellPhone")); } if (properties.containsKey("fax")) { setFax((String) properties.get("fax")); } if (properties.containsKey("interests")) { setInterests((List<String>) properties.get("interests")); } if (properties.containsKey("bannerId")) { setBannerId((String) properties.get("bannerId")); } } PersonModelView();  PersonModelView(final Long inId, final String inAccountId, final String inPreferredName,
            final String inLastName, final String inDisplayName, final String inDisplayNameSuffix,
            final Integer inFollowerCount, final Date inDateAdded, final Long inStreamScopeId);  PersonModelView(final Long inId, final String inAccountId, final String inPreferredName,
            final String inLastName, final String inDisplayName, final String inDisplayNameSuffix,
            final Long inFollowerCount, final Date inDateAdded, final Long inStreamScopeId); @SuppressWarnings("unchecked") @Override void loadProperties(final Map<String, Object> properties); @Override Date getDateAdded(); void setDateAdded(final Date inDateAdded); String getAccountId(); void setAccountId(final String inAccountId); String getOpenSocialId(); void setOpenSocialId(final String inOpenSocialId); @Override String getTitle(); void setTitle(final String inTitle); String getDescription(); void setDescription(final String inDescription); @Override int getFollowersCount(); int getGroupsCount(); void setGroupsCount(final int inGroupsCount); void setFollowersCount(final int inFollowersCount); @Override String getDisplayName(); @Override void setDisplayName(final String inDisplayName); @Override String getAvatarId(); @Override void setAvatarId(final String inAvatarId); @Override void setEntityId(final long inEntityId); int getUpdatesCount(); void setUpdatesCount(final int inUpdatesCount); @Override long getStreamId(); void setStreamId(final long inStreamId); int getCompositeStreamHiddenLineIndex(); void setCompositeStreamHiddenLineIndex(final int inCompositeStreamHiddenLineIndex); int getGroupStreamHiddenLineIndex(); void setGroupStreamHiddenLineIndex(final int inGroupStreamHiddenLineIndex); void setRoles(final HashSet<Role> inRoles); Set<Role> getRoles(); boolean getTosAcceptance(); void setTosAcceptance(final boolean inToSAcceptance); AuthenticationType getAuthenticationType(); void setAuthenticationType(final AuthenticationType inAuthenticationType); @Override String getEmail(); void setEmail(final String inEmail); void setCommentable(final boolean inCommentable); @Override boolean isCommentable(); @Override boolean isStreamPostable(); void setStreamPostable(final boolean inStreamPostable); HashSet<Long> getOptOutVideos(); void setOptOutVideos(final HashSet<Long> inOptOutVideos); @Override long getId(); @Override String getUniqueId(); @Override String getStreamUniqueKey(); Date getLastAcceptedTermsOfService(); void setLastAcceptedTermsOfService(final Date inLastAcceptedTermsOfService); void setAdditionalProperties(final HashMap<String, String> inAdditionalProperties); HashMap<String, String> getAdditionalProperties(); boolean isAccountLocked(); void setAccountLocked(final boolean inAccountLocked); String getLastName(); void setLastName(final String inLastName); int getFollowingCount(); void setFollowingCount(final int inFollowingCount); String getPreferredName(); void setPreferredName(final String inPreferredName); String getJobDescription(); void setJobDescription(final String inJobDescription); @Override Integer getAvatarCropSize(); @Override void setAvatarCropSize(final Integer inAvatarCropSize); @Override Integer getAvatarCropX(); @Override void setAvatarCropX(final Integer inAvatarCropX); @Override Integer getAvatarCropY(); @Override void setAvatarCropY(final Integer inAvatarCropY); String getCellPhone(); void setCellPhone(final String inCellPhone); String getFax(); void setFax(final String inFax); String getWorkPhone(); void setWorkPhone(final String inWorkPhone); List<String> getInterests(); void setInterests(final List<String> inInterests); @Override Long getBannerEntityId(); @Override String getBannerId(); @Override void setBannerEntityId(final Long inBannerEntityId); @Override void setBannerId(final String inBannerId); String getCompanyName(); void setCompanyName(final String inCompanyName); @Override EntityType getEntityType(); @Override FollowerStatus getFollowerStatus(); @Override void setFollowerStatus(final FollowerStatus inFollowerStatus); @Override Long getStreamScopeId(); void setStreamScopeId(final Long inStreamScopeId); @Override Boolean isPublic(); String getDisplayNameSuffix(); void setDisplayNameSuffix(final String inDisplayNameSuffix); static final String TITILE_KEY; static final String PREFERREDNAME_KEY; static final String DESCRIPTION_KEY; static final String SKILLS_KEY; static final String WORKPHONE_KEY; static final String CELLPHONE_KEY; static final String FAX_KEY; static final String EMAIL_KEY; static final String SKILLS_MESSAGE; }