Class AbstractProfileConfiguration

    • Field Detail

      • DEFAULT_DISALLOWED_FEATURES

        @Nonnull
        public static final Integer DEFAULT_DISALLOWED_FEATURES
        Default value for disallowedFeatures property.
      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
      • disallowedFeaturesLookupStrategy

        @Nonnull
        private Function<ProfileRequestContext,​Integer> disallowedFeaturesLookupStrategy
        Lookup function to return a bitmask of request features to disallow.
    • Constructor Detail

      • AbstractProfileConfiguration

        public AbstractProfileConfiguration​(@Nonnull @NotEmpty @ParameterName(name="id")
                                            String id)
        Constructor.
        Parameters:
        id - ID of the communication profile, never null or empty
    • Method Detail

      • setSecurityConfiguration

        public void setSecurityConfiguration​(@Nullable
                                             SecurityConfiguration configuration)
        Sets the security configuration for this profile.
        Parameters:
        configuration - security configuration for this profile
      • setSecurityConfigurationLookupStrategy

        public void setSecurityConfigurationLookupStrategy​(@Nonnull
                                                           Function<ProfileRequestContext,​SecurityConfiguration> strategy)
        Set a lookup strategy for the security configuration.
        Parameters:
        strategy - lookup strategy
        Since:
        3.3.0
      • setInboundInterceptorFlows

        public void setInboundInterceptorFlows​(@Nullable @NonnullElements
                                               Collection<String> flows)
        Set the ordered collection of inbound interceptor flows to enable.
        Parameters:
        flows - flow identifiers to enable
      • setInboundFlowsLookupStrategy

        @Deprecated(since="4.2.0",
                    forRemoval=true)
        public void setInboundFlowsLookupStrategy​(@Nonnull
                                                  Function<ProfileRequestContext,​List<String>> strategy)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Set a lookup strategy for the inbound interceptor flows to enable.
        Parameters:
        strategy - lookup strategy
        Since:
        3.3.0
      • setInboundInterceptorFlowsLookupStrategy

        public void setInboundInterceptorFlowsLookupStrategy​(@Nonnull
                                                             Function<ProfileRequestContext,​List<String>> strategy)
        Set a lookup strategy for the inbound interceptor flows to enable.
        Parameters:
        strategy - lookup strategy
        Since:
        4.2.0
      • setOutboundInterceptorFlows

        public void setOutboundInterceptorFlows​(@Nullable @NonnullElements
                                                Collection<String> flows)
        Set the ordered collection of outbound interceptor flows to enable.
        Parameters:
        flows - flow identifiers to enable
      • setOutboundFlowsLookupStrategy

        @Deprecated(since="4.2.0",
                    forRemoval=true)
        public void setOutboundFlowsLookupStrategy​(@Nonnull
                                                   Function<ProfileRequestContext,​List<String>> strategy)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Set a lookup strategy for the outbound interceptor flows to enable.
        Parameters:
        strategy - lookup strategy
        Since:
        3.3.0
      • setOutboundInterceptorFlowsLookupStrategy

        public void setOutboundInterceptorFlowsLookupStrategy​(@Nonnull
                                                              Function<ProfileRequestContext,​List<String>> strategy)
        Set a lookup strategy for the outbound interceptor flows to enable.
        Parameters:
        strategy - lookup strategy
        Since:
        4.2.0
      • isFeatureDisallowed

        public boolean isFeatureDisallowed​(@Nullable
                                           ProfileRequestContext profileRequestContext,
                                           int feature)
        Return true iff the input feature constant is disallowed.
        Parameters:
        profileRequestContext - current profile request context
        feature - a bit constant
        Returns:
        true iff the input feature constant is disallowed
        Since:
        3.3.0
      • getDisallowedFeatures

        public int getDisallowedFeatures​(@Nullable
                                         ProfileRequestContext profileRequestContext)
        Get a bitmask of disallowed features to block.

        Individual profiles define their own feature constants.

        Parameters:
        profileRequestContext - current profile request context
        Returns:
        bitmask of features to block
        Since:
        3.3.0
      • setDisallowedFeatures

        public void setDisallowedFeatures​(int mask)
        Set a bitmask of disallowed features to block.
        Parameters:
        mask - a bitmask of features to block
        Since:
        3.3.0
      • setDisallowedFeaturesLookupStrategy

        public void setDisallowedFeaturesLookupStrategy​(@Nonnull
                                                        Function<ProfileRequestContext,​Integer> strategy)
        Set a lookup strategy for the bitmask of disallowed features to block.
        Parameters:
        strategy - lookup strategy
        Since:
        3.3.0
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object