@ProviderType
public interface UserGeneratedContentService
Modifier and Type | Interface and Description |
---|---|
static class |
UserGeneratedContentService.APPROVE_ACTION |
static class |
UserGeneratedContentService.CONTENT_TYPE |
Modifier and Type | Method and Description |
---|---|
org.apache.sling.api.resource.Resource |
createUGCContainer(org.apache.sling.api.SlingHttpServletRequest request,
UGCBucketConfig bucketConfig,
java.lang.String preview,
java.lang.String targetPath)
Creates a new container for adding user generated content which should be
published when approved.
|
org.apache.sling.api.resource.Resource createUGCContainer(org.apache.sling.api.SlingHttpServletRequest request, UGCBucketConfig bucketConfig, java.lang.String preview, java.lang.String targetPath) throws org.apache.sling.api.resource.PersistenceException
request
- the request for which this was initiatedbucketConfig
- the configuration for the UGC bucketpreview
- the preview of the UGC to be displayed to the approving
usertargetPath
- the path to which to move the content if this should be
moved when approved, may be nullorg.apache.sling.api.resource.PersistenceException
- an exception occurs creating the UGC ContainerCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.