I assume this function is not in Liferay 6.2 :(
jsonws.web.service.api.discoverable=false
Link: https://issues.liferay.com/browse/LPS-50668
The parameters that I know about you can be made in 6.2
Write your logic there // write a specific template
<servlet-filter> <servlet-filter-name>ServiceAccessPage</servlet-filter-name> <servlet-filter-impl>com.check.access.ServiceAccessPage</servlet-filter-impl> <init-param> <param-name>initparam</param-name> <param-value>Hi IP Address Filter</param-value> </init-param> </servlet-filter> <servlet-filter-mapping> <servlet-filter-name>ServiceAccessPage</servlet-filter-name> <url-pattern>/api/jsonws</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </servlet-filter-mapping>
inside ServiceAccessPage.java
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws java.io.IOException, ServletException {
- Crete Pre Action service action.
[This will be called before each action: (]
Get the user from the request and create the Landing page accordingly.
- Use EXT
write one property to disable / per page and override JSONWebServiceServlet
Parth ghiya
source share