|
Home > Archive > Microsoft Content Management Server > August 2004 > different user
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| Hello
In the code behind I want to change the user.
With the appContext it's possible, but with the HTTPContext it's not
possible.
We want to do the following,
On delete we want to move a posting to a channel where only a admin
has rights.
So we want to change user in the codebehind and move the posting to
the channel above.
We notice that you can change the user with the appcontext, but not
with the httpContext.
Does anybody know a sollution for this problem?
Greetings Xavier
| |
| Stefan [MSFT] 2004-08-25, 4:19 am |
| Hi Xavier,
use the CmsApplicationContext to do this move rather than the
CmsHttpContext.
Btw: I would not do this in the workflow event.
Rather than this create a custom console action that replaces the delete
console action and do the move in the PerformActionBehavoir method.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights.
MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver
MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------
"X" <xavier@haisjo.nl> wrote in message
news:36999e8d.0408250153.eee138e@posting.google.com...
> Hello
>
> In the code behind I want to change the user.
> With the appContext it's possible, but with the HTTPContext it's not
> possible.
>
> We want to do the following,
> On delete we want to move a posting to a channel where only a admin
> has rights.
> So we want to change user in the codebehind and move the posting to
> the channel above.
>
> We notice that you can change the user with the appcontext, but not
> with the httpContext.
>
> Does anybody know a sollution for this problem?
>
> Greetings Xavier
| |
| Glen Wells 2004-08-25, 4:19 am |
| Xavier,
Write a Posting_Deleting workflow event which expires the posting and does
not delete it (use e.Cancel to stop the delete).
An NT service or similar timer-based background process using
CmsApplicationContext can then move the posting into your custom channel
when it finds the expired posting.
--
Glen Wells
www.cubik.co.uk
"X" <xavier@haisjo.nl> wrote in message
news:36999e8d.0408250153.eee138e@posting.google.com...
> Hello
>
> In the code behind I want to change the user.
> With the appContext it's possible, but with the HTTPContext it's not
> possible.
>
> We want to do the following,
> On delete we want to move a posting to a channel where only a admin
> has rights.
> So we want to change user in the codebehind and move the posting to
> the channel above.
>
> We notice that you can change the user with the appcontext, but not
> with the httpContext.
>
> Does anybody know a sollution for this problem?
>
> Greetings Xavier
|
|
|
|
|