public class WikiUser extends Object
Constructor and Description |
---|
WikiUser() |
Modifier and Type | Method and Description |
---|---|
static void |
createIniFile(String... args)
create a credentials ini file from the command line
|
String |
getEmail() |
static String |
getInput(String name,
BufferedReader br)
get input from standard in
|
String |
getPassword() |
static Properties |
getProperties(String wikiId)
get the Properties for the given wikiId
|
static File |
getPropertyFile(String wikiId)
get the propertyFile for the given wikiId
|
static File |
getPropertyFile(String wikiId,
String user)
get the property file for the given wikiId and user
|
static WikiUser |
getUser(String wikiId,
String siteurl)
get the Wiki user for the given wikiid
|
String |
getUsername() |
static String |
help(String wikiId,
String siteurl)
help text
|
static void |
main(String[] args)
main program
|
void |
setEmail(String email) |
void |
setPassword(String password) |
void |
setUsername(String username) |
protected static Logger LOGGER
public String getEmail()
public void setEmail(String email)
email
- the email to setpublic static String getInput(String name, BufferedReader br) throws IOException
name
- br
- - the buffered reader to read fromIOException
public static File getPropertyFile(String wikiId, String user)
wikiId
- - the wiki to get the data foruser
- - the userpublic static File getPropertyFile(String wikiId)
wikiId
- public static Properties getProperties(String wikiId) throws FileNotFoundException, IOException
wikiId
- FileNotFoundException
IOException
public static WikiUser getUser(String wikiId, String siteurl)
wikiId
- - the id of the wikisiteurl
- - the siteurlpublic String getUsername()
public void setUsername(String username)
username
- the username to setpublic String getPassword()
public void setPassword(String password)
password
- the password to setpublic static void createIniFile(String... args)
public static String help(String wikiId, String siteurl)
wikiId
- siteurl
- public static void main(String[] args)
args
- Copyright © 2018 BITPlan GmbH. All rights reserved.