Author Topic: Group Lock  (Read 1238 times)

MiWin-IT

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Group Lock
« on: September 15, 2022, 11:47:02 pm »
Hi all,

Is there a way to retrieve all packages on which a specific group lock has been applied ?
I found the GUID of my group lock in t_seclocks via a search, but now I have to find all the packages locked by this one ; unfortunately I don't find the right table to search for...
Any help would be appreciated.

Many thanks.

Michel.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13136
  • Karma: +547/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Group Lock
« Reply #1 on: September 16, 2022, 12:10:51 am »
There is no GUID for a Lock.

t_seclocks contains the ID of the user/group, and the GUID of the locked element. This could be a element (t_object) a package (t_package) or a diagram (t_diagram)

Geert

MiWin-IT

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Group Lock
« Reply #2 on: October 12, 2022, 11:32:45 pm »
Hi Geert,

Many thanks for your answer.
Indeed my wording was not correct, the ID I retreived is the one of the Goup I'm searching for.
I did some tries and finally got the right query, here it is:

select * from t_object
where Stereotype = 'myStereotype'   <= used to narrow the search
and ea_guid in 
(select EntityID from t_seclocks
where GroupID = '{5CD33F3E-022C-4ccc-85BE-557AB3F9BA74}' <= GUID of the Group
and EntityType = 'Element')

Michel