From: <pb...@fe...> - 2012-12-16 09:09:11
|
Author: pboy Date: 2012-12-16 09:09:00 +0000 (Sun, 16 Dec 2012) New Revision: 2370 Added: trunk/ccm-cms/src/com/arsdigita/cms/contenttypes/upgrades/Upgrade664to665.java Log: Fixed update script. Added: trunk/ccm-cms/src/com/arsdigita/cms/contenttypes/upgrades/Upgrade664to665.java =================================================================== --- trunk/ccm-cms/src/com/arsdigita/cms/contenttypes/upgrades/Upgrade664to665.java (rev 0) +++ trunk/ccm-cms/src/com/arsdigita/cms/contenttypes/upgrades/Upgrade664to665.java 2012-12-16 09:09:00 UTC (rev 2370) @@ -0,0 +1,40 @@ +package com.arsdigita.cms.contenttypes.upgrades; + +import com.arsdigita.cms.contenttypes.XMLContentTypeHandler; +import com.arsdigita.util.cmd.Program; +import com.arsdigita.xml.XML; +import org.apache.commons.cli.CommandLine; + +/** + * + * @author Jens Pelzetter <je...@jp...> + * @version $Id$ + */ +public class Upgrade664to665 extends Program { + + public Upgrade664to665() { + super("Upgrade664to665", "1.0.0", "", true, true); + } + + @Override + protected void doRun(CommandLine cmdLine) { + new CreateContactBundles().doUpgrade(); + new CreateOrgaUnitBundles().doUpgrade(); + new CreatePersonBundles().doUpgrade(); + new GenericContactGenericPersonAssocUpgrade().doUpgrade(); + new GenericOrgaUnitGenericContactAssocUpgrade().doUpgrade(); + new GenericOrgaUnitGenericOrgaUnitAssocUpgrade().doUpgrade(); + new GenericOrgaUnitGenericPersonAssocUpgrade().doUpgrade(); + + //Reload authoring steps + XMLContentTypeHandler handler = new XMLContentTypeHandler(); + XML.parseResource("/WEB-INF/content-types/com/arsdigita/cms/contenttypes/GenericContact.xml", handler); + XML.parseResource("/WEB-INF/content-types/com/arsdigita/cms/contenttypes/GenericOrganizationalUnit.xml", handler); + XML.parseResource("/WEB-INF/content-types/com/arsdigita/cms/contenttypes/GenericPerson.xml", handler); + } + + public static void main(final String[] args) { + new Upgrade664to665().run(args); + } + +} |