Package com.jcabi.github
Class Repo.Smart
- java.lang.Object
-
- com.jcabi.github.Repo.Smart
-
- All Implemented Interfaces:
JsonPatchable,JsonReadable,Repo,Comparable<Repo>
- Enclosing interface:
- Repo
@Immutable @Loggable(1) public static final class Repo.Smart extends Object implements Repo
Smart Repo with extra features.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jcabi.github.Repo
Repo.Smart
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Assigneesassignees()Get all available assignees to which issues may be assigned.Branchesbranches()Get repository's branches.Collaboratorscollaborators()Gel all collaborators.RepoCommitscommits()Get repository's commits.intcompareTo(Repo repos)Contentscontents()Get all contents of the repo.Coordinatescoordinates()Get its coordinates.Stringdescription()Get its description.booleanexists()Does this Repo actually exist in Github?Forksforks()Get all forks of the repo.Gitgit()Get the Git API entry point.Githubgithub()Get its owner.booleanhasDescription()Does it have a description.Hookshooks()Hooks.booleanisPrivate()Is it private?.IssueEventsissueEvents()Get all issue events for the repository.Issuesissues()Iterate issues.javax.json.JsonObjectjson()Describe it in a JSON object.DeployKeyskeys()Get all deploy keys of the repo.Labelslabels()Get all labels of the repo.Iterable<Language>languages()Get languages for the specified repository.Milestonesmilestones()Iterate milestones.Notificationsnotifications()Get Notifications API.voidpatch(javax.json.JsonObject json)Patch using this JSON object.Pullspulls()Pull requests.Releasesreleases()Get all releases of the repo.Starsstars()Get Starring API.
-
-
-
Constructor Detail
-
Smart
public Smart(Repo rep)
Public ctor.- Parameters:
rep- Repo
-
-
Method Detail
-
exists
public boolean exists() throws IOExceptionDoes this Repo actually exist in Github?- Returns:
- True if it exists, false otherwise.
- Throws:
IOException- If there is any I/O problem.
-
hasDescription
public boolean hasDescription() throws IOExceptionDoes it have a description.- Returns:
- TRUE if description is present
- Throws:
IOException- If there is any I/O problem
-
description
public String description() throws IOException
Get its description.- Returns:
- Description
- Throws:
IOException- If there is any I/O problem
-
isPrivate
public boolean isPrivate() throws IOExceptionIs it private?.- Returns:
- TRUE if it's private
- Throws:
IOException- If there is any I/O problem
-
coordinates
public Coordinates coordinates()
Description copied from interface:RepoGet its coordinates.- Specified by:
coordinatesin interfaceRepo- Returns:
- Coordinates
-
milestones
public Milestones milestones()
Description copied from interface:RepoIterate milestones.- Specified by:
milestonesin interfaceRepo- Returns:
- Milestones
-
issueEvents
public IssueEvents issueEvents()
Description copied from interface:RepoGet all issue events for the repository.- Specified by:
issueEventsin interfaceRepo- Returns:
- Issue events
- See Also:
- List Events for a Repository
-
labels
public Labels labels()
Description copied from interface:RepoGet all labels of the repo.- Specified by:
labelsin interfaceRepo- Returns:
- Labels
- See Also:
- Labels API
-
assignees
public Assignees assignees()
Description copied from interface:RepoGet all available assignees to which issues may be assigned.- Specified by:
assigneesin interfaceRepo- Returns:
- Assignees
- See Also:
- Assignees API
-
releases
public Releases releases()
Description copied from interface:RepoGet all releases of the repo.- Specified by:
releasesin interfaceRepo- Returns:
- Releases
- See Also:
- Releases API
-
keys
public DeployKeys keys()
Description copied from interface:RepoGet all deploy keys of the repo.- Specified by:
keysin interfaceRepo- Returns:
- DeployKeys
- See Also:
- Deploy Keys API
-
contents
public Contents contents()
Description copied from interface:RepoGet all contents of the repo.- Specified by:
contentsin interfaceRepo- Returns:
- Contents
- See Also:
- Contents API
-
collaborators
public Collaborators collaborators()
Description copied from interface:RepoGel all collaborators.- Specified by:
collaboratorsin interfaceRepo- Returns:
- Collaborators
- See Also:
- Collaborators API
-
git
public Git git()
Description copied from interface:RepoGet the Git API entry point.- Specified by:
gitin interfaceRepo- Returns:
- Collaborators
- See Also:
- Git Data API
-
stars
public Stars stars()
Description copied from interface:RepoGet Starring API.- Specified by:
starsin interfaceRepo- Returns:
- Stars
- See Also:
- Starring API
-
notifications
public Notifications notifications()
Description copied from interface:RepoGet Notifications API.- Specified by:
notificationsin interfaceRepo- Returns:
- Stars
- See Also:
- Notifications API
-
languages
public Iterable<Language> languages() throws IOException
Description copied from interface:RepoGet languages for the specified repository.- Specified by:
languagesin interfaceRepo- Returns:
- Languages
- Throws:
IOException- If there is any I/O problem- See Also:
- List languages
-
patch
public void patch(javax.json.JsonObject json) throws IOExceptionDescription copied from interface:JsonPatchablePatch using this JSON object.- Specified by:
patchin interfaceJsonPatchable- Parameters:
json- JSON object- Throws:
IOException- If there is any I/O problem
-
commits
public RepoCommits commits()
Description copied from interface:RepoGet repository's commits.- Specified by:
commitsin interfaceRepo- Returns:
- Commits
- See Also:
- Commits API
-
branches
public Branches branches()
Description copied from interface:RepoGet repository's branches.- Specified by:
branchesin interfaceRepo- Returns:
- Branches
- See Also:
- List Branches API
-
json
public javax.json.JsonObject json() throws IOExceptionDescription copied from interface:JsonReadableDescribe it in a JSON object.- Specified by:
jsonin interfaceJsonReadable- Returns:
- JSON object
- Throws:
IOException- If there is any I/O problem
-
compareTo
public int compareTo(Repo repos)
- Specified by:
compareToin interfaceComparable<Repo>
-
-