Пример #1
0
 /// <summary>
 /// Sets the list of content enrichers to be used in the next request.
 /// </summary>
 /// <remarks>For more details about document enrichers, check
 /// <a href="https://doc.nuxeo.com/display/NXDOC/Content+Enricher">Nuxeo Documentation Center</a>.
 /// </remarks>
 /// <param name="enrichers">The list of content enricher names.</param>
 /// <returns>The current <see cref="Document"/> instance.</returns>
 public Document SetContentEnrichers(string[] enrichers)
 {
     ContentEnrichers?.Clear();
     ContentEnrichers = ContentEnrichers ?? new List <string>();
     foreach (string enricher in enrichers)
     {
         ContentEnrichers.Add(enricher);
     }
     return(this);
 }
Пример #2
0
 /// <summary>
 /// Removes a content enricher, which will no longer be used in the next request.
 /// </summary>
 /// <remarks>For more details about document enrichers, check
 /// <a href="https://doc.nuxeo.com/display/NXDOC/Content+Enricher">Nuxeo Documentation Center</a>.
 /// </remarks>
 /// <param name="enricher"></param>
 /// <returns>The current <see cref="Document"/> instance.</returns>
 public Document RemoveContentEnricher(string enricher)
 {
     ContentEnrichers.Remove(enricher);
     return(this);
 }
Пример #3
0
 /// <summary>
 /// Adds a content enricher to be used in the next request.
 /// </summary>
 /// <remarks>For more details about document enrichers, check
 /// <a href="https://doc.nuxeo.com/display/NXDOC/Content+Enricher">Nuxeo Documentation Center</a>.
 /// </remarks>
 /// <param name="enricher">The content enricher's name.</param>
 /// <returns>The current <see cref="Document"/> instance.</returns>
 public Document AddContentEnricher(string enricher)
 {
     ContentEnrichers = ContentEnrichers ?? new List <string>();
     ContentEnrichers.Add(enricher);
     return(this);
 }