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
119921 jkaabimofrad: Finished the requirements in RA-637. Added nodeType form data, the client provided content-type will be used if it is not null, and also support for model properties in the form data.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126376 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
119716 jvonka: FileFolder API - handle "select", eg. get node info, list folder children
- list folder children returns minimal info, select can be used to get additional info, eg. aspectNames, properties (or specific props)
- get node info returns basic info, select can be used to get additional info, eg. path
- RA-634, RA-638
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126361 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
119711 jvonka: FileFolder API - consistently handle node aspects &/or properties (on create or update)
- also allow specialise node type (when updating a node)
- minor tweaks to javadoc/comments
- RA-635, RA-636, RA-639
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126360 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
119442 jvonka: RA-634 / RA-638 : FileFolder API - update handling of "select" as per design notes
- return all properties, if "select=properties" or no select (unless listing children => minimal info)
- also handle "select=properties/my:prop" (note: temporarily my_prop pending RA-630)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126356 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
118663 jvonka: Merge from DEV/SABRE_JANV1 (part 1)
File Folder API (PoC - experimental WIP)
- relates to RA-613
- initial file folder CRUD including
- * list folder children (minimal info by default)
with sorting, paging & optional isFolder=true/false
- * create folders or (empty) files
- * get node info
with id, name, nodeType, auditable props, properties (not sys:referencable), aspectNames, ...
- * put node info
- * put content (upload file)
- * get content (download file)
- * delete node (cascade for folder)
- * support for well-known folder alias, -root-, -my-, -shared-
- TODO add tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126348 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261