Refactoring di SocialUtils socialutils-refactoring

CAUTION
AEM 6.4 ha raggiunto la fine del supporto esteso e questa documentazione non viene più aggiornata. Per maggiori dettagli, consulta la nostra periodi di assistenza tecnica. Trova le versioni supportate qui.

Pacchetto SocialUtils obsoleto socialutils-package-deprecated

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 socialresourceutilities-package

Metodi in com.adobe.cq.social.srp.utilities.api.SocialResourceUtilities
CheckPermission booleano(ResourceResolver resolver, Percorso stringa, azione stringa)
SocialResourceProvider getSocialResourceProvider(risorsa risorsa)
SocialResourceConfiguration getStorageConfig(risorsa risorsa risorsa)
Risorsa getUGCResource(ResourceUserResource)
Risorsa getUGCResource(Resource userResource, ResourceResolverFactory rf)
Risorsa getUGCResource(Resource userResource, ResourceResolverFactory rf, String resourceTypeHint)
Risorsa getUGCResource(Resource userResource, String resourceTypeHint)
booleano hasModeratePermissions(risorsa Resource)
String resourceToACLPath(Risorsa di risorsa)
String resourceToUGCStoragePath(Resource resource)
Stringa UGCToResourcePath(Risorsa di risorsa)
Stringa UGCToResourcePath(String ugcPath)
Stringa UGCToResourcePath(String ugcPath, ResourceResolver)
Metodi in com.adobe.cq.social.utility.resource.api.SocialResourceUtilities
SocialResourceProvider getSocialResourceProvider(risorsa risorsa)

Pacchetto SCFUtilities scfutilities-package

Metodi in com.adobe.cq.social.utilities.scf.api.SCFUtilites
String getAvatar(UserProperties userProperties)
Stringa getAvatar(UserProperties userProperties, int size)
String getAvatar(UserProperties userProperties, String AbsoluteDefaultAvatar)
String getAvatar(UserProperties userProperties, String AbsoluteDefaultAvatar, SocialUtils.AVATAR_SIZE size)
Page getContainPage(Risorsa di risorsa)
Stringa getSocialProfileURL(nome utente stringa, risolutore ResourceResolver, pagina)
UserProperties getUserProperties(ResourceResolver resolver, String userId)

Solo per uso interno for-internal-use-only

booleano canAddNode(Session session, String path)
Stringa createUniqueNameHint(Messaggio stringa)
Stringa createUniqueNameHint(Messaggio stringa, int numRandomChars)
Stringa generateRandomString(int length)
SocialResourceConfiguration getDefaultStorageConfig()
Page getPage(Percorso stringa, risolutore ResourceResolver)
Stringa getPagePath(Risorsa)
String getPagePath(Percorso stringa)
Stringa getResourceTypeForIncludedResource(Resource component, String defaultResourceType, String designPropertyName)
Stringa getResourceTypeFromDesign(Risorsa, String styleProperty, String defaultValue)
isResourceOwner(Resource resource) booleano
Stringa mapUGCPath(Risorsa di risorsa)
String mapUGCPath(String ugcPath, ResourceResolver)
booleano mayPost(ResourceResolver resolver, risorsa Resource)
String PrepareUserGeneratedContent(ResourceResolver resolver, Percorso stringa)

Metodi non più disponibili methods-no-longer-available

Node createNode(ResourceResolver resolver, Percorso stringa, Tipo nodo stringa)
Resource getResourceAtPath(ResourceResolver resolver, Percorso stringa)
Resource getResourceAtPath(ResourceResolver resolver, percorso stringa, String resourceType)
Configurazione getStorageCloudServiceConfig(risorsa risorsa risorsa)
TranslationManager getTranslationManager()
TranslationSaveQueue getTranslationSaveQueue()
booleano mayAccessUGC(ResourceResolver resolver)
recommendation-more-help
5d37d7b0-a330-461b-814d-068612705ff6