Class PromptForNameLookup
- java.lang.Object
-
- edu.umd.cs.findbugs.cloud.username.PromptForNameLookup
-
- All Implemented Interfaces:
NameLookup
public class PromptForNameLookup extends java.lang.Object implements NameLookup
- Author:
- pugh
-
-
Field Summary
-
Fields inherited from interface edu.umd.cs.findbugs.cloud.username.NameLookup
USER_NAME
-
-
Constructor Summary
Constructors Constructor Description PromptForNameLookup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetUsername()Return name that should be used as the user identitybooleaninit()booleansignIn(CloudPlugin plugin, BugCollection bugCollection)tries to obtain a user name.
-
-
-
Method Detail
-
init
public boolean init()
-
getUsername
public java.lang.String getUsername()
Description copied from interface:NameLookupReturn name that should be used as the user identity- Specified by:
getUsernamein interfaceNameLookup
-
signIn
public boolean signIn(CloudPlugin plugin, BugCollection bugCollection)
Description copied from interface:NameLookuptries to obtain a user name. May prompt the user and/or perform network activity.- Specified by:
signInin interfaceNameLookup- Parameters:
plugin- TODO- Returns:
- true if successful
-
-