- Timestamp:
- 05/16/08 13:07:40 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs/branches/complex-obs/src/api/org/openmrs/api/ObsService.java
r4166 r4239 125 125 126 126 /** 127 * Get the ComplexData for an Obs. If obs.isComplex() is false, then returns 128 * null. 129 * 130 * @param obsId 131 * @return 132 */ 133 @Transactional(readOnly = true) 134 @Authorized( { OpenmrsConstants.PRIV_VIEW_OBS }) 135 public ComplexData getComplexData(Obs obs) throws APIException; 136 137 /** 127 138 * Save changes to observation 128 139 * … … 404 415 * @param handlers Map of class to handler object 405 416 */ 406 public void setHandlers(Map< Class<? extends ComplexObsHandler>, ComplexObsHandler> handlers) throws APIException;417 public void setHandlers(Map<String, ComplexObsHandler> handlers) throws APIException; 407 418 408 419 /** … … 412 423 * @throws APIException 413 424 */ 414 public Map< Class<? extends ComplexObsHandler>, ComplexObsHandler> getHandlers() throws APIException;425 public Map<String, ComplexObsHandler> getHandlers() throws APIException; 415 426 416 427 /** … … 421 432 * @throws APIException 422 433 */ 423 public void registerHandler( Class<? extends ComplexObsHandler> handlerClass, ComplexObsHandler handler) throws APIException;434 public void registerHandler(String key, ComplexObsHandler handler) throws APIException; 424 435 425 436 /** … … 429 440 * @throws APIException 430 441 */ 431 public void registerHandler(String handlerClass) throws APIException;442 public void registerHandler(String key, String handlerClass) throws APIException; 432 443 433 444 /** … … 437 448 * @param handlerClass 438 449 */ 439 public void removeHandler( Class<? extends ComplexObsHandler>handlerClass) throws APIException;450 public void removeHandler(String handlerClass) throws APIException; 440 451 441 452