Object-Module-Mapping


In order to render an object, the rendering service has to decide which module to use to process the object.

  1. Decision according to ESObject -> ESOBJECT_MIMETYPE
    1. ESModule :: setModuleByResource () Objects with the mime type "application / zip" can be of different origin. For example, such a file could be a Moodle-course or it could simply be a zip-compressed data packet, the user should be offered as a download. The method ESModule :: setModuleByResource () differentiates, and picks a rendering module according to the type of resource.
    2. ESModule :: setModuleByMimetype () For most objects the rendering module can be chosen based on their mime type. The method ESModule :: setModuleByMimetype () retrieves the corresponding mapping from the database.
  2. Decision based on the ESObject->AlfrescoNode -> properties Some resources must be treated in a special way. An example is an edu-sharing Youtube resource. The object itself is an HTTP link, but the rendering service is supposed to render a video. Therefore, the type of the resource has to be determined from the properties of the Alfresco-node. This happens by means of the the ESObject :: setModule () method.