Package com.jcabi.github
Interface Collaborators
-
@Immutable public interface Collaborators
Github repository collaborators.- Since:
- 0.8
- Version:
- $Id: cddcace5b9d9caaf55be36d3fe20df62720255cd $
- Author:
- Aleksey Popov (alopen@yandex.ru)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Collaborators.Permission
Permission levels a user can be granted in an organization repository.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(String user)
Add user as a collaborator.void
addWithPermission(String user, Collaborators.Permission permission)
Add user with permissions.boolean
isCollaborator(String user)
Check if a user is collaborator.Iterable<User>
iterate()
Iterates over repo collaborators.void
remove(String user)
Remove user as a collaborator.Repo
repo()
Owner of them.
-
-
-
Method Detail
-
repo
Repo repo()
Owner of them.- Returns:
- Repo
-
isCollaborator
boolean isCollaborator(String user) throws IOException
Check if a user is collaborator.- Parameters:
user
- User- Returns:
- True is a user is a collaborator, otherwise returns false
- Throws:
IOException
- If there is any I/O problem- See Also:
- Check if a user is collaborator
-
add
void add(String user) throws IOException
Add user as a collaborator.- Parameters:
user
- User- Throws:
IOException
- If there is any I/O problem- See Also:
- Add user as a collaborator
-
addWithPermission
void addWithPermission(String user, Collaborators.Permission permission) throws IOException
Add user with permissions. Only works on an organization repository- Parameters:
user
- User to addpermission
- Permission level to grant- Throws:
IOException
- if there is an I/O problem- See Also:
- Add user as a collaborator
-
remove
void remove(String user) throws IOException
Remove user as a collaborator.- Parameters:
user
- User- Throws:
IOException
- If there is any I/O problem- See Also:
- Remove user as a collaborator
-
-