James Moger
2012-10-18 b0e164283fee6f993589cce849ba1fc7d294e89d
src/com/gitblit/models/TeamModel.java
@@ -18,6 +18,7 @@
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -86,6 +87,21 @@
      removeRepositoryPermission(name);
   }
   
   /**
    * Returns a list of repository permissions for this team.
    *
    * @return the team's list of permissions
    */
   public List<RepositoryAccessPermission> getRepositoryPermissions() {
      List<RepositoryAccessPermission> list = new ArrayList<RepositoryAccessPermission>();
      for (Map.Entry<String, AccessPermission> entry : permissions.entrySet()) {
         list.add(new RepositoryAccessPermission(entry.getKey(), entry.getValue()));
      }
      Collections.sort(list);
      return list;
   }
   /**
    * Returns true if the team has any type of specified access permission for
    * this repository.