Then I don't really understand the question.
This code does not work ? You want to know how to do the same thing in Java ?
You can access the current XWikiContext by injecting in your macro
component and then you have pretty much the same API than in the
script oriented one, something like
@Inject
private Provider<XWikiContext> xcontextProvider;
[...]
XWikiContext xcontext = xcontextProvider.get();
xcontext.getWiki().getUser(xcontext).isUserInGroup('XWiki.AGroup'))
On Mon, Jan 12, 2015 at 10:10 AM, Marius Dumitru Florea
<mariusdumitru.florea(a)xwiki.com> wrote:
On Fri, Jan 9, 2015 at 10:21 AM, Thomas Mortagne
<thomas.mortagne(a)xwiki.com> wrote:
On Thu, Jan 8, 2015 at 9:35 PM, Matthias Wegner
<mic.mat.wegner(a)web.de> wrote:
Hi All,
i just uploaded a new extension to
http://extensions.xwiki.org/xwiki/bin/view/Extension/TaskMacro.
I want to enable in inside
Is there something missing to this phrase ?
Yes,
{{velocity}}
#if ($xwiki.getUser().isUserInGroup('XWiki.AGroup'))
{{task}}A Task{{/task}}
#end
{{/velocity}}
Checkout the Nabble link.
Can i do that?
Regards,
Matthias
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Run-Macro-inside-velocity-tp7593608.html
Sent from the XWiki- Users mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne