Can I run code at Alfresco startup? -
i have alfresco module have cleanup when new version of installed.
in current situation, older version of module created folder node custom properties @ root of repository. we've since decided have multiple such nodes, , none of them @ location. i'd put next version of module code run @ alfresco startup, check existence of old node, copy properties appropriate new nodes, , delete old node.
is such thing possible? i've looked @ bootstrap configuration file, appears allow 1 add things repository, not modify or delete them.
my suggestion write patch. class implements org.alfresco.repo.admin.patch.abstractpatch
then can pretty want on bootstrap (except executing searches against solr since wont available).
add spring configuration, take @ file patch-services-context.xml inspiration.
Comments
Post a Comment