Class UserInfo
- java.lang.Object
-
- org.vx68k.bitbucket.api.client.webapp.UserInfo
-
- All Implemented Interfaces:
Serializable
@Named @RequestScoped public class UserInfo extends Object implements Serializable
Request-scoped bean to look up a user name on Bitbucket Cloud.- Since:
- 5.0
- Author:
- Kaz Nishimura
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserInfo(UserContext context)Constructs this object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BitbucketClientgetBitbucketClient()Returns the Bitbucket client of the user context.StringgetName()Returns the user name to look up.BitbucketAccountgetUser()Returns the user found by the last lookup.UserContextgetUserContext()Returns the user context given to the constructor.booleanisFound()Returnstrueif a user was found by the last lookup.ObjectlookUp()Performs an action to look up.voidsetName(String value)Sets the user name to look up.
-
-
-
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;
nullotherwise - See Also:
isFound()
-
isFound
public boolean isFound()
Returnstrueif a user was found by the last lookup.- Returns:
trueif found;falseotherwise
-
lookUp
public Object lookUp()
Performs an action to look up.This method always returns
null.- Returns:
null
-
-