You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (JIRA)" <ji...@apache.org> on 2013/09/17 14:15:51 UTC
[jira] [Created] (SLING-3072) Repository: API needs a single method
to create a node and set its non-binary properties
Robert Munteanu created SLING-3072:
--------------------------------------
Summary: 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
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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira