chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller <f...@apache.org>
Subject Re: The sense of ObjectFactory::convertAces
Date Fri, 23 Jan 2015 09:06:24 GMT
Hi Sascha,

The OpenCMIS client consists of two layers, a high-level API and a 
low-level API. The low-level API gives you full access to all CMIS 
features but is less convenient to use than the high-level API.
The task of the ObjectFactory is to convert low-level objects into 
high-level objects. In some cases, like convertAces, this is trivial. 
But an application can also provide a custom ObjectFactory 
implementation, which enhances or replaces OpenCMIS objects during the 
conversion. For example, a custom ObjectFactory implementation could 
override convertAces and add the first and last names of the users that 
are referenced in the ACEs to the returned high-level ACE objects.
The default implementation just copies the data without any changes.

- Florian


> Hello,
> 
> first of all I have to say that I’m not a Java developer and maybe
> misunderstand something.
> 
> Can somebody explain me the sense of the ObjectFactory::convertAces
> implementation?
> https://github.com/apache/chemistry-opencmis/blob/9b821292e708c24827ed526d4226b4308eff91bf/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/ObjectFactoryImpl.java#L138
> [1]
> 
> Is it just creating a new copy of the ACL object? I really don’t
> understand why it is used in SessionImpl::createDocument.
> https://github.com/apache/chemistry-opencmis/blob/2c897f70abd5fc5a3a20dec0b6df21b91000ad21/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java#L1085
> [2]
> 
> Thanks and Greetz
> 
> Sascha
> 
> --
> Sascha Egerer
> [Senior Entwickler]
> Certified TYPO3 Integrator
> 
> dkd Internet Service GmbH
> development // kommunikation // design
> Kaiserstraße 73
> 60329 Frankfurt am Main
> 
> Kontakt: - email: sascha.egerer@dkd.de
> - fon: +49 69 2475218-0
> - fax: +49 69 2475218-99
> - web: http://www.dkd.de [3]
> - social media: http://social.dkd.de [4]
> 
> Aktuelle Projekte:
> - http://www.sebassetmanagement.de [5] - Relaunch Website (TYPO3)
> - http://www.sartorius-intec.de [6] – Launch Website (TYPO3)
> - http://www.ellen-wille.de [7] - Launch Website (TYPO3)
> 
> Entwickler-Tipp: ganz einfach sofort mit Solr starten:
> http://www.hosted-solr.com [8]
> 
> Geschäftsführer: O. Dobberkau, S. Schaffstein, G. Wegenast, C.
> Zabanski
> Registergericht: Amtsgericht Frankfurt am Main, Registernummer: HRB
> 45590
> 
> 
> Links:
> ------
> [1]
> https://github.com/apache/chemistry-opencmis/blob/9b821292e708c24827ed526d4226b4308eff91bf/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/ObjectFactoryImpl.java#L138
> [2]
> https://github.com/apache/chemistry-opencmis/blob/2c897f70abd5fc5a3a20dec0b6df21b91000ad21/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java#L1085
> [3] http://www.dkd.de
> [4] http://social.dkd.de
> [5] http://www.sebassetmanagement.de
> [6] http://www.sartorius-intec.de
> [7] http://www.ellen-wille.de
> [8] http://www.hosted-solr.com


Mime
View raw message