Change comments

This commit is contained in:
Martin Stockhammer 2016-11-06 12:47:23 +01:00
parent 13aa63a4e5
commit 78e37f700a
4 changed files with 64 additions and 3 deletions

View File

@ -1,4 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?> <?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" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

View File

@ -1,5 +1,21 @@
package org.apache.archiva.redback.keys.jpa; 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.AbstractKeyManager;
import org.apache.archiva.redback.keys.AuthenticationKey; import org.apache.archiva.redback.keys.AuthenticationKey;
import org.apache.archiva.redback.keys.KeyManagerException; import org.apache.archiva.redback.keys.KeyManagerException;
@ -15,7 +31,11 @@ import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean; 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:martin_s@apache.org">Martin Stockhammer</a>
*/ */
@Service( "keyManager#jpa" ) @Service( "keyManager#jpa" )
public class JpaKeyManager extends AbstractKeyManager { public class JpaKeyManager extends AbstractKeyManager {

View File

@ -1,5 +1,21 @@
package org.apache.archiva.redback.keys.jpa.model; 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 org.apache.archiva.redback.keys.AuthenticationKey;
import javax.persistence.Column; import javax.persistence.Column;
@ -8,7 +24,11 @@ import javax.persistence.Table;
import java.util.Date; 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:martin_s@apache.org">Martin Stockhammer</a>
*/ */
@javax.persistence.Entity @javax.persistence.Entity
@Table(name="JDOAUTHENTICATIONKEY") @Table(name="JDOAUTHENTICATIONKEY")

View File

@ -49,7 +49,10 @@ import java.util.Map;
import java.util.Properties; import java.util.Properties;
/** /**
* Created by martin on 21.09.16. *
* Test for the JPA User Manager
*
* @author <a href="mailto:martin_s@apache.org">Martin Stockhammer</a>
*/ */
@Transactional @Transactional
public class JpaUserManagerTest extends AbstractUserManagerTestCase { public class JpaUserManagerTest extends AbstractUserManagerTestCase {