tsgrp / OpenContent

TSG's Web Services for ECM Repositories
8 stars 4 forks source link

Remove ContentType From Core OC #68

Open aviking opened 9 years ago

aviking commented 9 years ago

This Update will have Two Phases.

Phase 1

  1. Remove the ContentType member variable from the following classees:
    • ObjectContent
    • EnhancedObjectContent
    • ContentFormat
    • GetContentRequest
  2. Update the LegacyCoreConfig to set up the correct maps
  3. Update the DCTMConfig to add in the ContentType maps
  4. Fix all other places that broke from the above updates.
  5. Rename variables like contentTypeArray and contentType to reflect what they actually represent (like fileExtensionArray or fileExtension).

    Phase 2

  6. Create a util function to retrive desired values from the map (this is done to improve error handling). Make the util function handle the errors correctly.
  7. Populate the map from the repository (alfresco and dctm only, HBase still needs a config map).
  8. Make constants for any mimeType that is being used in OC code. Several places in code we are hard coding a mimeType and we are just using a string, we should be using a constant.
  9. Add the ability to add and extensionless object via hpi (possibly using Tika).
  10. Remove the endpoint CONTENT_GET_MIMETYPE and use CONTENT_GET_CONTENT_FORMATS. This will require updates in HPI as well as OC.
aviking commented 9 years ago

Phase 1 complete with OC Revision: 12527. Code Review: Ben A.