You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Egli (JIRA)" <ji...@apache.org> on 2015/11/12 12:29:14 UTC
[jira] [Closed] (SLING-3072) Repository: API needs a single method
to create a node and set its non-binary properties
[ https://issues.apache.org/jira/browse/SLING-3072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Egli closed SLING-3072.
------------------------------
> Repository: API needs a single method to create a node and set its non-binary properties
> ----------------------------------------------------------------------------------------
>
> Key: SLING-3072
> URL: https://issues.apache.org/jira/browse/SLING-3072
> Project: Sling
> Issue Type: Improvement
> Components: IDE
> Reporter: Robert Munteanu
> Assignee: Robert Munteanu
> Priority: Critical
> Fix For: Sling Eclipse IDE 1.0.0
>
>
> The Repository add/update methods are as follows:
> {code}
> Command<Void> newAddNodeCommand(FileInfo fileInfo);
> Command<Void> newUpdateContentNodeCommand(FileInfo fileInfo, ResourceProxy resourceProxy);
> {code}
> with the add command not knowing the jcr:primaryType of the node to create, and guessing one of nt:file or nt:folder. The unified command ( newAddOrUpdateNodeCommand ? ) could possibly receive only the ResourceProxy, with a repository path set, and that would be enough information.
> Both vlt and resource-based implementations need to be adjusted after the API change.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)