root/trunk/components/server/src/ome/api/local/LocalAdmin.java
| Revision 2122, 3.2 kB (checked in by jmoore, 11 months ago) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | /* |
| 2 | * ome.api.local.LocalAdmin |
| 3 | * |
| 4 | * Copyright 2006 University of Dundee. All rights reserved. |
| 5 | * Use is subject to license terms supplied in LICENSE.txt |
| 6 | */ |
| 7 | |
| 8 | package ome.api.local; |
| 9 | |
| 10 | // Java imports |
| 11 | import java.util.List; |
| 12 | import java.util.Map; |
| 13 | |
| 14 | import ome.model.IObject; |
| 15 | import ome.model.internal.Details; |
| 16 | import ome.model.meta.Experimenter; |
| 17 | import ome.model.meta.ExperimenterGroup; |
| 18 | |
| 19 | // Third-party libraries |
| 20 | |
| 21 | // Application-internal dependencies |
| 22 | |
| 23 | /** |
| 24 | * Provides local (internal) extensions for administration |
| 25 | * |
| 26 | * @author <br> |
| 27 | * Josh Moore <a |
| 28 | * href="mailto:josh.moore@gmx.de"> josh.moore@gmx.de</a> |
| 29 | * @version 1.0 <small> (<b>Internal version:</b> $Revision$ $Date$) </small> |
| 30 | * @since OMERO3.0 |
| 31 | */ |
| 32 | public interface LocalAdmin extends ome.api.IAdmin { |
| 33 | |
| 34 | /** |
| 35 | * returns a possibly uninitialized proxy for the given |
| 36 | * {@link Experimenter#getOmeName() user name}. Use of the |
| 37 | * {@link Experimenter} instance will initial its values. |
| 38 | */ |
| 39 | Experimenter userProxy(String omeName); |
| 40 | |
| 41 | /** |
| 42 | * returns a possibly uninitialized proxy for the given |
| 43 | * {@link Experimenter#getId() user id}. Use of the {@link Experimenter} |
| 44 | * instance will initial its values. |
| 45 | */ |
| 46 | Experimenter userProxy(Long userId); |
| 47 | |
| 48 | /** |
| 49 | * returns a possibly uninitialized proxy for the given |
| 50 | * {@link ExperimenterGroup#getId() group id}. Use of the |
| 51 | * {@link Experimenter} instance will initial its values. |
| 52 | */ |
| 53 | ExperimenterGroup groupProxy(Long groupId); |
| 54 | |
| 55 | /** |
| 56 | * returns a possibly uninitialized proxy for the given |
| 57 | * {@link ExperimenterGroup#getName() group name}. Use of the |
| 58 | * {@link Experimenter} instance will initial its values. |
| 59 | */ |
| 60 | ExperimenterGroup groupProxy(String groupName); |
| 61 | |
| 62 | /** |
| 63 | * Finds the ids for all groups for which the given {@link Experimenter} is |
| 64 | * owner/leader. |
| 65 | * |
| 66 | * @param e |
| 67 | * Non-null, managed (i.e. with id) {@link Experimenter} |
| 68 | * @see ExperimenterGroup#getDetails() |
| 69 | * @see Details#getOwner() |
| 70 | */ |
| 71 | List<Long> getLeaderOfGroupIds(Experimenter e); |
| 72 | |
| 73 | /** |
| 74 | * Finds the ids for all groups for which the given {@link Experimenter} is |
| 75 | * a member. |
| 76 | * |
| 77 | * @param e |
| 78 | * Non-null, managed (i.e. with id) {@link Experimenter} |
| 79 | * @see ExperimenterGroup#getDetails() |
| 80 | * @see Details#getOwner() |
| 81 | */ |
| 82 | List<Long> getMemberOfGroupIds(Experimenter e); |
| 83 | |
| 84 | /** |
| 85 | * Finds the group names for all groups for which the given {@link Experimenter} is |
| 86 | * a member. |
| 87 | * |
| 88 | * @param e |
| 89 | * Non-null, managed (i.e. with id) {@link Experimenter} |
| 90 | * @see ExperimenterGroup#getDetails() |
| 91 | * @see Details#getOwner() |
| 92 | */ |
| 93 | List<String> getUserRoles(Experimenter e); |
| 94 | |
| 95 | /** |
| 96 | * Checks password for given user. |
| 97 | */ |
| 98 | boolean checkPassword(String user, String password); |
| 99 | |
| 100 | /** |
| 101 | * Returns a map from {@link Class} (as string) to a count for all entities |
| 102 | * which point to the given {@link IObject}. The String "*" is mapped to |
| 103 | * the sum of all the locks. |
| 104 | * |
| 105 | * TODO This will eventually return a list of ids |
| 106 | */ |
| 107 | Map<String, Long> getLockingIds(IObject object); |
| 108 | } |
Note: See TracBrowser
for help on using the browser.
