public abstract class AbstractUser extends BaseSocialComponent implements User
User.Badge
RESOURCE_TYPE, SOCIAL_AUTHORS_PREFIX
DEFAULT_SELECTOR, INDEX_SELECTOR, 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.
|
Modifier and Type | Method and Description |
---|---|
String |
getAuthorizableId() |
String |
getAvatarUrl()
Get URL to fetch the user avatar.
|
List<User.Badge> |
getBadges() |
Boolean |
getDisabled() |
String |
getDisabledReason() |
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.
|
String |
getLargeAvatarUrl()
Get URL to fetch the user avatar (48px).
|
String |
getName()
User display name.
|
Long |
getNumberOfPosts() |
String |
getPath()
Get the path of the user.
|
String |
getProfileUrl()
Get externalized URL to the profile page
|
String |
getUserId() |
buildJSONString, getAsMap, getId, getParentComponent, getProperties, getResource, getResourceType, getSourceComponent, getUrl, toJSONString
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAsMap, getId, getParentComponent, getProperties, getResource, getResourceType, getSourceComponent, getUrl, toJSONString
@Deprecated public AbstractUser(Resource resource, ClientUtilities clientUtils, UserPropertiesManager upm, 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)
resource
- the resource to try and get a User forclientUtils
- client utils used for the social componentupm
- user properties manager for getting profile detailspublic String getName()
SocialAuthorizable
getName
in interface SocialAuthorizable
public String getAvatarUrl()
User
getAvatarUrl
in interface User
public String getLargeAvatarUrl()
User
getLargeAvatarUrl
in interface User
public String getAuthorizableId()
getAuthorizableId
in interface SocialAuthorizable
public String getPath()
SocialAuthorizable
getPath
in interface SocialAuthorizable
public String getProfileUrl()
User
getProfileUrl
in interface User
public String getFriendlyUrl()
SocialComponent
getFriendlyUrl
in interface SocialComponent
getFriendlyUrl
in class BaseSocialComponent
public Long getNumberOfPosts()
getNumberOfPosts
in interface User
public List<User.Badge> getBadges()
public Boolean getDisabled()
getDisabled
in interface User
public String getDisabledReason()
getDisabledReason
in interface User
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"