public class SimpleRoleProvider extends java.lang.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,
java.util.concurrent.atomic.AtomicBoolean ignoreCaseLookup) |
Modifier and Type | Method and Description |
---|---|
void |
addGroups(ome.model.meta.Experimenter user,
ome.model.meta.ExperimenterGroup... groups) |
protected ome.model.meta.ExperimenterGroup |
copyGroup(ome.model.meta.ExperimenterGroup g) |
protected ome.model.meta.Experimenter |
copyUser(ome.model.meta.Experimenter e) |
long |
createExperimenter(ome.model.meta.Experimenter experimenter,
ome.model.meta.ExperimenterGroup defaultGroup,
ome.model.meta.ExperimenterGroup... otherGroups) |
long |
createGroup(ome.model.meta.ExperimenterGroup group) |
long |
createGroup(java.lang.String name,
ome.model.internal.Permissions perms,
boolean strict) |
long |
createGroup(java.lang.String name,
ome.model.internal.Permissions perms,
boolean strict,
boolean isLdap) |
boolean |
isIgnoreCaseLookup() |
protected ome.model.meta.GroupExperimenterMap |
linkGroupAndUser(ome.model.meta.ExperimenterGroup group,
ome.model.meta.Experimenter e,
boolean owned) |
java.lang.String |
nameById(long id) |
void |
removeGroups(ome.model.meta.Experimenter user,
ome.model.meta.ExperimenterGroup... groups) |
void |
setDefaultGroup(ome.model.meta.Experimenter user,
ome.model.meta.ExperimenterGroup group) |
void |
setGroupOwner(ome.model.meta.Experimenter user,
ome.model.meta.ExperimenterGroup group,
boolean value) |
protected final SecuritySystem sec
protected final SessionFactory sf
public SimpleRoleProvider(SecuritySystem sec, SessionFactory sf)
public SimpleRoleProvider(SecuritySystem sec, SessionFactory sf, java.util.concurrent.atomic.AtomicBoolean ignoreCaseLookup)
public java.lang.String nameById(long id)
nameById
in interface RoleProvider
public long createGroup(java.lang.String name, ome.model.internal.Permissions perms, boolean strict)
createGroup
in interface RoleProvider
public long createGroup(java.lang.String name, ome.model.internal.Permissions perms, boolean strict, boolean isLdap)
createGroup
in interface RoleProvider
public long createGroup(ome.model.meta.ExperimenterGroup group)
createGroup
in interface RoleProvider
public long createExperimenter(ome.model.meta.Experimenter experimenter, ome.model.meta.ExperimenterGroup defaultGroup, ome.model.meta.ExperimenterGroup... otherGroups)
createExperimenter
in interface RoleProvider
public void setDefaultGroup(ome.model.meta.Experimenter user, ome.model.meta.ExperimenterGroup group)
setDefaultGroup
in interface RoleProvider
public void setGroupOwner(ome.model.meta.Experimenter user, ome.model.meta.ExperimenterGroup group, boolean value)
setGroupOwner
in interface RoleProvider
public void addGroups(ome.model.meta.Experimenter user, ome.model.meta.ExperimenterGroup... groups)
addGroups
in interface RoleProvider
public void removeGroups(ome.model.meta.Experimenter user, ome.model.meta.ExperimenterGroup... groups)
removeGroups
in interface RoleProvider
public boolean isIgnoreCaseLookup()
isIgnoreCaseLookup
in interface RoleProvider
protected ome.model.meta.GroupExperimenterMap linkGroupAndUser(ome.model.meta.ExperimenterGroup group, ome.model.meta.Experimenter e, boolean owned)
protected ome.model.meta.Experimenter copyUser(ome.model.meta.Experimenter e)
protected ome.model.meta.ExperimenterGroup copyGroup(ome.model.meta.ExperimenterGroup g)