public abstract class AbstractAsset<T extends FileLibraryConfiguration> extends AbstractComment<T> implements Asset<T>
Comment.ModeratorActions, Comment.ModeratorStatus, Comment.Tag
LAST_SELF_MOD_BY, PN_NAME
COMMENT_RESOURCETYPE, COMMENTCOLLECTION_RESOURCETYPE, JSON_EXTENSION, NODE_TYPE, PROP_APPROVED, PROP_REFERER, PROP_SPAM, PROP_USE_REFERRER_URL, SOCO_SELECTOR
DEFAULT_SELECTOR, INDEX_SELECTOR, QUERY_SELECTOR, TRANSLATE_SELECTOR
Constructor and Description |
---|
AbstractAsset(Resource resource,
ClientUtilities clientUtils,
CommentSocialComponentListProviderManager listProviderManager) |
AbstractAsset(Resource resource,
ClientUtilities clientUtils,
QueryRequestInfo queryInfo,
CommentSocialComponentListProviderManager listProviderManager)
Constructor of an asset.
|
Modifier and Type | Method and Description |
---|---|
T |
createConfiguration(Resource resource,
Resource cs)
Obtain the configuration for this comment.
|
java.lang.String |
getFileLibraryId()
Get the FileLibrary id for this asset.
|
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 |
getName()
Get the name of the asset
|
java.lang.String |
getParentFriendlyUrl() |
java.lang.String |
getParentName() |
boolean |
isFileLibraryClosed() |
boolean |
isFolder()
Check if this instance is a folder or a document.
|
void |
setPagination(CollectionPagination pagination)
Set the collection list range.
|
getAttachment, getAttachments, getAuthor, getCanDelete, getCanEdit, getCanReply, getCanTranslate, getConfiguration, getCreated, getCurrentUserFlagText, getFlagReasons, getItems, getMessage, getModeratorActions, getModeratorStatus, getPageInfo, getParent, getParentComponent, getParentId, getPublishDate, getReferrerUrl, getResourceType, getSourceComponent, getSourceComponentId, getTags, getTotalSize, getTranslationAttribution, getTranslationDescription, getTranslationDisplay, getTranslationTitle, getUseFlagReasons, getVotes, isApproved, isClosed, isDraft, isFlaggedByUser, isScheduled, isTopLevel, isUserModerator, isVisible, setSortedOrder, toString
buildJSONString, getAsMap, getId, getProperties, getResource, getUrl, toJSONString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttachment, getAttachments, getAuthor, getCanDelete, getCanEdit, getCanReply, getCanTranslate, getConfiguration, getCreated, getCurrentUserFlagText, getFlagReasons, getMessage, getModeratorActions, getModeratorStatus, getPageInfo, getParentId, getPublishDate, getReferrerUrl, getSourceComponentId, getTags, getTranslationAttribution, getTranslationDescription, getTranslationDisplay, getTranslationTitle, getUseFlagReasons, getVotes, isApproved, isClosed, isDraft, isFlaggedByUser, isScheduled, isTopLevel, isUserModerator, isVisible
getItems, getTotalSize, setSortedOrder
getAsMap, getId, getParentComponent, getProperties, getResource, getResourceType, getSourceComponent, getUrl, toJSONString
public AbstractAsset(Resource resource, ClientUtilities clientUtils, CommentSocialComponentListProviderManager listProviderManager) throws RepositoryException
RepositoryException
public AbstractAsset(Resource resource, ClientUtilities clientUtils, QueryRequestInfo queryInfo, CommentSocialComponentListProviderManager listProviderManager) throws RepositoryException
resource
- the specified resourceclientUtils
- the client utilities instancepagination
- the list pagination configuration of this commentcommentFactory
- comment factory used to create a legacy comment instance to a PostRepositoryException
- if an error occurspublic java.lang.String getName()
Asset
getName
in interface Asset<T extends FileLibraryConfiguration>
public boolean isFolder()
Asset
isFolder
in interface Asset<T extends FileLibraryConfiguration>
public java.lang.String getFileLibraryId()
Asset
getFileLibraryId
in interface Asset<T extends FileLibraryConfiguration>
public boolean isFileLibraryClosed()
isFileLibraryClosed
in interface Asset<T extends FileLibraryConfiguration>
public java.lang.String getFriendlyUrl()
SocialComponent
getFriendlyUrl
in interface Asset<T extends FileLibraryConfiguration>
getFriendlyUrl
in interface SocialComponent
getFriendlyUrl
in class AbstractComment<T extends FileLibraryConfiguration>
public void setPagination(CollectionPagination pagination)
AbstractComment
setPagination
in interface SocialCollectionComponent
setPagination
in class AbstractComment<T extends FileLibraryConfiguration>
pagination
- detail information to usepublic T createConfiguration(Resource resource, Resource cs)
AbstractComment
public java.lang.String getParentName()
getParentName
in interface Asset<T extends FileLibraryConfiguration>
public java.lang.String getParentFriendlyUrl()
getParentFriendlyUrl
in interface Asset<T extends FileLibraryConfiguration>
"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"