Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Database Root Access Rights
Topic Summary:
Created On: 6-Jul-2006 16:52
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Louie Landale, on Thursday, July 6, 2006 6:57 PM

Answer:
You need to get the folder handle of the DB root, like this: Folder fRoot = folder("/"). Once you got a handle on it you can look at the AccessRecords like this: AccessRec ar; for ar in fRoot do.

- Louie
 6-Jul-2006 16:52
User is offline View Users Profile Print this message


Kevin Murphy

Posts: 206
Joined: 15-Jul-2005

Does anyone know the function to return access rights to the database root? When you right click the Database root and choose properties and then the access tab, I need to get all the information in that tab.

I've searched this forum and Telelogic's documentation and have come up fruitless. One workaround I have is to make a new Project that inherits from parent, but I would strongly prefer not to do this.

Anyone have any ideas?

-------------------------
Kevin Murphy
http://www.baselinesinc.com
The Requirements Management Experts
Report this to a Moderator Report this to a Moderator
 6-Jul-2006 17:04
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
You need to get the folder handle of the DB root, like this: Folder fRoot = folder("/"). Once you got a handle on it you can look at the AccessRecords like this: AccessRec ar; for ar in fRoot do.

- Louie
Report this to a Moderator Report this to a Moderator
 6-Jul-2006 17:20
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

It's the same as getting rights for any other folder:

AccessRec get({Object o|Module m|Project p|
Folder f|Item i|View v},
[AttrType at,]
string user,
string &message)

One thing to note: if the user doesn't have an entry in that table, get() returns a null--which means that the default access rights are in force for them. You can check the default by putting a null string in for the username.

Also interesting is that DXL will tell you about access rights that you can't see from the DOORS explorer. If I right click on the root entry, "Properties" is grayed out, but the attached code works fine for any user.

Hope it helps!

Chris
Report this to a Moderator Report this to a Moderator
 6-Jul-2006 18:55
User is offline View Users Profile Print this message


Kevin Murphy

Posts: 206
Joined: 15-Jul-2005

Louie,

So obvious!

Thank you very much.

Kevin

-------------------------
Kevin Murphy
http://www.baselinesinc.com
The Requirements Management Experts
Report this to a Moderator Report this to a Moderator
 6-Jul-2006 19:08
User is offline View Users Profile Print this message


Kevin Murphy

Posts: 206
Joined: 15-Jul-2005

Chris,

Thank you for the detailed response!

Kevin

-------------------------
Kevin Murphy
http://www.baselinesinc.com
The Requirements Management Experts
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.