MediaElementImpl elemento = new MediaElementImpl();
String mensaje = StringUtils.EMPTY;
try {
authenticate();
} catch (AuthenticationFault e1) {
log.error(Constantes.MENSAJE_ERROR_AUTENTIFICACION
+ e1.getMessage());
mensaje = Constantes.MENSAJE_ERROR_AUTENTIFICACION;
throw new MediaLibraryException(mensaje);
}
ContentServiceSoapBindingStub contentService = WebServiceFactory
.getContentService();
Reference ref = new Reference();
ref.setPath(relativePath);
ref.setStore(store);
// Read the content from the respository
try {
AuthenticationResult authenticationResultado = new AuthenticationResult(
AuthenticationUtils.getAuthenticationDetails()
.getSessionId(), AuthenticationUtils
.getAuthenticationDetails().getTicket(),
AuthenticationUtils.getAuthenticationDetails()
.getUserName());
—————-> Content[] readResult = contentService.read(new Predicate(
—————-> new Reference[] { ref }, store, null), QNames.PROP_CONTENT);
Content content = readResult[0];
elemento = (MediaElementImpl) rellenarElemento(elemento, content,
authenticationResultado, null);
} catch (RemoteException e) {
log.error(Constantes.MENSAJE_ERROR_BUSCAR_ELEMENTO_ID
+ e.getMessage());
mensaje = Constantes.MENSAJE_ERROR_BUSCAR_ELEMENTO_ID;
throw new MediaLibraryException(mensaje);
}
return elemento;
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.