Task #1310 (closed)
Opened 10 years ago
Closed 10 years ago
Changing active group
| Reported by: | atarkowska | Owned by: | jamoore |
|---|---|---|---|
| Priority: | major | Milestone: | OMERO-Beta4.2 |
| Component: | Security | Version: | 3.0-M1 |
| Keywords: | n.a. | Cc: | carlos@…, cblackburn |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | n.a. |
| Sprint: | n.a. |
Description
At this moment OMERO.web does it:
def changeActiveGroup(self, gid):
s = self.getSessionService()
a = self.getAdminService()
gr = a.getGroup(long(gid))
session = s.getSession(self._sessionUuid)
session.details.group = gr
s.updateSession(session)
self._eventContext = self._proxies['admin'].getEventContext()
Possibly move it to the server side.
Change History (3)
comment:1 Changed 10 years ago by atarkowska
- Cc jmoore removed
comment:2 Changed 10 years ago by jmoore
- Milestone changed from Unscheduled to OMERO-Beta4.2
comment:3 Changed 10 years ago by jmoore
- Resolution set to fixed
- Status changed from new to closed
Replaced by:
session.setSecurityContext(ExperimenterGroupI( id, False ) )
The same can be used to activate a share. Groups and shares will be returned by getSecurityContexts(). A method perhaps should be added to query the current context (though this is possible via EventContext)
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
Part of #1434