Package com.jcabi.github.mock
Class MkPublicMembers
- java.lang.Object
-
- com.jcabi.github.mock.MkPublicMembers
-
- All Implemented Interfaces:
PublicMembers
public final class MkPublicMembers extends Object implements PublicMembers
Mock for public members of a GitHub organization.- Since:
- 0.24
- Version:
- $Id: a7ac80ea096e0b9cd19366ac003c4a9f53a91a99 $
- Author:
- Chris Rebert (github@chrisrebert.com)
- See Also:
- Organization Members API
-
-
Constructor Summary
Constructors Constructor Description MkPublicMembers(MkStorage stg, Organization organ)
Public ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
conceal(User user)
Conceal a user's membership from public view.boolean
contains(User user)
Check whether the user is a public member of this organization.Iterable<User>
iterate()
Get all users who are public members of this organization.Organization
org()
Organization of which these are public members.void
publicize(User user)
Make a user's membership publicly visible.
-
-
-
Constructor Detail
-
MkPublicMembers
public MkPublicMembers(MkStorage stg, Organization organ)
Public ctor.- Parameters:
stg
- Storageorgan
- Organization
-
-
Method Detail
-
org
public Organization org()
Description copied from interface:PublicMembers
Organization of which these are public members.- Specified by:
org
in interfacePublicMembers
- Returns:
- Organization
-
conceal
public void conceal(User user) throws IOException
Description copied from interface:PublicMembers
Conceal a user's membership from public view.- Specified by:
conceal
in interfacePublicMembers
- Parameters:
user
- User whose membership to conceal- Throws:
IOException
- If an I/O problem occurs- See Also:
- Conceal a user's membership
-
publicize
public void publicize(User user) throws IOException
Description copied from interface:PublicMembers
Make a user's membership publicly visible.- Specified by:
publicize
in interfacePublicMembers
- Parameters:
user
- User whose membership to publicize- Throws:
IOException
- If an I/O problem occurs- See Also:
- Publicize a user's membership
-
iterate
public Iterable<User> iterate()
Description copied from interface:PublicMembers
Get all users who are public members of this organization.- Specified by:
iterate
in interfacePublicMembers
- Returns:
- Members
- See Also:
- Public members list
-
contains
public boolean contains(User user) throws IOException
Description copied from interface:PublicMembers
Check whether the user is a public member of this organization.- Specified by:
contains
in interfacePublicMembers
- Parameters:
user
- User to check public organization membership of- Returns:
- Is the user a public member of this organization?
- Throws:
IOException
- If an I/O problem occurs- See Also:
- Check public membership
-
-