Class DefaultSyncConfig.Authorizable

    • Constructor Detail

      • Authorizable

        public Authorizable()
    • Method Detail

      • getExpirationTime

        public long getExpirationTime()
        Returns the duration in milliseconds until a synced authorizable gets expired. An expired authorizable will be re-synced.
        Returns:
        the expiration time in milliseconds.
      • isApplyRFC7613UsernameCaseMapped

        public boolean isApplyRFC7613UsernameCaseMapped()
        Returns true if new AuthorizableIDs will be normalized according to the UsernameCaseMapped profile defined in RFC7613
        Returns:
        true if new AuthorizableIDs will be normalized.
      • setApplyRFC7613UsernameCaseMapped

        public DefaultSyncConfig.Authorizable setApplyRFC7613UsernameCaseMapped​(boolean applyRFC7613UsernameCaseMapped)
        Set to true if new AuthorizableIDs shall be normalized according to the UsernameCaseMapped profile defined in RFC7613.
        Parameters:
        applyRFC7613UsernameCaseMapped - true if the UsernameCaseMapped profile shall be used for normalization.
        Returns:
        this
        See Also:
        isApplyRFC7613UsernameCaseMapped()
      • setAutoMembership

        @NotNull
        public @NotNull DefaultSyncConfig.Authorizable setAutoMembership​(@NotNull
                                                                         @NotNull java.lang.String... autoMembership)
        Sets the auto membership. Note that the passed group names will be trimmed and empty string values will be ignored (along with null values).
        Parameters:
        autoMembership - the membership
        Returns:
        this
        See Also:
        getAutoMembership()
      • getPropertyMapping

        @NotNull
        public @NotNull java.util.Map<java.lang.String,​java.lang.String> getPropertyMapping()
        Defines the mapping of internal property names from external values. Only the external properties defined as keys of this map are synced with the mapped internal properties. note that the property names can be relative paths. the intermediate nodes will be created accordingly. Example:
        
             {
                 "rep:fullname": "cn",
                 "country", "c",
                 "profile/email": "mail",
                 "profile/givenName": "cn"
             }
         
        The implicit properties like userid, groupname, password must not be mapped.
        Returns:
        the property mapping where the keys are the local property names and the values the external ones.
      • setPropertyMapping

        @NotNull
        public @NotNull DefaultSyncConfig.Authorizable setPropertyMapping​(@NotNull
                                                                          @NotNull java.util.Map<java.lang.String,​java.lang.String> propertyMapping)
        Sets the property mapping.
        Parameters:
        propertyMapping - the mapping
        Returns:
        this
        See Also:
        getPropertyMapping()
      • getPathPrefix

        @NotNull
        public @NotNull java.lang.String getPathPrefix()
        Defines the authorizables intermediate path prefix that is used when creating new authorizables. This prefix is always prepended to the path provided by the ExternalIdentity.
        Returns:
        the intermediate path prefix.
      • setPathPrefix

        @NotNull
        public @NotNull DefaultSyncConfig.Authorizable setPathPrefix​(@NotNull
                                                                     @NotNull java.lang.String pathPrefix)
        Sets the path prefix.
        Parameters:
        pathPrefix - the path prefix.
        Returns:
        this
        See Also:
        getPathPrefix()