Iuliana Danea
82f2708aa7
ACE-5453: 500 error: GET /nodes/{nodeId}/ratings?skipCount=XXX
...
- implemented fix and added new unit test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131385 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-13 06:52:01 +00:00
Raluca Munteanu
7ca76a9101
REPO-1354: Get Rendition info - implement the API
...
- implemented get rendition info by id method
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131302 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-11 10:32:47 +00:00
Matt Ward
eba3054605
Merged r131242:131277 from BRANCHES/DEV/mward/5.2.n-restapi into BRANCHES/DEV/5.2.N
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131282 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-10 16:03:58 +00:00
Cristian Turlica
66c78c8dcd
REPO-1360: Filter sites by visibility - add automated tests
...
- added new tests for filter by visibility
- updated getSites by personId because the value of totalItems wasn't calculated, also updated existing tests that where using the incorrect expected value.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131275 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-10 12:48:37 +00:00
Matt Ward
8d91423894
REPO-1348: initial check-in for "update site" API implementation.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131224 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-06 11:17:16 +00:00
Cristian Turlica
fe279c2eb6
REPO-1359: Filter sites by visibility - implement the API
...
- added filter sites by visibility
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131172 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-04 11:43:34 +00:00
Jan Vonka
533e948222
REPO-1027: V1 REST API - fix error handling (add site member)
...
- fix error code (should be 400 not 500) & add -ve api tests
- ACE-5458
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130871 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-22 09:27:50 +00:00
Jan Vonka
62f10172a6
REPO-1027: V1 REST API - fix error handling (get site membership request)
...
- fix error code (should be 404 not 500) & add -ve api test
- ACE-2049 / ACE-5442
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130868 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-22 08:49:27 +00:00
Jan Vonka
0aed749b05
REPO-1058 / REPO-1244: REST API - list Sites - orderBy
...
- tweak the default (as agreed with GC)
- update automated unit test (and also refactor to make it re-runnable and to consistently use create site api)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130854 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-21 10:13:59 +00:00
Jan Vonka
6242e57e6c
REPO-1058: REST API - list sites that person is member of ...
...
- fix orderBy tests and backward compatibility
- REPO-1242, / REPO-1244
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130783 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-19 13:03:35 +00:00
Jan Vonka
660d46a829
REPO-1058 / REPO-1242: REST API - list sites that person is member of - fix orderBy (id, title or role)
...
- fix orderBy validation as per existing capabilities
- TODO add tests (see REPO-1244)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130774 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-19 10:56:09 +00:00
Jan Vonka
08eb4aa4dc
REPO-1058 / REPO-1242: REST API - list sites - add option to orderBy (id, title or description)
...
- initial implementation (note: default remains "id asc")
- TODO add tests (see REPO-1244)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130681 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-15 10:47:00 +00:00
Alexandru Epure
dd1aebb5ef
REPO-1158: Removed extra space from the received message.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130543 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-12 08:15:19 +00:00
Ancuta Morarasu
120ea60c74
Clean-up after merges to 5.2.N.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130424 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-07 16:48:55 +00:00
Ancuta Morarasu
59eed12c13
REPO-1164: [REST API] 422 error when executing unlock on a node that is not locked
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130400 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-07 11:48:02 +00:00
Gethin James
04881cfa0c
Merged searchapi (5.2.1) to 5.2.N (5.2.1)
...
130050 gjames: SEARCH-161: Supporting synonyms for sorting fieldNames
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130297 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-06 15:38:47 +00:00
Gethin James
50d8381a2e
Merged searchapi (5.2.1) to 5.2.N (5.2.1)
...
130015 gjames: Merged 5.2.N-AHIND (5.2.1) to searchapi (5.2.1)
129790 jvonka: REPO-164 / REPO-1141: fix error mapping when unable to update content due to locked node (should be 409 not 500)
- also minor cleanup of error handling/mapping (handle within common "writeContent")
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130278 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-06 15:32:52 +00:00
Gethin James
91cc53e31b
Merged searchapi (5.2.1) to 5.2.N (5.2.1)
...
129999 ahind: Merged 5.2.N-AHIND (5.2.1) to searchapi (5.2.1)
129643 amorarasu: REPO-164 / REPO-1086 - V1 REST API: Lock Node
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130261 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-06 14:58:13 +00:00
Gethin James
bfd32ef859
Merged searchapi (5.2.1) to 5.2.N (5.2.1)
...
129774 gjames: SEARCH-113: Moving more api logic to helper classes, using a "trait" style
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130165 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-06 14:14:29 +00:00
Martin Muller
ed67760ab4
Restrict lock method to content types. REPO-1158
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129897 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-26 09:15:52 +00:00
Jan Vonka
25988a8efb
REPO-1090: fix regress (V1 REST API - list children within the context of a smart folder)
...
- follow-on (re: NodeApiTest.getChildrenAssocType fallout - when returning any assoc, not just cm:contains)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129893 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-25 17:02:31 +00:00
Ancuta Morarasu
8dfbbeaf3d
REPO-1155 / REPO-160 / REPO-340 - V1 REST API: Remove "includeChildren" option for Lock / Unlock in the rest api (REPO-1163)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129892 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-25 16:16:37 +00:00
Jan Vonka
78ed7e9c2d
REPO-1090: fix regress (V1 REST API - list children within the context of a smart folder)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129886 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-25 12:14:41 +00:00
Ancuta Morarasu
b04cef45d1
REPO-340 / REPO-1136 - V1 REST API: Unlock Node
...
- Removed the allowCheckedOut option from the unlock body
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129804 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-23 20:24:18 +00:00
Ancuta Morarasu
d53ac5135a
REPO-340 / REPO-1136 - V1 REST API: Unlock Node
...
- Unlock with includeChildren=true - fixed + testcases
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129791 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-23 11:34:52 +00:00
Jan Vonka
650554b62c
REPO-164 / REPO-1141: fix error mapping when unable to update content due to locked node (should be 409 not 500)
...
- also minor cleanup of error handling/mapping (handle within common "writeContent")
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129790 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-23 11:14:03 +00:00
Jan Vonka
940fa92b21
REPO-1144: LockService - add isLocked & isLockedAndReadOnly common helper methods to public API
...
- remove duplicated code from various locations to use the new methods
- add sanity checks to Lock*Test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129764 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-22 14:20:52 +00:00
Ancuta Morarasu
ecec348d6c
REPO-164 / REPO-1086 - V1 REST API: Lock Node
...
- review suggestions
- added more test cases + utility methods
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129751 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-22 13:10:19 +00:00
Ancuta Morarasu
063dde5d8b
REPO-340 / REPO-1136 - V1 REST API: Unlock Node
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129716 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-19 18:37:10 +00:00
Jan Vonka
0376e880d0
REPO-1138 / REPO-983: Add support for the isLocked property
...
- can optionally "include" when getting node info, listing children, ...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129711 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-19 16:22:09 +00:00
Ancuta Morarasu
3374ed8e49
REPO-164 / REPO-1086 - V1 REST API: Lock Node
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129643 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-18 12:11:24 +00:00
Alan Davis
c82cfb582c
REPO-1069 Review live search sort order / sort type (sites and also people)
...
- Removal of parameter sortType - we are going to be using the POST_QUERY_SORT
- Removal of tests using IN_QUERY_SORT except for the one to do with the default sort.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129253 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-09 10:09:49 +00:00
Martin Muller
fda06755c6
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
129059 adavis: REPO-243 People Live Search
- Use id (in fields and orderBy) rather than userName as it is an id that is returned in the Person entity
- Added tests to test id can be used in fields and orderBy
- Added 'wildcard' tests created by Alexandru-Eusebiu Epure
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129199 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:50:07 +00:00
Martin Muller
2b9173ee6a
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
129058 jvonka: V1 REST API: Sites Live Search (/queries/live-search-sites)
- additional tweaks based on ADs review comments
REPO-232, REPO-883
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129198 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:50:03 +00:00
Martin Muller
63bb6a86ef
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
129054 adavis: REPO-232,REPO-883 V1 REST API: Sites Live Search (/queries/live-search-sites)
- Moved getSite() into the class that uses it.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129197 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:49:59 +00:00
Martin Muller
069da2af29
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
129052 adavis: REPO-232,REPO-883 V1 REST API: Sites Live Search (/queries/live-search-sites)
- As part of code review: Added generics to listPage method and moved it inside AbstractQuery.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129196 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:49:53 +00:00
Martin Muller
9bc32208c7
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
129042 jvonka: V1 REST API: Sites Live Search (/queries/live-search-sites)
- add experimental option (for review) to choose sort type
- fix post query sort to use AlfrescoCollator rather than RuleBasedCollator (latter ignores spaces)
- fix post query sort to apply paging correctly (get results first) - TODO add test
REPO-232, REPO-882, REPO-883
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129193 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:49:39 +00:00
Martin Muller
267cdf9072
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
129037 adavis: REPO-243 People Live Search
- Added another orderBy test following a question from Jan.
- Minor change in post order code to replace a Map lookup with a List lookup. Logically the same but faster.
- Replaced a NPE test failure with a failure message if TEST_COUNT is too small
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129192 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:49:35 +00:00
Martin Muller
dd330266ed
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
129017 adavis: REPO-243 People Live Search
- Added additional tests
- Removed check in Person constructor for no id as we want to be able to create a Person from json which might not have the id.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129190 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:49:27 +00:00
Martin Muller
f83b4b7654
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
129010 jvonka: V1 REST API: 1st-cut of Sites Live Search
- TODO api sanity test
- open-question, re: orderBy
REPO-232, REPO-882
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129188 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:49:19 +00:00
Martin Muller
83e9fdf964
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
129004 adavis: REPO-243 People Live Search
- First cut of this code
- Includes a re-factor of the code used by GET /queries/live-search-nodes as there is much in common.
- Still have some tests to write and there are bound to be comments from the review.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129187 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:49:15 +00:00
Martin Muller
79149bf9b3
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128681 jvonka: V1 REST API: version history - add api sanity check for auto-version on metadata-only updates
REPO-348, REPO-313, REPO-905
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129184 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:47:57 +00:00
Martin Muller
bcf551a644
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128597 jvonka: REPO-900: Fix "autoRename not working if using a relativePath (with create/add node via json request)"
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129175 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:47:20 +00:00
Martin Muller
1b474b8199
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128583 jvonka: V1 REST API: Node Version History - tweak "delete version" operation
- cannot delete last version for now (return 422)
REPO-835
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129173 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:47:11 +00:00
Martin Muller
93aa43babc
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128442 jvonka: V1 REST API: Update binary content - add optional name param (to allow rename on upload of a new version)
- api implementation + api sanity tests (+ve/-ve)
REPO-518
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129159 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:46:13 +00:00
Martin Muller
fa533a6b57
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128232 jvonka: V1 REST API: Node Version History - add "delete version" operation
- DELETE /nodes/nodeId/versions/versionId
REPO-835
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129136 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 10:13:51 +00:00
Martin Muller
ee91e0b457
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128207 jvonka: V1 REST API: Node Version History - add "revert version" operation
- ie. promote a previous version to become a new (most recent) version
- POST /nodes/nodeId/versions/versionId/revert (with request body, optionally majorVersion &/or comment)
REPO-236
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129134 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 10:13:42 +00:00
Martin Muller
c06865ed18
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128173 jvonka: REPO-839: Fix guess mimetype (if no file ext) - on upload and/or update (after a rename)
- improvement to REPO-495
- will also apply to REPO-518 when implemented
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129133 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 10:13:38 +00:00
Martin Muller
f88cccb1b7
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128135 jvonka: v1 REST API: fix possible NPE when optionally listing allowable ops for non-file/non-file (+ add sanity api test)
REPO-488, REPO-514
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129127 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 10:12:38 +00:00
Martin Muller
f4db00acf7
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128134 jvonka: v1 REST API: minor bug fix(es) to error handling when creating node with assocs + sanity api tests
REPO-476, REPO-477
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129126 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 10:11:36 +00:00