public bool Remove() { if (GroupImplimentor.Remove(this.ClientID, this.GroupID)) { return(true); } else { return(false); } }
/// <summary> /// /// </summary> /// <param name="componentid"></param> /// <param name="add"></param> /// <param name="edit"></param> /// <param name="remove"></param> /// <param name="view"></param> /// <returns></returns> public bool AddDashboardPrivilege(string componentid, bool add, bool edit, bool remove, bool view) { return(GroupImplimentor.AddPrivilege(this.ClientID, this.GroupID, componentid, (int)PrivilegeType.DASHBOARD, add, edit, remove, view )); }
/// <summary> /// /// </summary> /// <param name="componentid"></param> /// <param name="add"></param> /// <param name="edit"></param> /// <param name="remove"></param> /// <param name="view"></param> /// <returns></returns> public bool AddReportPrivilege(string componentid, bool add, bool edit, bool remove, bool view) { return(GroupImplimentor.AddPrivilege(this.ClientID, this.GroupID, componentid, (int)PrivilegeType.REPORT, add, edit, remove, view )); }
/// <summary> /// /// </summary> /// <param name="componentid"></param> /// <param name="add"></param> /// <param name="edit"></param> /// <param name="remove"></param> /// <param name="view"></param> /// <returns></returns> public bool AddAnalyticPrivilege(string componentid, bool add, bool edit, bool remove, bool view) { return(GroupImplimentor.AddPrivilege(this.ClientID, this.GroupID, componentid, (int)PrivilegeType.ANALYTIC, add, edit, remove, view )); }
/// <summary> /// /// </summary> /// <returns></returns> public bool Save() { string key = GroupImplimentor.SaveGroup(this.ClientID, this.GroupID, this.Name, this.Description, this.UserContext, this.IsBaseType); if (key != "") { this.GroupID = key; return(true); } else { return(false); } }