cancel
Showing results for 
Search instead for 
Did you mean: 

Calling in share a java class defined outside alfresco

sofia
Champ in-the-making
Champ in-the-making
Hello,

I've defined a java class outside Alfresco , this class is doing some specific operations using cmis protocol,  and I need to call from Share . How can I accomplish this ?  
1 REPLY 1

darkredd
Star Contributor
Star Contributor
Hi Sofia,

I have done this before to extend some of the methods that share js does not have in this way:
You need to register your class and the use the method names you placed as values:

<bean id="classid" parent="baseJavaScriptExtension" class="za.co.mycompany.ClassName">
   <property name="extensionName">
      <value>methodName</value>
   </property>
</bean>


Change the parent to reflect the Java parent.