U4-5264 - Add Count methods to IContentService, IMediaService, etc...

Created by Shannon Deminick 22 Jul 2014, 15:22:47 Updated by Shannon Deminick 05 Aug 2014, 18:33:30

For cases where people want to know how much content, media, etc... there are in the db. Currently to do that would require some aweful api calls that would be really CPU / DB heavy

Comments

Shannon Deminick 05 Aug 2014, 17:02:18

I think these methods will suffice for both content and media:


Shannon Deminick 05 Aug 2014, 17:02:26

    int Count(string contentTypeAlias = null);
    int CountChildren(int parentId, string contentTypeAlias = null);
    int CountDescendants(int parentId, string contentTypeAlias = null);


Shannon Deminick 05 Aug 2014, 17:02:33

Will add some for members too.


Priority: Normal

Type: Feature (request)

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 7.1.5, 6.2.2

Sprint:

Story Points:

Cycle: