ConfigHandlerBase.java revision fb379c70e3fd8a537f311b99be4759ae41e02750
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: ConfigHandlerBase.java,v 1.2 2008/06/25 05:51:25 qcheng Exp $
*
*/
/*
* Portions Copyrighted [2010] [ForgeRock AS]
*/
abstract public class ConfigHandlerBase {
// Arguments to the -install option can be:
// 1. <empty>
// 2. -useResponses <responseFile>
// 3. -saveResponses <responseFile>
//
boolean isCheckSuccessful = true;
+ arguments);
{
} else {
+ "specified.");
isCheckSuccessful = false;
}
+ "incomplete/invald arguments.");
isCheckSuccessful = false;
}
return isCheckSuccessful;
}
boolean validationSuccess = false;
new Object[] { STR_SAVE_RESPONSES });
} else {
// Test it out.
try {
if (!created) {
// Just a test. So, we don't end up with error at the
// end of the install
} else {
// Delete this file. We will re-create later. Otherwise
// this file will be not be cleaned even if the
// installer aborts.
// Set the flag only after delete.
validationSuccess = true;
}
} catch (IOException ie) {
}
}
}
return validationSuccess;
}
boolean validationSuccess = false;
new Object[] { STR_USE_RESPONSES });
} else {
} else if (file.isDirectory()) {
} else {
validationSuccess = true;
}
}
return validationSuccess;
}
for (int i = 0; i < count; i++) {
}
}
}
} else {
}
}
public static final String LOC_HR_ERR_RESP_FILE_EXISTS =
"HR_ERR_RESP_FILE_EXISTS";
public static final String LOC_HR_ERR_RESP_FILE_NOT_FOUND =
"HR_ERR_RESP_FILE_NOT_FOUND";
public static final String LOC_HR_ERR_RESP_FILE_CREATE =
"HR_ERR_RESP_FILE_CREATE";
public static final String LOC_HR_ERR_RESP_FILE_READ =
"HR_ERR_RESP_FILE_READ";
public static final String LOC_ERR_RESP_FILE_IS_DIR =
"LOC_ERR_RESP_FILE_IS_DIR";
public static final String LOC_HR_ERR_RESP_FILE_NOT_SPECIFIED =
"HR_ERR_RESP_FILE_NOT_SPECIFIED";
public static final String LOC_HR_MSG_INVALID_OPTION =
"HR_MSG_INVALID_OPTION";
}