public abstract class AbstractAsset<T extends FileLibraryConfiguration> extends AbstractComment<T> implements Asset<T>
Comment.ModeratorActions, Comment.ModeratorStatus, Comment.TagLAST_SELF_MOD_BY, PN_NAMECOMMENT_RESOURCETYPE, COMMENTCOLLECTION_RESOURCETYPE, JSON_EXTENSION, NODE_TYPE, PROP_APPROVED, PROP_REFERER, PROP_SPAM, PROP_USE_REFERRER_URL, SOCO_SELECTORDEFAULT_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, toStringbuildJSONString, getAsMap, getId, getProperties, getResource, getUrl, toJSONStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttachment, 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, isVisiblegetItems, getTotalSize, setSortedOrdergetAsMap, getId, getParentComponent, getProperties, getResource, getResourceType, getSourceComponent, getUrl, toJSONStringpublic AbstractAsset(Resource resource, ClientUtilities clientUtils, CommentSocialComponentListProviderManager listProviderManager) throws RepositoryException
RepositoryExceptionpublic 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()
AssetgetName in interface Asset<T extends FileLibraryConfiguration>public boolean isFolder()
AssetisFolder in interface Asset<T extends FileLibraryConfiguration>public java.lang.String getFileLibraryId()
AssetgetFileLibraryId in interface Asset<T extends FileLibraryConfiguration>public boolean isFileLibraryClosed()
isFileLibraryClosed in interface Asset<T extends FileLibraryConfiguration>public java.lang.String getFriendlyUrl()
SocialComponentgetFriendlyUrl in interface Asset<T extends FileLibraryConfiguration>getFriendlyUrl in interface SocialComponentgetFriendlyUrl in class AbstractComment<T extends FileLibraryConfiguration>public void setPagination(CollectionPagination pagination)
AbstractCommentsetPagination in interface SocialCollectionComponentsetPagination in class AbstractComment<T extends FileLibraryConfiguration>pagination - detail information to usepublic T createConfiguration(Resource resource, Resource cs)
AbstractCommentpublic 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"