Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MNT-24127] Added Endpoint To Calculate Folder Size #2709

Merged
merged 283 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
283 commits
Select commit Hold shift + click to select a range
80cb5b6
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 26, 2024
7daf9c0
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 26, 2024
2bf9dac
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 26, 2024
e1d3469
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 26, 2024
e5617d8
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 26, 2024
9b0337c
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 26, 2024
b1ad278
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 26, 2024
95e256b
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 26, 2024
a16ac95
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 26, 2024
9d9d5ee
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 26, 2024
c3e03ca
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 27, 2024
2deb4f4
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 27, 2024
c2a5948
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 27, 2024
44ecf9f
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 27, 2024
5deb2b4
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 27, 2024
ea9231c
Merge branch 'master' of github.com:Alfresco/alfresco-community-repo …
mohit-singh4 Jun 27, 2024
63d6de7
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 27, 2024
9d313bd
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 27, 2024
5e024c9
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 27, 2024
6aaa24d
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 27, 2024
9180053
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 27, 2024
8424c1b
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 27, 2024
d4ef724
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 27, 2024
dfcfa87
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 27, 2024
5ec0609
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 28, 2024
ef4d1d8
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 28, 2024
2b2a754
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jun 28, 2024
3f8be2b
Merge branch 'master' of github.com:Alfresco/alfresco-community-repo …
mohit-singh4 Jul 2, 2024
6040b13
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jul 2, 2024
98a9d64
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jul 2, 2024
1f1d80d
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jul 2, 2024
a2e48a4
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jul 2, 2024
bf7f6da
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jul 2, 2024
d0e3c69
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jul 2, 2024
87ea444
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jul 2, 2024
5f7b97b
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jul 2, 2024
2022c38
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jul 2, 2024
f9f199d
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jul 2, 2024
225c521
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integ…
mohit-singh4 Jul 2, 2024
b47e055
[feature/MNT-24127] EndpointToCalculateFolderSize
mohit-singh4 Jul 22, 2024
88d10f2
[feature/MNT-24127] EndpointToCalculateFolderSize
mohit-singh4 Jul 22, 2024
9578891
[feature/MNT-24127] EndpointToCalculateFolderSize
mohit-singh4 Jul 22, 2024
4e86bb7
[feature/MNT-24127] EndpointToCalculateFolderSize
mohit-singh4 Jul 22, 2024
10b436d
[feature/MNT-24127] EndpointToCalculateFolderSize
mohit-singh4 Jul 22, 2024
3c7f5b5
[feature/MNT-24127] EndpointToCalculateFolderSize
mohit-singh4 Jul 22, 2024
1c8c6ff
[feature/MNT-24127] EndpointToCalculateFolderSize
mohit-singh4 Jul 22, 2024
6798785
[feature/MNT-24127] Endpoint Added To Calculate Folder Size
mohit-singh4 Jul 23, 2024
464fc20
[feature/MNT-24127] Endpoint Added To Calculate Folder Size
mohit-singh4 Jul 23, 2024
2a1ee7d
[feature/MNT-24127] Endpoint Added To Calculate Folder Size
mohit-singh4 Jul 23, 2024
ec22805
[feature/MNT-24127] Endpoint Added To Calculate Folder Size
mohit-singh4 Jul 23, 2024
4edc87c
[feature/MNT-24127] Endpoint Added To Calculate Folder Size
mohit-singh4 Jul 23, 2024
2f35962
[feature/MNT-24127] Endpoint Added To Calculate Folder Size
mohit-singh4 Jul 23, 2024
43ca025
Some Optimization for NodeSize Calculation.
kavitshah-gl Jul 24, 2024
6206be9
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Jul 29, 2024
b3b8b91
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Jul 29, 2024
244d10f
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Jul 29, 2024
4a43eaa
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Jul 29, 2024
742ab36
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Jul 29, 2024
0f6bb34
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Jul 30, 2024
3287937
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Jul 30, 2024
9f109e9
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Jul 30, 2024
4fbca55
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Jul 30, 2024
af7ebb0
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Jul 30, 2024
3581f54
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Jul 31, 2024
76611fd
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Jul 31, 2024
0ce1745
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Jul 31, 2024
044b054
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Jul 31, 2024
b88af16
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Jul 31, 2024
4faa421
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Jul 31, 2024
5e9a99d
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Jul 31, 2024
2c879c7
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Aug 1, 2024
586990d
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Aug 1, 2024
51f8142
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Aug 1, 2024
7a16e30
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Aug 1, 2024
58cd9db
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Aug 1, 2024
fbfcdfe
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Aug 1, 2024
aa2acb1
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Aug 1, 2024
1073677
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Aug 1, 2024
44f4299
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Aug 1, 2024
873dfe2
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Aug 1, 2024
0c5cc98
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Aug 2, 2024
e5dfe0e
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Aug 2, 2024
6af94b0
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Aug 3, 2024
7f2aaeb
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Aug 3, 2024
b9f0b8d
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Aug 3, 2024
50cd40a
[feature/MNT-24127-EndpointToCalculateFolderSize] Added Endpoint to c…
mohit-singh4 Aug 3, 2024
420100e
[feature/MNT-24127-EndpointToCalculateFolderSize] Added endpoint to c…
mohit-singh4 Aug 3, 2024
17ddfdb
[feature/MNT-24127-EndpointToCalculateFolderSize] Added endpoint to c…
mohit-singh4 Aug 3, 2024
25ba6ef
[feature/MNT-24127-EndpointToCalculateFolderSize] Added endpoint to c…
mohit-singh4 Aug 4, 2024
90e6bb8
[feature/MNT-24127-EndpointToCalculateFolderSize] Added endpoint to c…
mohit-singh4 Aug 5, 2024
bd6d21f
[feature/MNT-24127-EndpointToCalculateFolderSize] Added endpoint to c…
mohit-singh4 Aug 5, 2024
a61c1e9
[feature/MNT-24127-EndpointToCalculateFolderSize] Added endpoint to c…
mohit-singh4 Aug 5, 2024
8f8045e
[feature/MNT-24127-EndpointToCalculateFolderSize] Added endpoint to c…
mohit-singh4 Aug 5, 2024
fcc393e
[feature/MNT-24127-EndpointToCalculateFolderSize] Adding performance …
mohit-singh4 Aug 6, 2024
0e34ea7
[feature/MNT-24127-EndpointToCalculateFolderSize] Adding performance …
mohit-singh4 Aug 6, 2024
0a38c0c
[feature/MNT-24127-EndpointToCalculateFolderSize] Adding performance …
mohit-singh4 Aug 6, 2024
be674a2
[feature/MNT-24127-EndpointToCalculateFolderSize] Adding performance …
mohit-singh4 Aug 6, 2024
33626b4
[feature/MNT-24127-EndpointToCalculateFolderSize] Adding performance …
mohit-singh4 Aug 7, 2024
1e0d40a
[feature/MNT-24127-EndpointToCalculateFolderSize] Adding performance …
mohit-singh4 Aug 7, 2024
6711904
[feature/MNT-24127-EndpointToCalculateFolderSize] Adding performance …
mohit-singh4 Aug 7, 2024
94006dc
[feature/MNT-24127-EndpointToCalculateFolderSize] Adding performance …
mohit-singh4 Aug 7, 2024
76fdba7
[feature/MNT-24127-EndpointToCalculateFolderSize] Adding performance …
mohit-singh4 Aug 7, 2024
d0f133d
[feature/MNT-24127-EndpointToCalculateFolderSize] Adding performance …
mohit-singh4 Aug 7, 2024
7300e5b
[feature/MNT-24127-EndpointToCalculateFolderSize] Adding performance …
mohit-singh4 Aug 7, 2024
1287ab4
[feature/MNT-24127-EndpointToCalculateFolderSize] Adding performance …
mohit-singh4 Aug 7, 2024
933a0e6
[feature/MNT-24127-EndpointToCalculateFolderSize] Added endpoints imp…
mohit-singh4 Aug 7, 2024
cb9c051
[feature/MNT-24127-EndpointToCalculateFolderSize] Added endpoints imp…
mohit-singh4 Aug 7, 2024
8927470
[feature/MNT-24127-EndpointToCalculateFolderSize] Added endpoints imp…
mohit-singh4 Aug 8, 2024
c01445b
[feature/MNT-24127-EndpointToCalculateFolderSize] Added endpoints imp…
mohit-singh4 Aug 8, 2024
569d9e8
[feature/MNT-24127-EndpointToCalculateFolderSize] Adding endpoints to…
mohit-singh4 Aug 13, 2024
a225f66
[feature/MNT-24127-EndpointToCalculateFolderSize] Adding endpoints to…
mohit-singh4 Aug 13, 2024
0721099
[feature/MNT-24127-EndpointToCalculateFolderSize] Adding endpoints to…
mohit-singh4 Aug 13, 2024
f3f099d
[feature/MNT-24127-EndpointToCalculateFolderSize] Adding endpoints to…
mohit-singh4 Aug 13, 2024
ed3c189
[feature/MNT-24127-EndpointToCalculateFolderSize] Adding endpoints to…
mohit-singh4 Aug 13, 2024
b431077
[feature/MNT-24127-EndpointToCalculateFolderSize] Adding endpoints to…
mohit-singh4 Aug 13, 2024
9f28594
Merge branch 'master' of github.com:Alfresco/alfresco-community-repo …
mohit-singh4 Aug 22, 2024
a9878d9
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
5279b99
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
dca8b79
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
f0549d1
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
4a0ca9a
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
c854cd7
Merge branch 'master' of github.com:Alfresco/alfresco-community-repo …
Aug 22, 2024
2fb2f31
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
6153c12
Merge branch 'master' of github.com:Alfresco/alfresco-community-repo …
Aug 22, 2024
a8c87f7
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
83d7986
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
c3a0ebc
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
c9e6ab2
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
2642067
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
46240eb
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
9606d8e
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
5a1ea33
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
6191003
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
cfbae04
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
3f86162
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
f4c36ad
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
16f93ad
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
29d17ec
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
5117604
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 22, 2024
d690797
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 23, 2024
5e711c1
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 23, 2024
142529d
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 23, 2024
7eff128
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 23, 2024
d3b9ef1
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 23, 2024
00bfbff
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 23, 2024
385254b
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 23, 2024
2469ff3
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 23, 2024
6a8d9e0
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 23, 2024
f86142c
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 23, 2024
d92f599
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 23, 2024
21b8354
Merge branch 'master' of github.com:Alfresco/alfresco-community-repo …
Aug 28, 2024
7af7c29
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 28, 2024
fed54a3
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 28, 2024
a9901ef
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 28, 2024
a9bae63
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 28, 2024
a31adb1
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 28, 2024
a747e7b
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 28, 2024
2da3ce6
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Aug 30, 2024
9782555
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Sep 2, 2024
a620e91
Changes as per the Relationship Api Framework implementation.
kavitshah-gl Sep 3, 2024
0959f82
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Sep 4, 2024
98a3469
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Sep 4, 2024
d1c3ca5
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Sep 4, 2024
280bbf6
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Sep 4, 2024
c603a77
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Sep 4, 2024
aa8bff4
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Sep 4, 2024
e40afc1
Merge branch 'master' of github.com:Alfresco/alfresco-community-repo …
Sep 4, 2024
3b49f50
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Sep 4, 2024
817548a
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Sep 4, 2024
ed20ea1
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Sep 4, 2024
6f1138f
[feature/MNT-24127-EndpointToCalculateFolderSize] Updated endpoints f…
Sep 4, 2024
1e42e13
Merge branch 'master' of github.com:Alfresco/alfresco-community-repo …
Sep 12, 2024
47799cd
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 12, 2024
4c6633b
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 12, 2024
289011b
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 12, 2024
1516ab9
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 13, 2024
e1949ee
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 13, 2024
0b8612d
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 16, 2024
5cd8ea2
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 16, 2024
8fa7f9c
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 16, 2024
3b7601f
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 19, 2024
3450f9b
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 19, 2024
6aaffe4
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 19, 2024
76239a9
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 19, 2024
269a621
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 19, 2024
4fa084b
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 19, 2024
cc612bf
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 19, 2024
674bcb6
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 19, 2024
1048c43
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 20, 2024
681b0ef
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 20, 2024
e0bc0e6
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 20, 2024
5b14722
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 23, 2024
697f8d8
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 24, 2024
40efd93
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Sep 24, 2024
38e5f56
Merge branch 'master' of github.com:Alfresco/alfresco-community-repo …
Oct 7, 2024
aecb029
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 7, 2024
c071099
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 7, 2024
79e2cb6
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 7, 2024
18901c7
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 7, 2024
1027bc1
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 8, 2024
d386924
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 8, 2024
013cfb1
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 8, 2024
26c79b4
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 8, 2024
2603547
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 8, 2024
ba393a5
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 9, 2024
e33feb2
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 9, 2024
b7a3a5a
Merge branch 'master' of github.com:Alfresco/alfresco-community-repo …
Oct 9, 2024
ebce052
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 9, 2024
7187b5b
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 9, 2024
b8d08f0
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 9, 2024
c320d77
Merge branch 'master' of github.com:Alfresco/alfresco-community-repo …
Oct 18, 2024
76f5375
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 18, 2024
29d25ea
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 18, 2024
16e57ae
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 18, 2024
855ab53
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 18, 2024
74cc4c0
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 18, 2024
9692257
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 18, 2024
d49d4c2
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 18, 2024
7f95d62
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 19, 2024
6d6fbbe
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 19, 2024
3922c07
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 19, 2024
28e5f76
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 20, 2024
f399135
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 20, 2024
29e76f3
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 20, 2024
05e2bcd
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 20, 2024
7a74f79
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 21, 2024
8388a1d
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 21, 2024
fae21b6
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 21, 2024
e9d8b1e
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 21, 2024
bfa3f04
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 21, 2024
e65e0d5
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 21, 2024
f8fd9b4
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 21, 2024
ed42c00
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 21, 2024
1745693
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 21, 2024
3e6be45
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Oct 22, 2024
b271bf5
[feature/MNT-24127-EndpointToCalculateFolderSize] Creating Integerati…
Oct 29, 2024
9d0de45
Merge branch 'master' of github.com:Alfresco/alfresco-community-repo …
Oct 29, 2024
1295f70
[feature/MNT-24127-EndpointToCalculateFolderSize] Creating Integerati…
Oct 29, 2024
4bf216a
[feature/MNT-24127-EndpointToCalculateFolderSize] Creating Integerati…
Oct 29, 2024
d4294cf
[feature/MNT-24127-EndpointToCalculateFolderSize] Creating Integerati…
Oct 29, 2024
63814e0
[feature/MNT-24127-EndpointToCalculateFolderSize] Creating Integerati…
Oct 29, 2024
7a3a05f
[feature/MNT-24127-EndpointToCalculateFolderSize] Creating Integerati…
Oct 29, 2024
8ba10aa
[feature/MNT-24127-EndpointToCalculateFolderSize] Some Changes in Nod…
Nov 4, 2024
1f25b13
Merge branch 'master' of github.com:Alfresco/alfresco-community-repo …
Nov 4, 2024
c7ef004
[feature/MNT-24127-EndpointToCalculateFolderSize] Some Changes in Nod…
Nov 4, 2024
36a1649
[feature/MNT-24127-EndpointToCalculateFolderSize] Some Changes in Nod…
Nov 4, 2024
18bcfc9
[feature/MNT-24127-EndpointToCalculateFolderSize] Some Changes in Nod…
Nov 5, 2024
52f37ed
[feature/MNT-24127-EndpointToCalculateFolderSize] Checking size-detai…
Nov 7, 2024
6aec711
Merge branch 'master' of github.com:Alfresco/alfresco-community-repo …
Nov 7, 2024
4c3eca5
[feature/MNT-24127-EndpointToCalculateFolderSize] Checking size-detai…
Nov 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
/*
* #%L
* Alfresco Remote API
* %%
* Copyright (C) 2005 - 2024 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
package org.alfresco.rest.api.nodes;

import org.alfresco.model.FolderSizeModel;
import org.alfresco.repo.action.executer.NodeSizeActionExecuter;
import org.alfresco.repo.security.permissions.AccessDeniedException;
import org.alfresco.rest.api.Nodes;
import org.alfresco.rest.api.model.Node;
import org.alfresco.rest.api.model.NodePermissions;
import org.alfresco.rest.framework.WebApiDescription;
import org.alfresco.rest.framework.WebApiParam;
import org.alfresco.rest.framework.WebApiParameters;
import org.alfresco.rest.framework.core.exceptions.InvalidNodeTypeException;
import org.alfresco.rest.framework.resource.RelationshipResource;
import org.alfresco.rest.framework.resource.actions.interfaces.RelationshipResourceAction;
import org.alfresco.rest.framework.resource.parameters.Parameters;
import org.alfresco.service.ServiceRegistry;
import org.alfresco.service.cmr.action.Action;
import org.alfresco.service.cmr.action.ActionService;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.repository.NodeService;
import org.alfresco.service.cmr.search.SearchService;
import org.alfresco.service.cmr.security.AccessStatus;
import org.alfresco.service.cmr.security.PermissionService;
import org.alfresco.service.namespace.QName;
import org.alfresco.util.ParameterCheck;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.extensions.webscripts.Status;

import java.io.Serializable;
import java.util.*;

/**
* Node Size
*
* - get folder size
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add functional description about the class.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

*
*/
@RelationshipResource(name = "calculateSize", entityResource = NodesEntityResource.class, title = "Calculate size")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

