Search in sources :

Example 6 with DeleteContentParams

use of com.enonic.xp.content.DeleteContentParams in project xp by enonic.

the class ContentServiceImplTest_publish method doDelete.

private void doDelete(final ContentPath f1Path, boolean instantly) {
    final DeleteContentParams deleteContentParams = DeleteContentParams.create().contentPath(f1Path).deleteOnline(instantly).build();
    this.contentService.deleteWithoutFetch(deleteContentParams);
}
Also used : DeleteContentParams(com.enonic.xp.content.DeleteContentParams)

Aggregations

DeleteContentParams (com.enonic.xp.content.DeleteContentParams)6 Content (com.enonic.xp.content.Content)4 PropertyTree (com.enonic.xp.data.PropertyTree)4 Test (org.junit.jupiter.api.Test)4 CreateContentParams (com.enonic.xp.content.CreateContentParams)3 DeleteContentsResult (com.enonic.xp.content.DeleteContentsResult)3 ContentIds (com.enonic.xp.content.ContentIds)2 Contents (com.enonic.xp.content.Contents)2 GetContentByIdsParams (com.enonic.xp.content.GetContentByIdsParams)2 LogAuditLogParams (com.enonic.xp.audit.LogAuditLogParams)1 ContentId (com.enonic.xp.content.ContentId)1 PublishContentResult (com.enonic.xp.content.PublishContentResult)1 PushContentParams (com.enonic.xp.content.PushContentParams)1 PropertySet (com.enonic.xp.data.PropertySet)1