You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Florian Müller (JIRA)" <ji...@apache.org> on 2011/04/05 13:15:05 UTC
[jira] [Resolved] (CMIS-114) APPObject's lack APP specific typesafe
methods
[ https://issues.apache.org/jira/browse/CMIS-114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Florian Müller resolved CMIS-114.
---------------------------------
Resolution: Won't Fix
This code stream is outdated and will not be revived.
> APPObject's lack APP specific typesafe methods
> ----------------------------------------------
>
> Key: CMIS-114
> URL: https://issues.apache.org/jira/browse/CMIS-114
> Project: Chemistry
> Issue Type: Improvement
> Components: chemistry-old
> Reporter: Chris Hubick
> Priority: Minor
> Attachments: chemistry_app_type_safety.patch
>
>
> Hi.
> When using APPContentManager to communicate with my repository, I would like to use the APPObject derived API's, in order to access underlying APP specific information (Link's, etc). The problem is that I end up writing a lot of code containing ugly object cast's like this:
> APPContentManager contentManager = new APPContentManager("");
> APPRepository repository = (APPRepository)contentManager.getDefaultRepository();
> APPConnection connection = (APPConnection)repository.getConnection(null);
> APPFolder aFolder = (APPFolder)connection.getFolder("");
> When I would rather have the ability to write typesafe code like this:
> APPContentManager contentManager = new APPContentManager("");
> APPRepository repository = contentManager.getDefaultAPPRepository();
> APPConnection connection = repository.getAPPConnection(null);
> APPFolder aFolder = connection.getAPPFolder("");
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira