As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
var cmisConnection = cmis.getConnection() var cmisSession = cmisConnection.getSession()
<?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>
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");
In order to connect to the local Alfresco server from JavaScript use this snippet: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.You were talking about a Java bean. Do you want use the OpenCMIS API from Java or JavaScript?Florian