I think you've copied my code :)
I've got to get it working before and than came your code.
Thanks anyway.
Cheers
Thomas


Am 17.11.2008 um 12:41 schrieb Philippe Marschall:

Thomas Negeli wrote:
Hello out there

I want to start activation of content from within code.
We have an application where users are allowed to upload documents in the public instance. So this is why we need to propagate this content back to
the author instance.
I'm at the point where I know where the content is saved to and I can get the UUID of the content element, but I don't know how to start activation of
this content via a java call.
I know, when you activate content in the AdminCentral, this works via a filter, but I don't want to send a request, I just want to make a simple
java call.

Try something along the lines of:

   Syndicator syndicator = (Syndicator)
FactoryUtil.newInstance(Syndicator.class);
   User user = MgnlContext.getUser();
   String repository = "config";
String workspace = ContentRepository.getDefaultWorkspace(repository);
   syndicator.init(user, repository, workspace, new Rule());
   syndicator.activate("/some/folder", "/some/folder/content");

You'll have to configure subscribers and other parameters of course.


Cheers
PHilippe


----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
----------------------------------------------------------------



***************************************************
Thomas Negeli
Software Entwickler

BeagleSoft GmbH
Ritterstr. 11
10969 Berlin
Deutschland

Tel: +49 (30) 76 10 683 - 39
Fax: +49 (30) 76 10 683 - 33
Mail: [EMAIL PROTECTED]
Web: www.beaglesoft.de

Geschäftsführer: Christoph Hoffmann
Sitz: Berlin
Handelsregister: Amtsgericht Berlin-Charlottenbrug, HRB 103412B
Ust.IdNr: DE 178817800
St.-Nr: 29 130 02038 FA für Körperschaften III

***************************************************
This e-mail and any files transmitted with it is intended for the use of the addressee only and may contain information that is confidential and privileged and protected from disclosure. If you are not the intended recipent of this e-mail you are hereby notified that any dissemination, distrubution of copying of this e- mail or any of its attachments is strictly prohibited. If you have received this e-mail in errror please notify us immediately or by return the e-mail to the sender and delete the original e-mail.
Thank you.


----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
----------------------------------------------------------------

Reply via email to