Beispiel #1
0
 public bool Remove()
 {
     if (GroupImplimentor.Remove(this.ClientID, this.GroupID))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Beispiel #2
0
 /// <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
                                          ));
 }
Beispiel #3
0
 /// <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
                                          ));
 }
Beispiel #4
0
 /// <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
                                          ));
 }
Beispiel #5
0
        /// <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);
            }
        }