Class ContentCatalog
java.lang.Object
com.adobe.acs.commons.contentsync.ContentCatalog
The ContentCatalog class provides methods to fetch and process content catalogs
from a remote instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Fetches the catalog items from the remote instance.getDelta(List<CatalogItem> catalog, org.apache.sling.api.resource.ResourceResolver resourceResolver, UpdateStrategy updateStrategy) Gets the delta between the catalog items and the resources in the resource resolver.getFetchURI(String path, String updateStrategy) Deprecated.getFetchURI(String path, String updateStrategy, boolean recursive) Gets the URI to fetch the catalog.
-
Constructor Details
-
ContentCatalog
-
-
Method Details
-
getFetchURI
Deprecated.- Throws:
URISyntaxException
-
getFetchURI
public URI getFetchURI(String path, String updateStrategy, boolean recursive) throws URISyntaxException Gets the URI to fetch the catalog.- Parameters:
path- the path to fetch the catalog forupdateStrategy- the update strategy to userecursive- whether to fetch recursively- Returns:
- the URI to fetch the catalog
- Throws:
URISyntaxException- if the URI syntax is incorrect
-
fetch
@Deprecated public List<CatalogItem> fetch(String path, String updateStrategy) throws IOException, URISyntaxException Deprecated.- Throws:
IOExceptionURISyntaxException
-
fetch
public List<CatalogItem> fetch(String path, String updateStrategy, boolean recursive) throws IOException, URISyntaxException Fetches the catalog items from the remote instance.- Parameters:
path- the path to fetch the catalog forupdateStrategy- the update strategy to userecursive- whether to fetch recursively- Returns:
- a list of catalog items
- Throws:
IOException- if an I/O error occursURISyntaxException- if the URI syntax is incorrect
-
getDelta
public List<CatalogItem> getDelta(List<CatalogItem> catalog, org.apache.sling.api.resource.ResourceResolver resourceResolver, UpdateStrategy updateStrategy) Gets the delta between the catalog items and the resources in the resource resolver.- Parameters:
catalog- the list of catalog itemsresourceResolver- the resource resolver to check againstupdateStrategy- the update strategy to use- Returns:
- a list of catalog items that are modified or not present in the resource resolver
-
fetch(String, String, boolean)