Table of Contents

Interface IParagraphRepository

Namespace
Dynamicweb.Content.Data
Assembly
Dynamicweb.dll
The IParagraphRepository interface defines persistance operations for the Paragraph Aggregate
[Obsolete("Use ParagraphRepository instead.")]
public interface IParagraphRepository

Methods

Delete(int)

Deletes the Paragraph with the specified id
void Delete(int paragraphId)

Parameters

paragraphId int
The id of the Paragraph to delete

DeleteAllPageParagraphs(int)

Deletes all paragraphs associated with the specified page
IEnumerable<int> DeleteAllPageParagraphs(int pageId)

Parameters

pageId int
The id of the page for which to delete all associated paragraphs

Returns

IEnumerable<int>
A list of paragraph ids for all deleted paragraphs

DeleteAllParagraphs(int)

Deletes all paragraphs associated with the specified area
IEnumerable<int> DeleteAllParagraphs(int areaId)

Parameters

areaId int
The id of the area for which to delete all associated paragraphs

Returns

IEnumerable<int>
A list of paragraph ids for all deleted paragraphs

Get(int)

Gets the Paragraph with the specified id
Paragraph Get(int id)

Parameters

id int
The id of the Paragraph to get

Returns

Paragraph
The Paragraph with the specified id

GetLatestModifiedParagraphs(int)

Gets latest modified paragraph
IEnumerable<Paragraph> GetLatestModifiedParagraphs(int count)

Parameters

count int
Max count of paragraphs to returns

Returns

IEnumerable<Paragraph>

GetParagraphs()

Gets all the paragraphs in the systen
IEnumerable<Paragraph> GetParagraphs()

Returns

IEnumerable<Paragraph>
A ParagraphCollection with all the paragraphs registred in the systen

GetParagraphs(IEnumerable<int>)

Gets paragraphs by IDs.
IDictionary<int, Paragraph> GetParagraphs(IEnumerable<int> ids)

Parameters

ids IEnumerable<int>
The paragraph IDs.

Returns

IDictionary<int, Paragraph>
Found paragraphs.

RestoreParagraph(Paragraph)

Re-inserts the specified page
Paragraph RestoreParagraph(Paragraph paragraph)

Parameters

paragraph Paragraph
The paragraph to reinsert into persistence

Returns

Paragraph
The newly inserted paragraph

Save(Paragraph)

Saves the Paragraph to persistance
Paragraph Save(Paragraph paragraph)

Parameters

paragraph Paragraph
The Paragraph to save

Returns

Paragraph
The newly saved Paragraph

UpdateSortIndex(int, int, string)

Updates the paragraph sorting index and container in layout.
void UpdateSortIndex(int paragraphId, int sortIndex, string container)

Parameters

paragraphId int
The id of the paragraph to update sort index
sortIndex int
The new sort index
container string
The name of container in layout.
To top