different user
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > different user




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    different user  
X


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-25-04 09:19 AM

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





[ Post a follow-up to this message ]



    Re: different user  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-25-04 09: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...>
MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...nagement+Server
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







[ Post a follow-up to this message ]



    Re: different user  
Glen Wells


Report This Message To A Moderator Edit/Delete Message


 
08-25-04 09: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







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:37 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register