/* * Handle read (GET) */ @Override protected Map<String, Object> extractPart( DocumentModel docModel, String schema, ObjectPartType partMeta, Map<String, Object> addToMap) throws Exception { Map<String, Object> result = null; MediaType mt = MediaType.valueOf( partMeta .getContent() .getContentType()); // FIXME: REM - This is no longer needed. Everything is POX if (mt.equals(MediaType.APPLICATION_XML_TYPE)) { Map<String, Object> unQObjectProperties = (addToMap != null) ? addToMap : (new HashMap<String, Object>()); unQObjectProperties.put( WorkflowJAXBSchema.WORKFLOW_LIFECYCLEPOLICY, docModel.getLifeCyclePolicy()); unQObjectProperties.put( WorkflowJAXBSchema.WORKFLOW_CURRENTLIFECYCLESTATE, docModel.getCurrentLifeCycleState()); result = unQObjectProperties; } // TODO: handle other media types return result; }