-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1538 from mozzy11/develop
remove duplicate provider controller
- Loading branch information
Showing
7 changed files
with
63 additions
and
70 deletions.
There are no files selected for viewing
35 changes: 0 additions & 35 deletions
35
src/main/java/org/openelisglobal/provider/controller/ProviderController.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package org.openelisglobal.security; | ||
|
||
import java.io.IOException; | ||
import javax.servlet.Filter; | ||
import javax.servlet.FilterChain; | ||
import javax.servlet.FilterConfig; | ||
import javax.servlet.ServletException; | ||
import javax.servlet.ServletRequest; | ||
import javax.servlet.ServletResponse; | ||
import javax.servlet.http.HttpServletRequest; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.springframework.stereotype.Component; | ||
import org.springframework.web.context.request.RequestContextHolder; | ||
import org.springframework.web.context.request.ServletRequestAttributes; | ||
|
||
@Component | ||
public class AjaxFilter implements Filter { | ||
|
||
private final Logger log = LoggerFactory.getLogger(AjaxFilter.class); | ||
|
||
public AjaxFilter() { | ||
log.info("AjaxFilter init"); | ||
} | ||
|
||
@Override | ||
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) | ||
throws IOException, ServletException { | ||
if (request instanceof HttpServletRequest) { | ||
RequestContextHolder.setRequestAttributes(new ServletRequestAttributes((HttpServletRequest) request)); | ||
} | ||
chain.doFilter(request, response); | ||
RequestContextHolder.resetRequestAttributes(); // Clean up after request is done | ||
} | ||
|
||
@Override | ||
public void init(FilterConfig filterConfig) { | ||
} | ||
|
||
@Override | ||
public void destroy() { | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,11 @@ | |
country="USA" work_phone="10000002" home_phone="8000003" | ||
cell_phone="0000001" primary_phone="10000002" fax="0002" | ||
email="[email protected]" lastUpdated="2023-11-01 12:00:00" /> | ||
<person id="4" last_name="Kukkib" first_name="Faithb" | ||
middle_name="Siannah" city="Dallas" state="Texas" zip_code="001" | ||
country="USA" work_phone="10000002" home_phone="8000003" | ||
cell_phone="0000001" primary_phone="10000002" fax="0002" | ||
email="[email protected]" lastUpdated="2023-11-01 12:00:00" /> | ||
|
||
<person_address person_id="1" address_part_id="5" | ||
type="P" value="12345678" /> | ||
|