private GHUser resolveUser(User author) throws IOException { if (author==null || author.login==null) return null; return owner.root.getUser(author.login); }
/** * Gets the user who put this comment. */ public GHUser getUser() throws IOException { return owner.root.getUser(user.login); }
/** * Gets the user who posted this review. */ public GHUser getUser() throws IOException { return owner.root.getUser(user.getLogin()); }
/** * Gets the user who put this comment. */ public GHUser getUser() throws IOException { return owner == null || owner.root.isOffline() ? user : owner.root.getUser(user.login); }
@SuppressFBWarnings(value = {"UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" }, justification = "The field comes from JSON deserialization") public GHUser getActor() throws IOException { return root.getUser(actor.getLogin()); }
/** * Gets the user who posted this comment. */ public GHUser getUser() throws IOException { return owner.root.getUser(user.getLogin()); }
/** * Used when caller obtains {@link GHGist} without knowing its owner. * A partially constructed owner object is interned. */ /*package*/ GHGist wrapUp(GitHub root) { this.owner = root.getUser(owner); this.root = root; wrapUp(); return this; }
/** * Gets the user who put this comment. */ public GHUser getUser() throws IOException { return owner == null || owner.root.isOffline() ? user : owner.root.getUser(user.login); }
/** * Used when caller obtains {@link GHGist} without knowing its owner. * A partially constructed owner object is interned. */ /*package*/ GHGist wrapUp(GitHub root) { this.owner = root.getUser(owner); this.root = root; wrapUp(); return this; }
@SuppressFBWarnings(value = {"UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" }, justification = "The field comes from JSON deserialization") public GHUser getActor() throws IOException { return root.getUser(actor.getLogin()); }
/** * Gets the user who posted this review. */ public GHUser getUser() throws IOException { return owner.root.getUser(user.getLogin()); }
/** * Gets the user who posted this comment. */ public GHUser getUser() throws IOException { return owner.root.getUser(user.getLogin()); }
/** * Used when caller obtains {@link GHGist} without knowing its owner. * A partially constructed owner object is interned. */ /*package*/ GHGist wrapUp(GitHub root) throws IOException { this.owner = root.getUser(owner); this.root = root; wrapUp(); return this; }
/** * Gets the user who posted this comment. */ public GHUser getUser() throws IOException { return owner.root.getUser(user.getLogin()); }
/** * Gets the user who posted this comment. */ public GHUser getUser() throws IOException { return owner.root.getUser(user.getLogin()); }
/*package*/ GHMembership wrap(GitHub root) { this.root = root; if (user!=null) user = root.getUser(user.wrapUp(root)); if (organization!=null) organization.wrapUp(root); return this; }
/** * Gets the user who posted this comment. */ public GHUser getUser() throws IOException { return owner == null || owner.root.isOffline() ? user : owner.root.getUser(user.getLogin()); }
/** * Gets the user who posted this comment. */ public GHUser getUser() throws IOException { return owner == null || owner.root.isOffline() ? user : owner.root.getUser(user.getLogin()); }
/*package*/ GHMembership wrap(GitHub root) { this.root = root; if (user!=null) user = root.getUser(user.wrapUp(root)); if (organization!=null) organization.wrapUp(root); return this; }
public List<GitHubRepository> getUserRepositories(String user) { validateUserName(user); List<GitHubRepository> repositories = new LinkedList<>(); try { Map<String, GHRepository> gitHubRepositories = gitHub.getUser(user).getRepositories(); repositories = mapGhRepositories(gitHubRepositories.values()); } catch (IOException e) { Log.e("Error retrieving repositories from user " + user); } return repositories; }