Change comments
Project: http://git-wip-us.apache.org/repos/asf/archiva-redback-core/repo Commit: http://git-wip-us.apache.org/repos/asf/archiva-redback-core/commit/78e37f70 Tree: http://git-wip-us.apache.org/repos/asf/archiva-redback-core/tree/78e37f70 Diff: http://git-wip-us.apache.org/repos/asf/archiva-redback-core/diff/78e37f70 Branch: refs/heads/jpa Commit: 78e37f700ac8594800773b47e944c02d1fdc728e Parents: 13aa63a Author: Martin Stockhammer <marti...@apache.org> Authored: Sun Nov 6 12:47:23 2016 +0100 Committer: Martin Stockhammer <marti...@apache.org> Committed: Sun Nov 6 12:47:23 2016 +0100 ---------------------------------------------------------------------- .../redback-keys-jpa/pom.xml | 18 ++++++++++++++++ .../archiva/redback/keys/jpa/JpaKeyManager.java | 22 +++++++++++++++++++- .../keys/jpa/model/JpaAuthenticationKey.java | 22 +++++++++++++++++++- .../redback/users/jpa/JpaUserManagerTest.java | 5 ++++- 4 files changed, 64 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/archiva-redback-core/blob/78e37f70/redback-keys/redback-keys-providers/redback-keys-jpa/pom.xml ---------------------------------------------------------------------- diff --git a/redback-keys/redback-keys-providers/redback-keys-jpa/pom.xml b/redback-keys/redback-keys-providers/redback-keys-jpa/pom.xml index f61e614..7f43e99 100644 --- a/redback-keys/redback-keys-providers/redback-keys-jpa/pom.xml +++ b/redback-keys/redback-keys-providers/redback-keys-jpa/pom.xml @@ -1,4 +1,22 @@ <?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> http://git-wip-us.apache.org/repos/asf/archiva-redback-core/blob/78e37f70/redback-keys/redback-keys-providers/redback-keys-jpa/src/main/java/org/apache/archiva/redback/keys/jpa/JpaKeyManager.java ---------------------------------------------------------------------- diff --git a/redback-keys/redback-keys-providers/redback-keys-jpa/src/main/java/org/apache/archiva/redback/keys/jpa/JpaKeyManager.java b/redback-keys/redback-keys-providers/redback-keys-jpa/src/main/java/org/apache/archiva/redback/keys/jpa/JpaKeyManager.java index ab4a001..0a934b4 100644 --- a/redback-keys/redback-keys-providers/redback-keys-jpa/src/main/java/org/apache/archiva/redback/keys/jpa/JpaKeyManager.java +++ b/redback-keys/redback-keys-providers/redback-keys-jpa/src/main/java/org/apache/archiva/redback/keys/jpa/JpaKeyManager.java @@ -1,5 +1,21 @@ package org.apache.archiva.redback.keys.jpa; +/* + * Copyright 2001-2016 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import org.apache.archiva.redback.keys.AbstractKeyManager; import org.apache.archiva.redback.keys.AuthenticationKey; import org.apache.archiva.redback.keys.KeyManagerException; @@ -15,7 +31,11 @@ import java.util.List; import java.util.concurrent.atomic.AtomicBoolean; /** - * Created by martin on 27.10.16. + * Key Manager Implementation for JPA. + * + * Uses an injected Entity Manager. + * + * @author <a href="mailto:marti...@apache.org">Martin Stockhammer</a> */ @Service( "keyManager#jpa" ) public class JpaKeyManager extends AbstractKeyManager { http://git-wip-us.apache.org/repos/asf/archiva-redback-core/blob/78e37f70/redback-keys/redback-keys-providers/redback-keys-jpa/src/main/java/org/apache/archiva/redback/keys/jpa/model/JpaAuthenticationKey.java ---------------------------------------------------------------------- diff --git a/redback-keys/redback-keys-providers/redback-keys-jpa/src/main/java/org/apache/archiva/redback/keys/jpa/model/JpaAuthenticationKey.java b/redback-keys/redback-keys-providers/redback-keys-jpa/src/main/java/org/apache/archiva/redback/keys/jpa/model/JpaAuthenticationKey.java index fba9952..f747d02 100644 --- a/redback-keys/redback-keys-providers/redback-keys-jpa/src/main/java/org/apache/archiva/redback/keys/jpa/model/JpaAuthenticationKey.java +++ b/redback-keys/redback-keys-providers/redback-keys-jpa/src/main/java/org/apache/archiva/redback/keys/jpa/model/JpaAuthenticationKey.java @@ -1,5 +1,21 @@ package org.apache.archiva.redback.keys.jpa.model; +/* + * Copyright 2001-2016 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import org.apache.archiva.redback.keys.AuthenticationKey; import javax.persistence.Column; @@ -8,7 +24,11 @@ import javax.persistence.Table; import java.util.Date; /** - * Created by martin on 27.10.16. + * Authentication Key implementation for JPA. + * + * The table names are set to match the JDO tables. + * + * @author <a href="mailto:marti...@apache.org">Martin Stockhammer</a> */ @javax.persistence.Entity @Table(name="JDOAUTHENTICATIONKEY") http://git-wip-us.apache.org/repos/asf/archiva-redback-core/blob/78e37f70/redback-users/redback-users-providers/redback-users-jpa/src/test/java/org/apache/archiva/redback/users/jpa/JpaUserManagerTest.java ---------------------------------------------------------------------- diff --git a/redback-users/redback-users-providers/redback-users-jpa/src/test/java/org/apache/archiva/redback/users/jpa/JpaUserManagerTest.java b/redback-users/redback-users-providers/redback-users-jpa/src/test/java/org/apache/archiva/redback/users/jpa/JpaUserManagerTest.java index 9772697..cf77aa5 100644 --- a/redback-users/redback-users-providers/redback-users-jpa/src/test/java/org/apache/archiva/redback/users/jpa/JpaUserManagerTest.java +++ b/redback-users/redback-users-providers/redback-users-jpa/src/test/java/org/apache/archiva/redback/users/jpa/JpaUserManagerTest.java @@ -49,7 +49,10 @@ import java.util.Map; import java.util.Properties; /** - * Created by martin on 21.09.16. + * + * Test for the JPA User Manager + * + * @author <a href="mailto:marti...@apache.org">Martin Stockhammer</a> */ @Transactional public class JpaUserManagerTest extends AbstractUserManagerTestCase {