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

Opened 18 years ago

Closed 18 years ago

Add IAdmin.currentUser() or similar method

Reported by: jamoore Owned by: jamoore
Priority: major Milestone: 3.0-M3
Component: Security Version: 3.0-M3
Keywords: iteration5 Cc: jburel
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

Currently after authenticating, there's no way for the user to find out his/her own id. There should be an easy method to do the following:

   Login login = new Login("user","password");
   ServiceFactory sf = new ServiceFactory(login);
   Experimenter e = sf.getAdminService().getCurrentUser();
   Long me = e.getId();

Change History (2)

comment:1 Changed 18 years ago by jmoore

Could similarly add a method to ServiceFactory which uses the Principal value to return the current user. Here it might make sense to have ServiceFactory an interface with separate ClientServiceFactory, InternalServiceFactory, and ManagedServiceFactory implementations.

comment:2 Changed 18 years ago by jmoore

  • Keywords iteration5 added
  • Resolution set to fixed
  • Status changed from new to closed

Covered by #328.

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

We're Hiring!