public class BrokerBinaryProvider extends BaseBrokerProvider implements BinaryProvider
cacheProvider, contentIsBase64Encoded, contentIsCompressed| Constructor and Description |
|---|
BrokerBinaryProvider() |
| Modifier and Type | Method and Description |
|---|---|
org.dd4t.contentmodel.Binary |
getBinaryByURI(String tcmUri) |
org.dd4t.contentmodel.Binary |
getBinaryByURL(String url,
int publication) |
byte[] |
getBinaryContentById(int id,
int publication)
Retrieves the byte array content of a Tridion binary based on its TCM item id and publication id.
|
byte[] |
getBinaryContentByURL(String url,
int publication)
Retrieves the byte array content of a Tridion binary based on its URL.
|
com.tridion.data.BinaryData |
getBinaryDataById(int id,
int publication) |
com.tridion.data.BinaryData |
getBinaryDataById(int id,
int publication,
String variantId) |
com.tridion.meta.BinaryMeta |
getBinaryMetaById(int publicationId,
int itemId) |
com.tridion.meta.BinaryMeta |
getBinaryMetaByTcmUri(TCMURI binaryUri) |
com.tridion.meta.BinaryMeta |
getBinaryMetaByURL(String url,
int publication) |
org.joda.time.DateTime |
getLastPublishDate(String tcmUri) |
convertStreamToString, decodeAndDecompressContent, encodeUrl, getKey, isContentIsBase64Encoded, setCacheProvider, setContentIsBase64Encoded, setContentIsCompressedpublic org.dd4t.contentmodel.Binary getBinaryByURI(String tcmUri) throws org.dd4t.core.exceptions.ItemNotFoundException, ParseException, org.dd4t.core.exceptions.SerializationException
getBinaryByURI in interface BinaryProviderorg.dd4t.core.exceptions.ItemNotFoundExceptionParseExceptionorg.dd4t.core.exceptions.SerializationExceptionpublic org.dd4t.contentmodel.Binary getBinaryByURL(String url, int publication) throws org.dd4t.core.exceptions.ItemNotFoundException, org.dd4t.core.exceptions.SerializationException
getBinaryByURL in interface BinaryProviderorg.dd4t.core.exceptions.ItemNotFoundExceptionorg.dd4t.core.exceptions.SerializationExceptionpublic byte[] getBinaryContentById(int id,
int publication)
throws org.dd4t.core.exceptions.ItemNotFoundException
getBinaryContentById in interface BinaryProviderid - int representing the item idpublication - int representing the publication idorg.dd4t.core.exceptions.ItemNotFoundException - if the item identified by id and publication was not foundpublic byte[] getBinaryContentByURL(String url, int publication) throws org.dd4t.core.exceptions.ItemNotFoundException
getBinaryContentByURL in interface BinaryProviderurl - string representing the path portion of the URL of the binarypublication - int representing the publication idorg.dd4t.core.exceptions.ItemNotFoundException - if the item identified by id and publication was not foundpublic com.tridion.data.BinaryData getBinaryDataById(int id,
int publication)
throws org.dd4t.core.exceptions.ItemNotFoundException
id - int representing the item idpublication - int representing the publication idorg.dd4t.core.exceptions.ItemNotFoundException - if the item identified by id and publication was not foundpublic com.tridion.data.BinaryData getBinaryDataById(int id,
int publication,
String variantId)
throws org.dd4t.core.exceptions.ItemNotFoundException
id - int representing the item idpublication - int representing the publication idvariantId - String representing the variant Idorg.dd4t.core.exceptions.ItemNotFoundException - if the item identified by id, publication and variantId was not foundpublic com.tridion.meta.BinaryMeta getBinaryMetaByURL(String url, int publication) throws org.dd4t.core.exceptions.ItemNotFoundException
url - string representing the path portion of the URL of the binarypublication - int representing the publication idorg.dd4t.core.exceptions.ItemNotFoundException - if the item identified by url and publication was not foundpublic com.tridion.meta.BinaryMeta getBinaryMetaById(int publicationId,
int itemId)
throws org.dd4t.core.exceptions.ItemNotFoundException
org.dd4t.core.exceptions.ItemNotFoundExceptionpublic com.tridion.meta.BinaryMeta getBinaryMetaByTcmUri(TCMURI binaryUri) throws org.dd4t.core.exceptions.ItemNotFoundException
org.dd4t.core.exceptions.ItemNotFoundExceptionpublic org.joda.time.DateTime getLastPublishDate(String tcmUri) throws org.dd4t.core.exceptions.ItemNotFoundException
getLastPublishDate in interface BinaryProviderorg.dd4t.core.exceptions.ItemNotFoundExceptionCopyright © 2017. All rights reserved.