public interface LocalAdmin extends IAdmin
Modifier and Type | Method and Description |
---|---|
boolean |
canAnnotate(IObject obj)
Companion to
IAdmin.canUpdate(IObject) but not yet remotely
accessible. |
boolean |
checkPassword(String user,
String password,
boolean readOnly)
Checks password for given user.
|
EventContext |
getEventContextQuiet()
Like
IAdmin.getEventContext() but will not reload the context. |
Map<String,Long> |
getLockingIds(Class<IObject> klass,
long id,
Long groupId)
|
List<String> |
getUserRoles(Experimenter e)
Finds the group names for all groups for which the given
Experimenter is
a member. |
ExperimenterGroup |
groupProxy(Long groupId)
returns a possibly uninitialized proxy for the given
group id . |
ExperimenterGroup |
groupProxy(String groupName)
returns a possibly uninitialized proxy for the given
group name . |
void |
internalMoveToCommonSpace(IObject obj)
Unconditionally move an object into the user group (usually id=1).
|
Experimenter |
userProxy(Long userId)
returns a possibly uninitialized proxy for the given
user id . |
Experimenter |
userProxy(String omeName)
returns a possibly uninitialized proxy for the given
user name . |
addGroupOwners, addGroups, canUpdate, changeExpiredCredentials, changeGroup, changeOwner, changePassword, changePasswordWithOldPassword, changePermissions, changeUserPassword, containedExperimenters, containedGroups, createExperimenter, createExperimenterWithPassword, createGroup, createSystemUser, createUser, deleteExperimenter, deleteGroup, getDefaultGroup, getEventContext, getExperimenter, getGroup, getLeaderOfGroupIds, getMemberOfGroupIds, getMyUserPhotos, getSecurityRoles, lookupExperimenter, lookupExperimenters, lookupGroup, lookupGroups, lookupLdapAuthExperimenter, lookupLdapAuthExperimenters, moveToCommonSpace, removeGroupOwners, removeGroups, reportForgottenPassword, setDefaultGroup, setGroupOwner, synchronizeLoginCache, unsetGroupOwner, updateExperimenter, updateExperimenterWithPassword, updateGroup, updateSelf, uploadMyUserPhoto
Experimenter userProxy(String omeName)
user name
. Use of the
Experimenter
instance will initialize its values.omeName
- the name of a userExperimenter userProxy(Long userId)
user id
. Use of the Experimenter
instance will initialize its values.userId
- the ID of a userExperimenterGroup groupProxy(Long groupId)
group id
. Use of the
Experimenter
instance will initialize its values.groupId
- the ID of a groupExperimenterGroup groupProxy(String groupName)
group name
. Use of the
Experimenter
instance will initialize its values.groupName
- the name of a groupList<String> getUserRoles(Experimenter e)
Experimenter
is
a member.e
- Non-null, managed (i.e. with id) Experimenter
ExperimenterGroup.getDetails()
,
Details.getOwner()
boolean checkPassword(String user, String password, boolean readOnly)
user
- the name of a userpassword
- the user's passwordreadOnly
- if the password check should be transactionally read-onlyMap<String,Long> getLockingIds(Class<IObject> klass, long id, Long groupId)
Class
(as string) to a count for all entities
which point to the given IObject
. The String "*" is mapped to
the sum of all the locks.klass
- the name of a model classid
- the ID of an instance of klass
groupId
- the ID of a group to omit from the results, may be null
EventContext getEventContextQuiet()
IAdmin.getEventContext()
but will not reload the context.
This also has the result that values from the current call context
will be applied as simply the session context.boolean canAnnotate(IObject obj)
IAdmin.canUpdate(IObject)
but not yet remotely
accessible.obj
- Not null.void internalMoveToCommonSpace(IObject obj)
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.