#342 - Expanded copyright headers to 2018.
Removed trailing whitespace in touched files.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015 the original author or authors.
|
||||
* Copyright 2015-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -27,7 +27,7 @@ import lombok.experimental.Delegate;
|
||||
* A value object to represent {@link Password}s in encrypted and unencrypted state. Note how the methods to create a
|
||||
* {@link Password} in encrypted state are restricted to package scope so that only the user subsystem is actually able
|
||||
* to encrypted passwords.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@EqualsAndHashCode
|
||||
@@ -46,7 +46,7 @@ public class Password implements CharSequence {
|
||||
|
||||
/**
|
||||
* Creates a new raw {@link Password} for the given source {@link String}.
|
||||
*
|
||||
*
|
||||
* @param password must not be {@literal null} or empty.
|
||||
* @return
|
||||
*/
|
||||
@@ -58,7 +58,7 @@ public class Password implements CharSequence {
|
||||
* Creates a new encrypted {@link Password} for the given {@link String}. Note how this method is package protected so
|
||||
* that encrypted passwords can only created by components in this package and not accidentally by clients using the
|
||||
* type from other packages.
|
||||
*
|
||||
*
|
||||
* @param password must not be {@literal null} or empty.
|
||||
* @return
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015 the original author or authors.
|
||||
* Copyright 2015-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -30,7 +30,7 @@ import lombok.RequiredArgsConstructor;
|
||||
/**
|
||||
* A {@link User} domain object. The primary entity of this example. Basically a combination of a {@link Username} and
|
||||
* {@link Password}.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@Entity
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015 the original author or authors.
|
||||
* Copyright 2015-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -30,7 +30,7 @@ import org.springframework.util.Assert;
|
||||
|
||||
/**
|
||||
* Domain service to register {@link User}s in the system.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@Transactional
|
||||
@@ -43,7 +43,7 @@ public class UserManagement {
|
||||
|
||||
/**
|
||||
* Registers a {@link User} with the given {@link Username} and {@link Password}.
|
||||
*
|
||||
*
|
||||
* @param username must not be {@literal null}.
|
||||
* @param password must not be {@literal null}.
|
||||
* @return
|
||||
@@ -64,7 +64,7 @@ public class UserManagement {
|
||||
|
||||
/**
|
||||
* Returns a {@link Page} of {@link User} for the given {@link Pageable}.
|
||||
*
|
||||
*
|
||||
* @param pageable must not be {@literal null}.
|
||||
* @return
|
||||
*/
|
||||
@@ -77,7 +77,7 @@ public class UserManagement {
|
||||
|
||||
/**
|
||||
* Returns the {@link User} with the given {@link Username}.
|
||||
*
|
||||
*
|
||||
* @param username must not be {@literal null}.
|
||||
* @return
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015 the original author or authors.
|
||||
* Copyright 2015-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -21,14 +21,14 @@ import org.springframework.data.repository.PagingAndSortingRepository;
|
||||
|
||||
/**
|
||||
* A Spring Data repository to persist {@link User}s.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
interface UserRepository extends PagingAndSortingRepository<User, Long> {
|
||||
|
||||
/**
|
||||
* Returns the user with the given {@link Username}.
|
||||
*
|
||||
*
|
||||
* @param username can be {@literal null}.
|
||||
* @return
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015 the original author or authors.
|
||||
* Copyright 2015-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -23,7 +23,7 @@ import org.springframework.util.StringUtils;
|
||||
|
||||
/**
|
||||
* value object to represent user names.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@EqualsAndHashCode
|
||||
@@ -38,7 +38,7 @@ public class Username {
|
||||
|
||||
/**
|
||||
* Creates a new {@link Username}.
|
||||
*
|
||||
*
|
||||
* @param username must not be {@literal null} or empty.
|
||||
*/
|
||||
public Username(String username) {
|
||||
@@ -50,7 +50,7 @@ public class Username {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015 the original author or authors.
|
||||
* Copyright 2015-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -48,7 +48,7 @@ import example.users.Username;
|
||||
* {@link PageableHandlerMethodArgumentResolver}.</li>
|
||||
* <li>Usage of proxy-backed interfaces to bind request parameters.</li>
|
||||
* </ol>
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@Controller
|
||||
@@ -62,7 +62,7 @@ class UserController {
|
||||
* Equis the model with a {@link Page} of {@link User}s. Spring Data automatically populates the {@link Pageable} from
|
||||
* request data according to the setup of {@link PageableHandlerMethodArgumentResolver}. Note how the defaults can be
|
||||
* tweaked by using {@link PageableDefault}.
|
||||
*
|
||||
*
|
||||
* @param pageable will never be {@literal null}.
|
||||
* @return
|
||||
*/
|
||||
@@ -74,7 +74,7 @@ class UserController {
|
||||
/**
|
||||
* Registers a new {@link User} for the data provided by the given {@link UserForm}. Note, how an interface is used to
|
||||
* bind request parameters.
|
||||
*
|
||||
*
|
||||
* @param userForm the request data bound to the {@link UserForm} instance.
|
||||
* @param binding the result of the binding operation.
|
||||
* @param model the Spring MVC {@link Model}.
|
||||
@@ -100,7 +100,7 @@ class UserController {
|
||||
/**
|
||||
* Populates the {@link Model} with the {@link UserForm} automatically created by Spring Data web components. It will
|
||||
* create a {@link Map}-backed proxy for the interface.
|
||||
*
|
||||
*
|
||||
* @param model will never be {@literal null}.
|
||||
* @param userForm will never be {@literal null}.
|
||||
* @return
|
||||
@@ -128,7 +128,7 @@ class UserController {
|
||||
|
||||
/**
|
||||
* Validates the {@link UserForm}.
|
||||
*
|
||||
*
|
||||
* @param errors
|
||||
* @param userManagement
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015-2016 the original author or authors.
|
||||
* Copyright 2015-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -21,7 +21,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
/**
|
||||
* Integration tests to bootstrap the application.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015 the original author or authors.
|
||||
* Copyright 2015-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -23,7 +23,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
/**
|
||||
* Integration tests for {@link UserManagement}.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
public class UserManagementIntegrationTests extends AbstractIntegrationTests {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015 the original author or authors.
|
||||
* Copyright 2015-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -21,7 +21,7 @@ import org.springframework.dao.InvalidDataAccessApiUsageException;
|
||||
|
||||
/**
|
||||
* Integration tests for {@link UserRepository}.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
public class UserRepositoryIntegrationTests extends AbstractIntegrationTests {
|
||||
|
||||
Reference in New Issue
Block a user