protected AppActionCollection GetAppActionList(AppBase app) { AppActionCollection appActions = new AppActionCollection(); foreach (AppAction appAction in app.AppActions) { if (FeedBO.Instance.IsSiteFeed(app.AppID, appAction.ActionType)) { continue; } bool display = true; foreach (FeedSendItem tempItem in AllSettings.Current.PrivacySettings.FeedSendItems) { if ((tempItem.DefaultSendType == FeedSendItem.SendType.ForceSend || tempItem.DefaultSendType == FeedSendItem.SendType.ForceNotSend) && tempItem.AppID == app.AppID && tempItem.ActionType == appAction.ActionType) { display = false; break; } } if (display) { appActions.Add(appAction); } } return(appActions); }
protected AppActionCollection GetFiltratedAppActionList(Guid appID) { AppActionCollection appActions = new AppActionCollection(); AppBase app = AppManager.GetApp(appID); foreach (FeedFilter feedFilter in UserFeedFilters) { if (feedFilter.AppID == appID) { if (feedFilter.FilterType == FilterType.FilterApp) { appActions = app.AppActions; break; } else if (feedFilter.FilterType == FilterType.FilterAppAction) { AppAction appAction = app.AppActions.GetValue(feedFilter.ActionType.Value); if (appAction != null) { appActions.Add(appAction); } } } } return(appActions); }
public void FiltratedAppActionList(Guid appID , FiltratedAppActionListHeadFootTemplate head , FiltratedAppActionListHeadFootTemplate foot , FiltratedAppActionListItemTemplate item) { AppActionCollection appActions = new AppActionCollection(); AppBase app = AppManager.GetApp(appID); foreach (FeedFilter feedFilter in UserFeedFilters) { if (feedFilter.AppID == appID) { if (feedFilter.FilterType == FilterType.FilterApp) { appActions = app.AppActions; break; } else if (feedFilter.FilterType == FilterType.FilterAppAction) { AppAction appAction = app.AppActions.GetValue(feedFilter.ActionType.Value); if (appAction != null) { appActions.Add(appAction); } } } } int j = 0; head(); foreach (AppAction appAction in appActions) { item(j++, appAction); } foot(); }
protected AppActionCollection GetAppActionList(AppBase app) { AppActionCollection appActions = new AppActionCollection(); foreach (AppAction appAction in app.AppActions) { if (FeedBO.Instance.IsSiteFeed(app.AppID, appAction.ActionType)) continue; bool display = true; foreach (FeedSendItem tempItem in AllSettings.Current.PrivacySettings.FeedSendItems) { if ((tempItem.DefaultSendType == FeedSendItem.SendType.ForceSend || tempItem.DefaultSendType == FeedSendItem.SendType.ForceNotSend) && tempItem.AppID == app.AppID && tempItem.ActionType == appAction.ActionType) { display = false; break; } } if (display) appActions.Add(appAction); } return appActions; }
protected AppActionCollection GetFiltratedAppActionList(Guid appID) { AppActionCollection appActions = new AppActionCollection(); AppBase app = AppManager.GetApp(appID); foreach (FeedFilter feedFilter in UserFeedFilters) { if (feedFilter.AppID == appID) { if (feedFilter.FilterType == FilterType.FilterApp) { appActions = app.AppActions; break; } else if (feedFilter.FilterType == FilterType.FilterAppAction) { AppAction appAction = app.AppActions.GetValue(feedFilter.ActionType.Value); if (appAction != null) appActions.Add(appAction); } } } return appActions; }
public void FiltratedAppActionList(Guid appID , FiltratedAppActionListHeadFootTemplate head , FiltratedAppActionListHeadFootTemplate foot , FiltratedAppActionListItemTemplate item) { AppActionCollection appActions = new AppActionCollection(); AppBase app = AppManager.GetApp(appID); foreach (FeedFilter feedFilter in UserFeedFilters) { if (feedFilter.AppID == appID) { if (feedFilter.FilterType == FilterType.FilterApp) { appActions = app.AppActions; break; } else if (feedFilter.FilterType == FilterType.FilterAppAction) { AppAction appAction = app.AppActions.GetValue(feedFilter.ActionType.Value); if (appAction != null) appActions.Add(appAction); } } } int j = 0; head(); foreach (AppAction appAction in appActions) { item(j++, appAction); } foot(); }