Commit Graph

252 Commits

Author SHA1 Message Date
Raluca Munteanu
7e89c53fe8 REPO-1457: The create site REST API implementation has appropriate extension points
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132658 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-10 16:04:34 +00:00
Raluca Munteanu
1eba269df5 REPO-1543: Refactor tests for list site filtering
- site are now created with a default site preset
   - refactored tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132587 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-09 09:20:07 +00:00
Raluca Munteanu
f39e851d7b REPO-556, REPO-1534: List People - OrderBy not working with "id"
- fixed orderBy issue, now people list can be ordered by "id" key
   - added more tests for list people endpoint


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132482 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-07 14:51:48 +00:00
Cristian Turlica
104fd25dcc REPO-894: Disable Person
- updated so we receive an error when trying to disable an admin authority

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132475 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-07 13:42:55 +00:00
Matt Ward
ba44c5f4b2 REPO-1536: corrected 404 error message for get person by ID (/person/{id})
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132473 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-07 13:06:24 +00:00
Cristian Turlica
4941efdeda REPO-1506: Update Person - implement
- restrict rest api update person password for no authorization

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132406 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-04 14:19:31 +00:00
Raluca Munteanu
bb0296b851 REPO-556: List People - Allow people to be retrieved via the /people collection
- added implementation for get people endpoint
   - added tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132343 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-03 15:34:33 +00:00
Raluca Munteanu
8e553ec442 REPO-1523: REGRESS: Site created from API cannot be accessed via Share
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132249 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-03 13:49:34 +00:00
Matt Ward
1d20c23a67 REPO-892: removed PersonUpdate class.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132120 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-03 11:42:08 +00:00
Cristian Turlica
e0005cebcf REPO-1506: Update Person - implement
- added implementation for update personService
   - added tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132117 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-03 10:17:58 +00:00
Gethin James
010643ebbd SEARCH-227: Adding additional display information for facetting api
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132107 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-02 16:01:30 +00:00
Matt Ward
1a8fe7785f REPO-1503: password is now mandatory.
First check in at my new desk!

I've also removed the auto-generation of passwords (UUID) since this is no longer needed with a mandatory password field.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132027 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-01 15:02:25 +00:00
Matt Ward
247d2ad97a REPO-1503: allow setting of password
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131939 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-11-01 12:29:29 +00:00
Matt Ward
a8d705bb8c REPO-892: allow creation of enabled/disabled users
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131909 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-31 16:56:32 +00:00
Matt Ward
4d8673f058 REPO-892: correctly store and retrieve cm:persondescription as a cm:content blob.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131902 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-31 15:58:22 +00:00
Cristian Turlica
c70a9f960e REPO-1459: Make NodesImpl.isSpecialNode protected
- changed isSpecialNode method signature to protected and updated Java doc

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131893 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-31 13:05:57 +00:00
Matt Ward
9fd17791ff REPO-892: ensure presence of mandatory fields
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131886 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-31 11:12:19 +00:00
Matt Ward
96953c1bb7 Merged 131680:131794 from DEV/mward/5.2.n-createperson to 5.2.N
REPO-892: make sure not all fields need to be supplied during create.
  REPO-892: throws error if fields exclusively belonging to Person (that are not part of PersonUpdate) are sent in request.
  REPO-892: cleaned up PersonUpdateJSONSerializer a little, by removing unnecessary 'fullVisibility' switch.
  REPO-892: improved test for optional fields; added test for too few fields.
  REPO-892: added tests (and impl where needed) for -ve response codes as given in the open api spec for create person.
  REPO-892: fixed broken test due to reuse of username.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131862 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-28 13:14:41 +00:00
Matt Ward
8328ca78ab Merged 131464:131680 from DEV/mward/5.2.n_createperson to 5.2.n
Creating branch for REPO-892 (Create person REST API)
  REPO-892: create person - initial commit, bare-bones implementation and test.
  REPO-892: refactored test versions of Person and Company to reduce duplication.
  REPO-892: further refactoring to reduce prod/test duplication.
  REPO-892: add missing fields to the 'create person' operation.
  REPO-892: introduced PersonUpdate class for create (and I'm assuming update) operations.
  REPO-892: missing license header
  REPO-892: very minor refactoring - extract field in tests.
  REPO-892: make sure not all fields need to be supplied during create.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131858 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-28 12:21:31 +00:00
Cristian Turlica
aab5a5e6be REPO-1404: Improve extensibility of NodesImpl
-  refactored method buildSearchTypesAndIgnoreAspects based on feedback from IG team member

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131837 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-27 15:00:57 +00:00
Raluca Munteanu
18b534b4ac REPO-1390 , REPO-1391: Add support for retrieving site presets
-  Fixed issue causing build failure;

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131796 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-26 13:56:49 +00:00
Raluca Munteanu
723d380c3b REPO-1390 , REPO-1391: Add support for retrieving site presets
-  Implemented the API;
   -  Added automated tests.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131764 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-26 07:29:29 +00:00
Cristian Turlica
ad7911fad9 REPO-1404: Improve extensibility of NodesImpl
-  refactored the listChildren by adding dedicated filter and sort methods, also added protected getters for the services and repositoryHelper.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131716 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-24 14:36:44 +00:00
Jan Vonka
befcb4acf0 REPO-1443: V1 REST API - minor - accept well-known aliases for "update node info"
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131582 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-10-19 20:35:14 +00:00
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