public class SimpleRoleProvider extends Object implements RoleProvider
RoleProvider
.
Note: All implementations were originally copied from AdminImpl for
ticket:1226.Modifier and Type | Field and Description |
---|---|
protected SecuritySystem |
sec |
protected SessionFactory |
sf |
Constructor and Description |
---|
SimpleRoleProvider(SecuritySystem sec,
SessionFactory sf) |
SimpleRoleProvider(SecuritySystem sec,
SessionFactory sf,
AtomicBoolean ignoreCaseLookup) |
Modifier and Type | Method and Description |
---|---|
void |
addGroups(Experimenter user,
ExperimenterGroup... groups) |
protected ExperimenterGroup |
copyGroup(ExperimenterGroup g) |
protected Experimenter |
copyUser(Experimenter e) |
long |
createExperimenter(Experimenter experimenter,
ExperimenterGroup defaultGroup,
ExperimenterGroup... otherGroups) |
long |
createGroup(ExperimenterGroup group) |
long |
createGroup(String name,
Permissions perms,
boolean strict) |
long |
createGroup(String name,
Permissions perms,
boolean strict,
boolean isLdap) |
boolean |
isIgnoreCaseLookup() |
protected GroupExperimenterMap |
linkGroupAndUser(ExperimenterGroup group,
Experimenter e,
boolean owned) |
String |
nameById(long id) |
void |
removeGroups(Experimenter user,
ExperimenterGroup... groups) |
void |
setDefaultGroup(Experimenter user,
ExperimenterGroup group) |
void |
setGroupOwner(Experimenter user,
ExperimenterGroup group,
boolean value) |
protected final SecuritySystem sec
protected final SessionFactory sf
public SimpleRoleProvider(SecuritySystem sec, SessionFactory sf)
public SimpleRoleProvider(SecuritySystem sec, SessionFactory sf, AtomicBoolean ignoreCaseLookup)
public String nameById(long id)
nameById
in interface RoleProvider
public long createGroup(String name, Permissions perms, boolean strict)
createGroup
in interface RoleProvider
public long createGroup(String name, Permissions perms, boolean strict, boolean isLdap)
createGroup
in interface RoleProvider
public long createGroup(ExperimenterGroup group)
createGroup
in interface RoleProvider
public long createExperimenter(Experimenter experimenter, ExperimenterGroup defaultGroup, ExperimenterGroup... otherGroups)
createExperimenter
in interface RoleProvider
public void setDefaultGroup(Experimenter user, ExperimenterGroup group)
setDefaultGroup
in interface RoleProvider
public void setGroupOwner(Experimenter user, ExperimenterGroup group, boolean value)
setGroupOwner
in interface RoleProvider
public void addGroups(Experimenter user, ExperimenterGroup... groups)
addGroups
in interface RoleProvider
public void removeGroups(Experimenter user, ExperimenterGroup... groups)
removeGroups
in interface RoleProvider
public boolean isIgnoreCaseLookup()
isIgnoreCaseLookup
in interface RoleProvider
protected GroupExperimenterMap linkGroupAndUser(ExperimenterGroup group, Experimenter e, boolean owned)
protected Experimenter copyUser(Experimenter e)
protected ExperimenterGroup copyGroup(ExperimenterGroup g)
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.