123376 jvonka: Nodes (FileFolder) API - extra delete check (hence also move) for special system folders, currently Company Home, Sites and Data Dictionary - even for an admin
RA-770, RA-642, RA-806
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126540 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
123163 jvonka: RA-706, ACE-5113: Platform - OwnableService - when setting owner check that username currently exists (at time of property update)
- update Nodes API (remove extra check)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126531 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
123112 jvonka: Nodes (FileFolder) API - version options when updating/uploading (overwriting) existing content
- add tests .. for now check version label only (pending future "list version history" + "get version" etc)
RA-690
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126528 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
123064 jvonka: Nodes (FileFolder) API - WIP create or update (versionable) content with optional majorVersion &/or comment
- via query params for PUT
- via form-data fields for POST (when overwrite field is true)
- return updated "cm:versionLabel"
- TODO tests + api def (hence WIP)
RA-690, RA-637, RA-640
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126525 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
122926 jvonka: (Quick) Shared Links API - updates and fixes
- A/C changed from 400 to 409 if shared link already exists
- tweak 404 error message (entity id not found)
- change response from sharedId to just id
- add optional filter when finding links, eg. where=(sharedByUser/id='userId') (userId can also be -me-)
- TODO add a few more tests (rendition download, filtered find)
RA-708, RA-777
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126514 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
122778 jvonka: Nodes (FileFolder) API - list (folder) children - add "includeSource" option
- optionally also lookup and return the folder/node info for parent (ie. source)
- especially useful if also using "relativePath" to resolve the actual parent to be listed
RA-823, RA-634, RA-753
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126508 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
121928 jvonka: Nodes (File/Folder) API - minor cleanup (remove experimental code)
- will be replaced by move/copy operations (and also batch/bulk operation in the future)
RA-684 RA-806, RA-668
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126441 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
121799 jvonka: FileFolder API - minor validation fix when listing children via "relativePath"
- also check type of parentId (to be a folder) before (as well as after) resolving relative path
RA-753
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126419 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
121745 jvonka: FileFolder (Node) API - allow creation (and listing) of other custom node types
- no longer limited to (sub-classes of) cm:folder/cm:content, also cm:cmobject
- TODO extra unit tests for non-folder/non-content
RA-741
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126415 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
121557 jvonka: FileFolder API - experimental support for multi move/copy via post to target folder
- please note: API (including uri endpoint) is subject to change
RA-683, RA-684
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126410 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
121438 jvonka: FileFolder API - support "relativePath" when listing children, eg. /nodes/{parentId}/children?relativePath=f1/f2
- also add tests both for list children & get node info
- TODO investigate/fix RA-755
RA-672, RA-753
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126407 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
121221 jvonka: FileFolder API - minor update for get/list node info (aspectNames & properties)
- now hides all "sys" aspects & properties (not just "referenceable" & "localizable")
- pre-work (eg. before implementing "move")
- in the future, we could add advanced query option to also return these
RA-634, RA-638
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126402 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
121139 jvonka: FileFolder API - create/delete Public/Quick share link
- TODO ability to access content + limited metadata (also add sanity tests)
- ... for now can 'demo' access to link via existing APIs &/or Share ;-)
RA-708
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126399 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
120807 jvonka: FileFolder API - create/update node will return 400 for unknown property or aspect (not in dictionary models)
- we no longer ignore invalid property and now also return correct error code for invalid aspect
- update NodeApiTest and A/C of JIRAs ( RA-635, RA-636, RA-637, RA-638 )
- note: in the future, we could consider option (eg. via query param) to allow residual props on create or update (or at least ability to nullify)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126398 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
120445 jvonka: RA-631, RA-641: REST fwk - fix GET node binary resource (set content-disposition/attachment header)
- by default, set attachment header when downloading content
- unless "attachment=false" *and* content type is in nonAttachContentTypes white list (eg. pdf, images)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126383 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
120439 jvonka: RA-630: FileFolder API - update antlr grammar in REST fwk for select/where clause
- to allow colon in property name identifier (json path)
- also update impl + test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126381 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261