public class TemplateUtils
extends java.lang.Object
Constructor and Description |
---|
TemplateUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<Resource> |
findTemplates(ResourceResolver resolver,
java.lang.String title,
java.lang.String assetPathSuffix)
This API returns all the valid IC templates with the given title
A template is valid when it satisfies following conditions:
1.
|
static java.util.List<Resource> |
getConfigurations(ResourceResolver resolver)
This API returns a list of configuration browsers present in /conf folder
|
static java.util.List<Resource> |
getFilteredAFTemplates(java.util.Iterator<Resource> it,
java.lang.String assetPathSuffix)
This API filters AF templates based on the allowedPaths property for template availability
|
static java.util.List<Resource> |
getValidICTemplates(Resource confResource,
java.lang.String assetPathSuffix)
This API returns all the valid Interactive Communication web channel templates.
|
static boolean |
isTemplateAllowed(Session session,
java.lang.String templatePath,
java.lang.String assetPathSuffix) |
public static java.util.List<Resource> getConfigurations(ResourceResolver resolver)
resolver
- public static java.util.List<Resource> getValidICTemplates(Resource confResource, java.lang.String assetPathSuffix)
confResource
- - Configuration browser resourceassetPathSuffix
- - Destination path suffix for ICpublic static java.util.List<Resource> getFilteredAFTemplates(java.util.Iterator<Resource> it, java.lang.String assetPathSuffix)
it
- - An iterator for AF templatesassetPathSuffix
- - Destination path suffix for AFpublic static java.util.List<Resource> findTemplates(ResourceResolver resolver, java.lang.String title, java.lang.String assetPathSuffix)
resolver
- title
- assetPathSuffix
- public static boolean isTemplateAllowed(@Nonnull Session session, java.lang.String templatePath, java.lang.String assetPathSuffix)
Copyright © 2010 - 2020 Adobe. All Rights Reserved