/// <summary>
        /// Returns true if OrgApacheSlingHcCoreImplServletHealthCheckExecutorServletProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheSlingHcCoreImplServletHealthCheckExecutorServletProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheSlingHcCoreImplServletHealthCheckExecutorServletProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ServletPath == other.ServletPath ||
                     ServletPath != null &&
                     ServletPath.Equals(other.ServletPath)
                     ) &&
                 (
                     Disabled == other.Disabled ||
                     Disabled != null &&
                     Disabled.Equals(other.Disabled)
                 ) &&
                 (
                     CorsAccessControlAllowOrigin == other.CorsAccessControlAllowOrigin ||
                     CorsAccessControlAllowOrigin != null &&
                     CorsAccessControlAllowOrigin.Equals(other.CorsAccessControlAllowOrigin)
                 ));
        }
Example #2
0
 protected bool Equals(ReplicationDestination other)
 {
     return(string.Equals(Username, other.Username) && string.Equals(Password, other.Password) &&
            string.Equals(Domain, other.Domain) && string.Equals(ApiKey, other.ApiKey) &&
            string.Equals(Database, other.Database) &&
            TransitiveReplicationBehavior == other.TransitiveReplicationBehavior &&
            IgnoredClient.Equals(other.IgnoredClient) && Disabled.Equals(other.Disabled) &&
            string.Equals(ClientVisibleUrl, other.ClientVisibleUrl));
 }
Example #3
0
 public bool IsEqualTo(ReplicationDestination other)
 {
     return(string.Equals(Username, other.Username) && string.Equals(Password, other.Password) &&
            string.Equals(Domain, other.Domain) && string.Equals(ApiKey, other.ApiKey) &&
            string.Equals(Database, other.Database, StringComparison.InvariantCultureIgnoreCase) &&
            TransitiveReplicationBehavior == other.TransitiveReplicationBehavior &&
            IgnoredClient.Equals(other.IgnoredClient) && Disabled.Equals(other.Disabled) &&
            ((string.Equals(Url, other.Url, StringComparison.InvariantCultureIgnoreCase) && string.IsNullOrWhiteSpace(ClientVisibleUrl)) ||
             (!string.IsNullOrWhiteSpace(ClientVisibleUrl) && string.Equals(ClientVisibleUrl, other.ClientVisibleUrl, StringComparison.InvariantCultureIgnoreCase))));
 }
Example #4
0
        public bool Equals(PathNode other)
        {
            if (other == null)
            {
                return(false);
            }

            return(Disabled.Equals(other.Disabled) &&
                   BetweenLevels.Equals(other.BetweenLevels));
        }
 public bool IsEqualTo(ReplicationDestination other)
 {
     return(string.Equals(Username, other.Username) && string.Equals(Password, other.Password) &&
            string.Equals(Domain, other.Domain) && string.Equals(ApiKey, other.ApiKey) &&
            string.Equals(Database, other.Database, StringComparison.OrdinalIgnoreCase) &&
            TransitiveReplicationBehavior == other.TransitiveReplicationBehavior &&
            IgnoredClient.Equals(other.IgnoredClient) && Disabled.Equals(other.Disabled) &&
            ((string.Equals(Url, other.Url, StringComparison.OrdinalIgnoreCase) && string.IsNullOrWhiteSpace(ClientVisibleUrl)) ||
             (!string.IsNullOrWhiteSpace(ClientVisibleUrl) && string.Equals(ClientVisibleUrl, other.ClientVisibleUrl, StringComparison.OrdinalIgnoreCase))) &&
            Extensions.DictionaryExtensions.ContentEquals(SpecifiedCollections, other.SpecifiedCollections));
 }
