public abstract class AbstractUser extends BaseSocialComponent implements User
User.Badge
RESOURCE_TYPE, SOCIAL_AUTHORS_PREFIX
CSV_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, toJSONString
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAsMap, 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()
SocialAuthorizable
getName
in interface SocialAuthorizable
public java.lang.String getAvatarUrl()
User
getAvatarUrl
in interface User
public java.lang.String getLargeAvatarUrl()
User
getLargeAvatarUrl
in interface User
public java.lang.String getAuthorizableId()
getAuthorizableId
in interface SocialAuthorizable
public java.lang.String getPath()
SocialAuthorizable
getPath
in interface SocialAuthorizable
public java.lang.String getUserId()
public java.lang.String getProfileUrl()
User
getProfileUrl
in interface User
public java.lang.String getFriendlyUrl()
SocialComponent
getFriendlyUrl
in interface SocialComponent
getFriendlyUrl
in class BaseSocialComponent
@Deprecated public java.lang.Long getNumberOfPosts()
getNumberOfPosts
in interface User
public java.util.List<User.Badge> getBadges()
public java.lang.Boolean getDisabled()
getDisabled
in interface User
public java.lang.Boolean isUserUGCLimited()
User
isUserUGCLimited
in interface User
public java.lang.String getDisabledReason()
getDisabledReason
in interface User
Copyright © 2010 - 2020 Adobe. All Rights Reserved