C# Class BetterCms.Module.Pages.Services.DefaultTagService

Helper service for handling page tags
Inheritance: ITagService
Datei anzeigen Open project: devbridge/BetterCMS

Public Methods

Method Description
DefaultTagService ( IUnitOfWork unitOfWork, IRepository repository, ISecurityService securityService ) : System

Initializes a new instance of the DefaultTagService class.

GetPageTagNames ( System.Guid pageId ) : IEnumerable

Gets the future query for the page tag names.

GetSitemapTagNames ( System.Guid sitemapId ) : IEnumerable

Gets the sitemap tag names.

SaveMediaTags ( Media media, IList tags, IList &newTags ) : void

Saves the media tags.

SavePageTags ( BetterCms.Module.Pages.Models.PageProperties page, IList tags, IList &newCreatedTags ) : void

Saves the page tags.

SaveTags ( Sitemap sitemap, IList tags, IList &newCreatedTags ) : void

Saves the tags.

Private Methods

Method Description
UpdateModifiedInformation ( Entity entity ) : void
UpdateModifiedInformation ( MediaTag mediaTag ) : void
UpdateModifiedInformation ( PageTag mediaTag ) : void
UpdateModifiedInformation ( SitemapTag mediaTag ) : void

Method Details

DefaultTagService() public method

Initializes a new instance of the DefaultTagService class.
public DefaultTagService ( IUnitOfWork unitOfWork, IRepository repository, ISecurityService securityService ) : System
unitOfWork IUnitOfWork The unit of work.
repository IRepository The repository.
securityService ISecurityService Security service get information about authorization.
return System

GetPageTagNames() public method

Gets the future query for the page tag names.
public GetPageTagNames ( System.Guid pageId ) : IEnumerable
pageId System.Guid The page id.
return IEnumerable

GetSitemapTagNames() public method

Gets the sitemap tag names.
public GetSitemapTagNames ( System.Guid sitemapId ) : IEnumerable
sitemapId System.Guid The sitemap identifier.
return IEnumerable

SaveMediaTags() public method

Saves the media tags.
public SaveMediaTags ( Media media, IList tags, IList &newTags ) : void
media Media The media.
tags IList The tags.
newTags IList The new tags.
return void

SavePageTags() public method

Saves the page tags.
public SavePageTags ( BetterCms.Module.Pages.Models.PageProperties page, IList tags, IList &newCreatedTags ) : void
page BetterCms.Module.Pages.Models.PageProperties The page.
tags IList The tags.
newCreatedTags IList The new created tags.
return void

SaveTags() public method

Saves the tags.
public SaveTags ( Sitemap sitemap, IList tags, IList &newCreatedTags ) : void
sitemap Sitemap The sitemap.
tags IList The tags.
newCreatedTags IList The new created tags.
return void