| | |
| | | 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;
|
| | |
| | | public void removeRepository(String name) {
|
| | | 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
|