calculateSize is not a noun; it is a verb phrase, indicating an action. Therefore, it should be an operation within the NodesEntityResource, making this whole class unnecessary.
See our REST API guidelines for the entity-type.

public class NodeFolderSizeRelation implements
RelationshipResourceAction.CalculateSize<Map<String, Object>>,
RelationshipResourceAction.ReadById<Map<String, Object>>,
InitializingBean {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

format change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


private Nodes nodes;
private SearchService searchService;
private ServiceRegistry serviceRegistry;
private PermissionService permissionService;
private NodeService nodeService;
private ActionService actionService;
static final String NOT_A_VALID_NODEID = "Node Id does not refer to a valid type [folder type]";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the field private

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


/**
* The logger
*/
private static final Log LOGGER = LogFactory.getLog(NodeFolderSizeRelation.class);
Fixed Show fixed Hide fixed

/**
* The class that wraps the ReST APIs from core.
*/

public void setNodes(Nodes nodes) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting issue

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

this.nodes = nodes;
}

public void setSearchService(SearchService searchService) {
this.searchService = searchService;
}

public void setServiceRegistry(ServiceRegistry serviceRegistry) {
this.serviceRegistry = serviceRegistry;
this.permissionService = serviceRegistry.getPermissionService();
}

public void setNodeService(NodeService nodeService) {
this.nodeService = nodeService;
}

