Package com.jcabi.github
Class Organization.Smart
java.lang.Object
com.jcabi.github.Organization.Smart
- All Implemented Interfaces:
JsonPatchable,JsonReadable,Organization,Comparable<Organization>
- Enclosing interface:
- Organization
@Immutable
@Loggable(1)
public static final class Organization.Smart
extends Object
implements Organization
Smart Organization with extra features.
- Since:
- 0.7
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jcabi.github.Organization
Organization.Smart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet its avatar URL.Get its billingEmail.voidbillingEmail(String billingemail) Change its billingEmail.blog()Get its blog.company()Get its company.voidChange its company.intcompareTo(Organization obj) When this organisation was created.email()Get its email.voidChange its email.intGet its followers count.intGet its following count.github()GitHub we're in.htmlUrl()Get its HTML URL.jakarta.json.JsonObjectjson()Describe it in a JSON object.location()Get its location.voidChange its location.login()Get this organization's login.name()Get its name.voidChange its name.intnumber()Get this organization's ID.voidpatch(jakarta.json.JsonObject json) Patch using this JSON object.intGet its public gists count.Get this organization's public members.intGet its public repos count.type()Get its type.url()Get its URL.
-
Constructor Details
-
Smart
Public ctor.- Parameters:
orgn- Organization
-
-
Method Details
-
number
Get this organization's ID.- Returns:
- Unique organization ID
- Throws:
IOException- If it fails
-
company
Get its company.- Returns:
- Company of organization
- Throws:
IOException- If there is any I/O problem
-
company
Change its company.- Parameters:
company- Company of organization- Throws:
IOException- If there is any I/O problem
-
location
Get its location.- Returns:
- Location of organization
- Throws:
IOException- If there is any I/O problem
-
location
Change its location.- Parameters:
location- Location of organization- Throws:
IOException- If there is any I/O problem
-
name
Get its name.- Returns:
- Name of organization
- Throws:
IOException- If there is any I/O problem
-
name
Change its name.- Parameters:
name- Company of organization- Throws:
IOException- If there is any I/O problem
-
email
Get its email.- Returns:
- Email of organization
- Throws:
IOException- If there is any I/O problem
-
email
Change its email.- Parameters:
email- Email of organization- Throws:
IOException- If there is any I/O problem
-
billingEmail
Get its billingEmail.- Returns:
- BillingEmail of organization
- Throws:
IOException- If there is any I/O problem
-
billingEmail
Change its billingEmail.- Parameters:
billingemail- BillingEmail of organization- Throws:
IOException- If there is any I/O problem
-
blog
Get its blog.- Returns:
- Blog of organization
- Throws:
IOException- If there is any I/O problem
-
url
Get its URL.- Returns:
- URL of organization
- Throws:
IOException- If there is any I/O problem
-
htmlUrl
Get its HTML URL.- Returns:
- HTML URL of organization
- Throws:
IOException- If there is any I/O problem
-
avatarUrl
Get its avatar URL.- Returns:
- Avatar URL of organization
- Throws:
IOException- If there is any I/O problem
-
createdAt
When this organisation was created.- Returns:
- Date of creation
- Throws:
IOException- If there is any I/O problem
-
publicRepos
Get its public repos count.- Returns:
- Count of public repos of organization
- Throws:
IOException- If there is any I/O problem
-
publicGists
Get its public gists count.- Returns:
- Count of public gists of organization
- Throws:
IOException- If there is any I/O problem
-
followers
Get its followers count.- Returns:
- Count of followers of organization
- Throws:
IOException- If there is any I/O problem
-
following
Get its following count.- Returns:
- Count of following of organization
- Throws:
IOException- If there is any I/O problem
-
type
Get its type.- Returns:
- Type of organization
- Throws:
IOException- If there is any I/O problem
-
login
Description copied from interface:OrganizationGet this organization's login.- Specified by:
loginin interfaceOrganization- Returns:
- Login name
-
github
Description copied from interface:OrganizationGitHub we're in.- Specified by:
githubin interfaceOrganization- Returns:
- GitHub
-
publicMembers
Description copied from interface:OrganizationGet this organization's public members.- Specified by:
publicMembersin interfaceOrganization- Returns:
- Public members
-
json
Description 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
-
patch
Description 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
-
compareTo
- Specified by:
compareToin interfaceComparable<Organization>
-