Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-114

APPObject's lack APP specific typesafe methods

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • chemistry-old
    • None

    Description

      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("");

      Attachments

        1. chemistry_app_type_safety.patch
          21 kB
          Chris Hubick

        Activity

          People

            Unassigned Unassigned
            chris@hubick.com Chris Hubick
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: