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

razieltd
Champ in-the-making
Champ in-the-making
Thank you so much Sweta Chalasani Smiley Very Happy

weblogic
Champ in-the-making
Champ in-the-making
Hi RivetLogic.
Do you have a commercial license for Raar or planning to move client jars on more integration-friendly licence than GPL??

rivetlogic
Champ on-the-rise
Champ on-the-rise
I believe that can be addressed with a written exemption from the GPL constraints. You can reach out to us directly with your needs.

–sumer

weblogic
Champ in-the-making
Champ in-the-making
Hello RivetLogic!
Which PropertyDefinition parameters are supported by Raar?
Seems mandatory parameter on PropertyDefinition always false, after using the :
getDictionaryService().getProperty(myTicket, typeQName , propertyQName)
My type definition(mandatory=true) :
      <type name="tc:generalDoc">
         <title>General Document</title>

         <parent>cm:content</parent>
         <archive>true</archive>
         <properties>
            <property name="tc:invVendor">
               <title>Vendor for Invoice</title>
               <type>d:text</type>
               <mandatory>true</mandatory>
               <index enabled="true">
         <atomic>true</atomic>
         <stored>false</stored>
              <tokenised>false</tokenised>
          </index>
            </property>
        </properties>

      </type>

robinflow
Champ in-the-making
Champ in-the-making
Hi there!
Is RAAr going to be developed further to be used in Alfresco 4.0.x?

rivetlogic
Champ on-the-rise
Champ on-the-rise
Support for Alfresco 4.0.d Community, and 4.0.0 Enterprise is now ready. You can download it here: http://raar.rivetlogic.com

- Sweta Chalasani

brownshoe75
Champ in-the-making
Champ in-the-making
Hi,

I'm currently testing Alfresco Enterprise 3.4.10. Which version of Raar must I use? I've found only 3.4.2E and I'm not sure it will be compatible.
Thanks by advance for your answer,

Brownshoe75

rivetlogic
Champ on-the-rise
Champ on-the-rise
Give 3.4.2E a try, and if you run into issues file a JIRA ticket here: http://issues.rivetlogic.com/browse/cma and we'll work on it as soon as we're able to.

–sumer

thijslemmens
Champ in-the-making
Champ in-the-making
Hi

We are looking for an alternative for the old SOAP webservices API to do bulk uploads. RAAr seems a good candidate, but is it able to a bulk creation of nodes? We want to create multiple nodes without doing a call to alfresco for each node, because it is a lot faster. I read something about transaction support, but it was not clear to me if it is already implemented and if it meets this requirement.

kind regards

kuldeepsharma
Champ in-the-making
Champ in-the-making
Hi
I'm getting this run time exception while connecting to the Alfresco server———–>  Caused by AuthenticationFailure: com.rivetlogic.core.cma.exception.CmaRuntimeException

I'm using grails version 2.3.3 and alfresco version 2.3.3 and  alfresco-mmt-2.1.0.jar and  cma-alfresco-1.8.3.amp file to connect to the server. from bootstrape i'm saving the url, username and password of the remote alfresco server. Now when i'm trying to connect to the server i'm getting this exception.

Also when i clone the grails-alfresco plugin from https://github.com/cocodinos/grails-alfresco-plugin/tree/master, there is no bin folder available there so what i did, made a bin folder and installed the copy the amp and mmt.jar files there and installed there using(java -jar alfresco-mmt-2.1.0.jar install /root/alfresco-recordsmanagement-2.1.0.amp /usr/jboss-4.0.3SP1/server/default/deploy/alfresco.war).
Please help me in finding what i'm doing wrong thanks in advance




the whole error i'm getting is as follows-





| Error 2013-12-16 17:25:58,803 [http-bio-9090-exec-3] ERROR errors.GrailsExceptionResolver  - CmaRuntimeException occurred when processing request: [GET] /front-end/home
<html><head><title>Apache Tomcat/7.0.42 - Error report</title><style><!–H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}–></style> </head><body><h1>HTTP Status 404 - /share/alfresco/service/cma/authenticationservice</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/share/alfresco/service/cma/authenticationservice</u></p><p><b>description</b> <u>The requested resource is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.42</h3></body></html>. Stacktrace follows:
Message: Error processing GroovyPageView: Error executing tag <alfresco:homeTree>: null
    Line | Method
->>  530 | doFilter  in /home/damyant/Desktop/KUMULUS/kumulus/front-end/grails-app/views/home/index.gsp
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Caused by GrailsTagException: Error executing tag <alfresco:homeTree>: null
->>   59 | doCall    in /home/damyant/Desktop/KUMULUS/kumulus/front-end/grails-app/views/home/index.gsp
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Caused by UndeclaredThrowableException: null
->>  104 | doCall    in org.grails.plugin.alfresco.AlfrescoTagLib$_closure2
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|     59 | doCall    in home_damyant_Desktop_KUMULUS_kumulus_front_end_grails_app_views_home_index_gsp$_run_closure2
|     73 | run . . . in home_damyant_Desktop_KUMULUS_kumulus_front_end_grails_app_views_home_index_gsp
|    200 | doFilter  in grails.plugin.cache.web.filter.PageFragmentCachingFilter
|     63 | doFilter  in grails.plugin.cache.web.filter.AbstractFilter
|     53 | doFilter  in grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter
|     49 | doFilter  in grails.plugin.springsecurity.web.authentication.RequestHolderAuthenticationFilter
|     82 | doFilter  in grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter
|   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
^    744 | run . . . in java.lang.Thread
Caused by AuthenticationFailure: com.rivetlogic.core.cma.exception.CmaRuntimeException: <html><head><title>Apache Tomcat/7.0.42 - Error report</title><style><!–H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}–></style> </head><body><h1>HTTP Status 404 - /share/alfresco/service/cma/authenticationservice</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/share/alfresco/service/cma/authenticationservice</u></p><p><b>description</b> <u>The requested resource is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.42</h3></body></html>
->>  118 | authenticate in com.rivetlogic.core.cma.impl.AuthenticationServiceImpl
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|     77 | openSession in org.grails.plugin.alfresco.AlfrescoUsersService
|     63 | getTicket in     ''
|    104 | doCall    in org.grails.plugin.alfresco.AlfrescoTagLib$_closure2
|     59 | doCall .  in home_damyant_Desktop_KUMULUS_kumulus_front_end_grails_app_views_home_index_gsp$_run_closure2
|     73 | run       in home_damyant_Desktop_KUMULUS_kumulus_front_end_grails_app_views_home_index_gsp
|    200 | doFilter  in grails.plugin.cache.web.filter.PageFragmentCachingFilter
|     63 | doFilter  in grails.plugin.cache.web.filter.AbstractFilter
|     53 | doFilter  in grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter
|     49 | doFilter  in grails.plugin.springsecurity.web.authentication.RequestHolderAuthenticationFilter
|     82 | doFilter  in grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter
|   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^    744 | run       in java.lang.Thread
Caused by CmaRuntimeException: <html><head><title>Apache Tomcat/7.0.42 - Error report</title><style><!–H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}–></style> </head><body><h1>HTTP Status 404 - /share/alfresco/service/cma/authenticationservice</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/share/alfresco/service/cma/authenticationservice</u></p><p><b>description</b> <u>The requested resource is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.42</h3></body></html>
->>  414 | processResponse in com.rivetlogic.core.cma.rest.impl.RestExecuterImpl
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|    349 | processResponse in     ''
|    142 | execute . in     ''
|    124 | execute   in     ''
|    113 | authenticate in com.rivetlogic.core.cma.impl.AuthenticationServiceImpl
|     77 | openSession in org.grails.plugin.alfresco.AlfrescoUsersService
|     63 | getTicket in     ''
|    104 | doCall    in org.grails.plugin.alfresco.AlfrescoTagLib$_closure2
|     59 | doCall .  in home_damyant_Desktop_KUMULUS_kumulus_front_end_grails_app_views_home_index_gsp$_run_closure2
|     73 | run       in home_damyant_Desktop_KUMULUS_kumulus_front_end_grails_app_views_home_index_gsp
|    200 | doFilter  in grails.plugin.cache.web.filter.PageFragmentCachingFilter
|     63 | doFilter  in grails.plugin.cache.web.filter.AbstractFilter
|     53 | doFilter  in grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter
|     49 | doFilter  in grails.plugin.springsecurity.web.authentication.RequestHolderAuthenticationFilter
|     82 | doFilter  in grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter
|   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^    744 | run       in java.lang.Thread