/*
- * Copyright (C) 2016 Cho-Time GmbH
+ * Copyright (C) 2016 - 2018 Free Software Foundation
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
/**
* A user password history EJB
* <p>
- * @author Roland Haeder<rhaeder@cho-time.de>
+ * @author Roland Häder<roland@mxchange.org>
*/
@Stateless (name = "userPasswordHistory", description = "A stateless EJB for user's password history. This bean does return the full user's password history and not limited. The application then needs to limit it to it's purpose.")
public class JobsUserPasswordHistorySessionBean extends BaseJobsDatabaseBean implements UserPasswordHistorySessionBeanRemote {
* Default constructor
*/
public JobsUserPasswordHistorySessionBean () {
+ // Call super constructor
+ super();
}
@Override
}
// Get named query
- Query query = this.getEntityManager().createNamedQuery("AllUsersHistoryEntries", UserPasswordHistory.class); //NOI18N
+ final Query query = this.getEntityManager().createNamedQuery("AllUsersHistoryEntries", UserPasswordHistory.class); //NOI18N
// Set parameter
query.setParameter("user", user); //NOI18N
// Get full history
- List<PasswordHistory> history = query.getResultList();
+ final List<PasswordHistory> history = query.getResultList();
// Trace message
this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.getUserPasswordHistory(): history.size()={1} - EXIT !", this.getClass().getSimpleName(), history.size())); //NOI18N