public void setActionService(ActionService actionService) {
this.actionService = actionService;
}

@Override
public void afterPropertiesSet() {
ParameterCheck.mandatory("nodes", this.nodes);
}

/**
* Folder Size - returns size of a folder.
*
* @param nodeId String id of folder - will also accept well-known alias, eg. -root- or -my- or -shared-
* Please refer to OpenAPI spec for more details !
* <p>
* If NodeId does not exist, EntityNotFoundException (status 404).
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we mention the return type as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@Override
@WebApiDescription(title = "Calculating Folder Size", description = "Calculating size of a folder/file", successStatus = Status.STATUS_ACCEPTED)
public Map<String, Object> createById(String nodeId, Parameters params) {

NodeRef nodeRef = nodes.validateNode(nodeId);
nodeService.setProperty(nodeRef, FolderSizeModel.PROP_STATUS, "IN-PROGRESS");
Node nodeInfo = nodes.getNode(nodeId);
NodePermissions nodePerms = nodeInfo.getPermissions();
int maxItems = params.getPaging().getMaxItems();
QName qName = nodeService.getType(nodeRef);

if (nodePerms != null && permissionService.hasPermission(nodeRef, PermissionService.READ) == AccessStatus.DENIED)
{
throw new AccessDeniedException("permissions.err_access_denied");
}

if(!"folder".equals(qName.getLocalName()))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just check if for multi-lingual also the name qualified name is folder?

{
throw new InvalidNodeTypeException(NOT_A_VALID_NODEID);
}

try
{
Action folderSizeAction = actionService.createAction(NodeSizeActionExecuter.NAME);
folderSizeAction.setTrackStatus(true);
folderSizeAction.setExecuteAsynchronously(true);
folderSizeAction.setParameterValue(NodeSizeActionExecuter.PAGE_SIZE, maxItems);
actionService.executeAction(folderSizeAction, nodeRef, false, true);
Map<String, Object> result = new HashMap<>();
result.put("executionId", nodeId);
return result;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The business logic code should not be within the API definition; it should instead be placed within the service implementation. See all the relevant implementations in the org.alfresco.rest.api.impl package.

}
catch (Exception ex)
{
LOGGER.error("Exception occured in NodeFolderSizeRelation:createById "+ex.getMessage());
}
return null;
}

@Override
@WebApiDescription(title = "Returns Folder Node Size", description = "Returning a Folder Node Size")
@WebApiParameters({
@WebApiParam(name = "nodeId", title = "The unique id of the Node being addressed", description = "A single node id")})
public Map<String, Object> readById(String nodeId, String id, Parameters parameters)
Fixed Show fixed Hide fixed
{
NodeRef nodeRef = nodes.validateNode(nodeId);
Node nodeInfo = nodes.getNode(nodeId);
NodePermissions nodePerms = nodeInfo.getPermissions();
QName qName = nodeService.getType(nodeRef);

if (nodePerms != null && permissionService.hasPermission(nodeRef, PermissionService.READ) == AccessStatus.DENIED)
{
throw new AccessDeniedException("permissions.err_access_denied");
}

if(!"folder".equals(qName.getLocalName()))
{
throw new InvalidNodeTypeException(NOT_A_VALID_NODEID);
}

try
{
Map<QName, Serializable> properties = nodeService.getProperties(nodeRef);
Map<String, Object> result = new HashMap<>();

if (properties == null || !properties.containsKey(FolderSizeModel.PROP_OUTPUT)) {
result.put("status", "NOT INITIATED");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove space in status

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

} else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

formatting issue

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

String status = (String) properties.get(FolderSizeModel.PROP_STATUS);
if ("IN-PROGRESS".equals(status)) {
result.put("status", status);
} else {
Map<String, Object> mapResult = (Map<String, Object>) properties.get(FolderSizeModel.PROP_OUTPUT);
mapResult.put("status", status);
result = mapResult;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can return directly mapResult here right.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we cannot return result map directly here, as we are keeping output in the same.
And instead of returning mapResult in every if-else we can return at the end.

}
}
return result;
}
catch (Exception ex)
{
LOGGER.error("Exception occured in NodeFolderSizeRelation:readById "+ex.getMessage());
}
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ public class ResourceInspector

ALL_RELATIONSHIP_RESOURCE_INTERFACES.add(MultiPartRelationshipResourceAction.Create.class);

ALL_RELATIONSHIP_RESOURCE_INTERFACES.add(RelationshipResourceAction.CalculateSize.class);

ALL_PROPERTY_RESOURCE_INTERFACES.add(BinaryResourceAction.Read.class);
ALL_PROPERTY_RESOURCE_INTERFACES.add(BinaryResourceAction.Delete.class);
ALL_PROPERTY_RESOURCE_INTERFACES.add(BinaryResourceAction.Update.class);
Expand Down Expand Up @@ -291,6 +293,7 @@ private static List<ResourceMetadata> inspectRelationship(RelationshipResource a
findOperation(RelationshipResourceAction.DeleteSetWithResponse.class, DELETE, helper);

findOperation(MultiPartRelationshipResourceAction.Create.class, POST, helper);
findOperation(RelationshipResourceAction.CalculateSize.class, POST, helper);

boolean noAuth = resource.isAnnotationPresent(WebApiNoAuth.class);
if (noAuth)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,15 @@ public static interface DeleteSetWithResponse extends ResourceAction
*/
public void deleteSet(String entityResourceId, Parameters params, WithResponse withResponse);
}

