示例#1
0
 public void addSubmeeting(Submeeting submeeting)
 {
     Submeetings.Add(submeeting);
     if (submeeting.Project != this)
     {
         submeeting.addProject(this);
     }
 }
示例#2
0
 public void deleteSubmeeting(Submeeting submeeting, User currentrUser)
 {
     if (currentrUser.Admin || submeeting.Meeting.Owner == currentrUser)//needs to allow atendee roles
     {
         submeetings.Remove(submeeting);
     }
     else
     {
         throw new InvalidAccessException();
     }
 }
示例#3
0
 public void AddSubmeeting(Submeeting submeeting, User currUser)
 {
     if (submeeting == null)
     {
         throw new CantBeNullException();
     }
     else if (currUser != Owner && !currUser.Admin)
     {
         throw new InvalidAccessException();
     }
     else
     {
         Submeetings.Add(submeeting);
     }
 }
示例#4
0
 public void removeSubmeeting(Submeeting submeeting, User currUser)
 {
     if (currUser != submeeting.Meeting.Owner && !currUser.Admin)
     {
         throw new InvalidAccessException();
     }
     else if (!Submeetings.Contains(submeeting))
     {
         throw new DoNotContainElementException();
     }
     else
     {
         Submeetings.Remove(submeeting);
     }
 }
示例#5
0
 public void RemoveSubmeeting(Submeeting submeeting, User currUser)
 {
     if (submeeting == null)
     {
         throw new CantBeNullException();
     }
     else if (currUser != Owner && !currUser.Admin)
     {
         throw new InvalidAccessException();
     }
     else if (!Submeetings.Contains(submeeting))
     {
         throw new DoNotContainElementException();
     }
     else
     {
         if (submeeting.Project != null)
         {
             submeeting.Project.removeSubmeeting(submeeting, currUser);
         }
         Submeetings.Remove(submeeting);
     }
 }
示例#6
0
 public void removeSubmeeting(Submeeting submeeting)
 {
     Submeetings.Remove(submeeting);
 }
示例#7
0
 public void addSubmeeting(Submeeting newSubmeeting)
 {
     Submeetings.Add(newSubmeeting);
 }
示例#8
0
 public void addSubmeeting(Submeeting submeeting)
 {
     submeetings.Add(submeeting);
 }