SocialUtils-Refaktorierung socialutils-refactoring

SocialUtils-Paket veraltet socialutils-package-deprecated

Das Paket com.adobe.cq.social.ugcbase.SocialUtils wurde in AEM 6.1 nicht mehr unterstützt.

In den folgenden Tabellen sind die Methoden aufgeführt, die anstelle von SocialUtils -Methoden verwendet werden sollen.

SocialResourceUtilities-Paket socialresourceutilities-package

Methoden in com.adobe.cq.social.srp.utilities.api.SocialResourceUtilities
Boolesch 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)
boolean hasModeratePermissions(Resource resource)
String resourceToACLPath(Resource resource)
String resourceToUGCStoragePath(Resource resource)
String UGCToResourcePath(Resource resource)
String UGCToResourcePath(String ugcPath)
String UGCToResourcePath(String ugcPath, ResourceResolver resolver)
Methoden in com.adobe.cq.social.utilities.resource.api.SocialResourceUtilities
SocialResourceProvider getSocialResourceProvider(Resource resource)

SCFUtilities-Paket scfutilities-package

Methoden 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)

Nur zur internen Verwendung for-internal-use-only

boolean canAddNode(Session session, String path)
String createUniqueNameHint(String message)
String createUniqueNameHint(String message, int numRandomChars)
String generateRandomString(int length)
SocialResourceConfiguration getDefaultStorageConfig()
Page getPage(String path, ResourceResolver resolver)
String getPagePath(Resource resource)
String getPagePath(String path)
String getResourceTypeForIncludedResource(Resource component, String defaultResourceType, String designPropertyName)
String getResourceTypeFromDesign(Resource resource, String styleProperty, String defaultValue)
boolean isResourceOwner(Resource resource)
String mapUGCPath(Resource resource)
String mapUGCPath(String ugcPath, ResourceResolver resolver)
boolean mayPost(ResourceResolver resolver, Resource resource)
String prepareUserGeneratedContent(ResourceResolver resolver, String path)

Methoden sind nicht mehr verfügbar 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)
Konfiguration getStorageCloudServiceConfig(Resource resource)
TranslationManager getTranslationManager()
TranslationSaveQueue getTranslationSaveQueue()
boolean mayAccessUGC(ResourceResolver resolver)
recommendation-more-help
81e2cd9d-0789-409d-b87c-2a8ce4f28791