mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 17:26:22 +01:00
added DAORealmHelperFactory to simplify the creation of dao based realms
This commit is contained in:
@@ -77,15 +77,14 @@ public class DefaultRealm extends AuthorizingRealm
|
||||
*
|
||||
* @param service
|
||||
* @param collector
|
||||
* @param userDAO
|
||||
* @param groupDAO
|
||||
* @param helperFactory
|
||||
*/
|
||||
@Inject
|
||||
public DefaultRealm(PasswordService service,
|
||||
DefaultAuthorizationCollector collector, UserDAO userDAO, GroupDAO groupDAO)
|
||||
DefaultAuthorizationCollector collector, DAORealmHelperFactory helperFactory)
|
||||
{
|
||||
this.collector = collector;
|
||||
this.helper = new DAORealmHelper(REALM, userDAO, groupDAO);
|
||||
this.helper = helperFactory.create(REALM);
|
||||
|
||||
PasswordMatcher matcher = new PasswordMatcher();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user