Friday, February 10, 2012
Google Custom Search

ClearCanvas Highlights

Download our Open Source software
Watch some Videos
Get the Source
Check out our Licensing
Join our  Forums
Some Research: OICR IPP-Trials

Our Community

Membership Membership:
Latest New User Latest: 孙磊
New Today New Today: 1
New Yesterday New Yesterday: 27
User Count Overall: 20591

People Online People Online:
Visitors Visitors: 10
Members Members: 2
Total Total: 12

Online Now Online Now:
01: sridevivuppu
02: 孙磊

ClearCanvas Community Forums

RIS Client : Main Menu
Last Post 2010-06-01 01:11 PM by resnickj. 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
ikozyol
Basic Member
Basic Member
Posts:27

--
2010-05-30 11:46 PM  

Hello,

I am new to Clear Canvas, but so far I am very impressed with the framework design. It is light years ahead of any other piece of medical software I have seen. Well done!

Now, on to my questions. I have been playing around with the RIS client and server,

building them from source. I am trying to understand how the main menu works.

I've read the developers guide, and I understand that menu drop down items

are tools that extend the DesktopToolExtensionPoint extension, and that they must have a MenuAction attribute with site equal to "global-menus". And also that the action model determines what actions get displayed for a given tool.

I notice that the client's main menu changes based on what type of user is logged in; for example, the Admin item does not appear for a radiologist. How does this work in the code? Where in the code does the menu get changed  based on the user?  If someone could point me to the relevant files, that would be a great help. Also, if I wanted to add a custom item to the main menu, how would I go about doing this?  

Any help would be greatly appreciated!

Cheers,

Igor Kozyol

ikozyol
Basic Member
Basic Member
Posts:27

--
2010-06-01 10:23 AM  
To answer my own question, it all depends on the ActionPermission attribute.

For example:

[MenuAction("show", "global-menus/Test/TestFeature", "Show")]
[Tooltip("show", "Test Feature")]
[ActionPermission("show", ClearCanvas.Ris.Application.Test.TestFeature)]
[ExtensionOf(typeof(DesktopToolExtensionPoint))]
class TestTool: Tool


The TestFeature item in the Test menu would only appear for users granted permission
to the ClearCanvas.Ris.Application.Test.TestFeature authority token.
resnickj
Senior Member
Senior Member
Posts:968

--
2010-06-01 01:11 PM  
Hi Igor,
Yes, you are correct. I didn't have a chance to reply to this post yet - glad you figured it out.
Real-time support available to Clinical Edition and Team Edition customers
You are not authorized to post a reply.

Active Forums 4.1
Copyright 2011 ClearCanvas Inc.