Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
05/16/08 13:07:40 (3 months ago)
Author:
bmckown
Message:

complex_obs branch: Attempting to register ComplexObsHandlers with Map<String, ComplexObsHandler>. Only partially working. Ripped out rest of ConceptComplexHandler junk.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/branches/complex-obs/src/api/org/openmrs/api/ObsService.java

    r4166 r4239  
    125125 
    126126        /** 
     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        /** 
    127138         * Save changes to observation 
    128139         *  
     
    404415         * @param handlers Map of class to handler object 
    405416         */ 
    406         public void setHandlers(Map<Class<? extends ComplexObsHandler>, ComplexObsHandler> handlers) throws APIException; 
     417        public void setHandlers(Map<String, ComplexObsHandler> handlers) throws APIException; 
    407418         
    408419        /** 
     
    412423         * @throws APIException 
    413424         */ 
    414         public Map<Class<? extends ComplexObsHandler>, ComplexObsHandler> getHandlers() throws APIException; 
     425        public Map<String, ComplexObsHandler> getHandlers() throws APIException; 
    415426         
    416427        /** 
     
    421432         * @throws APIException 
    422433         */ 
    423         public void registerHandler(Class<? extends ComplexObsHandler> handlerClass, ComplexObsHandler handler) throws APIException; 
     434        public void registerHandler(String key, ComplexObsHandler handler) throws APIException; 
    424435         
    425436        /** 
     
    429440         * @throws APIException 
    430441         */ 
    431         public void registerHandler(String handlerClass) throws APIException; 
     442        public void registerHandler(String key, String handlerClass) throws APIException; 
    432443         
    433444        /** 
     
    437448         * @param handlerClass 
    438449         */ 
    439         public void removeHandler(Class<? extends ComplexObsHandler> handlerClass) throws APIException; 
     450        public void removeHandler(String handlerClass) throws APIException; 
    440451         
    441452