Пример #1
0
 public bool Remove(string clientid, string groupID)
 {
     dSg = new Data.Group.SecurityGroup(Tz.Security.SecurityGroup.GetConnection(clientid));
     if (dSg.Remove(groupID, clientid))
     {
         dSg.RemoveAllPrivileges(groupID, clientid);
         return(true);
     }
     else
     {
         return(false);
     }
 }
Пример #2
0
 public string SaveGroup(string clientID, string groupID, string name, string description, Context userContext, bool isBaseType)
 {
     dSg = new Data.Group.SecurityGroup(Tz.Security.SecurityGroup.GetConnection(clientID));
     if (groupID != "")
     {
         bool val = dSg.Update(clientID, groupID,
                               name,
                               description,
                               (int)userContext,
                               true);
         return(groupID);
     }
     else
     {
         string val = dSg.Save(clientID,
                               name,
                               description,
                               (int)userContext,
                               true, (int)GroupBaseType.user);
         return(val);
     }
 }