Class UserInfo

    • Constructor Detail

      • UserInfo

        @Inject
        public UserInfo​(UserContext context)
        Constructs this object.
        Parameters:
        context - user context
    • Method Detail

      • getUserContext

        public UserContext getUserContext()
        Returns the user context given to the constructor.
        Returns:
        the user context
      • getBitbucketClient

        protected BitbucketClient getBitbucketClient()
        Returns the Bitbucket client of the user context.
        Returns:
        the Bitbucket client
      • getName

        public String getName()
        Returns the user name to look up.
        Returns:
        the user name
      • setName

        public void setName​(String value)
        Sets the user name to look up.
        Parameters:
        value - new value of the user name
      • getUser

        public BitbucketAccount getUser()
        Returns the user found by the last lookup.
        Returns:
        the user if one was found; null otherwise
        See Also:
        isFound()
      • isFound

        public boolean isFound()
        Returns true if a user was found by the last lookup.
        Returns:
        true if found; false otherwise
      • lookUp

        public Object lookUp()
        Performs an action to look up.

        This method always returns null.

        Returns:
        null