Interface UserGeneratedContentService
@ProviderType
public interface UserGeneratedContentService
Service for creating User Generated Content
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.sling.api.resource.ResourcecreateUGCContainer(org.apache.sling.api.SlingHttpServletRequest request, UGCBucketConfig bucketConfig, String preview, String targetPath) Creates a new container for adding user generated content which should be published when approved.
-
Method Details
-
createUGCContainer
org.apache.sling.api.resource.Resource createUGCContainer(org.apache.sling.api.SlingHttpServletRequest request, UGCBucketConfig bucketConfig, String preview, String targetPath) throws org.apache.sling.api.resource.PersistenceException Creates a new container for adding user generated content which should be published when approved. The UGC content should be added as a child of this container.- Parameters:
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 null- Returns:
- the new UGC Container
- Throws:
org.apache.sling.api.resource.PersistenceException- an exception occurs creating the UGC Container
-