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 Assignees
assignees()
Get all available assignees to which issues may be assigned.Branches
branches()
Get repository's branches.Collaborators
collaborators()
Gel all collaborators.RepoCommits
commits()
Get repository's commits.int
compareTo(Repo repos)
Contents
contents()
Get all contents of the repo.Coordinates
coordinates()
Get its coordinates.String
description()
Get its description.boolean
exists()
Does this Repo actually exist in Github?Forks
forks()
Get all forks of the repo.Git
git()
Get the Git API entry point.Github
github()
Get its owner.boolean
hasDescription()
Does it have a description.Hooks
hooks()
Hooks.boolean
isPrivate()
Is it private?.IssueEvents
issueEvents()
Get all issue events for the repository.Issues
issues()
Iterate issues.javax.json.JsonObject
json()
Describe it in a JSON object.DeployKeys
keys()
Get all deploy keys of the repo.Labels
labels()
Get all labels of the repo.Iterable<Language>
languages()
Get languages for the specified repository.Milestones
milestones()
Iterate milestones.Notifications
notifications()
Get Notifications API.void
patch(javax.json.JsonObject json)
Patch using this JSON object.Pulls
pulls()
Pull requests.Releases
releases()
Get all releases of the repo.Stars
stars()
Get Starring API.
-
-
-
Constructor Detail
-
Smart
public Smart(Repo rep)
Public ctor.- Parameters:
rep
- Repo
-
-
Method Detail
-
exists
public boolean exists() throws IOException
Does 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 IOException
Does 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 IOException
Is 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:Repo
Get its coordinates.- Specified by:
coordinates
in interfaceRepo
- Returns:
- Coordinates
-
milestones
public Milestones milestones()
Description copied from interface:Repo
Iterate milestones.- Specified by:
milestones
in interfaceRepo
- Returns:
- Milestones
-
issueEvents
public IssueEvents issueEvents()
Description copied from interface:Repo
Get all issue events for the repository.- Specified by:
issueEvents
in interfaceRepo
- Returns:
- Issue events
- See Also:
- List Events for a Repository
-
labels
public Labels labels()
Description copied from interface:Repo
Get all labels of the repo.- Specified by:
labels
in interfaceRepo
- Returns:
- Labels
- See Also:
- Labels API
-
assignees
public Assignees assignees()
Description copied from interface:Repo
Get all available assignees to which issues may be assigned.- Specified by:
assignees
in interfaceRepo
- Returns:
- Assignees
- See Also:
- Assignees API
-
releases
public Releases releases()
Description copied from interface:Repo
Get all releases of the repo.- Specified by:
releases
in interfaceRepo
- Returns:
- Releases
- See Also:
- Releases API
-
keys
public DeployKeys keys()
Description copied from interface:Repo
Get all deploy keys of the repo.- Specified by:
keys
in interfaceRepo
- Returns:
- DeployKeys
- See Also:
- Deploy Keys API
-
contents
public Contents contents()
Description copied from interface:Repo
Get all contents of the repo.- Specified by:
contents
in interfaceRepo
- Returns:
- Contents
- See Also:
- Contents API
-
collaborators
public Collaborators collaborators()
Description copied from interface:Repo
Gel all collaborators.- Specified by:
collaborators
in interfaceRepo
- Returns:
- Collaborators
- See Also:
- Collaborators API
-
git
public Git git()
Description copied from interface:Repo
Get the Git API entry point.- Specified by:
git
in interfaceRepo
- Returns:
- Collaborators
- See Also:
- Git Data API
-
stars
public Stars stars()
Description copied from interface:Repo
Get Starring API.- Specified by:
stars
in interfaceRepo
- Returns:
- Stars
- See Also:
- Starring API
-
notifications
public Notifications notifications()
Description copied from interface:Repo
Get Notifications API.- Specified by:
notifications
in interfaceRepo
- Returns:
- Stars
- See Also:
- Notifications API
-
languages
public Iterable<Language> languages() throws IOException
Description copied from interface:Repo
Get languages for the specified repository.- Specified by:
languages
in 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 IOException
Description copied from interface:JsonPatchable
Patch using this JSON object.- Specified by:
patch
in interfaceJsonPatchable
- Parameters:
json
- JSON object- Throws:
IOException
- If there is any I/O problem
-
commits
public RepoCommits commits()
Description copied from interface:Repo
Get repository's commits.- Specified by:
commits
in interfaceRepo
- Returns:
- Commits
- See Also:
- Commits API
-
branches
public Branches branches()
Description copied from interface:Repo
Get repository's branches.- Specified by:
branches
in interfaceRepo
- Returns:
- Branches
- See Also:
- List Branches API
-
json
public javax.json.JsonObject json() throws IOException
Description copied from interface:JsonReadable
Describe it in a JSON object.- Specified by:
json
in interfaceJsonReadable
- Returns:
- JSON object
- Throws:
IOException
- If there is any I/O problem
-
compareTo
public int compareTo(Repo repos)
- Specified by:
compareTo
in interfaceComparable<Repo>
-
-