Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-7278

Don't abuse DocumentPart

    XMLWordPrintable

    Details

    • Type: Clean up
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5
    • Component/s: Core
    • Tags:
    • Impact type:
      API change
    • Upgrade notes:
      Hide

      New API:

      • DocumentModel.isDirty()
      Show
      New API: DocumentModel.isDirty()

      Description

      The DocumentPart API should be used only when really needed.

      DocumentPart is mainly used today to:
      1. mistakenly access properties in two steps (doc.getPart("dublincore").get("title").getValue()),
      2. iterate over all properties of a document or a schema.

      The 1. can be replaced by proper getProperty use. The second one should be checked.

        Attachments

          Activity

            People

            • Assignee:
              fguillaume Florent Guillaume
              Reporter:
              fguillaume Florent Guillaume
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: