| | |
| | |
|
| | | import com.gitblit.Constants.AccessPermission;
|
| | | import com.gitblit.Constants.AccessRestrictionType;
|
| | | import com.gitblit.Constants.AccountType;
|
| | | import com.gitblit.Constants.PermissionType;
|
| | | import com.gitblit.Constants.RegistrantType;
|
| | | import com.gitblit.Constants.Unused;
|
| | |
| | | public boolean canAdmin;
|
| | | public boolean canFork;
|
| | | public boolean canCreate;
|
| | | public AccountType accountType;
|
| | | public final Set<String> users = new HashSet<String>();
|
| | | // retained for backwards-compatibility with RPC clients
|
| | | @Deprecated
|
| | |
| | |
|
| | | public TeamModel(String name) {
|
| | | this.name = name;
|
| | | this.accountType = AccountType.LOCAL;
|
| | | }
|
| | |
|
| | | /**
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public boolean isLocalTeam() {
|
| | | return accountType.isLocal();
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String toString() {
|
| | | return name;
|