Class GHMembership

java.lang.Object
org.kohsuke.github.GHMembership

public class GHMembership extends Object
Represents a membership of a user in an organization.
Author:
Kohsuke Kawaguchi
See Also:
  • Constructor Details

    • GHMembership

      public GHMembership()
  • Method Details

    • getUrl

      public URL getUrl()
      Gets url.
      Returns:
      the url
    • getState

      public GHMembership.State getState()
      Gets state.
      Returns:
      the state
    • getRole

      public GHMembership.Role getRole()
      Gets role.
      Returns:
      the role
    • getUser

      public GHUser getUser()
      Gets user.
      Returns:
      the user
    • getOrganization

      public GHOrganization getOrganization()
      Gets organization.
      Returns:
      the organization
    • activate

      public void activate() throws IOException
      Accepts a pending invitation to an organization.
      Throws:
      IOException - the io exception
      See Also:
    • getRoot

      @Deprecated public GitHub getRoot()
      Deprecated.
      For access to the GitHub instance, use a local copy instead of pulling it out of objects.
      Get the root GitHub instance for this object.
      Returns:
      the root GitHub instance