Package com.jcabi.github.mock
Class MkPublicMembers
java.lang.Object
com.jcabi.github.mock.MkPublicMembers
- All Implemented Interfaces:
PublicMembers
Mock for public members of a GitHub organization.
- Since:
- 0.24
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConceal a user's membership from public view.booleanCheck whether the user is a public member of this organization.iterate()Get all users who are public members of this organization.org()Organization of which these are public members.voidMake a user's membership publicly visible.
-
Constructor Details
-
MkPublicMembers
Public ctor.- Parameters:
stg- Storageorgan- Organization
-
-
Method Details
-
org
Description copied from interface:PublicMembersOrganization of which these are public members.- Specified by:
orgin interfacePublicMembers- Returns:
- Organization
-
conceal
Description copied from interface:PublicMembersConceal a user's membership from public view.- Specified by:
concealin interfacePublicMembers- Parameters:
user- User whose membership to conceal- Throws:
IOException- If an I/O problem occurs- See Also:
-
publicize
Description copied from interface:PublicMembersMake a user's membership publicly visible.- Specified by:
publicizein interfacePublicMembers- Parameters:
user- User whose membership to publicize- Throws:
IOException- If an I/O problem occurs- See Also:
-
iterate
Description copied from interface:PublicMembersGet all users who are public members of this organization.- Specified by:
iteratein interfacePublicMembers- Returns:
- Members
- See Also:
-
contains
Description copied from interface:PublicMembersCheck whether the user is a public member of this organization.- Specified by:
containsin interfacePublicMembers- Parameters:
user- User to check public organization membership of- Returns:
- Is the user a public member of this organization?
- See Also:
-