public PortalAliasCollection GetPortalAliasByPortalID(int PortalID)
 {
     IDataReader dr = DataProvider.Instance().GetPortalAliasByPortalID(PortalID);
     try
     {
         PortalAliasCollection objPortalAliasCollection = new PortalAliasCollection();
         while (dr.Read())
         {
             PortalAliasInfo objPortalAliasInfo = new PortalAliasInfo();
             objPortalAliasInfo.PortalAliasID = Convert.ToInt32(dr["PortalAliasID"]);
             objPortalAliasInfo.PortalID = Convert.ToInt32(dr["PortalID"]);
             objPortalAliasInfo.HTTPAlias = Convert.ToString(dr["HTTPAlias"]);
             objPortalAliasCollection.Add(Convert.ToString(dr["HTTPAlias"]).ToLower(), objPortalAliasInfo);
         }
         return objPortalAliasCollection;
     }
     finally
     {
         CBO.CloseDataReader(dr, true);
     }
 }
 public void UpdatePortalAliasInfo(PortalAliasInfo objPortalAliasInfo)
 {
     DataCache.RemoveCache(DataCache.PortalAliasCacheKey);
     DataProvider.Instance().UpdatePortalAliasInfo(objPortalAliasInfo.PortalAliasID, objPortalAliasInfo.PortalID, objPortalAliasInfo.HTTPAlias.ToLower(), UserController.GetCurrentUserInfo().UserID);
     Services.Log.EventLog.EventLogController objEventLog = new Services.Log.EventLog.EventLogController();
     objEventLog.AddLog(objPortalAliasInfo, PortalController.GetCurrentPortalSettings(), UserController.GetCurrentUserInfo().UserID, "", CommonLibrary.Services.Log.EventLog.EventLogController.EventLogType.PORTALALIAS_UPDATED);
 }
 public ArrayList GetPortalAliasArrayByPortalID(int PortalID)
 {
     IDataReader dr = DataProvider.Instance().GetPortalAliasByPortalID(PortalID);
     try
     {
         ArrayList arr = new ArrayList();
         while (dr.Read())
         {
             PortalAliasInfo objPortalAliasInfo = new PortalAliasInfo();
             objPortalAliasInfo.PortalAliasID = Convert.ToInt32(dr["PortalAliasID"]);
             objPortalAliasInfo.PortalID = Convert.ToInt32(dr["PortalID"]);
             objPortalAliasInfo.HTTPAlias = Convert.ToString(dr["HTTPAlias"]).ToLower();
             arr.Add(objPortalAliasInfo);
         }
         return arr;
     }
     finally
     {
         CBO.CloseDataReader(dr, true);
     }
 }
 public void Add(String key, PortalAliasInfo value)
 {
     this.Dictionary.Add(key, value);
 }
Example #5
0
 public static PortalSettings GetHostPortalSettings()
 {
     int TabId = -1;
     int PortalId = -1;
     PortalAliasInfo objPortalAliasInfo = null;
     if (Host.HostPortalID > Null.NullInteger)
     {
         PortalId = Host.HostPortalID;
         objPortalAliasInfo = new PortalAliasInfo();
         objPortalAliasInfo.PortalID = PortalId;
     }
     return new PortalSettings(TabId, objPortalAliasInfo);
 }
 public PortalSettings(int tabID, PortalAliasInfo objPortalAliasInfo)
 {
     _ActiveTab = new TabInfo();
     PortalId = objPortalAliasInfo.PortalID;
     PortalAlias = objPortalAliasInfo;
     PortalController controller = new PortalController();
     PortalInfo portal = controller.GetPortal(PortalId);
     if (portal != null)
     {
         GetPortalSettings(tabID, portal);
     }
 }
 public void AddPortalAlias(int PortalId, string PortalAlias)
 {
     PortalAliasController objPortalAliasController = new PortalAliasController();
     PortalAliasInfo objPortalAliasInfo = objPortalAliasController.GetPortalAlias(PortalAlias, PortalId);
     if (objPortalAliasInfo == null)
     {
         objPortalAliasInfo = new PortalAliasInfo();
         objPortalAliasInfo.PortalID = PortalId;
         objPortalAliasInfo.HTTPAlias = PortalAlias;
         objPortalAliasController.AddPortalAlias(objPortalAliasInfo);
     }
 }