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
responseHeaderFields
-
-
Constructor Summary
Constructors Constructor Description GHProjectCard()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
delete()
Delete.protected String
getApiRoute()
Gets api route.GHProjectColumn
getColumn()
Gets column.URL
getColumnUrl()
Gets column url.GHIssue
getContent()
Gets content if present.URL
getContentUrl()
Gets content url.GHUser
getCreator()
Gets creator.URL
getHtmlUrl()
Gets the html url.String
getNote()
Gets note.GHProject
getProject()
Gets project.URL
getProjectUrl()
Gets project url.GitHub
getRoot()
Deprecated.For access to theGitHub
instance, use a local copy instead of pulling it out of objects.boolean
isArchived()
Is archived boolean.void
setArchived(boolean archived)
Sets archived.void
setNote(String note)
Sets note.GHProjectCard
wrap(GHProjectColumn column)
Deprecated.GHProjectCard
wrap(GitHub root)
Deprecated.-
Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
-
-
-
Method Detail
-
getHtmlUrl
public URL getHtmlUrl() throws IOException
Gets the html url.- Specified by:
getHtmlUrl
in classGHObject
- Returns:
- the html url
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
wrap
@Deprecated public GHProjectCard wrap(GitHub root)
Deprecated.Wrap gh project card.- Parameters:
root
- the root- Returns:
- the gh project card
-
wrap
@Deprecated public GHProjectCard wrap(GHProjectColumn column)
Deprecated.Wrap gh project card.- Parameters:
column
- the column- Returns:
- the gh project card
-
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 if present. Might be aGHPullRequest
or aGHIssue
.- 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 IOException
Sets 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 IOException
Delete.- Throws:
IOException
- the io exception
-
getRoot
@Deprecated public GitHub getRoot()
Deprecated.For access to theGitHub
instance, use a local copy instead of pulling it out of objects.Get the rootGitHub
instance for this object.- Returns:
- the root
GitHub
instance
-
-