cancel
Showing results for 
Search instead for 
Did you mean: 

Remote Alfresco API rivet

rivetlogic
Champ on-the-rise
Champ on-the-rise
RAAr

RAAr is an abstraction layer for remote communication with Alfresco ECM. RAAr provides a simple, Java-based local library that may be used by one or more content rich applications and allows these applications to interface to Alfresco (including multiple Alfresco repositories from the same application). RAAr's lower layers handle communication to remote Alfresco instances over ReSTful calls to Alfresco that get mapped to calls to the Alfresco Foundation Services (AFS) API.

Motivation for RAAr

Certain classes of content rich applications require one or more of the following:

    * Remote full coverage of the AFS API (e.g., version management and version history traversal, dictionary services for model introspection, multi-store access, etc.)
    * Streaming content directly from the application and not from Alfresco (i.e., not using download servlet)
    * SSO support
    * Middle-tier business logic within the application where not all processing is done on Alfresco app server
    * Support for un-marshalling of result sets
RAAr lives here:
http://wiki.rivetlogic.org/display/RAAR/

Feel free to ask questions about RAAr in this thread.

–Sumer
112 REPLIES 112

chantren
Champ in-the-making
Champ in-the-making
Thank you very much for your reactivity !

Nathan.

scoppola
Champ in-the-making
Champ in-the-making
Hi, any news on support for Transaction in Raar ?

aferraro
Champ in-the-making
Champ in-the-making
Hi Alfonso and sumer,

any news about Transaction support in RAAr?


Thank you very much in advance,

Antonio.

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi Antonio,

I think I have code that you can check up. I haven't yet done real test on it yet, so I can't promise it'll work 100% Smiley Happy. But you can check it out from svn and try to get and idea of how it works (it's pretty much documented). In the next few days, I'll be testing it. You can find the project in:

https://svn.rivetlogic.com/repos/rivets/crafter/transaction/webscript-transaction-support/trunk

Best regards,

Alfonso Vásquez

aferraro
Champ in-the-making
Champ in-the-making
Thank you very much Alfonso!!!  Smiley Happy

We are downloading the code.
For Any question, I will  send you an email directly.

Best Regards,
Antonio.

zomurn
Champ in-the-making
Champ in-the-making
Hello,

I tried to make working the AWPr webscript portlet (the other solution) and I have trouble making it working with liferay 6 GA3 CE and Alfresco CE 3.3g. The error is :

18:30:26,128 WARN  [HttpMethodBase:682] Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
18:30:26,130 WARN  [JSPPortlet:115] Invalid Alfresco Ticket. Attempting to authenticate as guest.
18:30:26,174 WARN  [HttpMethodBase:682] Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
18:30:26,175 WARN  [JSPPortlet:359] Failed to Authenticate with Alfresco. Guest access is not allowed for this script.

And I installed the amps (awpr-example-webscripts-1.6.0.amp and star-1.3.0.amp)  in alfresco.war and deploy the portlet into liferay (awpr.war)
I configured the portlets according to http://wiki.rivetlogic.com/display/AWPr/Example+Web+scripts but The output of the portlet is :

The portlet failed to authenticate with Alfresco.

For the "myspaces" remade one.

Can you tell me the problem ? (I want to make an alfresco portlet working into liferay).

Thanks

acoll
Champ in-the-making
Champ in-the-making
I'm running into the same exact issue. I've setup the authentication to chain thru the standard alfresco authentication. I've created the same user on both liferay and alfresco with the same password on each but when i log into liferay as this user, the myspaces configured awpr portlet returns the same error about authentication.

hosein
Champ in-the-making
Champ in-the-making
Hi All
i think awpr is same as alfresco portlets and do not anything else. it has same bug as alfresco and can not authenticate users of ldap …~!

!! The portlet failed to authenticate with Alfresco.

such as zomurn i follow same steps and get same results !

Is there any solution ?

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hey guys,

I didn't notice this AWPr mini discussion because it's not in the right forum.  Could you please post AWPr question in the AWPr thread (http://forums.alfresco.com/en/viewtopic.php?f=32&t=18314)

Thanks,

–Alaaeldin

P.S. I'll try running AWPr with the latest versions of Liferay/Alfresco and let you know how it goes.  If it doesn't work I'll let you know when it's fixed and a new version is released.

danipixel
Champ in-the-making
Champ in-the-making
Hello.

First of all, congratulations for this great api. Now we are using it in our project and we are saving a lot of development time.

We are using Alfresco Community Edition 3.4.0 and 3.3.0g. The problem is that when we connect to the 3.3g version everything goes well, but when we connect to the 3.4.0 community version, and call the method validate in the AuthenticationService, we get the following error in the server logs:

16:03:29,117  ERROR [webscripts.bean.AbstractCmaWebScript] java.lang.NoSuchMethodError: org.alfresco.service.cmr.security.MutableAuthenticationService.validate(Ljava/lang/String;Ljava/lang/String;)V

We are using the cma-alfresco-3.3.g-C-0.amp version for the server and the following maven dependecies in our client:

   <dependency>
         <groupId>com.rivetlogic</groupId>
         <artifactId>cma-api</artifactId>
         <version>3.3.g-C-0</version>
      </dependency>
      
      <dependency>
         <groupId>com.rivetlogic</groupId>
         <artifactId>cma-impl</artifactId>
         <version>3.3.g-C-0</version>
      </dependency>
      
      <dependency>
         <groupId>com.rivetlogic</groupId>
         <artifactId>base64</artifactId>
         <version>1.0.0</version>
      </dependency>

Does this means that we can't use the 3.3.0g version of this API with the 3.4.0 version of Alfresco Community? in that case, are you going to make a new release of the API compatible with the 3.4.0 Community version?

Thanks in advance.

Best regards.