Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 0895732

Browse files
committed
Library's copyright has been modified and restored.
1 parent 91bd322 commit 0895732

File tree

6 files changed

+151
-113
lines changed

6 files changed

+151
-113
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/shares/CreateRemoteShareOperation.kt

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
1-
/*
2-
* ownCloud Android client application
3-
*
4-
* @author masensio
5-
* @author David A. Velasco
6-
* @author David González Verdugo
7-
* @author Fernando Sanz Velasco
8-
* Copyright (C) 2021 ownCloud GmbH.
9-
*
10-
* This program is free software: you can redistribute it and/or modify
11-
* it under the terms of the GNU General Public License version 2,
12-
* as published by the Free Software Foundation.
13-
*
14-
* This program is distributed in the hope that it will be useful,
15-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17-
* GNU General Public License for more details.
18-
*
19-
* You should have received a copy of the GNU General Public License
20-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1+
/* ownCloud Android Library is available under MIT license
2+
* @author masensio
3+
* @author David A. Velasco
4+
* @author David González Verdugo
5+
* @author Fernando Sanz Velasco
6+
* Copyright (C) 2021 ownCloud GmbH
217
*
8+
* Permission is hereby granted, free of charge, to any person obtaining a copy
9+
* of this software and associated documentation files (the "Software"), to deal
10+
* in the Software without restriction, including without limitation the rights
11+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
* copies of the Software, and to permit persons to whom the Software is
13+
* furnished to do so, subject to the following conditions:
2214
*
15+
* The above copyright notice and this permission notice shall be included in
16+
* all copies or substantial portions of the Software.
2317
*
18+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
22+
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
23+
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25+
* THE SOFTWARE.
2426
*
2527
*/
2628

@@ -46,6 +48,15 @@ import java.text.SimpleDateFormat
4648
import java.util.Calendar
4749
import java.util.Locale
4850

51+
/**
52+
* Creates a new share. This allows sharing with a user or group or as a link.
53+
*
54+
* @author masensio
55+
* @author David A. Velasco
56+
* @author David González Verdugo
57+
* @author Fernando Sanz Velasco
58+
*/
59+
4960
/**
5061
* Constructor
5162
*

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/shares/GetRemoteShareOperation.kt

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
1-
/*
2-
* ownCloud Android client application
3-
*
4-
* @author Fernando Sanz Velasco
5-
* Copyright (C) 2021 ownCloud GmbH.
6-
*
7-
* This program is free software: you can redistribute it and/or modify
8-
* it under the terms of the GNU General Public License version 2,
9-
* as published by the Free Software Foundation.
10-
*
11-
* This program is distributed in the hope that it will be useful,
12-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
* GNU General Public License for more details.
15-
*
16-
* You should have received a copy of the GNU General Public License
17-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1+
/* ownCloud Android Library is available under MIT license
2+
* @author Fernando Sanz Velasco
3+
* Copyright (C) 2021 ownCloud GmbH
184
*
5+
* Permission is hereby granted, free of charge, to any person obtaining a copy
6+
* of this software and associated documentation files (the "Software"), to deal
7+
* in the Software without restriction, including without limitation the rights
8+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
* copies of the Software, and to permit persons to whom the Software is
10+
* furnished to do so, subject to the following conditions:
1911
*
12+
* The above copyright notice and this permission notice shall be included in
13+
* all copies or substantial portions of the Software.
2014
*
15+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
19+
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20+
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
2123
*
2224
*/
2325

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/shares/GetRemoteSharesForFileOperation.kt

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
1-
/*
2-
* ownCloud Android client application
3-
*
4-
* @author masensio
5-
* @author David A. Velasco
6-
* @author David González Verdugo
7-
* @author Fernando Sanz Velasco
8-
* Copyright (C) 2021 ownCloud GmbH.
9-
*
10-
* This program is free software: you can redistribute it and/or modify
11-
* it under the terms of the GNU General Public License version 2,
12-
* as published by the Free Software Foundation.
13-
*
14-
* This program is distributed in the hope that it will be useful,
15-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17-
* GNU General Public License for more details.
18-
*
19-
* You should have received a copy of the GNU General Public License
20-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1+
/* ownCloud Android Library is available under MIT license
2+
* @author masensio
3+
* @author David A. Velasco
4+
* @author David González Verdugo
5+
* @author Fernando Sanz Velasco
6+
* Copyright (C) 2021 ownCloud GmbH
217
*
8+
* Permission is hereby granted, free of charge, to any person obtaining a copy
9+
* of this software and associated documentation files (the "Software"), to deal
10+
* in the Software without restriction, including without limitation the rights
11+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
* copies of the Software, and to permit persons to whom the Software is
13+
* furnished to do so, subject to the following conditions:
2214
*
15+
* The above copyright notice and this permission notice shall be included in
16+
* all copies or substantial portions of the Software.
2317
*
18+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
22+
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
23+
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25+
* THE SOFTWARE.
2426
*
2527
*/
2628

@@ -45,6 +47,11 @@ import java.net.URL
4547
* Provide a list shares for a specific file.
4648
* The input is the full path of the desired file.
4749
* The output is a list of everyone who has the file shared with them.
50+
*
51+
* @author masensio
52+
* @author David A. Velasco
53+
* @author David González Verdugo
54+
* @author Fernando Sanz Velasco
4855
*/
4956

