public class UserGeneratedContentServiceImpl extends java.lang.Object implements UserGeneratedContentService
UserGeneratedContentService.APPROVE_ACTION, UserGeneratedContentService.CONTENT_TYPE| Constructor and Description |
|---|
UserGeneratedContentServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(UserGeneratedContentConfig config) |
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 approvated.
|
void |
deactivate() |
public void activate(UserGeneratedContentConfig config) throws org.apache.sling.api.resource.LoginException
org.apache.sling.api.resource.LoginExceptionpublic void deactivate()
public 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
UserGeneratedContentServicecreateUGCContainer in interface UserGeneratedContentServicerequest - 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–2018 The Apache Software Foundation. All rights reserved.