Class DataService
Assembly: DotNetNuke.dll
Syntax
public class DataService : IDataService
Constructors
DataService()
Declaration
Methods
AddContentItem(ContentItem, int)
Declaration
public int AddContentItem(ContentItem contentItem, int createdByUserId)
Parameters
Returns
AddContentType(ContentType)
Declaration
public int AddContentType(ContentType contentType)
Parameters
Returns
AddHeirarchicalTerm(Term, int)
Declaration
public int AddHeirarchicalTerm(Term term, int createdByUserId)
Parameters
Type |
Name |
Description |
Term |
term |
|
int |
createdByUserId |
|
Returns
AddMetaData(ContentItem, string, string)
Declaration
public void AddMetaData(ContentItem contentItem, string name, string value)
Parameters
AddScopeType(ScopeType)
Declaration
public int AddScopeType(ScopeType scopeType)
Parameters
Returns
AddSimpleTerm(Term, int)
Declaration
public int AddSimpleTerm(Term term, int createdByUserId)
Parameters
Type |
Name |
Description |
Term |
term |
|
int |
createdByUserId |
|
Returns
AddTermToContent(Term, ContentItem)
Declaration
public void AddTermToContent(Term term, ContentItem contentItem)
Parameters
AddVocabulary(Vocabulary, int)
Declaration
public int AddVocabulary(Vocabulary vocabulary, int createdByUserId)
Parameters
Returns
DeleteContentItem(int)
Declaration
public void DeleteContentItem(int contentItemId)
Parameters
Type |
Name |
Description |
int |
contentItemId |
|
DeleteContentType(ContentType)
Declaration
public void DeleteContentType(ContentType contentType)
Parameters
DeleteHeirarchicalTerm(Term)
Declaration
public void DeleteHeirarchicalTerm(Term term)
Parameters
Type |
Name |
Description |
Term |
term |
|
DeleteMetaData(ContentItem, string, string)
Declaration
public void DeleteMetaData(ContentItem contentItem, string name, string value)
Parameters
DeleteScopeType(ScopeType)
Declaration
public void DeleteScopeType(ScopeType scopeType)
Parameters
DeleteSimpleTerm(Term)
Declaration
public void DeleteSimpleTerm(Term term)
Parameters
Type |
Name |
Description |
Term |
term |
|
DeleteVocabulary(Vocabulary)
Declaration
public void DeleteVocabulary(Vocabulary vocabulary)
Parameters
GetContentItem(int)
Declaration
public IDataReader GetContentItem(int contentItemId)
Parameters
Type |
Name |
Description |
int |
contentItemId |
|
Returns
GetContentItems(int, int, int)
Declaration
public IDataReader GetContentItems(int contentTypeId, int tabId, int moduleId)
Parameters
Type |
Name |
Description |
int |
contentTypeId |
|
int |
tabId |
|
int |
moduleId |
|
Returns
GetContentItemsByContentType(int)
Declaration
public IDataReader GetContentItemsByContentType(int contentTypeId)
Parameters
Type |
Name |
Description |
int |
contentTypeId |
|
Returns
GetContentItemsByModuleId(int)
Declaration
public IDataReader GetContentItemsByModuleId(int moduleId)
Parameters
Type |
Name |
Description |
int |
moduleId |
|
Returns
GetContentItemsByTabId(int)
Declaration
public IDataReader GetContentItemsByTabId(int tabId)
Parameters
Type |
Name |
Description |
int |
tabId |
|
Returns
GetContentItemsByTerm(string)
Declaration
public IDataReader GetContentItemsByTerm(string term)
Parameters
Type |
Name |
Description |
string |
term |
|
Returns
GetContentItemsByVocabularyId(int)
Declaration
public IDataReader GetContentItemsByVocabularyId(int vocabularyId)
Parameters
Type |
Name |
Description |
int |
vocabularyId |
|
Returns
GetContentTypes()
Declaration
public IDataReader GetContentTypes()
Returns
GetMetaData(int)
Declaration
public IDataReader GetMetaData(int contentItemId)
Parameters
Type |
Name |
Description |
int |
contentItemId |
|
Returns
GetScopeTypes()
Declaration
public IDataReader GetScopeTypes()
Returns
GetTerm(int)
Declaration
public IDataReader GetTerm(int termId)
Parameters
Type |
Name |
Description |
int |
termId |
|
Returns
GetTermUsage(int)
Declaration
public IDataReader GetTermUsage(int termId)
Parameters
Type |
Name |
Description |
int |
termId |
|
Returns
GetTermsByContent(int)
Declaration
public IDataReader GetTermsByContent(int contentItemId)
Parameters
Type |
Name |
Description |
int |
contentItemId |
|
Returns
GetTermsByVocabulary(int)
Declaration
public IDataReader GetTermsByVocabulary(int vocabularyId)
Parameters
Type |
Name |
Description |
int |
vocabularyId |
|
Returns
GetUnIndexedContentItems()
Declaration
public IDataReader GetUnIndexedContentItems()
Returns
GetVocabularies()
Declaration
public IDataReader GetVocabularies()
Returns
RemoveTermsFromContent(ContentItem)
Declaration
public void RemoveTermsFromContent(ContentItem contentItem)
Parameters
SynchronizeMetaData(ContentItem, IEnumerable<KeyValuePair<string, string>>, IEnumerable<KeyValuePair<string, string>>)
Declaration
public void SynchronizeMetaData(ContentItem contentItem, IEnumerable<KeyValuePair<string, string>> added, IEnumerable<KeyValuePair<string, string>> deleted)
Parameters
UpdateContentItem(ContentItem, int)
Declaration
public void UpdateContentItem(ContentItem contentItem, int createdByUserId)
Parameters
UpdateContentType(ContentType)
Declaration
public void UpdateContentType(ContentType contentType)
Parameters
UpdateHeirarchicalTerm(Term, int)
Declaration
public void UpdateHeirarchicalTerm(Term term, int lastModifiedByUserId)
Parameters
Type |
Name |
Description |
Term |
term |
|
int |
lastModifiedByUserId |
|
UpdateScopeType(ScopeType)
Declaration
public void UpdateScopeType(ScopeType scopeType)
Parameters
UpdateSimpleTerm(Term, int)
Declaration
public void UpdateSimpleTerm(Term term, int lastModifiedByUserId)
Parameters
Type |
Name |
Description |
Term |
term |
|
int |
lastModifiedByUserId |
|
UpdateVocabulary(Vocabulary, int)
Declaration
public void UpdateVocabulary(Vocabulary vocabulary, int lastModifiedByUserId)
Parameters
Type |
Name |
Description |
Vocabulary |
vocabulary |
|
int |
lastModifiedByUserId |
|
Implements
Extension Methods