Example #1
0
 /**
  * Returns the content URL of the rendition if the binding supports content
  * URLs.
  *
  * Depending on the repository and the binding, the server might not return
  * the content but an error message. Authentication data is not attached.
  * That is, a user may have to re-authenticate to get the content.
  *
  * @return string|null the content URL of the rendition or <code>null</code> if the binding
  *         does not support content URLs
  */
 public function getContentUrl()
 {
     $objectService = $this->session->getBinding()->getObjectService();
     if ($objectService instanceof LinkAccessInterface) {
         return $objectService->loadRenditionContentLink($this->session->getRepositoryInfo()->getId(), $this->objectId, $this->getStreamId());
     }
     return null;
 }
 /**
  * Get the bindings object factory for the current session binding
  *
  * @return BindingsObjectFactoryInterface
  */
 protected function getBindingsObjectFactory()
 {
     return $this->session->getBinding()->getObjectFactory();
 }