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
CSV_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.util.List<FileLibraryBreadcrumb> |
getBreadcrumbs() |
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
|
PageInfo |
getPageInfo()
Gets information about the pages for this collection.
|
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, getParent, getParentComponent, getParentId, getPublishDate, getReferrerUrl, getResourceType, getSourceComponent, getSourceComponentId, getState, getTags, getTotalSize, getTranslationAttribution, getTranslationDescription, getTranslationDisplay, getTranslationTitle, getUseFlagReasons, getVotes, isApproved, isClosed, isDraft, isFeatured, isFlaggedByUser, isPinned, isScheduled, isTopLevel, isUserModerator, isVisible, setSortedOrder, setSortFields, toString
buildJSONString, getAsMap, getId, getProperties, getProperty, getProperty, 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, getParentId, getPublishDate, getReferrerUrl, getSourceComponentId, getState, getTags, getTranslationAttribution, getTranslationDescription, getTranslationDisplay, getTranslationTitle, getUseFlagReasons, getVotes, isApproved, isClosed, isDraft, isFeatured, isFlaggedByUser, isPinned, isScheduled, isTopLevel, isUserModerator, isVisible
getItems, getTotalSize, setSortedOrder
getAsMap, getId, getParentComponent, getProperties, getProperty, getProperty, 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 instancequeryInfo
- QueryRequestInfo
listProviderManager
- CommentSocialComponentListProviderManager
RepositoryException
- if an error occurspublic java.util.List<FileLibraryBreadcrumb> getBreadcrumbs()
public java.lang.String getName()
getName
in interface Asset<T extends FileLibraryConfiguration>
public boolean isFolder()
isFolder
in interface Asset<T extends FileLibraryConfiguration>
public java.lang.String getFileLibraryId()
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
resource
- The comment resourcecs
- Resourcepublic java.lang.String getParentName()
getParentName
in interface Asset<T extends FileLibraryConfiguration>
public java.lang.String getParentFriendlyUrl()
getParentFriendlyUrl
in interface Asset<T extends FileLibraryConfiguration>
public PageInfo getPageInfo()
AbstractComment
getPageInfo
in interface Comment<T extends FileLibraryConfiguration>
getPageInfo
in class AbstractComment<T extends FileLibraryConfiguration>
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"