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 x1.markdown.security.SpringSecurityAuditorAware.java

/**
 *
 * @author vlad
 */
public class SpringSecurityAuditorAware implements AuditorAware<String> {

From source file com.home.ln_spring.ch10.springjpa.auditor.AuditorAwareBean.java

/**
 *
 * @author vitaliy
 */
public class AuditorAwareBean implements AuditorAware<String> {

From source file cz.sohlich.workstack.repository.auditing.TaskSecurityAuditor.java

/**
 *
 * @author radek
 */
public class TaskSecurityAuditor implements AuditorAware<String> {

From source file org.obiba.mica.security.ShiroAuditorAware.java

@Component
public class ShiroAuditorAware implements AuditorAware<String> {

    @Override
    public String getCurrentAuditor() {
        Subject subject = SecurityUtils.getSubject();

From source file com.hp.autonomy.frontend.find.core.configuration.AbstractFindSpringSecurityAuditorAware.java

/**
 * Implements {@link AuditorAware<UserEntity>} which means it will automatically be picked up by
 * spring jpa via {@link org.springframework.data.jpa.domain.support.AuditingEntityListener}.
 * <p/>
 * Defines the current auditor, that is the user to be added to the field annotated with {@link org.springframework.data.annotation.CreatedBy}.
 * <p/>

From source file net.sf.gazpachoquest.domain.audit.SimpleAuditorAware.java

public class SimpleAuditorAware implements AuditorAware<User> {

    @Override
    public User getCurrentAuditor() {
        return User.with().id(1).build();
    }

From source file net.sf.gazpachoquest.domain.audit.ShiroAuditorAware.java

public class ShiroAuditorAware implements AuditorAware<User> {

    @Override
    public User getCurrentAuditor() {
        Subject subject = SecurityUtils.getSubject();
        return (User) subject.getPrincipal();

From source file example.springdata.jpa.auditing.AuditorAwareImpl.java

/**
 * Dummy implementation of {@link AuditorAware}. It will return the configured {@link AuditableUser} as auditor on every
 * call to {@link #getCurrentAuditor()}. Normally you would access the applications security subsystem to return the
 * current user.
 * 
 * @author Oliver Gierke

From source file org.tylproject.data.mongo.config.TylAuditorAware.java

/**
 * Created by mp on 21/11/14.
 */
public class TylAuditorAware implements AuditorAware<Signature> {
    public Signature getCurrentAuditor() {
        return Signature.EmptySignature;

From source file org.springbyexample.contact.orm.entity.AuditorAwareImpl.java

/**
 * <code>AuditorAware</code> implementation.
 * 
 * @author David Winterfeldt
 */
public class AuditorAwareImpl implements AuditorAware<String> {