public interface BinaryProvider extends BaseProvider
| Modifier and Type | Method and Description |
|---|---|
Binary |
getBinaryByURI(String tcmUri)
Retrieves a Binary by its TCMURI and deserializes it into a Binary object.
|
Binary |
getBinaryByURL(String url,
int publication)
Retrieves a Binary by its Publication and URL and deserializes it into a Binary object.
|
byte[] |
getBinaryContentById(int id,
int publication) |
byte[] |
getBinaryContentByURL(String url,
int publication) |
org.joda.time.DateTime |
getLastPublishDate(String tcmUri) |
Binary getBinaryByURI(String tcmUri) throws ItemNotFoundException, ParseException, SerializationException
tcmUri - String representing the Tridion Binary URIItemNotFoundException - if said binary cannot be foundParseException - if given parameter does not represent a TCMURISerializationException - if response from service does not represent a serialized BinaryBinary getBinaryByURL(String url, int publication) throws ItemNotFoundException, SerializationException
url - String representing the path part of the binary URLItemNotFoundException - if said binary cannot be foundSerializationException - if response from service does not represent a serialized Binarybyte[] getBinaryContentById(int id,
int publication)
throws ItemNotFoundException
ItemNotFoundExceptionbyte[] getBinaryContentByURL(String url, int publication) throws ItemNotFoundException
ItemNotFoundExceptionorg.joda.time.DateTime getLastPublishDate(String tcmUri) throws ParseException, ItemNotFoundException
ParseExceptionItemNotFoundExceptionCopyright © 2017. All rights reserved.