Sorry, this of course doesn't answer to the "standard command" part of your
question, but I hope it helped you anyway.
- Felix
On Dec 20, 2010, at 7:03 PM, Felix Rabe wrote:
>
> You may use an anonymous inner class like this: (copy'n'pasted from somewhere)
>
> MgnlContext.doInSystemContext(new MgnlContext.VoidOp() {
> @Override
> public void doExec() {
> //Here the code
> }
> }, true)
>
> Or you might use MgnlContext.getSystemContext(), e.g. (this is what I use)
>
> HierarchyManager hm =
> MgnlContext.getSystemContext().getHierarchyManager(DataModule.getRepository());
>
> Greetings,
> Felix
>
> On Dec 20, 2010, at 6:44 PM, Will Scheidegger wrote:
>
>>
>> Dear Magnolians
>>
>> There is MgnlContext.doInSystemContext() which takes an MgnlContenxt.Op as
>> parameter. But is there also a way to simply execute a standard command in
>> the system context? Or do I actually have to write a class which implements
>> MgnlContext.Op which executes my command?
>>
>> Thanks!
>>
>> -will
>>
>>
>> ----------------------------------------------------------------
>> For list details see
>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>> To unsubscribe, E-mail to: <[email protected]>
>> ----------------------------------------------------------------
>>
>
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
>
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------