Search Results for

    Show / Hide Table of Contents

    Interface IDocumentRepository

    Namespace: Umbraco.Cms.Core.Persistence.Repositories
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IDocumentRepository : IContentRepository<int, IContent>

    Methods

    AddOrUpdatePermissions(ContentPermissionSet)

    Used to add/update a permission for a content item

    Declaration
    void AddOrUpdatePermissions(ContentPermissionSet permission)
    Parameters
    Type Name Description
    ContentPermissionSet permission

    AssignEntityPermission(IContent, Char, IEnumerable<Int32>)

    Assigns a single permission to the current content item for the specified user group ids

    Declaration
    void AssignEntityPermission(IContent entity, char permission, IEnumerable<int> groupIds)
    Parameters
    Type Name Description
    IContent entity
    System.Char permission
    System.Collections.Generic.IEnumerable<System.Int32> groupIds

    ClearSchedule(DateTime)

    Clears the publishing schedule for all entries having an a date before (lower than, or equal to) a specified date.

    Declaration
    void ClearSchedule(DateTime date)
    Parameters
    Type Name Description
    System.DateTime date

    ClearSchedule(DateTime, ContentScheduleAction)

    Declaration
    void ClearSchedule(DateTime date, ContentScheduleAction action)
    Parameters
    Type Name Description
    System.DateTime date
    ContentScheduleAction action

    CountPublished(String)

    Get the count of published items

    Declaration
    int CountPublished(string contentTypeAlias = null)
    Parameters
    Type Name Description
    System.String contentTypeAlias
    Returns
    Type Description
    System.Int32
    Remarks

    We require this on the repo because the IQuery{IContent} cannot supply the 'newest' parameter

    GetContentForExpiration(DateTime)

    Gets objects having an expiration date before (lower than, or equal to) a specified date.

    Declaration
    IEnumerable<IContent> GetContentForExpiration(DateTime date)
    Parameters
    Type Name Description
    System.DateTime date
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IContent>
    Remarks

    The content returned from this method may be culture variant, in which case the resulting should be queried for which culture(s) have been scheduled.

    GetContentForRelease(DateTime)

    Gets objects having a release date before (lower than, or equal to) a specified date.

    Declaration
    IEnumerable<IContent> GetContentForRelease(DateTime date)
    Parameters
    Type Name Description
    System.DateTime date
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IContent>
    Remarks

    The content returned from this method may be culture variant, in which case the resulting should be queried for which culture(s) have been scheduled.

    GetPermissionsForEntity(Int32)

    Gets the explicit list of permissions for the content item

    Declaration
    EntityPermissionCollection GetPermissionsForEntity(int entityId)
    Parameters
    Type Name Description
    System.Int32 entityId
    Returns
    Type Description
    EntityPermissionCollection

    HasContentForExpiration(DateTime)

    Declaration
    bool HasContentForExpiration(DateTime date)
    Parameters
    Type Name Description
    System.DateTime date
    Returns
    Type Description
    System.Boolean

    HasContentForRelease(DateTime)

    Declaration
    bool HasContentForRelease(DateTime date)
    Parameters
    Type Name Description
    System.DateTime date
    Returns
    Type Description
    System.Boolean

    IsPathPublished(IContent)

    Declaration
    bool IsPathPublished(IContent content)
    Parameters
    Type Name Description
    IContent content
    Returns
    Type Description
    System.Boolean

    RecycleBinSmells()

    Returns true if there is any content in the recycle bin

    Declaration
    bool RecycleBinSmells()
    Returns
    Type Description
    System.Boolean

    ReplaceContentPermissions(EntityPermissionSet)

    Used to bulk update the permissions set for a content item. This will replace all permissions assigned to an entity with a list of user id & permission pairs.

    Declaration
    void ReplaceContentPermissions(EntityPermissionSet permissionSet)
    Parameters
    Type Name Description
    EntityPermissionSet permissionSet
    In This Article
    • Methods
      • AddOrUpdatePermissions(ContentPermissionSet)
      • AssignEntityPermission(IContent, Char, IEnumerable<Int32>)
      • ClearSchedule(DateTime)
      • ClearSchedule(DateTime, ContentScheduleAction)
      • CountPublished(String)
      • GetContentForExpiration(DateTime)
      • GetContentForRelease(DateTime)
      • GetPermissionsForEntity(Int32)
      • HasContentForExpiration(DateTime)
      • HasContentForRelease(DateTime)
      • IsPathPublished(IContent)
      • RecycleBinSmells()
      • ReplaceContentPermissions(EntityPermissionSet)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX