Example usage for org.springframework.data.domain AuditorAware interface-usage

List of usage examples for org.springframework.data.domain AuditorAware interface-usage

Introduction

In this page you can find the example usage for org.springframework.data.domain AuditorAware interface-usage.

Usage

From source file am.ik.categolj2.domain.AuditAwareBean.java

public class AuditAwareBean implements AuditorAware<String> {

    @Override
    public String getCurrentAuditor() {
        Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
        if (authentication == null) {

From source file org.devgateway.toolkit.persistence.dao.AuditorAwareImpl.java

/**
 * 
 * This is a bean that reads the auditor information which is used to audit the
 * JPA entities
 * 
 * @author mpostelnicu

From source file com.wiiyaya.provider.main.service.impl.AuditorAwareImpl.java

@Service("auditorProvider")
public class AuditorAwareImpl implements AuditorAware<Long> {

    @Override
    public Long getCurrentAuditor() {
        return ConsumerUtils.<CurrUserDto>getCurrUser().getId();

From source file org.bisen.blog.model.AuditAwareImpl.java

/**
 *
 * @author asikprad
 */
public class AuditAwareImpl implements AuditorAware<BlogUser> {

From source file org.bisen.chatamari.model.AuditAwareImpl.java

/**
 *
 * @author asikprad
 */
public class AuditAwareImpl implements AuditorAware<BlogUser> {

From source file uk.co.caprica.bootlace.data.UsernameAuditor.java

/**
 * Implementation of an auditor component that uses the username of the currently authenticated
 * user.
 */
public class UsernameAuditor implements AuditorAware<String> {

From source file io.galeb.core.entity.security.SpringSecurityAuditorAware.java

public class SpringSecurityAuditorAware implements AuditorAware<String>, Serializable {

    @Override
    public String getCurrentAuditor() {

        Authentication authentication = SecurityContextHolder.getContext().getAuthentication();

From source file fi.helsinki.opintoni.security.SpringSecurityAuditorAware.java

@Component
public class SpringSecurityAuditorAware implements AuditorAware<String> {

    private final SecurityUtils securityUtils;

    @Autowired

From source file com.garyclayburg.persistence.MongoAuditorUserProvider.java

/**
 * Created by IntelliJ IDEA.
 * Date: 3/30/14
 * Time: 4:14 PM
 *
 * @author Gary Clayburg

From source file org.moserp.common.security.SpringSecurityAuditorAware.java

public class SpringSecurityAuditorAware implements AuditorAware<String> {

    public String getCurrentAuditor() {
        Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
        if (authentication == null || !authentication.isAuthenticated()) {
            return null;