slf4j 1.7.7

This commit is contained in:
Olivier Lamy 2014-04-30 12:24:42 +10:00
parent 1b7bb246c2
commit f123c0a62e
2 changed files with 7 additions and 2 deletions

View File

@ -71,7 +71,7 @@
<properties> <properties>
<springVersion>4.0.3.RELEASE</springVersion> <springVersion>4.0.3.RELEASE</springVersion>
<slf4jVersion>1.7.5</slf4jVersion> <slf4jVersion>1.7.7</slf4jVersion>
<log4j2Version>2.0-rc1</log4j2Version> <log4j2Version>2.0-rc1</log4j2Version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View File

@ -21,6 +21,8 @@ import org.apache.archiva.redback.policy.PasswordRuleViolations;
import org.apache.archiva.redback.policy.UserSecurityPolicy; import org.apache.archiva.redback.policy.UserSecurityPolicy;
import org.apache.archiva.redback.users.User; import org.apache.archiva.redback.users.User;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct; import javax.annotation.PostConstruct;
@ -30,12 +32,14 @@ import javax.annotation.PostConstruct;
* *
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a> * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
*/ */
@Service("passwordRule#must-have") @Service( "passwordRule#must-have" )
public class MustHavePasswordRule public class MustHavePasswordRule
extends AbstractPasswordRule extends AbstractPasswordRule
{ {
public static final String MISSING_PASSWORD_VIOLATION = "user.password.violation.missing"; public static final String MISSING_PASSWORD_VIOLATION = "user.password.violation.missing";
private final Logger logger = LoggerFactory.getLogger( getClass() );
public void setUserSecurityPolicy( UserSecurityPolicy policy ) public void setUserSecurityPolicy( UserSecurityPolicy policy )
{ {
// Ignore, policy not needed in this rule. // Ignore, policy not needed in this rule.
@ -53,5 +57,6 @@ public class MustHavePasswordRule
public void initialize() public void initialize()
{ {
enabled = config.getBoolean( UserConfigurationKeys.POLICY_PASSWORD_RULE_MUSTHAVE_ENABLED ); enabled = config.getBoolean( UserConfigurationKeys.POLICY_PASSWORD_RULE_MUSTHAVE_ENABLED );
logger.debug( "{} enabled: {}", UserConfigurationKeys.POLICY_PASSWORD_RULE_MUSTHAVE_ENABLED, enabled );
} }
} }