Updated!

http://jira.nuxeo.org/browse/NXP-2398

I haven't privileges to remove an attachment. So, I've uploaded the new 
package as preview-nuxeo.2.0.tar.gz.

Regards.

tiry_zimbra escribió:
> Enrique Perez a écrit :
>> Hi all,
>>
>> I've solved the authentication problem using a IFRAME, like Tiry said. 
> Great.
>> Moreover, now the plugin uses the Nuxeo transformation service. 
> Great.
>> I finally use the transformation to plain text because I haven't 
>> found any transformation to HTML (does this plugin exist?).
> You are right.
> I thought there was html transformers declared.
> You can probably contribute yours !
>> Do I update the jira task with the new package?
> Yes, please.
>
>>
>> Best regards.
>>
>> Tiry escribió:
>>> Hi again Enrique,
>>>
>>> For transformation service, look at :
>>> http://doc.nuxeo.org/5.1/books/nuxeo-book/html-single/#transformation-service
>>>  
>>>
>>>
>>> Nuxeo already includes a PDF2html converser and a OOO/MSO 2 html 
>>> converter.
>>>
>>> Tiry
>>>
>>> Enrique Perez a écrit :
>>>> [EMAIL PROTECTED] escribió:
>>>>> Hi Enrique,
>>>>>
>>>>> You don't need to to do that (Authentication) in order to achieve 
>>>>> what you
>>>>> want.
>>>>>
>>>>> In your code, from a Seam component you connect to a Seam aware 
>>>>> restlet
>>>>> via http.
>>>>> This is the reason for your authentication problem.
>>>>>
>>>>> There are at least 2 solutions :
>>>>>
>>>>> 1 : you change your design so that the html preview is always 
>>>>> fetched from
>>>>> the client browser (ie: as you do for images).
>>>>> This could be done :
>>>>>  - by using a IFRAME
>>>>>  - by using Ajax to directly insert HTML content into tab's body.
>>>>>
>>>>> 2 : from your Seam action bean, you don't need to use http to call 
>>>>> the
>>>>> restlet. Just call it as a seam component, you only need to 
>>>>> provide it a
>>>>> dedicated public method to send you the blob.
>>>>>   
>>>>
>>>> Thanks, I'll take it a look.
>>>>> NB : by the way, if for some other use cases, if you really need 
>>>>> to access
>>>>> to nuxeo from http and propagate user identity you can use the 
>>>>> portal-sso
>>>>> addon and the nuxeo-http-client.
>>>>>
>>>>> NB2 : why did't you use standard Nuxeo transformation engine ?
>>>>>   
>>>> I didn't know that Nuxeo provides a transformation engine. Where 
>>>> can I find it?
>>>>
>>>> Regards.
>>>>
>>>>> See : http://jira.nuxeo.org/browse/NXP-2398
>>>>>
>>>>>  
>>>>>>>> I use an URLConnection object to retrieve the previews. I need to
>>>>>>>> authenticate this URLConnection, but I don't know how to get the
>>>>>>>> credentials that is logged. I try with this piece of code:
>>>>>>>>
>>>>>>>>            NuxeoPrincipal
>>>>>>>> nuxeoPrincipal=(NuxeoPrincipal)documentManager.getPrincipal();
>>>>>>>>
>>>>>>>>            String user;
>>>>>>>>            String pass;
>>>>>>>>            user=nuxeoPrincipal.getName();
>>>>>>>>            pass=nuxeoPrincipal.getPassword();
>>>>>>>>
>>>>>>>> The username is retrieved fine, but the password returns null. 
>>>>>>>> So, at
>>>>>>>> the moment I use the following piece of code:
>>>>>>>>
>>>>>>>>            user="Administrator";
>>>>>>>>            pass="Administrator";
>>>>>>>>
>>>>>>>>         
>>>>>
>>>>>
>>>>>
>>>>>   
>>>>
>>>>
>>>
>>>
>>
>>
>
>


-- 
Enrique Pérez Olivares.
Dpto I+D.
Yerbabuena Software.
[EMAIL PROTECTED]
http://www.yerbabuena.es
Tlf/Fax: 902 995 246 

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to