Exemplo n.º 1
0
 protected override void Render(HtmlTextWriter output)
 {
     if (Enabled)
     {
         if (CurrentIndex < 0)
         {
             CurrentIndex = 0;
         }
         JournalParser jp = new JournalParser(portalSettings, ModuleId, ProfileId, SocialGroupId, userInfo);
         output.Write(jp.GetList(CurrentIndex, PageSize));
     }
 }
Exemplo n.º 2
0
 public HttpResponseMessage GetListForProfile(GetListForProfileDTO postData)
 {
     try
     {
         var jp = new JournalParser(PortalSettings, ActiveModule.ModuleID, postData.ProfileId, postData.GroupId, UserInfo);
         return(Request.CreateResponse(HttpStatusCode.OK, jp.GetList(postData.RowIndex, postData.MaxRows), "text/html"));
     }
     catch (Exception exc)
     {
         Logger.Error(exc);
         throw new HttpException(500, exc.Message);
     }
 }
Exemplo n.º 3
0
 public string GetListForProfile(int profileId, int groupId, int rowIndex, int maxRows)
 {
     try
     {
         var jp = new JournalParser(PortalSettings, ActiveModule.ModuleID, profileId, groupId, UserInfo);
         return(jp.GetList(rowIndex, maxRows));
     }
     catch (Exception exc)
     {
         DnnLog.Error(exc);
         return(string.Empty);
     }
 }
Exemplo n.º 4
0
        protected override void Render(HtmlTextWriter output)
        {
            if (this.Enabled)
            {
                if (this.CurrentIndex < 0)
                {
                    this.CurrentIndex = 0;
                }

                JournalParser jp = new JournalParser(this.portalSettings, this.ModuleId, this.ProfileId, this.SocialGroupId, this.userInfo)
                {
                    JournalId = this.JournalId
                };
                output.Write(jp.GetList(this.CurrentIndex, this.PageSize));
            }
        }