Package org.kohsuke.github
Class GHProjectCard
- java.lang.Object
-
- org.kohsuke.github.GHObject
-
- org.kohsuke.github.GHProjectCard
-
public class GHProjectCard extends GHObject
The type GHProjectCard.- Author:
- Gunnar Skjold
-
-
Field Summary
-
Fields inherited from class org.kohsuke.github.GHObject
created_at, id, responseHeaderFields, updated_at, url
-
-
Constructor Summary
Constructors Constructor Description GHProjectCard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()Delete.protected StringgetApiRoute()Gets api route.GHProjectColumngetColumn()Gets column.URLgetColumnUrl()Gets column url.GHIssuegetContent()Gets content.URLgetContentUrl()Gets content url.GHUsergetCreator()Gets creator.URLgetHtmlUrl()Gets html url.StringgetNote()Gets note.GHProjectgetProject()Gets project.URLgetProjectUrl()Gets project url.GitHubgetRoot()Gets root.booleanisArchived()Is archived boolean.voidsetArchived(boolean archived)Sets archived.voidsetNote(String note)Sets note.GHProjectCardwrap(GHProjectColumn column)Wrap gh project card.GHProjectCardwrap(GitHub root)Wrap gh project card.-
Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getResponseHeaderFields, getUpdatedAt, getUrl, toString
-
-
-
-
Method Detail
-
getHtmlUrl
public URL getHtmlUrl() throws IOException
Description copied from class:GHObjectGets html url.- Specified by:
getHtmlUrlin classGHObject- Returns:
- URL of this object for humans, which renders some HTML.
- Throws:
IOException- on error
-
wrap
public GHProjectCard wrap(GitHub root)
Wrap gh project card.- Parameters:
root- the root- Returns:
- the gh project card
-
wrap
public GHProjectCard wrap(GHProjectColumn column)
Wrap gh project card.- Parameters:
column- the column- Returns:
- the gh project card
-
getRoot
public GitHub getRoot()
Gets root.- Returns:
- the root
-
getProject
public GHProject getProject() throws IOException
Gets project.- Returns:
- the project
- Throws:
IOException- the io exception
-
getColumn
public GHProjectColumn getColumn() throws IOException
Gets column.- Returns:
- the column
- Throws:
IOException- the io exception
-
getContent
public GHIssue getContent() throws IOException
Gets content.- Returns:
- the content
- Throws:
IOException- the io exception
-
getNote
public String getNote()
Gets note.- Returns:
- the note
-
getCreator
public GHUser getCreator()
Gets creator.- Returns:
- the creator
-
getContentUrl
public URL getContentUrl()
Gets content url.- Returns:
- the content url
-
getProjectUrl
public URL getProjectUrl()
Gets project url.- Returns:
- the project url
-
getColumnUrl
public URL getColumnUrl()
Gets column url.- Returns:
- the column url
-
isArchived
public boolean isArchived()
Is archived boolean.- Returns:
- the boolean
-
setNote
public void setNote(String note) throws IOException
Sets note.- Parameters:
note- the note- Throws:
IOException- the io exception
-
setArchived
public void setArchived(boolean archived) throws IOExceptionSets archived.- Parameters:
archived- the archived- Throws:
IOException- the io exception
-
getApiRoute
protected String getApiRoute()
Gets api route.- Returns:
- the api route
-
delete
public void delete() throws IOExceptionDelete.- Throws:
IOException- the io exception
-
-