Class PairwiseIdDataConnector

    • Constructor Detail

      • PairwiseIdDataConnector

        public PairwiseIdDataConnector()
    • Method Detail

      • getSourceAttributeInformation

        @Nullable
        @NonnullAfterInit
        public String getSourceAttributeInformation()
        Get the attribute ID whose first value is being used when producing the pairwise ID.
        Returns:
        source attribute ID
      • getGeneratedAttributeId

        @NonnullAfterInit
        public String getGeneratedAttributeId()
        Get the ID of the attribute generated by this connector.
        Returns:
        ID of the attribute generated by this connector
      • setGeneratedAttributeId

        public void setGeneratedAttributeId​(@Nullable
                                            String newAttributeId)
        Set the ID of the attribute generated by this connector.
        Parameters:
        newAttributeId - what to set.
      • setPairwiseIdStore

        public void setPairwiseIdStore​(@Nonnull
                                       PairwiseIdStore store)
        Set the underlying pairwise ID store.
        Parameters:
        store - ID store
      • resolveSourceAttribute

        @Nullable
        protected String resolveSourceAttribute​(@Nonnull
                                                AttributeResolverWorkContext workContext)
        Helper function to locate the source Attribute in the dependencies.
        Parameters:
        workContext - the context to look in
        Returns:
        the value, or null in any of the failure cases.
      • encodeAsAttribute

        @Nullable
        protected Map<String,​IdPAttribute> encodeAsAttribute​(@Nullable
                                                                   String value)
        Encode the provided string.
        Parameters:
        value - the value to encode or null if that failed
        Returns:
        null or the attribute.