mkucukdemir / java-web

Servlets, Web Services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

java-web

Servlets, Web Services

Web Application Template

Servlet written with Spring MVC + Security, Hibernate, JSTL, JQuery, Bootstrap dependencies. Find details in project folder. By Web-Service-Integration branch, Web Application Template has been integrated with User Authentication Service and Role Management Service.

/**
 * TODO
 * UI Decorator - Sitemesh Integration
 * Auditing and Logging - Hibernate Interceptor & Log4J Integration
 */

UserAuthenticationWS

  • SOAP Web Service
  • Returns whether a user credential is authorized, or not
  • Clint application has to import UserAuthenticationWSC Integration of the service
@Autowired
private UserAuthenticationService userAuthenticationService;
...
Boolean isAuthorized = userAuthenticationService.isAuthorized(username, DigestUtil.getSHA256(password));

UserAuthenticationWSC

Client application for UserAuthenticationWS

RoleManagementWS

  • Spring MVC Restful Web Service with Hibernate integration
  • Returns list of roles for a given username
  • Clint application has to import RoleManagementWSC

Dependencies

<springframework.version>4.3.18.RELEASE</springframework.version>
<spring.ws.version>2.0.0.RELEASE</spring.ws.version>
<hibernate.version>4.3.6.Final</hibernate.version>
<oracle.version>12.1.0.2.0</oracle.version>

Integration of the service

@Autowired
private RoleManagementService roleManagementService;
...
List<Role> userRoles = roleManagementService.getUserRoles(username);

RoleManagementWSC

Client application for RoleManagementWS

About

Servlets, Web Services


Languages

Language:Java 99.4%Language:HTML 0.6%