Merge branch 'main' into v17/dev
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user