Implements U4-943 to the extent its currently possible.

Refactoring publishing methods in the ContentService.
Adding tests for the QueryBuilder.
This commit is contained in:
sitereactor
2012-10-29 14:28:16 -01:00
parent c20072c01d
commit 0c4c429b68
20 changed files with 490 additions and 128 deletions

View File

@@ -52,5 +52,18 @@ namespace Umbraco.Core.Models
/// <param name="contentType">New ContentType for this content</param>
/// <param name="clearProperties">Boolean indicating whether to clear PropertyTypes upon change</param>
void ChangeContentType(IContentType contentType, bool clearProperties);
/// <summary>
/// Changes the Published state of the content object
/// </summary>
/// <param name="isPublished">Boolean indicating whether content is published (true) or unpublished (false)</param>
void ChangePublishedState(bool isPublished);
/// <summary>
/// Changes the Trashed state of the content object
/// </summary>
/// <param name="isTrashed">Boolean indicating whether content is trashed (true) or not trashed (false)</param>
/// <param name="parentId"> </param>
void ChangeTrashedState(bool isTrashed, int parentId = -1);
}
}