SocialUtils Refactoring socialutils-refactoring
CAUTION
AEM 6.4 heeft het einde van de uitgebreide ondersteuning bereikt en deze documentatie wordt niet meer bijgewerkt. Raadpleeg voor meer informatie onze technische ondersteuningsperioden. Ondersteunde versies zoeken hier.
Pakket met sociale hulpmiddelen is vervangen socialutils-package-deprecated
Het pakket com.adobe.cq.social.ugcbase.SocialUtils is afgekeurd in AEM 6.1.
In de volgende tabellen worden de methoden weergegeven die moeten worden gebruikt in plaats van de methoden SocialUtils.
SocialResourceUtilities-pakket socialresourceutilities-package
Methoden in com.adobe.cq.social.srp.utilities.api.SocialResourceUtilities
Boolean checkPermission(ResourceResolver resolver, String path, String action)
SocialResourceProvider getSocialResourceProvider(resource)
SocialResourceConfiguration getStorageConfig (resource)
Resource getUGCResource(Resource userResource)
Resource getUGCResource(Resource userResource, ResourceResolverFactory rf)
Resource getUGCResource(Resource userResource, ResourceResolverFactory rf, 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.SocialResourceUtilitiesSocialResourceProvider getSocialResourceProvider(resource)
SCFUtilities-pakket scfutilities-package
Methoden in
com.adobe.cq.social.
utilities.scf.api.SCFUtilitesString 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 getConcontainingPage(resource)
String getSocialProfileURL(String-gebruikersnaam, ResourceResolver-oplosser, pagina)
UserProperties getUserProperties(ResourceResolver resolver, String userId)
Alleen voor intern gebruik for-internal-use-only
boolean canAddNode(Sessie, tekenreekspad)
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 niet meer beschikbaar 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)
Configuration getStorageCloudServiceConfig(Resource resource)
TranslationManager getTranslationManager()
TranslationSaveQueue getTranslationSaveQueue()
boolean mayAccessUGC(ResourceResolver resolver)
recommendation-more-help
5d37d7b0-a330-461b-814d-068612705ff6