Code Monkey home page Code Monkey logo

alfresco-contentstripper's Introduction

Alfresco Content Stripper

This is a tool used to get a list with content paths in alf_data for content needed to preserve consistency in the repository. This is very usable if there for example is a need to debug an alfresco installation where the error is not easy to replicate with the small dataset of a development environment. This way you can transfer a whole production contentstore (with the major content property stripped). The structure will be intact but all files will be of 0 bytes (except the ones needed as explained above).

The content paths listed are

  • All content in Company Home/Data Dictionary
  • The keystore file stored in system store that is validated during repository bootstrap
  • The Alfresco license file - if present.
  • All preference values of all users
  • All surf-configuration nodes, ie dashboard configurations.
  • If a site is provided: all content in the site

The tool is exposed as a webscript on /alfresco/service/admin/excludelist you could also add the optional parameter site to include content from a particular site in the path list. Example: /alfresco/service/admin/excludelist?shortName=testsite will return something like:

2016/10/18/15/16/fb4a374d-1fe3-4a4e-a16d-df2544f5864c.bin
2016/10/18/15/16/536f0e41-17e6-479e-805a-2bf7c95363d9.bin
2016/10/18/15/16/b0537345-1ace-473c-9c14-9b42f03e2e91.bin
2016/10/18/15/16/68563683-d41c-432a-9bf2-be0e31381a40.bin
2016/10/18/15/16/94826d2e-387b-43ae-9b1d-5edc34549757.bin
2016/10/18/15/16/9e6749fb-d41a-4586-8e83-467e03517e53.bin
2016/10/18/15/16/59485495-c409-43ed-9752-be89b975930b.bin
2016/10/18/15/16/d80fcd79-8235-46ae-aaf3-65c814f288ef.bin

Building & Installation

The build produces one jar file. Attach it to your own maven project using dependencies or put it under tomcat/shared/lib.

SDK 1 and SDK 2

Repository dependency:

<dependency>
  <groupId>org.redpill-linpro.alfresco</groupId>
  <artifactId>alfresco-contentstripper</artifactId>
  <version>1.2.0</version>
</dependency>

SDK 3

Platform/Repository module (parent pom):

<moduleDependency>
  <groupId>org.redpill-linpro.alfresco</groupId>
  <artifactId>alfresco-contentstripper</artifactId>
  <version>1.2.0</version>
</moduleDependency>

Maven repository:

<repository>
  <id>redpill-public</id>
  <url>http://maven.redpill-linpro.com/nexus/content/groups/public</url>
</repository>

The jar files are also downloadable from: https://maven.redpill-linpro.com/nexus/index.html#nexus-search;quick~alfresco-contentstripper

Instructions for deployment

  • Add the dependency instructed above
  • Make sure python is installed in the environment that contains the content store path.

Instructions for running

  • Put the mkdtrunc.py script in the environment where it has access to the content store. (make it executable)
  • run it with the help switch to get instructions ie python mkdtrunc.py -h

License

This application is licensed under the LGPLv3 License. See the LICENSE file for details.

Authors

Erik Billerby - Redpill Linpro AB
Inspiration from old Alfresco-Tooling project https://github.com/Redpill-Linpro/Alfresco-Tooling

alfresco-contentstripper's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.