Package ome.security.auth
Class SimpleRoleProvider
- java.lang.Object
-
- ome.security.auth.SimpleRoleProvider
-
- All Implemented Interfaces:
RoleProvider
public class SimpleRoleProvider extends java.lang.Object implements RoleProvider
ImplementsRoleProvider
. Note: All implementations were originally copied from AdminImpl for ticket:1226.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description protected SecuritySystem
sec
protected SessionFactory
sf
-
Constructor Summary
Constructors Constructor Description SimpleRoleProvider(SecuritySystem sec, SessionFactory sf)
SimpleRoleProvider(SecuritySystem sec, SessionFactory sf, java.util.concurrent.atomic.AtomicBoolean ignoreCaseLookup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(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)
long
createGroup(ome.model.meta.ExperimenterGroup group)
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)
-
-
-
Field Detail
-
sec
protected final SecuritySystem sec
-
sf
protected final SessionFactory sf
-
-
Constructor Detail
-
SimpleRoleProvider
public SimpleRoleProvider(SecuritySystem sec, SessionFactory sf)
-
SimpleRoleProvider
public SimpleRoleProvider(SecuritySystem sec, SessionFactory sf, java.util.concurrent.atomic.AtomicBoolean ignoreCaseLookup)
-
-
Method Detail
-
nameById
public java.lang.String nameById(long id)
- Specified by:
nameById
in interfaceRoleProvider
-
createGroup
public long createGroup(java.lang.String name, ome.model.internal.Permissions perms, boolean strict)
- Specified by:
createGroup
in interfaceRoleProvider
-
createGroup
public long createGroup(java.lang.String name, ome.model.internal.Permissions perms, boolean strict, boolean isLdap)
- Specified by:
createGroup
in interfaceRoleProvider
-
createGroup
public long createGroup(ome.model.meta.ExperimenterGroup group)
- Specified by:
createGroup
in interfaceRoleProvider
-
createExperimenter
public long createExperimenter(ome.model.meta.Experimenter experimenter, ome.model.meta.ExperimenterGroup defaultGroup, ome.model.meta.ExperimenterGroup... otherGroups)
- Specified by:
createExperimenter
in interfaceRoleProvider
-
setDefaultGroup
public void setDefaultGroup(ome.model.meta.Experimenter user, ome.model.meta.ExperimenterGroup group)
- Specified by:
setDefaultGroup
in interfaceRoleProvider
-
setGroupOwner
public void setGroupOwner(ome.model.meta.Experimenter user, ome.model.meta.ExperimenterGroup group, boolean value)
- Specified by:
setGroupOwner
in interfaceRoleProvider
-
addGroups
public void addGroups(ome.model.meta.Experimenter user, ome.model.meta.ExperimenterGroup... groups)
- Specified by:
addGroups
in interfaceRoleProvider
-
removeGroups
public void removeGroups(ome.model.meta.Experimenter user, ome.model.meta.ExperimenterGroup... groups)
- Specified by:
removeGroups
in interfaceRoleProvider
-
isIgnoreCaseLookup
public boolean isIgnoreCaseLookup()
- Specified by:
isIgnoreCaseLookup
in interfaceRoleProvider
-
linkGroupAndUser
protected ome.model.meta.GroupExperimenterMap linkGroupAndUser(ome.model.meta.ExperimenterGroup group, ome.model.meta.Experimenter e, boolean owned)
-
copyUser
protected ome.model.meta.Experimenter copyUser(ome.model.meta.Experimenter e)
-
copyGroup
protected ome.model.meta.ExperimenterGroup copyGroup(ome.model.meta.ExperimenterGroup g)
-
-