public interface WebBinaryMetaFactory
BinaryMetaFactory class loads Binary metadata from the Broker based on the specified tcm:uri of
a binary.
| Modifier and Type | Method and Description |
|---|---|
String[] |
findAllReferencingPages(String binaryURI)
Finds all referencing pages for the specified Binary URI.
|
String[] |
findAllReferencingPages(String binaryURI,
String variantId)
Finds all referencing pages for the specified Binary URI and its variantId.
|
com.tridion.meta.BinaryMeta |
getMeta(String binaryURI)
Finds the Binary metadata for the specified URI.
|
com.tridion.meta.BinaryMeta |
getMeta(String binaryURI,
String variantId)
Finds the Binary metadata for the specified URI.
|
com.tridion.meta.BinaryMeta |
getMetaByURL(int publicationId,
String urlPath)
Returns the
BinaryMeta object in the Publication identified by the publicationId
parameter
which has the URL Path as passed by the urlPath parameter. |
Collection<com.tridion.meta.BinaryMeta> |
getMetaByURL(String urlPath)
Returns all
BinaryMeta objects which exactly match the URL Path passed as the urlPath parameter. |
com.tridion.meta.BinaryMeta |
getMetaByURL(String publicationURI,
String urlPath)
Returns the
BinaryMeta object in the Publication identified by the publicationURI
parameter
which has the URL Path as passed by the urlPath parameter. |
com.tridion.meta.BinaryMeta[] |
getMetas(String binaryURI)
Finds the Binary metadata for the specified URI and all of its variants as
a collection.
|
com.tridion.meta.BinaryMeta[] |
getVariants(int publicationId,
String variantId)
Returns all
BinaryMeta objects for the given publication that have the share the given variantId. |
com.tridion.meta.BinaryMeta[] |
getVariants(String publicationURI,
String variantId)
Returns all
BinaryMeta objects for the given publication that have the share the given variantId. |
String[] findAllReferencingPages(String binaryURI) throws com.tridion.broker.StorageException
null is returned.binaryURI - A tcm:URI indicating the binary for which all referencing pages should be retrievedcom.tridion.broker.StorageException - If unable to retrieve the reference data.String[] findAllReferencingPages(String binaryURI, String variantId) throws com.tridion.broker.StorageException
null is returnedbinaryURI - A tcm:URI indicating the binary for which all referencing pages should be retrievedvariantId - The variant of the Binary URI to retrieve referencing pages for.com.tridion.broker.StorageException - If unable to retrieve the reference data.com.tridion.meta.BinaryMeta getMeta(String binaryURI)
null is returned.binaryURI - A tcm:uri indicating the binary for which the metadata should
be retrieved.BinaryMeta instance if the specified binary item is found,
or null if it is unavailable.com.tridion.meta.BinaryMeta getMeta(String binaryURI, String variantId)
null is returned.binaryURI - A tcm:uri indicating the binary for which the metadata should
be retrieved.variantId - Id of the variant to be returned, may be null or emptyBinaryMeta instance if the specified binary item is found,
or null if it is unavailable.com.tridion.meta.BinaryMeta[] getMetas(String binaryURI)
binaryURI - A tcm:uri indicating the binary for which the metadata should
be retrieved.BinaryMeta instances if the specified binary item is found,
or an empty collection.com.tridion.meta.BinaryMeta[] getVariants(int publicationId,
String variantId)
BinaryMeta objects for the given publication that have the share the given variantId.publicationId - The Id of the Publication you want to search in.variantId - The variant idCollection containing all BinaryMeta objects that match. If no results are
found, an empty Collection is returned.com.tridion.meta.BinaryMeta[] getVariants(String publicationURI, String variantId)
BinaryMeta objects for the given publication that have the share the given variantId.publicationURI - A string representing the TCM URI value of the Publication you want to search in.variantId - The variant idCollection containing all BinaryMeta objects that match. If no results are
found, an empty Collection is returned.Collection<com.tridion.meta.BinaryMeta> getMetaByURL(String urlPath)
BinaryMeta objects which exactly match the URL Path passed as the urlPath parameter.urlPath - The URL Path of the Binary as it is stored in the Binary Metadata.Collection containing all BinaryMeta objects with the URLPath used to perform
the query. In theory, this is one BinaryMeta per Publication. If no results are found, an
empty Collection is returned.com.tridion.meta.BinaryMeta getMetaByURL(int publicationId,
String urlPath)
BinaryMeta object in the Publication identified by the publicationId
parameter
which has the URL Path as passed by the urlPath parameter.publicationId - The Id of the Publication you want to search in.urlPath - The URL Path of the Binary as it is stored in the Binary Metadata.BinaryMeta object with the URLPath used to perform
the query in the Publication identified by publicationId. If no BinaryMeta matches the
query, returns null;com.tridion.meta.BinaryMeta getMetaByURL(String publicationURI, String urlPath)
BinaryMeta object in the Publication identified by the publicationURI
parameter
which has the URL Path as passed by the urlPath parameter.publicationURI - The TCM URI of the Publication you want to search in.urlPath - The URL Path of the Binary as it is stored in the Binary Metadata.BinaryMeta object with the URLPath used to perform
the query in the Publication identified by publicationId. If no BinaryMeta matches the
query, returns null;Copyright © 2016 SDL Group. All rights reserved.