From 05b79a127a0eae6d44def3626c944b080b7bcf5b Mon Sep 17 00:00:00 2001 From: Hugo Trippaers Date: Wed, 25 Jun 2014 16:07:00 +0200 Subject: [PATCH] Fix the license headers Nitin forgot. --- .../SnapshotPolicyDetailVO.java | 22 +++++++++++-- .../dao/SnapshotPolicyDetailsDao.java | 19 +++++++++++- .../dao/SnapshotPolicyDetailsDaoImpl.java | 31 ++++++++++++++----- 3 files changed, 61 insertions(+), 11 deletions(-) diff --git a/engine/schema/src/org/apache/cloudstack/resourcedetail/SnapshotPolicyDetailVO.java b/engine/schema/src/org/apache/cloudstack/resourcedetail/SnapshotPolicyDetailVO.java index 9c9fc208989..2ee48e6b4e9 100644 --- a/engine/schema/src/org/apache/cloudstack/resourcedetail/SnapshotPolicyDetailVO.java +++ b/engine/schema/src/org/apache/cloudstack/resourcedetail/SnapshotPolicyDetailVO.java @@ -1,7 +1,21 @@ +// 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. package org.apache.cloudstack.resourcedetail; -import org.apache.cloudstack.api.ResourceDetail; - import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; @@ -9,6 +23,8 @@ import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; +import org.apache.cloudstack.api.ResourceDetail; + @Entity @Table(name = "snapshot_policy_details") public class SnapshotPolicyDetailVO implements ResourceDetail { @@ -33,7 +49,7 @@ public class SnapshotPolicyDetailVO implements ResourceDetail { } public SnapshotPolicyDetailVO(long id, String name, String value) { - this.resourceId = id; + resourceId = id; this.name = name; this.value = value; } diff --git a/engine/schema/src/org/apache/cloudstack/resourcedetail/dao/SnapshotPolicyDetailsDao.java b/engine/schema/src/org/apache/cloudstack/resourcedetail/dao/SnapshotPolicyDetailsDao.java index 4556688027c..133f1198de5 100644 --- a/engine/schema/src/org/apache/cloudstack/resourcedetail/dao/SnapshotPolicyDetailsDao.java +++ b/engine/schema/src/org/apache/cloudstack/resourcedetail/dao/SnapshotPolicyDetailsDao.java @@ -1,8 +1,25 @@ +// 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. package org.apache.cloudstack.resourcedetail.dao; -import com.cloud.utils.db.GenericDao; import org.apache.cloudstack.resourcedetail.ResourceDetailsDao; import org.apache.cloudstack.resourcedetail.SnapshotPolicyDetailVO; +import com.cloud.utils.db.GenericDao; + public interface SnapshotPolicyDetailsDao extends GenericDao, ResourceDetailsDao { } diff --git a/engine/schema/src/org/apache/cloudstack/resourcedetail/dao/SnapshotPolicyDetailsDaoImpl.java b/engine/schema/src/org/apache/cloudstack/resourcedetail/dao/SnapshotPolicyDetailsDaoImpl.java index ead76809ea2..88e21d6c55a 100644 --- a/engine/schema/src/org/apache/cloudstack/resourcedetail/dao/SnapshotPolicyDetailsDaoImpl.java +++ b/engine/schema/src/org/apache/cloudstack/resourcedetail/dao/SnapshotPolicyDetailsDaoImpl.java @@ -1,14 +1,31 @@ +// 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. package org.apache.cloudstack.resourcedetail.dao; -import org.apache.cloudstack.resourcedetail.ResourceDetailsDaoBase; -import org.apache.cloudstack.resourcedetail.SnapshotPolicyDetailVO; -import org.springframework.stereotype.Component; - import javax.ejb.Local; - @Component - @Local(value = {SnapshotPolicyDetailsDao.class}) - public class SnapshotPolicyDetailsDaoImpl extends ResourceDetailsDaoBase implements SnapshotPolicyDetailsDao { +import org.springframework.stereotype.Component; + +import org.apache.cloudstack.resourcedetail.ResourceDetailsDaoBase; +import org.apache.cloudstack.resourcedetail.SnapshotPolicyDetailVO; + +@Component +@Local(value = {SnapshotPolicyDetailsDao.class}) +public class SnapshotPolicyDetailsDaoImpl extends ResourceDetailsDaoBase implements SnapshotPolicyDetailsDao { @Override public void addDetail(long resourceId, String key, String value, boolean display) {