<?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: Possible to remove ALL googledocs aspects from ALL documents? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/possible-to-remove-all-googledocs-aspects-from-all-documents/m-p/281514#M234644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Jeff - many thanks for this; I'll do my best and let you know how it works out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trevor&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2014 01:49:08 GMT</pubDate>
    <dc:creator>ttownsend</dc:creator>
    <dc:date>2014-04-09T01:49:08Z</dc:date>
    <item>
      <title>Possible to remove ALL googledocs aspects from ALL documents?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/possible-to-remove-all-googledocs-aspects-from-all-documents/m-p/281510#M234640</link>
      <description>Hi all,I've trying to upgrade 4.0.c to 4.2.e and have hit the backward compatibility break in google docs v1.0 support (don't panic - it's already in JIRA).Can anyone tell me if it's possible/how to remove ALL googledocs aspects from ALL documents in a repository?&amp;nbsp; In theory (from reading JIRA and h</description>
      <pubDate>Tue, 01 Apr 2014 23:11:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/possible-to-remove-all-googledocs-aspects-from-all-documents/m-p/281510#M234640</guid>
      <dc:creator>ttownsend</dc:creator>
      <dc:date>2014-04-01T23:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to remove ALL googledocs aspects from ALL documents?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/possible-to-remove-all-googledocs-aspects-from-all-documents/m-p/281511#M234641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How about a server-side JavaScript file that contains something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var results = search.luceneSearch("ASPECT:\"ASPECT NAME HERE\"");&lt;BR /&gt;&lt;BR /&gt;for each (var doc in results) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;doc.removeAspect("ASPECT NAME HERE");&lt;BR /&gt;}&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where it says "ASPECT NAME HERE" you'd replace that with the aspect you are trying to remove. I don't know the exact Google Docs 1.0 integration aspect name but you can find it easily when you look at the node in the node browser.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could run this JavaScript with Florian Maul's JavaScript console, or you could upload it to the data dictionary under "scripts" and use the "execute script" action.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any data defined in these aspects will be lost, so make sure that is okay with you before you do it.&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, 02 Apr 2014 23:12:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/possible-to-remove-all-googledocs-aspects-from-all-documents/m-p/281511#M234641</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-04-02T23:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to remove ALL googledocs aspects from ALL documents?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/possible-to-remove-all-googledocs-aspects-from-all-documents/m-p/281512#M234642</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;Many thanks for this!&amp;nbsp; I'll give it a go today and let you know how it turns out and if (fingers-crossed) this works around the upgrade issues to the higher version of 4.2.x.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Out of curiosity, is there not another way of doing this - perhaps through the Alfresco explorer?&amp;nbsp; I have little experience with it, so I don't know for myself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&amp;nbsp; Since I'm not a coder, could you please give me an idea of how this is written, where it is executed, and by what commands?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trevor&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 10:55:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/possible-to-remove-all-googledocs-aspects-from-all-documents/m-p/281512#M234642</guid>
      <dc:creator>ttownsend</dc:creator>
      <dc:date>2014-04-03T10:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to remove ALL googledocs aspects from ALL documents?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/possible-to-remove-all-googledocs-aspects-from-all-documents/m-p/281513#M234643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Trevor,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, running a script is the only way to remove aspects from documents in bulk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is server-side JavaScript. There are a few options for executing server-side JavaScript but this is the one I'd recommend for you:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Copy that code into a file named "remove-aspects.js". Remember that you need to put the Google Docs aspect name in that code. You can find that aspect name by going to the admin console, going into the node browser, and navigating to a document you know has that aspect, then look at the list of aspects. It should be obvious which one is for Google Docs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Upload the file to your repository under Data Dictionary/Scripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Log in to Alfresco Explorer. On any document (it doesn't matter which one for this particular script), click Run Action.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Select "Execute Script" as the action to run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Click "Set Values and Add" to select the script you uploaded in Step 2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. Click "Next" until the script runs. If it runs successfully you won't see any feedback, otherwise you'll see an error message. Hopefully yours works the first time out. If not, tweak your script and repeat these steps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck,&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, 07 Apr 2014 16:00:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/possible-to-remove-all-googledocs-aspects-from-all-documents/m-p/281513#M234643</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-04-07T16:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to remove ALL googledocs aspects from ALL documents?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/possible-to-remove-all-googledocs-aspects-from-all-documents/m-p/281514#M234644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Jeff - many thanks for this; I'll do my best and let you know how it works out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trevor&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 01:49:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/possible-to-remove-all-googledocs-aspects-from-all-documents/m-p/281514#M234644</guid>
      <dc:creator>ttownsend</dc:creator>
      <dc:date>2014-04-09T01:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to remove ALL googledocs aspects from ALL documents?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/possible-to-remove-all-googledocs-aspects-from-all-documents/m-p/281515#M234645</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'm working my way through this.&amp;nbsp; My attempt at a maven build of js-console failed, but I thought I would try (trace below).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Apologies if these are very basic questions…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; With respect to your script example, I use SOLR, so should I change the script to reflect this somehow?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; How will I know that the script has run to completion, and with what results?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trevor &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;[INFO] 7 errors&lt;BR /&gt;[INFO] ————————————————————-&lt;BR /&gt;[INFO] ————————————————————————&lt;BR /&gt;[INFO] BUILD FAILURE&lt;BR /&gt;[INFO] ————————————————————————&lt;BR /&gt;[INFO] Total time: 20:09.338s&lt;BR /&gt;[INFO] Finished at: Wed Apr 09 12:42:37 EDT 2014&lt;BR /&gt;[INFO] Final Memory: 43M/146M&lt;BR /&gt;[INFO] ————————————————————————&lt;BR /&gt;[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project javascript-console-repo: Compilation failure: Compilation failure:&lt;BR /&gt;[ERROR] /opt/extras/js-console-master/javascript-console-repo/src/main/java/de/fme/jsconsole/JavascriptConsoleScriptObject.java:[71,22] cannot find symbol&lt;BR /&gt;[ERROR] symbol&amp;nbsp; : class JsConsoleDump&lt;BR /&gt;[ERROR] location: class de.fme.jsconsole.JavascriptConsoleScriptObject&lt;BR /&gt;[ERROR] /opt/extras/js-console-master/javascript-console-repo/src/main/java/de/fme/jsconsole/JavascriptConsoleScriptObject.java:[249,21] cannot find symbol&lt;BR /&gt;[ERROR] symbol&amp;nbsp; : class JsConsoleDump&lt;BR /&gt;[ERROR] location: class de.fme.jsconsole.JavascriptConsoleScriptObject&lt;BR /&gt;[ERROR] /opt/extras/js-console-master/javascript-console-repo/src/main/java/de/fme/jsconsole/JavascriptConsoleScriptObject.java:[280,17] cannot find symbol&lt;BR /&gt;[ERROR] symbol&amp;nbsp; : class JsConsoleDump&lt;BR /&gt;[ERROR] location: class de.fme.jsconsole.JavascriptConsoleScriptObject&lt;BR /&gt;[ERROR] /opt/extras/js-console-master/javascript-console-repo/src/main/java/de/fme/jsconsole/JavascriptConsoleResult.java:[42,22] cannot find symbol&lt;BR /&gt;[ERROR] symbol&amp;nbsp; : class JsConsoleDump&lt;BR /&gt;[ERROR] location: class de.fme.jsconsole.JavascriptConsoleResult&lt;BR /&gt;[ERROR] /opt/extras/js-console-master/javascript-console-repo/src/main/java/de/fme/jsconsole/JavascriptConsoleResult.java:[133,40] cannot find symbol&lt;BR /&gt;[ERROR] symbol&amp;nbsp; : class JsConsoleDump&lt;BR /&gt;[ERROR] location: class de.fme.jsconsole.JavascriptConsoleResult&lt;BR /&gt;[ERROR] /opt/extras/js-console-master/javascript-console-repo/src/main/java/de/fme/jsconsole/JavascriptConsoleScriptObject.java:[71,65] cannot find symbol&lt;BR /&gt;[ERROR] symbol&amp;nbsp; : class JsConsoleDump&lt;BR /&gt;[ERROR] location: class de.fme.jsconsole.JavascriptConsoleScriptObject&lt;BR /&gt;[ERROR] /opt/extras/js-console-master/javascript-console-repo/src/main/java/de/fme/jsconsole/JavascriptConsoleScriptObject.java:[430,28] cannot find symbol&lt;BR /&gt;[ERROR] symbol&amp;nbsp; : class JsConsoleDump&lt;BR /&gt;[ERROR] location: class de.fme.jsconsole.JavascriptConsoleScriptObject&lt;BR /&gt;[ERROR] -&amp;gt; [Help 1]&lt;BR /&gt;[ERROR]&lt;BR /&gt;[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.&lt;BR /&gt;[ERROR] Re-run Maven using the -X switch to enable full debug logging.&lt;BR /&gt;[ERROR]&lt;BR /&gt;[ERROR] For more information about the errors and possible solutions, please read the following articles:&lt;BR /&gt;[ERROR] [Help 1] &lt;A href="http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException" rel="nofollow noopener noreferrer"&gt;http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException&lt;/A&gt;&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;/SPA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;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2014 14:37:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/possible-to-remove-all-googledocs-aspects-from-all-documents/m-p/281515#M234645</guid>
      <dc:creator>ttownsend</dc:creator>
      <dc:date>2014-04-12T14:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to remove ALL googledocs aspects from ALL documents?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/possible-to-remove-all-googledocs-aspects-from-all-documents/m-p/281516#M234646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In what directory were you sitting when you ran mvn install? Your error messages are complaining about not finding classes which should definitely be there.&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, 14 Apr 2014 16:50:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/possible-to-remove-all-googledocs-aspects-from-all-documents/m-p/281516#M234646</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-04-14T16:50:57Z</dc:date>
    </item>
  </channel>
</rss>

