This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
This class get arguments from User for one time and prepare DAFv2 configuration
it applies databases scripts also
- Author:
- Mohammed.Abuouda
Method Summary |
private static boolean |
checkArgs(java.lang.String[] arguments)
|
private static boolean |
confirm()
|
private static java.lang.String |
encrypt(java.lang.String toBeEncrypted)
|
private static boolean |
getAppUserScript(DBConnection conn)
|
private static java.lang.String |
getConnectionString()
|
private static java.lang.String |
getString()
|
static void |
main(java.lang.String[] args)
This function extarcts arguments and set system variables. |
private static boolean |
read(java.lang.String[] args)
|
private static boolean |
readOneByOne()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
systemPassword
static final java.lang.String systemPassword
- See Also:
- Constant Field Values
ResourceFilePath
static final java.lang.String ResourceFilePath
- See Also:
- Constant Field Values
ScriptFolder
static final java.lang.String ScriptFolder
- See Also:
- Constant Field Values
DAF02File
static final java.lang.String DAF02File
- See Also:
- Constant Field Values
MetadataFile
static final java.lang.String MetadataFile
- See Also:
- Constant Field Values
SPs
static final java.lang.String SPs
- See Also:
- Constant Field Values
saltKey
static java.lang.String saltKey
DBroot
static java.lang.String DBroot
DBrootPwd
static java.lang.String DBrootPwd
DBServer
static java.lang.String DBServer
DBport
static java.lang.String DBport
DBUser
static java.lang.String DBUser
DBPWD
static java.lang.String DBPWD
decryptedDBPWD
static java.lang.String decryptedDBPWD
BackupServerIP
static java.lang.String BackupServerIP
BackupServerUserName
static java.lang.String BackupServerUserName
BackupServerPassword
static java.lang.String BackupServerPassword
DomainName
static java.lang.String DomainName
DomainIP
static java.lang.String DomainIP
LDAPort
static java.lang.String LDAPort
IsActiveDirectory
static java.lang.String IsActiveDirectory
BindBase
static java.lang.String BindBase
SearchBase
static java.lang.String SearchBase
connectionString
static java.lang.String connectionString
adminConnectionString
static java.lang.String adminConnectionString
userScript
static java.lang.String userScript
commandList
private static java.util.ArrayList commandList
Install
public Install()
main
public static void main(java.lang.String[] args)
- This function extarcts arguments and set system variables.
- Parameters:
args
- represents arguments list
confirm
private static boolean confirm()
checkArgs
private static boolean checkArgs(java.lang.String[] arguments)
encrypt
private static java.lang.String encrypt(java.lang.String toBeEncrypted)
read
private static boolean read(java.lang.String[] args)
readOneByOne
private static boolean readOneByOne()
getString
private static java.lang.String getString()
getConnectionString
private static java.lang.String getConnectionString()
getAppUserScript
private static boolean getAppUserScript(DBConnection conn)