Class SampleGroupProvider

  • All Implemented Interfaces:
    GroupProvider

    public class SampleGroupProvider
    extends Object
    implements GroupProvider

    Sample of a GroupProvider. Shows how to handle compound ids (connected with a '+').

    To use, set an authzGroup's external id to one of the following:

    • sakai.access
    • sakai.maintain
    • sakai.access+sakai.maintain

    You should also have a user directory provider that recognizes the users:

    • user1
    • user
    • user3
    The SampleUserDirectoryProvider does this.

    • Field Detail

      • m_xFile

        protected String m_xFile
        Configuration: the full file path to the external user grants file (optional).
      • m_courseExternalId

        protected String m_courseExternalId
        The external id for the "course" group.
      • m_courseStudents

        protected int m_courseStudents
        how many students in the "course" group.
      • m_usersa

        protected HashSet<String> m_usersa
        A collection of user ids.
    • Constructor Detail

      • SampleGroupProvider

        public SampleGroupProvider()
        Construct.