/// <summary> /// 构造函数 /// </summary> /// <param name="name">Searcher名称</param> /// <param name="indexPath">索引文件所在路径(支持"~/"及unc路径)</param> /// <param name="asQuickSearch">是否作为快捷搜索</param> /// <param name="displayOrder">显示顺序</param> public TopicSearcher(string name, string indexPath, bool asQuickSearch, int displayOrder) { this.Name = name; this.IndexPath = Tunynet.Utilities.WebUtility.GetPhysicalFilePath(indexPath); this.AsQuickSearch = asQuickSearch; this.DisplayOrder = displayOrder; searchEngine = SearcherFactory.GetSearchEngine(indexPath); publiclyAuditStatus = auditService.GetPubliclyAuditStatus(TopicConfig.Instance().ApplicationId); }
/// <summary> /// 构造函数 /// </summary> /// <param name="name">Searcher名称</param> /// <param name="indexPath">索引文件所在路径(支持"~/"及unc路径)</param> /// <param name="asQuickSearch">是否作为快捷搜索</param> /// <param name="displayOrder">显示顺序</param> public GroupSearcher(string name, string indexPath, bool asQuickSearch, int displayOrder) { this.Name = name; this.IndexPath = Tunynet.Utilities.WebUtility.GetPhysicalFilePath(indexPath); this.AsQuickSearch = asQuickSearch; this.DisplayOrder = displayOrder; searchEngine = SearcherFactory.GetSearchEngine(indexPath); publiclyAuditStatus = auditService.GetPubliclyAuditStatus(GroupConfig.Instance().ApplicationId); }
public GroupRepository(PubliclyAuditStatus publiclyAuditStatus) { this.publiclyAuditStatus = publiclyAuditStatus; }
/// <summary> /// 构造器 /// </summary> /// <param name="publiclyAuditStatus"></param> public BarPostRepository(PubliclyAuditStatus publiclyAuditStatus) { this.publiclyAuditStatus = publiclyAuditStatus; }
/// <summary> /// 保存应用的PubliclyAuditStatus设置 /// </summary> /// <param name="applicationId">ApplicationId</param> /// <returns></returns> public void SavePubliclyAuditStatus(int applicationId, PubliclyAuditStatus publiclyAuditStatus) { ApplicationDataService applicationDataService = new ApplicationDataService(); applicationDataService.Change(applicationId, ApplicationDataKeys.Instance().PubliclyAuditStatus(), (long)publiclyAuditStatus); }
/// <summary> /// 构造器 /// </summary> /// <param name="publiclyAuditStatus"></param> public PhotoRepository(PubliclyAuditStatus publiclyAuditStatus) { this.publiclyAuditStatus = publiclyAuditStatus; }
public BlogThreadRepository(PubliclyAuditStatus publiclyAuditStatus) { this.publiclyAuditStatus = publiclyAuditStatus; }
/// <summary> /// 查询用户评论 /// </summary> /// <param name="publiclyAuditStatus">审核状态</param> /// <param name="tenantTypeId">租户类型Id</param> /// <param name="userId">评论发布人UserId</param> /// <param name="startDate">开始时间</param> /// <param name="endDate">截止时间</param> /// <param name="pageSize">页大小</param> /// <param name="pageIndex">当前页码</param> /// <returns></returns> public PagingDataSet<Comment> GetComments(PubliclyAuditStatus? publiclyAuditStatus, string tenantTypeId, long? userId, DateTime? startDate, DateTime? endDate, int pageSize, int pageIndex) { //排序:Id倒序 //缓存分区:全局版本 return commentRepository.GetComments(publiclyAuditStatus, tenantTypeId, userId, startDate, endDate, pageSize, pageIndex); }
/// <summary> /// 构造器 /// </summary> /// <param name="publiclyAuditStatus"></param> public AskAnswerRepository(PubliclyAuditStatus publiclyAuditStatus) { this.publiclyAuditStatus = publiclyAuditStatus; }
/// <summary> /// 构造器 /// </summary> /// <param name="publiclyAuditStatus"></param> public AskQuestionRepository(PubliclyAuditStatus publiclyAuditStatus) { this.publiclyAuditStatus = publiclyAuditStatus; }
/// <summary> /// 构造器 /// </summary> /// <param name="publiclyAuditStatus"></param> public AlbumRepository(PubliclyAuditStatus publiclyAuditStatus) { this.publiclyAuditStatus = publiclyAuditStatus; }
public TopicRepository(PubliclyAuditStatus publiclyAuditStatus) { this.publiclyAuditStatus = publiclyAuditStatus; }
public WikiPageRepository(PubliclyAuditStatus publiclyAuditStatus) { this.publiclyAuditStatus = publiclyAuditStatus; }