Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #1310 (closed)

Opened 15 years ago

Closed 14 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 15 years ago by atarkowska

  • Cc jmoore removed

comment:2 Changed 14 years ago by jmoore

  • Milestone changed from Unscheduled to OMERO-Beta4.2

Part of #1434

comment:3 Changed 14 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.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.66523 sec.)

We're Hiring!