Class SimpleRoleProvider

  • All Implemented Interfaces:
    RoleProvider

    public class SimpleRoleProvider
    extends java.lang.Object
    implements RoleProvider
    Implements RoleProvider. Note: All implementations were originally copied from AdminImpl for ticket:1226.
    Since:
    4.0
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • nameById

        public java.lang.String nameById​(long id)
        Specified by:
        nameById in interface RoleProvider
      • createGroup

        public long createGroup​(java.lang.String name,
                                ome.model.internal.Permissions perms,
                                boolean strict)
        Specified by:
        createGroup in interface RoleProvider
      • createGroup

        public long createGroup​(java.lang.String name,
                                ome.model.internal.Permissions perms,
                                boolean strict,
                                boolean isLdap)
        Specified by:
        createGroup in interface RoleProvider
      • createGroup

        public long createGroup​(ome.model.meta.ExperimenterGroup group)
        Specified by:
        createGroup in interface RoleProvider
      • createExperimenter

        public long createExperimenter​(ome.model.meta.Experimenter experimenter,
                                       ome.model.meta.ExperimenterGroup defaultGroup,
                                       ome.model.meta.ExperimenterGroup... otherGroups)
        Specified by:
        createExperimenter in interface RoleProvider
      • setDefaultGroup

        public void setDefaultGroup​(ome.model.meta.Experimenter user,
                                    ome.model.meta.ExperimenterGroup group)
        Specified by:
        setDefaultGroup in interface RoleProvider
      • setGroupOwner

        public void setGroupOwner​(ome.model.meta.Experimenter user,
                                  ome.model.meta.ExperimenterGroup group,
                                  boolean value)
        Specified by:
        setGroupOwner in interface RoleProvider
      • addGroups

        public void addGroups​(ome.model.meta.Experimenter user,
                              ome.model.meta.ExperimenterGroup... groups)
        Specified by:
        addGroups in interface RoleProvider
      • removeGroups

        public void removeGroups​(ome.model.meta.Experimenter user,
                                 ome.model.meta.ExperimenterGroup... groups)
        Specified by:
        removeGroups in interface RoleProvider
      • 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)