Skip to content

Commit

Permalink
License: Add license header to the individual files
Browse files Browse the repository at this point in the history
Include notes for any code derived from differently licensed projects.

In files with existing license headers, append the new license
information to the original headers.

Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
  • Loading branch information
jonas-rem authored and Kappuccino111 committed Jul 28, 2024
1 parent 9ac4d0b commit 8ee2c0a
Show file tree
Hide file tree
Showing 30 changed files with 156 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/django/manage.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2024 Jonas Remmert
#
# SPDX-License-Identifier: Apache-2.0
#

#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
Expand Down
6 changes: 6 additions & 0 deletions server/django/sensordata/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2024 Jonas Remmert
#
# SPDX-License-Identifier: Apache-2.0
#

import logging
from django.utils import timezone
from django.contrib import admin
Expand Down
6 changes: 6 additions & 0 deletions server/django/sensordata/apps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2024 Jonas Remmert
#
# SPDX-License-Identifier: Apache-2.0
#

from django.apps import AppConfig


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2024 Jonas Remmert
#
# SPDX-License-Identifier: Apache-2.0
#

from django.core.management.base import BaseCommand
from drf_spectacular.generators import SchemaGenerator
import yaml
Expand Down
6 changes: 6 additions & 0 deletions server/django/sensordata/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2024 Jonas Remmert
#
# SPDX-License-Identifier: Apache-2.0
#

from django.db import models

class Endpoint(models.Model):
Expand Down
6 changes: 6 additions & 0 deletions server/django/sensordata/serializers/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2024 Jonas Remmert
#
# SPDX-License-Identifier: Apache-2.0
#

from rest_framework import serializers
from ..models import ResourceType, Resource, Event, EventResource
from ..tasks import process_pending_operations
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2024 Jonas Remmert
#
# SPDX-License-Identifier: Apache-2.0
#

from rest_framework import serializers
from .base import HandleResourceMixin, ResourceDataSerializer
from ..models import Endpoint
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2024 Jonas Remmert
#
# SPDX-License-Identifier: Apache-2.0
#

from rest_framework import serializers
from .base import HandleResourceMixin, ResourceDataSerializer
from ..models import Endpoint
Expand Down
6 changes: 6 additions & 0 deletions server/django/sensordata/tasks.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2024 Jonas Remmert
#
# SPDX-License-Identifier: Apache-2.0
#

from celery import shared_task
import requests
from .models import Endpoint, EndpointOperation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2024 Jonas Remmert
#
# SPDX-License-Identifier: Apache-2.0
#

from django.urls import reverse
from rest_framework import status
from django.test import TestCase
Expand Down
6 changes: 6 additions & 0 deletions server/django/sensordata/tests/test_post_single_resource.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2024 Jonas Remmert
#
# SPDX-License-Identifier: Apache-2.0
#

from django.urls import reverse
from rest_framework import status
from django.test import TestCase
Expand Down
6 changes: 6 additions & 0 deletions server/django/sensordata/urls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2024 Jonas Remmert
#
# SPDX-License-Identifier: Apache-2.0
#

from django.urls import path
from .views import PostSingleResourceView, PostCompositeResourceView

Expand Down
6 changes: 6 additions & 0 deletions server/django/sensordata/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2024 Jonas Remmert
#
# SPDX-License-Identifier: Apache-2.0
#

from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
Expand Down
6 changes: 6 additions & 0 deletions server/django/server/celery.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2024 Jonas Remmert
#
# SPDX-License-Identifier: Apache-2.0
#

import os
from celery import Celery

Expand Down
6 changes: 6 additions & 0 deletions server/django/server/urls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2024 Jonas Remmert
#
# SPDX-License-Identifier: Apache-2.0
#

from django.contrib import admin
from django.urls import include, path

Expand Down
5 changes: 5 additions & 0 deletions server/leshan/src/main/java/lwm2m/DataSenderRest.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright (c) 2024 Jonas Remmert
*
* SPDX-License-Identifier: Apache-2.0
*/

package lwm2m;

import java.net.URI;
Expand Down
8 changes: 8 additions & 0 deletions server/leshan/src/main/java/lwm2m/LeshanSvr.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/* Copyright (c) 2024 Jonas Remmert
*
* SPDX-License-Identifier: Apache-2.0
*
* Parts of this code are based on the Leshan project
* (https://www.eclipse.org/leshan/) licensed under the BSD 3-Clause License.
*/

package lwm2m;
import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
*
* Contributors:
* Sierra Wireless - initial API and implementation
*
* Copyright (c) 2024 Jonas Remmert
*
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
package lwm2m.json;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
* Contributors:
* Sierra Wireless - initial API and implementation
* Orange - keep one JSON dependency
*
* Copyright (c) 2024 Jonas Remmert
*
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
package lwm2m.json;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
* Contributors:
* Sierra Wireless - initial API and implementation
* Orange - keep one JSON dependency
*
* Copyright (c) 2024 Jonas Remmert
*
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
package lwm2m.json;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
* Contributors:
* Sierra Wireless - initial API and implementation
* Orange - keep one JSON dependency
*
* Copyright (c) 2024 Jonas Remmert
*
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
package lwm2m.json;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
*
* Contributors:
* Simon Convent - initial API and implementation
*
* Copyright (c) 2024 Jonas Remmert
*
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
package lwm2m.json;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
* Contributors:
* Sierra Wireless - initial API and implementation
* Orange - keep one JSON dependency
*
* Copyright (c) 2024 Jonas Remmert
*
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
package lwm2m.json;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
* Contributors:
* Sierra Wireless - initial API and implementation
* Orange - keep one JSON dependency
*
*
* Copyright (c) 2024 Jonas Remmert
*
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
package lwm2m.json;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
*
* Contributors:
* Sierra Wireless - initial API and implementation
*
* Copyright (c) 2024 Jonas Remmert
*
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
package lwm2m.json;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
* Contributors:
* Sierra Wireless - initial API and implementation
* Orange - keep one JSON dependency
*
* Copyright (c) 2024 Jonas Remmert
*
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
package lwm2m.model;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
* Contributors:
* Sierra Wireless - initial API and implementation
* Orange - keep one JSON dependency
*
* Copyright (c) 2024 Jonas Remmert
*
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
package lwm2m.model;

Expand Down
4 changes: 4 additions & 0 deletions server/leshan/src/main/java/lwm2m/servlet/ClientServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
* Contributors:
* Sierra Wireless - initial API and implementation
* Orange - keep one JSON dependency
*
* Copyright (c) 2024 Jonas Remmert
*
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
package lwm2m.servlet;

Expand Down
4 changes: 4 additions & 0 deletions server/leshan/src/main/java/lwm2m/servlet/EventServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
* Sierra Wireless - initial API and implementation
* Michał Wadowski (Orange) - Add Observe-Composite feature.
* Orange - keep one JSON dependency
*
* Copyright (c) 2024 Jonas Remmert
*
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
package lwm2m.servlet;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
*
* Contributors:
* Sierra Wireless - initial API and implementation
*
* Copyright (c) 2024 Jonas Remmert
*
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
package lwm2m.servlet;

Expand Down

0 comments on commit 8ee2c0a

Please sign in to comment.