Merge branch 'main' into v17/dev

This commit is contained in:
Andy Butland
2025-08-20 11:57:01 +01:00
137 changed files with 4637 additions and 372 deletions

View File

@@ -1015,6 +1015,23 @@ public class ContentService : RepositoryService, IContentService
/// <returns>True if the content has any children otherwise False</returns>
public bool HasChildren(int id) => CountChildren(id) > 0;
/// <inheritdoc/>
public IEnumerable<Guid> GetScheduledContentKeys(IEnumerable<Guid> keys)
{
Guid[] idsA = keys.ToArray();
if (idsA.Length == 0)
{
return Enumerable.Empty<Guid>();
}
using (ICoreScope scope = ScopeProvider.CreateCoreScope(autoComplete: true))
{
scope.ReadLock(Constants.Locks.ContentTree);
return _documentRepository.GetScheduledContentKeys(idsA);
}
}
/// <summary>
/// Checks if the passed in <see cref="IContent" /> can be published based on the ancestors publish state.
/// </summary>