项目作者: mkucukdemir

项目描述 :
Servlets, Web Services
高级语言: Java
项目地址: git://github.com/mkucukdemir/java-web.git
创建时间: 2016-10-13T14:45:45Z
项目社区:https://github.com/mkucukdemir/java-web

开源协议:

下载


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.

  1. /**
  2. * TODO
  3. * UI Decorator - Sitemesh Integration
  4. * Auditing and Logging - Hibernate Interceptor & Log4J Integration
  5. */

UserAuthenticationWS

  • SOAP Web Service
  • Returns whether a user credential is authorized, or not
  • Clint application has to import UserAuthenticationWSC
    Integration of the service
    1. @Autowired
    2. private UserAuthenticationService userAuthenticationService;
    3. ...
    4. 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

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

Integration of the service

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

RoleManagementWSC

Client application for RoleManagementWS