1 / 10

Grouper Training – Admin – Subject API – Part 4

Grouper Training – Admin – Subject API – Part 4. Shilen Patel Duke University. This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License. Contents. Member sorting and searching Building your own source adapter Subject filtering and attribute decorator. 2.

aquarius
Download Presentation

Grouper Training – Admin – Subject API – Part 4

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Grouper Training – Admin – Subject API – Part 4 Shilen Patel Duke University This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.

  2. Contents Member sorting and searching Building your own source adapter Subject filtering and attribute decorator 2

  3. Member Sorting and Searching grouper_members table contains additional columns to allow searching and sorting without resolving all subjects. Five columns used for sorting and five columns used for searching. Different search columns exist since each one may contain different data based on privacy. Different sort columns exist to allow sorting using different attributes. Columns updated when subject is resolved by id or identifier or when running USDU (for people). 3

  4. Member Sorting and Searching (continued) Configure access in grouper.properties. By default, all users can use all columns. For example: security.member.sort.string0.allowOnlyGroup = etc:someGroup security.member.sort.string1.wheelOnly = true security.member.search.string0.allowOnlyGroup = etc:someGroup Specify default sorting and searching. member.search.defaultIndexOrder=0 member.sort.defaultIndexOrder=0 4

  5. Member Sorting and Searching (continued) Example of how to populate columns: sort0 = Sort by namesort1 = Sort by last namesort2 = Sort by login idsearch0 = default search for privileged userssearch1 = default search for all other users 5

  6. Building your own source adapter Implement edu.internet2.middleware.subject.Source or extend edu.internet2.middleware.subject.provider.BaseSourceAdapter Implement edu.internet2.middleware.subject.Subject or just use or extend edu.internet2.middleware.subject.provider.SubjectImpl 6

  7. Subject filtering and attribute decorator Implement edu.internet2.middleware.grouper.subj.SubjectCustomizer or extend edu.internet2.middleware.grouper.subj.SubjectCustomizerBase https://spaces.internet2.edu/display/Grouper/Grouper+subject+filter+and+attribute+decorator Configure in grouper.properties subjects.customizer.className = Subject Filtering Allows you to secure attribute release. Edit, remove, or add subject attributes when subjects are resolved. Extend filterSubjects() method. public Set<Subject> filterSubjects(GrouperSessiongrouperSession, Set<Subject> subjects, String findSubjectsInStemName); 7

  8. Subject filtering and attribute decorator (continued) Attribute decorator Mainly used by Grouper Web Services. Allows clients to make attribute requests that are not configured in the Subject API. Your method can verify that the caller is allowed to see the data, run queries to retrieve the data, and add the attributes to the subject(s). Extend decorateSubjects() method. public Set<Subject> decorateSubjects(GrouperSessiongrouperSession, Set<Subject> subjects, Collection<String> attributeNamesRequested); 8

  9. Quiz • Click on the quiz link in the video description to reinforce your knowledge of this topic 9

  10. Thanks! • Further information: • Infosheets, mailing lists, wiki, downloads, etc.:www.internet2.edu/grouper • Grouper demo server:grouperdemo.internet2.edu/ • Grouper Online Training Home:spaces.internet2.edu/x/IIGfAQ This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.

More Related