Class SubjectCustomizerBase
java.lang.Object
edu.internet2.middleware.grouper.subj.SubjectCustomizerBase
- All Implemented Interfaces:
SubjectCustomizer
- Direct Known Subclasses:
SubjectCustomizerForDecoratorExtraAttributes,SubjectCustomizerForDecoratorTestingCollabGroup,SubjectCustomizerForDecoratorTestingHideStudentData,SubjectCustomizerForDecoratorUiDisplay
extend this to do a subject customizer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecorateSubjects(GrouperSession grouperSession, Set<Subject> subjects, Collection<String> attributeNamesRequested) decorate subjects based on attributes requestedfilterSubjects(GrouperSession grouperSession, Set<Subject> subjects, String findSubjectsInStemName) you can edit the subjects (or replace), but you shouldnt remove them
-
Constructor Details
-
SubjectCustomizerBase
public SubjectCustomizerBase()
-
-
Method Details
-
decorateSubjects
public Set<Subject> decorateSubjects(GrouperSession grouperSession, Set<Subject> subjects, Collection<String> attributeNamesRequested) Description copied from interface:SubjectCustomizerdecorate subjects based on attributes requested- Specified by:
decorateSubjectsin interfaceSubjectCustomizer- Returns:
- the subjects if same set, or make a new set
- See Also:
-
SubjectCustomizer#decorateSubjects(GrouperSession, Collection, Collection)
-
filterSubjects
public Set<Subject> filterSubjects(GrouperSession grouperSession, Set<Subject> subjects, String findSubjectsInStemName) Description copied from interface:SubjectCustomizeryou can edit the subjects (or replace), but you shouldnt remove them- Specified by:
filterSubjectsin interfaceSubjectCustomizerfindSubjectsInStemName- if this is a findSubjectsInStem call, this is the stem name. This is useful to filter when searching for subjects to add to a certain group- Returns:
- the subjects if same set, or make a new set
- See Also:
-
SubjectCustomizer#filterSubjects(GrouperSession, Collection, String)
-