Skip to content

Commit

Permalink
LBAC-1 Changed the module structure based on the classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Suthagar23 committed Aug 3, 2018
1 parent 3394a32 commit ba3493e
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 12 deletions.
Expand Up @@ -8,7 +8,7 @@
* graphic logo is a trademark of OpenMRS Inc.
*/

package org.openmrs.module.locationbasedaccess;
package org.openmrs.module.locationbasedaccess.aop;

import org.aopalliance.aop.Advice;
import org.aopalliance.intercept.MethodInterceptor;
Expand All @@ -19,6 +19,7 @@
import org.openmrs.Location;
import org.openmrs.api.context.Context;
import org.openmrs.api.context.Daemon;
import org.openmrs.module.locationbasedaccess.utils.LocationUtils;
import org.springframework.aop.Advisor;
import org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor;

Expand Down
Expand Up @@ -8,7 +8,7 @@
* graphic logo is a trademark of OpenMRS Inc.
*/

package org.openmrs.module.locationbasedaccess;
package org.openmrs.module.locationbasedaccess.aop;

import org.aopalliance.aop.Advice;
import org.aopalliance.intercept.MethodInvocation;
Expand All @@ -17,10 +17,11 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.openmrs.Patient;
import org.openmrs.PersonAttribute;
import org.openmrs.PersonAttributeType;
import org.openmrs.api.context.Context;
import org.openmrs.api.context.Daemon;
import org.openmrs.module.locationbasedaccess.LocationBasedAccessConstants;
import org.openmrs.module.locationbasedaccess.utils.LocationUtils;
import org.springframework.aop.Advisor;
import org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor;
import java.lang.reflect.Method;
Expand Down
Expand Up @@ -8,7 +8,7 @@
* graphic logo is a trademark of OpenMRS Inc.
*/

package org.openmrs.module.locationbasedaccess;
package org.openmrs.module.locationbasedaccess.aop;

import org.aopalliance.aop.Advice;
import org.aopalliance.intercept.MethodInvocation;
Expand All @@ -20,6 +20,8 @@
import org.openmrs.PersonAttributeType;
import org.openmrs.api.context.Context;
import org.openmrs.api.context.Daemon;
import org.openmrs.module.locationbasedaccess.LocationBasedAccessConstants;
import org.openmrs.module.locationbasedaccess.utils.LocationUtils;
import org.springframework.aop.Advisor;
import org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor;
import java.lang.reflect.Method;
Expand Down
Expand Up @@ -8,7 +8,7 @@
* graphic logo is a trademark of OpenMRS Inc.
*/

package org.openmrs.module.locationbasedaccess;
package org.openmrs.module.locationbasedaccess.aop;

import org.aopalliance.aop.Advice;
import org.aopalliance.intercept.MethodInterceptor;
Expand All @@ -18,6 +18,7 @@
import org.openmrs.User;
import org.openmrs.api.context.Context;
import org.openmrs.api.context.Daemon;
import org.openmrs.module.locationbasedaccess.utils.LocationUtils;
import org.springframework.aop.Advisor;
import org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor;
import java.lang.reflect.Method;
Expand Down
Expand Up @@ -8,7 +8,7 @@
* graphic logo is a trademark of OpenMRS Inc.
*/

package org.openmrs.module.locationbasedaccess;
package org.openmrs.module.locationbasedaccess.utils;

import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
Expand All @@ -19,6 +19,9 @@
import org.openmrs.PersonAttributeType;
import org.openmrs.User;
import org.openmrs.api.context.Context;
import org.openmrs.module.locationbasedaccess.LocationBasedAccessConstants;
import org.openmrs.module.locationbasedaccess.aop.PersonSearchAdviser;

import java.util.Iterator;
import java.util.List;

Expand Down
Expand Up @@ -4,7 +4,7 @@
import org.openmrs.Location;
import org.openmrs.Patient;
import org.openmrs.module.appui.UiSessionContext;
import org.openmrs.module.locationbasedaccess.LocationUtils;
import org.openmrs.module.locationbasedaccess.utils.LocationUtils;
import org.openmrs.ui.framework.fragment.FragmentModel;
import org.openmrs.api.context.Context;
import org.springframework.web.bind.annotation.RequestParam;
Expand Down
Expand Up @@ -7,7 +7,7 @@
import org.openmrs.api.context.Context;
import org.openmrs.module.appui.UiSessionContext;
import org.openmrs.module.locationbasedaccess.LocationBasedAccessConstants;
import org.openmrs.module.locationbasedaccess.LocationUtils;
import org.openmrs.module.locationbasedaccess.utils.LocationUtils;
import org.openmrs.ui.framework.fragment.FragmentModel;
import org.springframework.web.bind.annotation.RequestParam;

Expand Down
8 changes: 4 additions & 4 deletions omod/src/main/resources/config.xml
Expand Up @@ -50,19 +50,19 @@

<advice>
<point>org.openmrs.api.PatientService</point>
<class>org.openmrs.module.locationbasedaccess.PatientSearchAdviser</class>
<class>org.openmrs.module.locationbasedaccess.aop.PatientSearchAdviser</class>
</advice>
<advice>
<point>org.openmrs.api.PersonService</point>
<class>org.openmrs.module.locationbasedaccess.PersonSearchAdviser</class>
<class>org.openmrs.module.locationbasedaccess.aop.PersonSearchAdviser</class>
</advice>
<advice>
<point>org.openmrs.api.EncounterService</point>
<class>org.openmrs.module.locationbasedaccess.EncounterSearchAdviser</class>
<class>org.openmrs.module.locationbasedaccess.aop.EncounterSearchAdviser</class>
</advice>
<advice>
<point>org.openmrs.api.UserService</point>
<class>org.openmrs.module.locationbasedaccess.UserSearchAdviser</class>
<class>org.openmrs.module.locationbasedaccess.aop.UserSearchAdviser</class>
</advice>
</module>

0 comments on commit ba3493e

Please sign in to comment.