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 #467 (closed)

Opened 15 years ago

Closed 10 years ago

Add AddUserToGroupTask

Reported by: jamoore Owned by: jamoore
Priority: minor Milestone: Unscheduled
Component: General Version: 3.0-Beta1
Keywords: tasks Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

                       if (properties["omero.rootpass"]==null) ant.fail("No root password defined. See etc/local.properties");
                       e = new ome.model.meta.Experimenter()
                       g = new ome.model.meta.ExperimenterGroup()
                       user = System.getProperty("user.name")
                       println "Please enter login name: [${user}]"
                       e.omeName = System.in.readLine()
                       if (e.omeName == null || e.omeName.length() == 0) e.omeName = user
                       println "Please enter target group:"
                       g.name = System.in.readLine()
                        l  = new ome.system.Login("root",properties["omero.rootpass"])
                        sf = new ome.system.ServiceFactory(l)
                       e = sf.getQueryService().findByExample(e)
                       g = sf.getQueryService().findByExample(g)
                        sf.getAdminService().addGroups(e,[g] as Object[])

Change History (1)

comment:1 Changed 10 years ago by jmoore

  • Resolution set to invalid
  • Status changed from new to closed

Now handled by bin/omero group and bin/omero user

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.66740 sec.)

We're Hiring!