Refactoring SocialUtils

Ultimo aggiornamento: 2023-12-07
  • Argomenti:
  • Communities
    Visualizza ulteriori informazioni su questo argomento
  • Creato per:
  • User

Pacchetto SocialUtils obsoleto

Il pacchetto com.adobe.cq.social.ugcbase.SocialUtils è stato dichiarato obsoleto nell’AEM 6.1.

Nelle tabelle seguenti sono elencati i metodi da utilizzare al posto di SocialUtils metodi.

Pacchetto SocialResourceUtilities

Metodi in com.adobe.cq.social.srp.utilities.api.SocialResourceUtilities
CheckPermission(ResourceResolver resolver, String path, String action) booleano
SocialResourceProvider getSocialResourceProvider(risorsa)
GetStorageConfig(Resource) di SocialResourceConfiguration
Risorsa getUGCResource(Resource userResource)
Resource getUGCResource(Resource userResource, ResourceResolverFactory rf)
Resource getUGCResource(Resource userResource, ResourceResolverFactory rrf, String resourceTypeHint)
Resource getUGCResource(Resource userResource, String resourceTypeHint)
booleano hasModeratePermissions(Risorsa)
Stringa resourceToACLPath(Risorsa)
Stringa resourceToUGCStoragePath(Resource)
Stringa UGCToResourcePath(Risorsa)
Stringa UGCToResourcePath(Stringa ugcPath)
Stringa UGCToResourcePath(Stringa ugcPath, Risolutore ResourceResolver)
Metodi in com.adobe.cq.social.utilities.resource.api.SocialResourceUtilities
SocialResourceProvider getSocialResourceProvider(risorsa)

Pacchetto SCFUtilities

Metodi in com.adobe.cq.social.utilities.scf.api.SCFUtilites
Stringa getAvatar(UserProperties userProperties)
String getAvatar(UserProperties userProperties, int size)
String getAvatar(UserProperties userProperties, String absoluteDefaultAvatar)
String getAvatar(UserProperties userProperties, String absoluteDefaultAvatar, SocialUtils.AVATAR_SIZE)
Page getContainingPage(Resource resource)
Stringa getSocialProfileURL(nome utente stringa, risolutore ResourceResolver, pagina Pagina)
UserProperties getUserProperties(ResourceResolver resolver, String userId)

Solo per uso interno

booleano canAddNode(Session session, String path)
String createUniqueNameHint(String message)
String createUniqueNameHint(String message, int numRandomChars)
String generateRandomString(int length)
GetDefaultStorageConfig() di SocialResourceConfiguration
Page getPage(Percorso stringa, Risolutore risorse)
Stringa getPagePath(risorsa)
String getPagePath(String path)
String getResourceTypeForIncludedResource(componente Resource, String defaultResourceType, String designPropertyName)
String getResourceTypeFromDesign(Resource, String styleProperty, String defaultValue)
booleano isResourceOwner(Resource resource)
Stringa mapUGCPath(Risorsa)
String mapUGCPath(String ugcPath, ResourceResolver resolver)
booleano mayPost(ResourceResolver resolver, risorsa Resource)
String preparationUserGeneratedContent(ResourceResolver resolver, percorso stringa)

Metodi non più disponibili

Node createNode(ResourceResolver resolver, String path, String nodeType)
Resource getResourceAtPath(ResourceResolver resolver, percorso stringa)
Resource getResourceAtPath(ResourceResolver resolver, percorso stringa, tipo risorsa stringa)
Configurazione getStorageCloudServiceConfig(Resource)
Gestione traduzioni getTranslationManager()
TranslationSaveQueue getTranslationSaveQueue()
valore booleano mayAccessUGC(ResourceResolver resolver)

In questa pagina