/// <summary> /// Page_Load /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Page_Load(object sender, System.EventArgs e) { // connection web = Session["Connection"] as iFolderAdmin; // localization rm = Application["RM"] as ResourceManager; string userID = Session["UserID"] as String; if (userID != null && ServerID != null && ServerID != String.Empty) { sysAccessPolicy = web.GetUserSystemRights(userID, ServerID); } else { sysAccessPolicy = 0; } uRights = new UserSystemAdminRights(sysAccessPolicy); if (uRights.ServerPolicyManagementAllowed == false) { Page.Response.Redirect(String.Format("Error.aspx?ex={0}&Msg={1}", GetString("ACCESSDENIED"), GetString("ACCESSDENIEDERROR"))); } if (!IsPostBack) { remoteweb = new iFolderAdmin(); OkButton.Text = GetString("OK"); CancelButton.Text = GetString("CANCEL"); } }
/// <summary> /// Page_Load /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Page_Load(object sender, System.EventArgs e) { // connection web = Session["Connection"] as iFolderAdmin; // localization rm = Application["RM"] as ResourceManager; string userID = Session["UserID"] as String; if (userID != null) { sysAccessPolicy = web.GetUserSystemRights(userID, null); } else { sysAccessPolicy = 0; } uRights = new UserSystemAdminRights(sysAccessPolicy); if (uRights.ServerPolicyManagementAllowed == false) { Page.Response.Redirect(String.Format("Error.aspx?ex={0}&Msg={1}", GetString("ACCESSDENIED"), GetString("ACCESSDENIEDERROR"))); } if (!IsPostBack) { // Initialize the localized fields. // Initialize state variables. CurrentServerOffset = 0; TotalServers = 0; } }
/// <summary> /// Page_Load /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Page_Load(object sender, System.EventArgs e) { // connection web = Session["Connection"] as iFolderAdmin; currentServerURL = web.Url; // localization rm = Application["RM"] as ResourceManager; string userID = Session["UserID"] as String; if (userID != null) { sysAccessPolicy = web.GetUserSystemRights(userID, null); } else { sysAccessPolicy = 0; } uRights = new UserSystemAdminRights(sysAccessPolicy); if (uRights.SystemPolicyManagementAllowed == false) { Page.Response.Redirect(String.Format("Error.aspx?ex={0}&Msg={1}", GetString("ACCESSDENIED"), GetString("ACCESSDENIEDERROR"))); } if (!IsPostBack) { // Initialize the localized fields. DeleteButton.Text = GetString("DELETE"); EditButton.Text = GetString("EDIT"); AddButton.Text = GetString("ADD"); //AddSecButton.Text = GetString( "ADD" ) + " " + GetString( "SECONDARY" ); ReprovisionStatusButton.Text = GetString("REPROVISIONBUTTON"); SaveButton.Text = GetString("SAVE"); CancelButton.Text = GetString("CANCEL"); GroupSegregated.Text = GetString("CREATESEGREGATEDGROUPS"); PrimaryAdminsLink.Text = GetString("PRIMARY"); GroupAdminsLink.Text = GetString("SECONDARY"); FullNameSetting.Items[0].Text = "(" + GetString("FIRSTNAME") + ", " + GetString("LASTNAME") + ")"; FullNameSetting.Items[1].Text = "(" + GetString("LASTNAME") + ", " + GetString("FIRSTNAME") + ")"; GroupQuotaRestriction.Items[0].Text = GetString("UIBASED"); GroupQuotaRestriction.Items[1].Text = GetString("SYNCBASED"); // Initialize state variables. CurrentAdminOffset = 0; TotalAdmins = 0; AllAdminsCheckBox.Checked = false; CheckedMembers = new Hashtable(); //select the active admin tab ActiveAdminTab = ListDisplayType.PrimaryAdmins; EditButton.Visible = false; //AddSecButton.Visible = false; } SetActiveAdminListTab(ActiveAdminTab); }
/// <summary> /// Page_Load /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Page_Load(object sender, System.EventArgs e) { // connection web = Session["Connection"] as iFolderAdmin; // localization rm = Application["RM"] as ResourceManager; string userID = Session["UserID"] as String; if (userID != null) { sysAccessPolicy = web.GetUserSystemRights(userID, null); } else { sysAccessPolicy = 0; } uRights = new UserSystemAdminRights(sysAccessPolicy); if (uRights.ReportsGenerationAllowed == false) { Page.Response.Redirect(String.Format("Error.aspx?ex={0}&Msg={1}", GetString("ACCESSDENIED"), GetString("ACCESSDENIEDERROR"))); } if (!IsPostBack) { // Initialize the localized fields. EnableReportingLabel.Text = GetString("ENABLEREPORTING"); FrequencyList.Items[0].Text = GetString("DAILY"); FrequencyList.Items[1].Text = GetString("WEEKLY"); FrequencyList.Items[2].Text = GetString("MONTHLY"); ReportLocation.Items[0].Text = GetString("REPORTIFOLDER"); ReportLocation.Items[1].Text = GetString("REPORTDIRECTORY"); SaveReportConfig.Text = GetString("SAVE"); CancelReportConfig.Text = GetString("CANCEL"); // Populate the dropdown lists. InitializeTimeOfDayList(); InitializeDayOfWeekList(); InitializeDayOfMonthList(); InitializeReportFormat(); } }
/// <summary> /// Page_Load /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Page_Load(object sender, System.EventArgs e) { // connection web = Session["Connection"] as iFolderAdmin; currentServerURL = web.Url; remoteweb = new iFolderAdmin(); remoteweb.PreAuthenticate = true; remoteweb.Credentials = web.Credentials; remoteweb.Url = web.Url; reachable = true; // localization rm = Application["RM"] as ResourceManager; string userID = Session["UserID"] as String; if (userID != null) { sysAccessPolicy = web.GetUserGroupRights(userID, null); } else { sysAccessPolicy = 0; } uRights = new UserSystemAdminRights(sysAccessPolicy); if (uRights.SystemPolicyManagementAllowed == false) { Page.Response.Redirect(String.Format("Error.aspx?ex={0}&Msg={1}", GetString("ACCESSDENIED"), GetString("ACCESSDENIEDERROR"))); } if (!IsPostBack) { // Initialize the localized fields. iFolderList.Columns[iFolderTypeColumn].HeaderText = GetString("TYPE"); iFolderList.Columns[iFolderNameColumn].HeaderText = GetString("NAME"); iFolderList.Columns[iFolderOwnerColumn].HeaderText = GetString("OWNER"); // Initialize state variables. CurrentiFolderOffset = 0; TotaliFolders = 0; CheckediFolders = new Hashtable(); } }
/// <summary> /// Page_Load() /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Page_Load(object sender, System.EventArgs e) { web = Session["Connection"] as iFolderAdmin; // localization rm = Application["RM"] as ResourceManager; string userID = Session["UserID"] as String; if (userID != null) { sysAccessPolicy = web.GetUserSystemRights(userID, null); } else { sysAccessPolicy = 0xffff; } uRights = new UserSystemAdminRights(sysAccessPolicy); // Hide the error panel if previously visible. if (ErrorPanel.Visible) { ErrorPanel.Visible = false; } if (MessagePanel.Visible) { ErrorPanel.Visible = false; } if (!IsPostBack) { // Initially hide the error panel. ErrorPanel.Visible = false; MessagePanel.Visible = false; Control body = Page.FindControl("users"); if (body != null) { UserLink.HRef = null; iFolderLink.HRef = "iFolders.aspx"; ServerLink.HRef = "Servers.aspx"; SystemLink.HRef = "SystemInfo.aspx"; ReportsLink.HRef = "Reports.aspx"; } else { body = Page.FindControl("ifolders"); if (body != null) { UserLink.HRef = "Users.aspx"; iFolderLink.HRef = null; ServerLink.HRef = "Servers.aspx"; SystemLink.HRef = "SystemInfo.aspx"; ReportsLink.HRef = "Reports.aspx"; } else { body = Page.FindControl("system"); if (body != null) { UserLink.HRef = "Users.aspx"; iFolderLink.HRef = "iFolders.aspx"; ServerLink.HRef = "Servers.aspx"; SystemLink.HRef = null; ReportsLink.HRef = "Reports.aspx"; } else { body = Page.FindControl("server"); if (body != null) { UserLink.HRef = "Users.aspx"; iFolderLink.HRef = "iFolders.aspx"; ServerLink.HRef = null; SystemLink.HRef = "SystemInfo.aspx"; ReportsLink.HRef = "Reports.aspx"; } else { body = Page.FindControl("report"); if (body != null) { UserLink.HRef = "Users.aspx"; iFolderLink.HRef = "iFolders.aspx"; ServerLink.HRef = "Servers.aspx"; SystemLink.HRef = "SystemInfo.aspx"; ReportsLink.HRef = null; } else { UserLink.HRef = "Users.aspx"; iFolderLink.HRef = "iFolders.aspx"; ServerLink.HRef = "Servers.aspx"; SystemLink.HRef = "SystemInfo.aspx"; ReportsLink.HRef = "Reports.aspx"; } } } } } if (uRights.UserManagementAllowed == false) { UserLink.HRef = null; } if (uRights.iFolderManagementAllowed == false) { iFolderLink.HRef = null; } if (uRights.SystemPolicyManagementAllowed == false) { SystemLink.HRef = null; } if (uRights.ServerPolicyManagementAllowed == false) { ServerLink.HRef = null; } if (uRights.ReportsGenerationAllowed == false) { ReportsLink.HRef = null; } // Initialize the state variables. BreadCrumbs.RepeatColumns = 0; CrumbList = new ArrayList(); } }
/// <summary> /// Page_Load /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Page_Load(object sender, System.EventArgs e) { // connection web = Session["Connection"] as iFolderAdmin; currentServerURL = web.Url; // localization rm = Application["RM"] as ResourceManager; string userID = Session["UserID"] as String; if (userID != null) { sysAccessPolicy = web.GetUserSystemRights(userID, null); } else { sysAccessPolicy = 0; } uRights = new UserSystemAdminRights(sysAccessPolicy); if (uRights.SecondaryAdminAddAllowed == false) { Page.Response.Redirect(String.Format("Error.aspx?ex={0}&Msg={1}", GetString("ACCESSDENIED"), GetString("ACCESSDENIEDERROR"))); } if (!IsPostBack) { // Initialize the localized fields. AggregateDiskQuotaLabel.Text = "Set the Aggregate Disk Quota Limit For Entire Group: "; StorageUnitLabel.Text = GetString("MB"); NoOfiFoldersList.Items[0].Text = GetString("ALLOW"); NoOfiFoldersList.Items[0].Selected = true; DiskQuotaRightsList.Items[0].Text = GetString("ALLOW"); DiskQuotaRightsList.Items[0].Selected = true; FileSizeRightsList.Items[0].Text = GetString("ALLOW"); FileSizeRightsList.Items[0].Selected = true; SyncIntervalRightsList.Items[0].Text = GetString("ALLOW"); SyncIntervalRightsList.Items[0].Selected = true; FileListRightsList.Items[0].Text = GetString("ALLOW"); FileListRightsList.Items[0].Selected = true; SharingRightsList.Items[0].Text = GetString("ALLOWMODIFYSHARINGPOLICY"); SharingRightsList.Items[0].Selected = true; EncryptionRightsList.Items[0].Text = GetString("ALLOWMODIFYENCRYPTIONPOLICY"); EncryptionRightsList.Items[0].Selected = true; ProvisioningRightsList.Items[0].Text = GetString("ALLOWUSERPROVISIONING"); ProvisioningRightsList.Items[1].Text = GetString("ALLOWUSERENABLING"); ProvisioningRightsList.Items[0].Selected = true; ProvisioningRightsList.Items[1].Selected = true; iFolderRightsList.Items[0].Text = GetString("ALLOWORPHANIFOLDEROWNERSHIP"); iFolderRightsList.Items[1].Text = GetString("ALLOWIFOLDERENABLING"); iFolderRightsList.Items[2].Text = GetString("ALLOWSHAREDMEMBERRIGHTS"); iFolderRightsList.Items[3].Text = GetString("ALLOWDELETEIFOLDERRIGHTS"); iFolderRightsList.Items[0].Selected = true; iFolderRightsList.Items[1].Selected = true; iFolderRightsList.Items[2].Selected = true; iFolderRightsList.Items[3].Selected = true; iFolderUser user = web.GetUser(SecondaryAdmin); string LebelDisplay; if (GetString(op) == "Add") { LebelDisplay = GetString("ASSIGNADMINRIGHTS"); } else { LebelDisplay = GetString(op) + " " + GetString("ADMINRIGHTSFOR"); } AdminFullNameLabel.Text = LebelDisplay + user.FullName; SaveAdminRights.Text = GetString("SAVE"); CancelAdminRights.Text = GetString("CANCEL"); InitializeGroupList(); } }