public interface SocialComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CSV_SELECTOR |
static java.lang.String |
DEFAULT_SELECTOR |
static java.lang.String |
INDEX_SELECTOR |
static java.lang.String |
PROP_REFERER
Request parameter and header name for referrer Url.
|
static java.lang.String |
QUERY_SELECTOR |
static java.lang.String |
TRANSLATE_SELECTOR |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAsMap() |
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.
|
ResourceID |
getId() |
SocialComponent |
getParentComponent()
Gets the immediate parent of this component.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
<T> T |
getProperty(java.lang.String name,
java.lang.Class<T> type)
Get the resource value for the specified key.
|
<T> T |
getProperty(java.lang.String name,
T defaultValue)
Get the resource value for the specified key, if the property doesn't exist, return the specified default
value.
|
Resource |
getResource() |
java.lang.String |
getResourceType() |
SocialComponent |
getSourceComponent()
Gets the SocialComponent that created this piece of UGC.
|
java.lang.String |
getUrl() |
java.lang.String |
toJSONString(boolean tidy) |
static final java.lang.String CSV_SELECTOR
static final java.lang.String DEFAULT_SELECTOR
static final java.lang.String QUERY_SELECTOR
static final java.lang.String INDEX_SELECTOR
static final java.lang.String TRANSLATE_SELECTOR
static final java.lang.String PROP_REFERER
ResourceID getId()
java.lang.String getResourceType()
java.lang.String getUrl()
java.util.Map<java.lang.String,java.lang.Object> getProperties()
<T> T getProperty(java.lang.String name, java.lang.Class<T> type)
T
- typename
- name/key of the propertytype
- Class<T> T getProperty(java.lang.String name, T defaultValue)
T
- typename
- name/key of the propertydefaultValue
- type Tjava.lang.String toJSONString(boolean tidy) throws JsonException
tidy
- true to return readable JSON string.JsonException
- if an error occurs during serialization.Resource getResource()
java.util.Map<java.lang.String,java.lang.Object> getAsMap()
SocialComponent getParentComponent()
SocialComponent getSourceComponent()
java.lang.String getFriendlyUrl()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"