Example #6
0
        protected bool Equals(SqlReplicationConfigModel other)
        {
            var baseEquals = string.Equals(Name, other.Name) && string.Equals(Script, other.Script) &&
                             string.Equals(FactoryName, other.FactoryName) && string.Equals(ConnectionString, other.ConnectionString) &&
                             string.Equals(ConnectionStringName, other.ConnectionStringName) &&
                             string.Equals(ConnectionStringSettingName, other.ConnectionStringSettingName) && string.Equals(Id, other.Id) &&
                             string.Equals(RavenEntityName, other.RavenEntityName) && Disabled.Equals(other.Disabled) &&
                             Equals(SqlReplicationTables.Count, other.SqlReplicationTables.Count);

            if (baseEquals == false)
            {
                return(false);
            }

            for (int i = 0; i < SqlReplicationTables.Count; i++)
            {
                if (SqlReplicationTables[i].Equals(other.SqlReplicationTables[i]) == false)
                {
                    return(false);
                }
            }

            return(true);
        }
        /// <summary>
        /// Returns true if OrgApacheJackrabbitOakPluginsIndexLuceneLuceneIndexProviderServProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheJackrabbitOakPluginsIndexLuceneLuceneIndexProviderServProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheJackrabbitOakPluginsIndexLuceneLuceneIndexProviderServProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Disabled == other.Disabled ||
                     Disabled != null &&
                     Disabled.Equals(other.Disabled)
                     ) &&
                 (
                     Debug == other.Debug ||
                     Debug != null &&
                     Debug.Equals(other.Debug)
                 ) &&
                 (
                     LocalIndexDir == other.LocalIndexDir ||
                     LocalIndexDir != null &&
                     LocalIndexDir.Equals(other.LocalIndexDir)
                 ) &&
                 (
                     EnableOpenIndexAsync == other.EnableOpenIndexAsync ||
                     EnableOpenIndexAsync != null &&
                     EnableOpenIndexAsync.Equals(other.EnableOpenIndexAsync)
                 ) &&
                 (
                     ThreadPoolSize == other.ThreadPoolSize ||
                     ThreadPoolSize != null &&
                     ThreadPoolSize.Equals(other.ThreadPoolSize)
                 ) &&
                 (
                     PrefetchIndexFiles == other.PrefetchIndexFiles ||
                     PrefetchIndexFiles != null &&
                     PrefetchIndexFiles.Equals(other.PrefetchIndexFiles)
                 ) &&
                 (
                     ExtractedTextCacheSizeInMB == other.ExtractedTextCacheSizeInMB ||
                     ExtractedTextCacheSizeInMB != null &&
                     ExtractedTextCacheSizeInMB.Equals(other.ExtractedTextCacheSizeInMB)
                 ) &&
                 (
                     ExtractedTextCacheExpiryInSecs == other.ExtractedTextCacheExpiryInSecs ||
                     ExtractedTextCacheExpiryInSecs != null &&
                     ExtractedTextCacheExpiryInSecs.Equals(other.ExtractedTextCacheExpiryInSecs)
                 ) &&
                 (
                     AlwaysUsePreExtractedCache == other.AlwaysUsePreExtractedCache ||
                     AlwaysUsePreExtractedCache != null &&
                     AlwaysUsePreExtractedCache.Equals(other.AlwaysUsePreExtractedCache)
                 ) &&
                 (
                     BooleanClauseLimit == other.BooleanClauseLimit ||
                     BooleanClauseLimit != null &&
                     BooleanClauseLimit.Equals(other.BooleanClauseLimit)
                 ) &&
                 (
                     EnableHybridIndexing == other.EnableHybridIndexing ||
                     EnableHybridIndexing != null &&
                     EnableHybridIndexing.Equals(other.EnableHybridIndexing)
                 ) &&
                 (
                     HybridQueueSize == other.HybridQueueSize ||
                     HybridQueueSize != null &&
                     HybridQueueSize.Equals(other.HybridQueueSize)
                 ) &&
                 (
                     DisableStoredIndexDefinition == other.DisableStoredIndexDefinition ||
                     DisableStoredIndexDefinition != null &&
                     DisableStoredIndexDefinition.Equals(other.DisableStoredIndexDefinition)
                 ) &&
                 (
                     DeletedBlobsCollectionEnabled == other.DeletedBlobsCollectionEnabled ||
                     DeletedBlobsCollectionEnabled != null &&
                     DeletedBlobsCollectionEnabled.Equals(other.DeletedBlobsCollectionEnabled)
                 ) &&
                 (
                     PropIndexCleanerIntervalInSecs == other.PropIndexCleanerIntervalInSecs ||
                     PropIndexCleanerIntervalInSecs != null &&
                     PropIndexCleanerIntervalInSecs.Equals(other.PropIndexCleanerIntervalInSecs)
                 ) &&
                 (
                     EnableSingleBlobIndexFiles == other.EnableSingleBlobIndexFiles ||
                     EnableSingleBlobIndexFiles != null &&
                     EnableSingleBlobIndexFiles.Equals(other.EnableSingleBlobIndexFiles)
                 ));
        }
Example #8
0
        /// <summary>
        /// Returns true if DesignerBlockBean instances are equal
        /// </summary>
        /// <param name="input">Instance of DesignerBlockBean to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(DesignerBlockBean input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Type == input.Type ||
                     (Type != null &&
                      Type.Equals(input.Type))
                     ) &&
                 (
                     Inline == input.Inline ||
                     (Inline != null &&
                      Inline.Equals(input.Inline))
                 ) &&
                 (
                     Moveable == input.Moveable ||
                     (Moveable != null &&
                      Moveable.Equals(input.Moveable))
                 ) &&
                 (
                     Disabled == input.Disabled ||
                     (Disabled != null &&
                      Disabled.Equals(input.Disabled))
                 ) &&
                 (
                     Deletable == input.Deletable ||
                     (Deletable != null &&
                      Deletable.Equals(input.Deletable))
                 ) &&
                 (
                     Editable == input.Editable ||
                     (Editable != null &&
                      Editable.Equals(input.Editable))
                 ) &&
                 (
                     Comment == input.Comment ||
                     (Comment != null &&
                      Comment.Equals(input.Comment))
                 ) &&
                 (
                     Mutation == input.Mutation ||
                     Mutation != null &&
                     Mutation.SequenceEqual(input.Mutation)
                 ) &&
                 (
                     Children == input.Children ||
                     Children != null &&
                     Children.SequenceEqual(input.Children)
                 ) &&
                 (
                     Fields == input.Fields ||
                     Fields != null &&
                     Fields.SequenceEqual(input.Fields)
                 ) &&
                 (
                     Next == input.Next ||
                     (Next != null &&
                      Next.Equals(input.Next))
                 ));
        }