Show Menu
ARGOMENTI×

Refactoring SocialUtils

Pacchetto SocialUtils obsoleto

Il pacchetto com.adobe.cq.social.ugcbase.SocialUtils è stato dichiarato obsoleto in AEM 6.1.
Nelle tabelle seguenti sono elencati i metodi da utilizzare al posto dei metodi SocialUtils.

Pacchetto SocialResourceUtilities

Metodi in com.adobe.cq.social.srp.utilities.api.SocialResourceUtilities
CheckPermissionBooleano(ResourceResolver resolver, percorso stringa, azione stringa)
SocialResourceProvider getSocialResourceProvider(risorsa risorsa risorsa)
SocialResourceConfiguration getStorageConfig(risorsa risorsa risorsa risorsa)
Resource getUGCResource(Resource userResource)
Resource getUGCResource(ResourceUserResource, ResourceResolverFactory rrf)
Resource getUGCResource(ResourceUserResource, ResourceResolverFactory rrf, String resourceTypeHint)
Resource getUGCResource(ResourceUserResource, String resourceTypeHint)
boolean hasModeratePermissions(Risorsa risorsa risorsa)
String resourceToACLPath(Resource Resource)
String resourceToUGCStoragePath(Resource Resource)
Stringa UGCToResourcePath(Risorsa risorsa)
Stringa UGCToResourcePath(String ugcPath)
String UGCToResourcePath(String ugcPath, ResourceResolver)
Metodi in com.adobe.cq.social. utilities.resource.api.SocialResourceUtilities
SocialResourceProvider getSocialResourceProvider(risorsa risorsa risorsa)

Pacchetto SCFUtilities

Metodi 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 getContainPage(Risorsa risorsa)
String getSocialProfileURL(nome utente stringa, risolutore risorse, pagina pagina)
UserProperties getUserProperties(ResourceResolver, String userId)

For Internal Use Only

boolean canAddNode(Session session, String path)
String createUniqueNameHint(messaggio stringa)
String createUniqueNameHint(messaggio stringa, int numRandomChars)
String generateRandomString(lunghezza int)
SocialResourceConfiguration getDefaultStorageConfig()
Page getPage(Percorso stringa, Risolutore risorse)
String getPagePath(Risorsa risorsa)
String getPagePath(percorso stringa)
String getResourceTypeForIndedResource(Componente risorsa, String defaultResourceType, String designPropertyName)
String getResourceTypeFromDesign(Resource resource, String styleProperty, String defaultValue)
isResourceOwner(Risorsa risorsa risorsa) booleana
String mapUGCPath(Risorsa risorsa)
String mapUGCPath(String ugcPath, ResourceResolver)
canPostBooleano(ResourceResolver, Resource Resource)
String PrepareUserGeneratedContent(ResourceResolver, percorso stringa)

Metodi non più disponibili

Node createNode(ResourceResolver resolver, percorso stringa, tipo nodoStringa)
Resource getResourceAtPath(ResourceResolver, percorso stringa)
Resource getResourceAtPath(ResourceResolver, percorso stringa, String resourceType)
Configurazione getStorageCloudServiceConfig(risorsa risorsa risorsa risorsa)
TranslationManager getTranslationManager()
TranslationSaveQueue getTranslationSaveQueue()
canAccessUGC(ResourceResolver) booleano