@Service public class CommentSocialComponentFactory extends AbstractSocialComponentFactory implements SocialCollectionComponentFactory
SocialComponent
for a
Resource
with a Comment.COMMENT_RESOURCETYPE
.Constructor and Description |
---|
CommentSocialComponentFactory() |
Modifier and Type | Method and Description |
---|---|
SocialComponent |
getSocialComponent(Resource resource) |
SocialComponent |
getSocialComponent(Resource resource,
ClientUtilities clientUtils,
QueryRequestInfo queryInfo) |
SocialComponent |
getSocialComponent(Resource resource,
SlingHttpServletRequest request)
Get the component for the specified resource.
|
java.lang.String |
getSupportedResourceType()
Get the resource type that this factory supports.
|
getPriority
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPriority
public SocialComponent getSocialComponent(Resource resource)
getSocialComponent
in interface SocialComponentFactory
resource
- the resource for which a SocialComponent is requested for.public SocialComponent getSocialComponent(Resource resource, SlingHttpServletRequest request)
getSocialComponent
in interface SocialComponentFactory
resource
- the comment resource.request
- the client request.public SocialComponent getSocialComponent(Resource resource, ClientUtilities clientUtils, QueryRequestInfo queryInfo)
getSocialComponent
in interface SocialCollectionComponentFactory
getSocialComponent
in interface SocialComponentFactory
resource
- the resource for which a SocialComponent is requested for.clientUtils
- The ClientUtilities
instance that associates with the current HTTP request.queryInfo
- the pagination applicable to the resoure children list.AbstractSocialComponentFactory.getClientUtilities(SlingHttpServletRequest)
public java.lang.String getSupportedResourceType()
getSupportedResourceType
in interface SocialComponentFactory
Copyright © 2010 - 2020 Adobe. All Rights Reserved