<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding or Creating and deleting Content in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/adding-or-creating-and-deleting-content/m-p/259438#M212568</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's really what i want.I want to delete the content by running the web script like what i did in creating the hello world web script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me going through this.as i am unable to find the way to delete the code through the web script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thankks and&amp;nbsp; Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Aashish Raj&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Feb 2012 11:24:33 GMT</pubDate>
    <dc:creator>aashishraj24</dc:creator>
    <dc:date>2012-02-13T11:24:33Z</dc:date>
    <item>
      <title>Adding or Creating and deleting Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-or-creating-and-deleting-content/m-p/259433#M212563</link>
      <description>Hi,I am a new user in alfresco .I want to add content as well as delete the content.Please help me accomplish this,how can i do this?</description>
      <pubDate>Tue, 07 Feb 2012 10:57:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-or-creating-and-deleting-content/m-p/259433#M212563</guid>
      <dc:creator>aashishraj24</dc:creator>
      <dc:date>2012-02-07T10:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding or Creating and deleting Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-or-creating-and-deleting-content/m-p/259434#M212564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using Alfresco Explorer, Alfresco Share, some sort of file protocol (like FTP, IMAP, WebDAV, CIFS), or writing code to add and delete content?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 21:52:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-or-creating-and-deleting-content/m-p/259434#M212564</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-02-08T21:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding or Creating and deleting Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-or-creating-and-deleting-content/m-p/259435#M212565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Alfresco 4.0c community version i.e Alfresco Explorer.I want to add content like (text document or image ) and delete it using the webscript&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 06:58:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-or-creating-and-deleting-content/m-p/259435#M212565</guid>
      <dc:creator>aashishraj24</dc:creator>
      <dc:date>2012-02-09T06:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding or Creating and deleting Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-or-creating-and-deleting-content/m-p/259436#M212566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to accomplish this&amp;nbsp; ASAP so that i can proceed further.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 07:00:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-or-creating-and-deleting-content/m-p/259436#M212566</guid>
      <dc:creator>aashishraj24</dc:creator>
      <dc:date>2012-02-09T07:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding or Creating and deleting Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-or-creating-and-deleting-content/m-p/259437#M212567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It sounds like you are trying to upload content and delete content via web scripts. You might want to look at the &lt;/SPAN&gt;&lt;A href="http://code.google.com/p/alfresco-developer-guide/source/browse/#svn%2Ftrunk%2Fclient-extensions%2Fconfig%2Falfresco%2Fextension%2Ftemplates%2Fwebscripts%2Fcom%2Fsomeco" rel="nofollow noopener noreferrer"&gt;Hello World examples&lt;/A&gt;&lt;SPAN&gt; from the Alfresco Developer Guide. One of the hello world examples shows how to do a form post and then how to persist that content from within the controller.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is also a &lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/images/articles/alfresco-webscripts/web-script-article.pdf" rel="nofollow noopener noreferrer"&gt;free tutorial on web scripts&lt;/A&gt;&lt;SPAN&gt; that I wrote a while back but is still applicable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Packt offers several books on Alfresco including one by Ugo Cei called Alfresco 3 Web Services, which has a lot of content on web scripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition to web scripts, however, you might also consider using one of the &lt;/SPAN&gt;&lt;A href="http://chemistry.apache.org" rel="nofollow noopener noreferrer"&gt;Apache Chemistry&lt;/A&gt;&lt;SPAN&gt; APIs. Chemistry includes client-side APIs for Java, Python, PHP, and .NET and allows you to hit the Alfresco repository remotely to create, query, update, and delete content. The &lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/archives/2012/01/09/1509" rel="nofollow noopener noreferrer"&gt;custom content types tutorial on ecmarchitect.com&lt;/A&gt;&lt;SPAN&gt; includes some Java-based CMIS examples that do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 13:47:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-or-creating-and-deleting-content/m-p/259437#M212567</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-02-09T13:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding or Creating and deleting Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-or-creating-and-deleting-content/m-p/259438#M212568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's really what i want.I want to delete the content by running the web script like what i did in creating the hello world web script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me going through this.as i am unable to find the way to delete the code through the web script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thankks and&amp;nbsp; Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Aashish Raj&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 11:24:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-or-creating-and-deleting-content/m-p/259438#M212568</guid>
      <dc:creator>aashishraj24</dc:creator>
      <dc:date>2012-02-13T11:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding or Creating and deleting Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-or-creating-and-deleting-content/m-p/259439#M212569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The hello world examples show you how to set up a web script. If you want to delete something from the repository, that code will live in your web script controller. You should look at the &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/4.0_JavaScript_API#ScriptNode_API" rel="nofollow noopener noreferrer"&gt;JavaScript API&lt;/A&gt;&lt;SPAN&gt; to see what you can do from within your web script controller.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, suppose you call a web script and pass in a node reference. You could do a search on that node reference and then delete the node, like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;if (args.nodeRef == null || args.nodeRef.length == 0) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;logger.log("Node ref arg not set");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;status.code = 400;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;status.message = "Node ref has not been provided";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;status.redirect = true;&lt;BR /&gt;} else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;logger.log("Getting node");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var curNode = search.findNode(args.nodeRef);&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (curNode == null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;logger.log("Node not found");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;status.code = 404;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;status.message = "No node found for node ref:" + args.nodeRef;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;status.redirect = true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;} else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;curNode.remove();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;model.nodeRef = args.nodeRef;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 15:34:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-or-creating-and-deleting-content/m-p/259439#M212569</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-02-13T15:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Adding or Creating and deleting Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-or-creating-and-deleting-content/m-p/259440#M212570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for the information,my requirement is that suppose i have created or added an image or some text file like "HELLO WORLD" through first of all writing the&amp;nbsp; hello world.get.desc.xml and then response is given through free-marker-template when we run the web script,what would be the exact number of steps and procedure i follow in order to delete the helloworld file or any image if i have added any.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can u give me the exact procedure and steps to delete that content.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 05:39:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-or-creating-and-deleting-content/m-p/259440#M212570</guid>
      <dc:creator>aashishraj24</dc:creator>
      <dc:date>2012-02-14T05:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding or Creating and deleting Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-or-creating-and-deleting-content/m-p/259441#M212571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've given you examples on how to set up a web script and I've given you controller code that will delete an object given a node reference. I've also pointed you to the JavaScript API so that if this isn't exactly what you need, you can look at that documentation to determine an alternative way to code your controller.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That should be sufficient. If it isn't, then I must be misunderstanding what you are trying to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm happy to try to provide further assistance, but it would probably be more productive if you would tell me what you've tried and identify any specific questions you have.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 16:16:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-or-creating-and-deleting-content/m-p/259441#M212571</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-02-14T16:16:20Z</dc:date>
    </item>
  </channel>
</rss>

