Show Menu
TÓPICOS×

Refatoração de SocialUtils

Pacote SocialUtils obsoleto

O pacote com.adobe.cq.social.ugcbase.SocialUtils foi substituído no AEM 6.1.
The following tables list the methods to use in place of SocialUtils methods.

SocialResourceUtilities Package

Methods in com.adobe.cq.social.srp.utilities.api.SocialResourceUtilities
Boolean checkPermission(ResourceResolver resolver, String path, String action)
SocialResourceProvider getSocialResourceProvider(Resource resource)
SocialResourceConfiguration getStorageConfig(Resource resource)
Resource getUGCResource(Resource userResource)
Resource getUGCResource(Resource userResource, ResourceResolverFactory rrf)
Resource getUGCResource(Resource userResource, ResourceResolverFactory rrf, String resourceTypeHint)
Resource getUGCResource(Resource userResource, String resourceTypeHint)
booleano hasModeratePermissions(recurso de recurso)
String resourceToACLPath(Resource)
String resourceToUGCStoragePath (recurso)
String UGCToResourcePath(Resource resource)
String UGCToResourcePath(String ugcPath)
String UGCToResourcePath(String ugcPath, ResourceResolver resolver)
Métodos em com.adobe.cq.social. utilities.resource.api.SocialResourceUtilities
SocialResourceProvider getSocialResourceProvider(Resource resource)

SCFUtilities Package

Methods in com.adobe.cq.social. utilities.scf.api.SCFUtilites
String getAvatar(UserProperties userProperties)
String getAvatar(UserProperties userProperties, int size)
String getAvatar(UserProperties userProperties, String absoluteDefaultAvatar)
String getAvatar(UserProperties userProperties, String absoluteDefaultAvatar, SocialUtils.AVATAR_SIZE size)
Page getContainingPage(Resource resource)
String getSocialProfileURL(String username, ResourceResolver resolver, Page page)
UserProperties getUserProperties(ResourceResolver resolver, String userId)

For Internal Use Only

booleano canAddNode(Session session, String path)
String createUniqueNameHint(mensagem String)
String createUniqueNameHint(mensagem String, int numRandomChars)
String generateRandomString(int length)
SocialResourceConfiguration getDefaultStorageConfig()
Page getPage(String path, ResourceResolver resolver)
String getPagePath(Resource resource)
String getPagePath(String path)
String getResourceTypeForIncludedResource(Componente de recurso, String defaultResourceType, String designPropertyName)
String getResourceTypeFromDesign(Recurso, String styleProperty, String defaultValue)
boolean isResourceOwner(Recurso)
String mapUGCPath(Recurso)
String mapUGCPath(String ugcPath, ResourceResolver resolvedor)
boolean mayPost(ResourceResolver resolver, Resource resource)
String prepareUserGeneratedContent(ResourceResolver resolver, String path)

Methods No Longer Available

Node createNode(ResourceResolver resolver, String path, String nodeType)
Resource getResourceAtPath(ResourceResolver resolver, String path)
Resource getResourceAtPath(ResourceResolver resolver, String path, String resourceType)
Configuração getStorageCloudServiceConfig (recurso de recurso)
TranslationManager getTranslationManager()
TranslationSaveQueue getTranslationSaveQueue()
booleano mayAccessUGC(ResourceResolver resolver)