 
					
				
		
08-28-2013 07:29 AM
03-01-2016 11:23 AM
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-client-api</artifactId>
<version>0.13.0</version>
</dependency>
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-client-impl</artifactId>
<version>0.13.0</version>
</dependency>
<dependency>
<groupId>org.alfresco.cmis.client</groupId>
<artifactId>alfresco-opencmis-extension</artifactId>
<version>0.3</version>
</dependency>
SessionFactory sessionFactory = SessionFactoryImpl.newInstance();
           
Map<String, String> parameter = new HashMap<String, String>();
parameter.put(SessionParameter.USER, config.getUserName());
parameter.put(SessionParameter.PASSWORD, config.getPassword());
parameter.put(SessionParameter.ATOMPUB_URL, config.getHost());
parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
parameter.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");
List<Repository> repositories = new ArrayList<Repository>();
repositories = sessionFactory.getRepositories(parameter);
cmisRepository = repositories.get(0);
parameter.put(SessionParameter.REPOSITORY_ID, cmisRepository.getId());
cmisSession = sessionFactory.createSession(parameter);
siteObject = cmisSession.getObjectByPath("/Sites/mysite");
03-01-2016 11:42 AM
 <dependency>
   <groupId>org.alfresco.cmis.client</groupId>
   <artifactId>alfresco-opencmis-extension</artifactId>
   <version>0.2</version>
</dependency>
03-01-2016 11:57 AM
<dependency>
  <groupId>org.apache.chemistry.opencmis</groupId>
  <artifactId>chemistry-opencmis-client-api</artifactId>
  <version>0.12.0</version>
</dependency>
<dependency>
 <groupId>org.apache.chemistry.opencmis</groupId>
 <artifactId>chemistry-opencmis-client-impl</artifactId>
 <version>0.12.0</version>
</dependency>
<!–  For alfresco aspect support –>
<dependency>
  <groupId>org.alfresco.cmis.client</groupId> 
  <artifactId>alfresco-opencmis-extension</artifactId>
  <version>0.3</version>
</dependency>
03-01-2016 12:04 PM
 rg.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl will be helpful in accessing Aspects. Now, from the above exceptions, we see that this class is available in the following (0.3 version of this) library:
rg.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl will be helpful in accessing Aspects. Now, from the above exceptions, we see that this class is available in the following (0.3 version of this) library:
<dependency>
  <groupId>org.alfresco.cmis.client</groupId>
  <artifactId>alfresco-opencmis-extension</artifactId>
  <version>0.3</version>
</dependency>
03-01-2016 12:24 PM
03-02-2016 10:58 AM
Type   aslmo:lmodocument
Properties:
aslmo:lmo_microfiche_roll    d:text       false
aslmo:lmo_is_placeholder    d:boolean    false 
…
<model>
…
<types>
  <type name="aslmo:lmodocument">
    <title>…</title>
    <parent>cm:content</parent>
    
    <mandatory-aspects>
      <aspect>aslmo:documentProperties</aspect>
    </mandatory-aspects>
  </type>
</types>
<aspects>
  <aspect name="aslmo:documentProperties">
    <title>…</title>
    <properties>
      <property name="…">
        <title>…</title>
        <type>…</type>
      </property>
      …
    </properties>
  <aspect>
</aspects>
</model>
06-09-2016 06:05 AM
10-05-2017 09:42 AM
For Alfresco Community v5.2.0 examples are working... For more details refers here: http://docs.alfresco.com/5.0/pra/1/concepts/opencmis-ext-using.html
 
					
				
				
			
		
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.