Hi Jan,
We have a Magnolia Author with a large group of editors and publishers. We are
currently using the workflow module and, for audit reasons, we need to know who
is the user who has reviewed and published the content to the public instance.
This username value must be in the "mgnl:activatorid" metadata or are we wrong
and we could get this value from antoher metadata?
We currently know who is the last editor of the content ("mgnl:authorid"
metadata) but we also want to know the publisher id.
//Technical details
We have taken a look to magnolia source code and we have shown that the
ActivationCommand class call the method "getSyndicator()" that is inherited
from BaseActivationCommand class. This method is the following one:
public Syndicator getSyndicator()
{
if ((this.syndicator == null) && (isClone()))
{
this.syndicator =
((Syndicator)Components.getComponentProvider().newInstance(Syndicator.class,
new Object[0]));
this.syndicator.init([u]MgnlContext.getUser()[/u], getRepository(),
ContentRepository.getDefaultWorkspace(getRepository()), getRule());
}
return this.syndicator;
}
We have seen that "MgnlContext.getUser()" always return "superuser" but we
don't know why this method doesn't return the user that is actually logged in
Magnolia Author. We think that the problem might be here. Dou you have any
ideas?
Thank you in advance.
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=626536a0-984e-48f6-a81a-bff6e562b92e
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------