interface CalculateSize<E> extends ResourceAction
{
/**
* Calculate the size of Folder/File.
*
* @param nodeId Entity resource context for this relationship.
* @param params implementation may choose to restrict the set to be deleted based on params (ie. not necessarily "all")
*/
E createById(String nodeId,Parameters params);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,16 @@ else if (EntityResourceAction.ReadByIdWithResponse.class.isAssignableFrom(resour
CollectionWithPagingInfo<?> relations = relationGetter.readAll(params.getEntityId(),params);
return relations;
}
else if (RelationshipResourceAction.ReadById.class.isAssignableFrom(resource.getResource().getClass()))
{
if (resource.getMetaData().isDeleted(RelationshipResourceAction.ReadById.class))
{
throw new DeletedResourceException("(GET by id) "+resource.getMetaData().getUniqueId());
}
RelationshipResourceAction.ReadById<?> relationGetter = (RelationshipResourceAction.ReadById<?>) resource.getResource();
Object result = relationGetter.readById(params.getEntityId(), params.getRelationshipId(), params);
return result;
}
else
{
if (resource.getMetaData().isDeleted(RelationshipResourceAction.ReadWithResponse.class))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ else if (StringUtils.isNotBlank(relationshipId))
{
throw new UnsupportedResourceOperationException("POST is executed against a collection URL");
}
else if ("calculateSize".equals(operationName))
{
return Params.valueOf(entityId, params, "", req);
}
else
{
Object postedRel = processRequest(resourceMeta, operation, req);
Expand Down Expand Up @@ -366,6 +370,16 @@ public Object executeAction(ResourceWithMetadata resource, Params params, WithRe
return wrapWithCollectionWithPaging(createdRel);
}
}
else if (RelationshipResourceAction.CalculateSize.class.isAssignableFrom(resource.getResource().getClass()))
{
if (resource.getMetaData().isDeleted(RelationshipResourceAction.CalculateSize.class))
{
throw new DeletedResourceException("(GET by id) " + resource.getMetaData().getUniqueId());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct the exception.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

}
RelationshipResourceAction.CalculateSize<?> relationGetter = (RelationshipResourceAction.CalculateSize<?>) resource.getResource();
Object result = relationGetter.createById(params.getEntityId(),params);
return result;
}
}
case OPERATION:
return executeOperation(resource, params, withResponse);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1768,4 +1768,12 @@
</list>
</property>
</bean>

<bean class="org.alfresco.rest.api.nodes.NodeFolderSizeRelation">
<property name="nodes" ref="Nodes" />
<property name="searchService" ref="SearchService" />
<property name="serviceRegistry" ref="ServiceRegistry"/>
<property name="nodeService" ref="nodeService" />
<property name="actionService" ref="ActionService"/>
</bean>
</beans>
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
org.alfresco.rest.api.tests.BufferedResponseTest.class,
org.alfresco.rest.workflow.api.tests.DeploymentWorkflowApiTest.class,
org.alfresco.rest.workflow.api.tests.ProcessDefinitionWorkflowApiTest.class,
org.alfresco.rest.api.tests.NodeFolderSizeApiTest.class
})
public class AppContext02TestSuite
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public abstract class AbstractBaseApiTest extends EnterpriseTestApi

private static final String URL_CHILDREN = "children";
private static final String URL_CONTENT = "content";
private static final String URL_CALCULATESIZE = "calculateSize";

protected static final String TYPE_CM_FOLDER = "cm:folder";
protected static final String TYPE_CM_CONTENT = "cm:content";
Expand Down Expand Up @@ -1120,5 +1121,10 @@ protected void disableRestDirectAccessUrls()
RestApiDirectUrlConfig restDauConfig = (RestApiDirectUrlConfig) applicationContext.getBean("restApiDirectUrlConfig");
restDauConfig.setEnabled(false);
}

protected String getFolderSizeUrl(String nodeId)
{
return URL_NODES + "/" + nodeId + "/" + URL_CALCULATESIZE;
}
}

Loading