10-12-2011 06:27 PM
10-13-2011 10:31 AM
var cmisConnection = cmis.getConnection()
var cmisSession = cmisConnection.getSession()
The returned session object is an OpenCMIS session to the local Alfresco repository for the current user.10-13-2011 11:08 AM
<?xml version='1.0' encoding='UTF-8'?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<bean id="documentEventHandler" class="com.foobar.eventhandler.DocumentEventHandler"
init-method="registerEventHandlers">
<property name="policyComponent">
<ref bean="policyComponent"/>
</property>
<property name="nodeService">
<ref bean="nodeService"/>
</property>
</bean>
</beans>
10-13-2011 11:30 AM
parameters.put(SessionParameter.BINDING_TYPE, BindingType.LOCAL.value());
parameters.put(SessionParameter.LOCAL_FACTORY, "org.alfresco.opencmis.AlfrescoLocalCmisServiceFactory");
parameters.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");
But you have to make sure that you the use the session object only for the user it has been created for.10-14-2011 06:13 PM
12-19-2011 07:40 PM
01-12-2012 06:12 AM
In order to connect to the local Alfresco server from JavaScript use this snippet:The returned session object is an OpenCMIS session to the local Alfresco repository for the current user.var cmisConnection = cmis.getConnection()
var cmisSession = cmisConnection.getSession()
You were talking about a Java bean. Do you want use the OpenCMIS API from Java or JavaScript?
Florian
02-04-2012 07:20 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.