public abstract class AbstractUser extends BaseSocialComponent implements User
User.BadgeRESOURCE_TYPE, SOCIAL_AUTHORS_PREFIXCSV_SELECTOR, DEFAULT_SELECTOR, INDEX_SELECTOR, PROP_REFERER, QUERY_SELECTOR, TRANSLATE_SELECTOR| Constructor and Description |
|---|
AbstractUser(Resource resource,
ClientUtilities clientUtils,
UserPropertiesManager upm)
Create a user based on the resource.
|
AbstractUser(Resource resource,
ClientUtilities clientUtils,
UserPropertiesManager upm,
ScoringService scoring)
Deprecated.
|
AbstractUser(Resource resource,
ClientUtilities clientUtils,
UserPropertiesManager upm,
ScoringService scoring,
BadgingService badging)
Create a user based on the resource.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAuthorizableId() |
java.lang.String |
getAvatarUrl()
Get URL to fetch the user avatar.
|
java.util.List<User.Badge> |
getBadges() |
java.lang.Boolean |
getDisabled() |
java.lang.String |
getDisabledReason() |
java.lang.String |
getFriendlyUrl()
Get a url that can be used to display this component, most of the time, this is the page url that contains the
component.
|
java.lang.String |
getLargeAvatarUrl()
Get URL to fetch the user avatar (48px).
|
java.lang.String |
getName()
User display name.
|
java.lang.Long |
getNumberOfPosts()
Deprecated.
|
java.lang.String |
getPath()
Get the path of the user.
|
java.lang.String |
getProfileUrl()
Get externalized URL to the profile page
|
java.lang.String |
getUserId() |
java.lang.Boolean |
isUserUGCLimited()
Checks if is user sand boxed.
|
buildJSONString, getAsMap, getId, getParentComponent, getProperties, getProperty, getProperty, getResource, getResourceType, getSourceComponent, getUrl, toJSONStringequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsMap, getId, getParentComponent, getProperties, getProperty, getProperty, getResource, getResourceType, getSourceComponent, getUrl, toJSONString@Deprecated public AbstractUser(Resource resource, ClientUtilities clientUtils, UserPropertiesManager upm, @Nullable ScoringService scoring)
resource - the resource to try and get a User forclientUtils - client utils used for the social componentupm - user properties manager for getting profile detailsscoring - used to determine badging in real time.public AbstractUser(Resource resource, ClientUtilities clientUtils, UserPropertiesManager upm, @Nullable ScoringService scoring, @Nullable BadgingService badging)
resource - the resource to try and get a User forclientUtils - client utils used for the social componentupm - user properties manager for getting profile detailsscoring - used to determine scoring in real time.badging - used to determine badging in real time.public AbstractUser(Resource resource, ClientUtilities clientUtils, UserPropertiesManager upm)
resource - the resource to try and get a User forclientUtils - client utils used for the social componentupm - user properties manager for getting profile detailspublic java.lang.String getName()
SocialAuthorizablegetName in interface SocialAuthorizablepublic java.lang.String getAvatarUrl()
UsergetAvatarUrl in interface Userpublic java.lang.String getLargeAvatarUrl()
UsergetLargeAvatarUrl in interface Userpublic java.lang.String getAuthorizableId()
getAuthorizableId in interface SocialAuthorizablepublic java.lang.String getPath()
SocialAuthorizablegetPath in interface SocialAuthorizablepublic java.lang.String getUserId()
public java.lang.String getProfileUrl()
UsergetProfileUrl in interface Userpublic java.lang.String getFriendlyUrl()
SocialComponentgetFriendlyUrl in interface SocialComponentgetFriendlyUrl in class BaseSocialComponent@Deprecated public java.lang.Long getNumberOfPosts()
getNumberOfPosts in interface Userpublic java.util.List<User.Badge> getBadges()
public java.lang.Boolean getDisabled()
getDisabled in interface Userpublic java.lang.Boolean isUserUGCLimited()
UserisUserUGCLimited in interface Userpublic java.lang.String getDisabledReason()
getDisabledReason in interface UserCopyright © 2010 - 2023 Adobe. All Rights Reserved