5057
/**

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/shares/RemoveRemoteShareOperation.kt

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
1-
/*
2-
* ownCloud Android client application
3-
*
4-
* @author masensio
5-
* @author David A. Velasco
6-
* @author David González Verdugo
7-
* @author Fernando Sanz Velasco
8-
* Copyright (C) 2021 ownCloud GmbH.
9-
*
10-
* This program is free software: you can redistribute it and/or modify
11-
* it under the terms of the GNU General Public License version 2,
12-
* as published by the Free Software Foundation.
13-
*
14-
* This program is distributed in the hope that it will be useful,
15-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17-
* GNU General Public License for more details.
18-
*
19-
* You should have received a copy of the GNU General Public License
20-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1+
/* ownCloud Android Library is available under MIT license
2+
* @author masensio
3+
* @author David A. Velasco
4+
* @author David González Verdugo
5+
* @author Fernando Sanz Velasco
6+
* Copyright (C) 2021 ownCloud GmbH
217
*
8+
* Permission is hereby granted, free of charge, to any person obtaining a copy
9+
* of this software and associated documentation files (the "Software"), to deal
10+
* in the Software without restriction, including without limitation the rights
11+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
* copies of the Software, and to permit persons to whom the Software is
13+
* furnished to do so, subject to the following conditions:
2214
*
15+
* The above copyright notice and this permission notice shall be included in
16+
* all copies or substantial portions of the Software.
2317
*
18+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
22+
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
23+
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25+
* THE SOFTWARE.
2426
*
2527
*/
2628

@@ -43,6 +45,11 @@ import java.net.URL
4345

4446
/**
4547
* Remove a share
48+
*
49+
* @author masensio
50+
* @author David A. Velasco
51+
* @author David González Verdugo
52+
* @author Fernando Sanz Velasco
4653
*/
4754

4855
/**

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/shares/UpdateRemoteShareOperation.kt

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
1-
/*
2-
* ownCloud Android client application
3-
*
4-
* @author David A. Velasco
5-
* @author David González Verdugo
6-
* @author Fernando Sanz Velasco
7-
* Copyright (C) 2021 ownCloud GmbH.
8-
*
9-
* This program is free software: you can redistribute it and/or modify
10-
* it under the terms of the GNU General Public License version 2,
11-
* as published by the Free Software Foundation.
12-
*
13-
* This program is distributed in the hope that it will be useful,
14-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16-
* GNU General Public License for more details.
17-
*
18-
* You should have received a copy of the GNU General Public License
19-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1+
/* ownCloud Android Library is available under MIT license
2+
* @author masensio
3+
* @author David A. Velasco
4+
* @author David González Verdugo
5+
* @author Fernando Sanz Velasco
6+
* Copyright (C) 2021 ownCloud GmbH
207
*
8+
* Permission is hereby granted, free of charge, to any person obtaining a copy
9+
* of this software and associated documentation files (the "Software"), to deal
10+
* in the Software without restriction, including without limitation the rights
11+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
* copies of the Software, and to permit persons to whom the Software is
13+
* furnished to do so, subject to the following conditions:
2114
*
15+
* The above copyright notice and this permission notice shall be included in
16+
* all copies or substantial portions of the Software.
2217
*
18+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
22+
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
23+
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25+
* THE SOFTWARE.
2326
*
2427
*/
2528

@@ -47,7 +50,13 @@ import java.util.Locale
4750

4851
/**
4952
* Updates parameters of an existing Share resource, known its remote ID.
53+
*
54+
*
5055
* Allow updating several parameters, triggering a request to the server per parameter.
56+
*
57+
* @author David A. Velasco
58+
* @author David González Verdugo
59+
* @author Fernando Sanz Velasco
5160
*/
5261
class UpdateRemoteShareOperation
5362
/**

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/shares/responses/ShareItem.kt

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
1-
/*
2-
* ownCloud Android client application
3-
*
4-
* @author Fernando Sanz Velasco
5-
* Copyright (C) 2021 ownCloud GmbH.
6-
*
7-
* This program is free software: you can redistribute it and/or modify
8-
* it under the terms of the GNU General Public License version 2,
9-
* as published by the Free Software Foundation.
10-
*
11-
* This program is distributed in the hope that it will be useful,
12-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
* GNU General Public License for more details.
15-
*
16-
* You should have received a copy of the GNU General Public License
17-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1+
/* ownCloud Android Library is available under MIT license
2+
* @author Fernando Sanz Velasco
3+
* Copyright (C) 2021 ownCloud GmbH
184
*
5+
* Permission is hereby granted, free of charge, to any person obtaining a copy
6+
* of this software and associated documentation files (the "Software"), to deal
7+
* in the Software without restriction, including without limitation the rights
8+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
* copies of the Software, and to permit persons to whom the Software is
10+
* furnished to do so, subject to the following conditions:
1911
*
12+
* The above copyright notice and this permission notice shall be included in
13+
* all copies or substantial portions of the Software.
2014
*
15+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
19+
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20+
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
2123
*
2224
*/
2325

0 commit comments

Comments
 (0)