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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jcabi.github.Organization
Organization.Smart
-
-
Constructor Summary
Constructors Constructor Description Smart(Organization orgn)
Public ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
avatarUrl()
Get its avatar URL.String
billingEmail()
Get its billingEmail.void
billingEmail(String billingemail)
Change its billingEmail.String
blog()
Get its blog.String
company()
Get its company.void
company(String company)
Change its company.int
compareTo(Organization obj)
Date
createdAt()
When this organisation was created.String
email()
Get its email.void
email(String email)
Change its email.int
followers()
Get its followers count.int
following()
Get its following count.Github
github()
Github we're in.URL
htmlUrl()
Get its HTML URL.javax.json.JsonObject
json()
Describe it in a JSON object.String
location()
Get its location.void
location(String location)
Change its location.String
login()
Get this organization's login.String
name()
Get its name.void
name(String name)
Change its name.int
number()
Get this organization's ID.void
patch(javax.json.JsonObject json)
Patch using this JSON object.int
publicGists()
Get its public gists count.PublicMembers
publicMembers()
Get this organization's public members.int
publicRepos()
Get its public repos count.String
type()
Get its type.URL
url()
Get its URL.
-
-
-
Constructor Detail
-
Smart
public Smart(Organization orgn)
Public ctor.- Parameters:
orgn
- Organization
-
-
Method Detail
-
number
public int number() throws IOException
Get this organization's ID.- Returns:
- Unique organization ID
- Throws:
IOException
- If it fails
-
company
public String company() throws IOException
Get its company.- Returns:
- Company of organization
- Throws:
IOException
- If there is any I/O problem
-
company
public void company(String company) throws IOException
Change its company.- Parameters:
company
- Company of organization- Throws:
IOException
- If there is any I/O problem
-
location
public String location() throws IOException
Get its location.- Returns:
- Location of organization
- Throws:
IOException
- If there is any I/O problem
-
location
public void location(String location) throws IOException
Change its location.- Parameters:
location
- Location of organization- Throws:
IOException
- If there is any I/O problem
-
name
public String name() throws IOException
Get its name.- Returns:
- Name of organization
- Throws:
IOException
- If there is any I/O problem
-
name
public void name(String name) throws IOException
Change its name.- Parameters:
name
- Company of organization- Throws:
IOException
- If there is any I/O problem
-
email
public String email() throws IOException
Get its email.- Returns:
- Email of organization
- Throws:
IOException
- If there is any I/O problem
-
email
public void email(String email) throws IOException
Change its email.- Parameters:
email
- Email of organization- Throws:
IOException
- If there is any I/O problem
-
billingEmail
public String billingEmail() throws IOException
Get its billingEmail.- Returns:
- BillingEmail of organization
- Throws:
IOException
- If there is any I/O problem
-
billingEmail
public void billingEmail(String billingemail) throws IOException
Change its billingEmail.- Parameters:
billingemail
- BillingEmail of organization- Throws:
IOException
- If there is any I/O problem
-
blog
public String blog() throws IOException
Get its blog.- Returns:
- Blog of organization
- Throws:
IOException
- If there is any I/O problem
-
url
public URL url() throws IOException
Get its URL.- Returns:
- URL of organization
- Throws:
IOException
- If there is any I/O problem
-
htmlUrl
public URL htmlUrl() throws IOException
Get its HTML URL.- Returns:
- HTML URL of organization
- Throws:
IOException
- If there is any I/O problem
-
avatarUrl
public URL avatarUrl() throws IOException
Get its avatar URL.- Returns:
- Avatar URL of organization
- Throws:
IOException
- If there is any I/O problem
-
createdAt
public Date createdAt() throws IOException
When this organisation was created.- Returns:
- Date of creation
- Throws:
IOException
- If there is any I/O problem
-
publicRepos
public int publicRepos() throws IOException
Get its public repos count.- Returns:
- Count of public repos of organization
- Throws:
IOException
- If there is any I/O problem
-
publicGists
public int publicGists() throws IOException
Get its public gists count.- Returns:
- Count of public gists of organization
- Throws:
IOException
- If there is any I/O problem
-
followers
public int followers() throws IOException
Get its followers count.- Returns:
- Count of followers of organization
- Throws:
IOException
- If there is any I/O problem
-
following
public int following() throws IOException
Get its following count.- Returns:
- Count of following of organization
- Throws:
IOException
- If there is any I/O problem
-
type
public String type() throws IOException
Get its type.- Returns:
- Type of organization
- Throws:
IOException
- If there is any I/O problem
-
login
public String login()
Description copied from interface:Organization
Get this organization's login.- Specified by:
login
in interfaceOrganization
- Returns:
- Login name
-
github
public Github github()
Description copied from interface:Organization
Github we're in.- Specified by:
github
in interfaceOrganization
- Returns:
- Github
-
publicMembers
public PublicMembers publicMembers()
Description copied from interface:Organization
Get this organization's public members.- Specified by:
publicMembers
in interfaceOrganization
- Returns:
- Public members
-
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
-
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
-
compareTo
public int compareTo(Organization obj)
- Specified by:
compareTo
in interfaceComparable<Organization>
-
-