java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHProject
A GitHub project.
- Author:
- Martin van Zijl
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The enum ProjectState.static enum
The enum ProjectStateFilter. -
Field Summary
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateColumn
(String name) Create column gh project column.void
delete()
Delete.protected String
Gets api route.getBody()
Gets body.Gets creator.Gets the html url.getName()
Gets name.int
Gets number.getOwner()
Gets owner.Gets owner url.getState()
Gets state.List columns paged iterable.void
Sets body.void
Sets name.void
setOrganizationPermission
(GHPermissionType permission) Set the permission level that all members of the project's organization will have on this project.void
setPublic
(boolean isPublic) Sets visibility of the project within the organization.void
setState
(GHProject.ProjectState state) Sets state.Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
Field Details
-
owner
The owner.
-
-
Constructor Details
-
GHProject
public GHProject()Create default GHProject instance
-
-
Method Details
-
getHtmlUrl
Gets the html url.- Returns:
- the html url
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
getOwner
Gets owner.- Returns:
- the owner
- Throws:
IOException
- the io exception
-
getOwnerUrl
Gets owner url.- Returns:
- the owner url
-
getName
Gets name.- Returns:
- the name
-
getBody
Gets body.- Returns:
- the body
-
getNumber
public int getNumber()Gets number.- Returns:
- the number
-
getState
Gets state.- Returns:
- the state
-
getCreator
Gets creator.- Returns:
- the creator
-
getApiRoute
Gets api route.- Returns:
- the api route
-
setName
Sets name.- Parameters:
name
- the name- Throws:
IOException
- the io exception
-
setBody
Sets body.- Parameters:
body
- the body- Throws:
IOException
- the io exception
-
setState
Sets state.- Parameters:
state
- the state- Throws:
IOException
- the io exception
-
setOrganizationPermission
Set the permission level that all members of the project's organization will have on this project. Only applicable for organization-owned projects.- Parameters:
permission
- the permission- Throws:
IOException
- the io exception
-
setPublic
Sets visibility of the project within the organization. Only applicable for organization-owned projects.- Parameters:
isPublic
- the is public- Throws:
IOException
- the io exception
-
delete
Delete.- Throws:
IOException
- the io exception
-
listColumns
List columns paged iterable.- Returns:
- the paged iterable
- Throws:
IOException
- the io exception
-
createColumn
Create column gh project column.- Parameters:
name
- the name- Returns:
- the gh project column
- Throws:
IOException
- the io exception
-