Class IsMemberOfVirtualAttributeProvider


  • public class IsMemberOfVirtualAttributeProvider
    extends VirtualAttributeProvider<IsMemberOfVirtualAttributeCfg>
    This class implements a virtual attribute provider that is meant to serve the isMemberOf operational attribute. This attribute will be used to provide a list of all groups in which the specified user is a member.
    • Constructor Detail

      • IsMemberOfVirtualAttributeProvider

        public IsMemberOfVirtualAttributeProvider()
    • Method Detail

      • getAttribute

        public Attribute getAttribute​(Entry entry,
                                      AttributeDescription attributeDescription)
        Description copied from class: VirtualAttributeProvider
        Generates an unmodifiable attribute with the values for the provided entry.
        Specified by:
        getAttribute in class VirtualAttributeProvider<IsMemberOfVirtualAttributeCfg>
        Parameters:
        entry - The entry for which the values are to be generated.
        attributeDescription - the attribute description corresponding to this virtual attribute
        Returns:
        The unmodifiable attribute with the values generated for the provided entry. It may be empty, but it must not be null.
      • isSearchable

        public boolean isSearchable​(AttributeDescription attributeDescription,
                                    SearchOperation searchOperation)
        Indicates whether this attribute may be included in search filters as part of the criteria for locating entries.. This virtual attribute will support search operations only if one of the following is true about the search filter:
        • It is an equality filter targeting the associated attribute type.
        • It is an AND filter in which at least one of the components is an equality filter targeting the associated attribute type.
        Overrides:
        isSearchable in class VirtualAttributeProvider<IsMemberOfVirtualAttributeCfg>
        Parameters:
        attributeDescription - the attribute description corresponding to this virtual attribute
        searchOperation - The search operation for which to make the determination.
        Returns:
        true if this attribute may be included in search filters, or false if not.