public interface InternalSocialResourceUtilities
| Modifier and Type | Field and Description |
|---|---|
static String |
ASI_UGC_PREFIX
The SRP prefix.
|
static String |
PATH_UGC |
static String |
PN_ATTACHMENT_LIST |
static String |
PN_BASETYPE |
static String |
PN_COMMENT_RESOURCETYPE
The resources type for comments.
|
static String |
PN_CS_ROOT |
static String |
PN_DATE
The date field name.
|
static String |
PN_DS_KEY |
static String |
PN_ENTITY |
static String |
PN_IS_REPLY |
static String |
PN_PARENTID
The key used to describe a parent resource.
|
static String |
SRP_CONFIGURATION_ROOT
Where config definitions are stored.
|
static String |
SRP_DEFAULT_CONFIG_PATH |
| Modifier and Type | Method and Description |
|---|---|
String |
createUniqueNameHint(String message)
Creates a valid and unique JCR Node name given the message.
|
String |
createUniqueNameHint(String message,
int numRandomChars)
Creates a valid and unique JCR Node name given the message.
|
String |
generateRandomString(int length)
Generates a (secure) random string with the given length.
|
SocialResourceConfiguration |
getDefaultStorageConfig()
Gets the default configuration set for the system.
|
String |
mapUGCPath(String ugcPath,
ResourceResolver resolver)
Map a UGC path, avoiding multiple round trips.
|
String |
prepareUserGeneratedContent(ResourceResolver resolver,
String path)
Prepare user generated content for the specified path.
|
String |
prepareUserGeneratedContentWithLeafTypeHint(ResourceResolver resolver,
String path,
String typeHint,
boolean writeWithResolver)
Prepare the needed page paths in /content/usergenerated.
|
static final String SRP_CONFIGURATION_ROOT
static final String SRP_DEFAULT_CONFIG_PATH
static final String PATH_UGC
static final String ASI_UGC_PREFIX
static final String PN_PARENTID
static final String PN_BASETYPE
static final String PN_CS_ROOT
static final String PN_ATTACHMENT_LIST
static final String PN_DS_KEY
static final String PN_IS_REPLY
static final String PN_ENTITY
static final String PN_DATE
static final String PN_COMMENT_RESOURCETYPE
String mapUGCPath(String ugcPath, ResourceResolver resolver)
ugcPath - the path to mapresolver - the resolver to use to try and map the pathSocialResourceConfiguration getDefaultStorageConfig()
String createUniqueNameHint(String message)
message - a starting to point for the name, will be stripped of invalid node name characters.String createUniqueNameHint(String message, int numRandomChars)
message - a starting to point for the name, will be stripped of invalid node name characters.numRandomChars - the number of characters to add as random noise in the nameString generateRandomString(int length)
length - length of random string.String prepareUserGeneratedContent(ResourceResolver resolver, String path) throws SocialException
resolver - The ResourceResolver to use for persisting values.path - The page pathSocialException - if error occurs in Social CollaborationString prepareUserGeneratedContentWithLeafTypeHint(ResourceResolver resolver, String path, String typeHint, boolean writeWithResolver) throws SocialException
resolver - Depending on the value of writeWithResolver, a resolver that can be used to read and/or write
the ugc page pathpath - The page pathtypeHint - the resource type for the last part of the page path or null.writeWithResolver - If true, resolver can be used to both read and write the UGC page path. If false,
resolver can only be used to read the UGC page path. A service user will be used to create it if
needed.SocialException - on failure"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"