Class DataService
Assembly: DotNetNuke.dll
Syntax
public class DataService : ServiceLocator<IDataService, DataService>, IDataService
Constructors
DataService()
Declaration
Methods
AddSubscription(int, int, int, string, string, int, int, string)
Declaration
public int AddSubscription(int userId, int portalId, int subscriptionTypeId, string objectKey, string description, int moduleId, int tabId, string objectData)
Parameters
Returns
AddSubscriptionType(string, string, int)
Declaration
public int AddSubscriptionType(string subscriptionName, string friendlyName, int desktopModuleId)
Parameters
Type |
Name |
Description |
string |
subscriptionName |
|
string |
friendlyName |
|
int |
desktopModuleId |
|
Returns
DeleteSubscription(int)
Declaration
public bool DeleteSubscription(int subscriptionId)
Parameters
Type |
Name |
Description |
int |
subscriptionId |
|
Returns
DeleteSubscriptionType(int)
Declaration
public bool DeleteSubscriptionType(int subscriptionTypeId)
Parameters
Type |
Name |
Description |
int |
subscriptionTypeId |
|
Returns
DeleteSubscriptionsByObjectKey(int, string)
Declaration
public void DeleteSubscriptionsByObjectKey(int portalId, string objectKey)
Parameters
Type |
Name |
Description |
int |
portalId |
|
string |
objectKey |
|
GetFactory()
Declaration
protected override Func<IDataService> GetFactory()
Returns
Overrides
GetSubscriptionTypes()
Declaration
public IDataReader GetSubscriptionTypes()
Returns
GetSubscriptionsByContent(int, int, string)
Declaration
public IDataReader GetSubscriptionsByContent(int portalId, int subscriptionTypeId, string objectKey)
Parameters
Type |
Name |
Description |
int |
portalId |
|
int |
subscriptionTypeId |
|
string |
objectKey |
|
Returns
GetSubscriptionsByUser(int, int, int)
Declaration
public IDataReader GetSubscriptionsByUser(int portalId, int userId, int subscriptionTypeId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
int |
userId |
|
int |
subscriptionTypeId |
|
Returns
IsSubscribed(int, int, int, string, int, int)
Declaration
public IDataReader IsSubscribed(int portalId, int userId, int subscriptionTypeId, string objectKey, int moduleId, int tabId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
int |
userId |
|
int |
subscriptionTypeId |
|
string |
objectKey |
|
int |
moduleId |
|
int |
tabId |
|
Returns
UpdateSubscriptionDescription(string, int, string)
Declaration
public int UpdateSubscriptionDescription(string objectKey, int portalId, string newDescription)
Parameters
Returns
Implements
Extension Methods