20080102 Wednesday January 02, 2008

Turn on versioning by default in Alfresco

After having someone importing a bad document into Alfresco (blowing away the good one in the process), I decided it was time to see how to turn on versioning by default in Alfresco, since the process had changed since version 1.x. Here is how you do it in 2.x:

  1. Log on as the admin user.
  2. Go to Company Home.
  3. Under "More Actions" select "Manage Content Rules".
  4. Select "Create Rule".
  5. Under "Select Condition" choose "All Items" , then click "Add to List", then click "Next".
  6. Under "Select Action" choose "Add aspect to item", then click "Set Values and Add".
  7. Under "Set action values" choose "Versionable", then click "OK", then click "Next".
  8. On the next page, leave "Inbound" selected, give the rule a title like "Version everything", select "Apply rule to sub spaces", then click "Next".
  9. Review the rule. If everything looks good, select "Finish" and you are done.
Posted by rickg ( Jan 02 2008, 01:11:33 PM PST ) Permalink Comments [0]
20071213 Thursday December 13, 2007

Adding Dali (JPA) to an existing web project in Eclipse

Adding Dali (JPA perspective) to an existing web project in Eclipse.

  • Add GlassFish TopLink Essentials jars (or other JPA implementation) to the WEB-INF/lib folder
  • Right click on the project, select properties
  • Select Project Facets
  • Check the JPA facet

...and your done! You can now go to the JPA perspective, setup your datasources, create entities, etc.

Posted by rickg ( Dec 13 2007, 05:55:50 AM PST ) Permalink Comments [0]