Upgrade.java revision ece5a262d20a50d0abf584d0f7ec73929ede9cfd
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2011-2015 ForgeRock AS. 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
* 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]"
*
*/
/**
* OpenAM upgrade page.
*/
private UpgradeServices upgrade;
private SSOToken adminToken;
private boolean error = false;
public Upgrade() {
try {
error = true;
}
}
/**
* Creating the UI models in the #onRender method makes sure that these fields are not always reinitialized when an
* actionLink is clicked. This is necessary since Click always creates new instances for actionLink events.
*/
public void onRender() {
if (error) {
addModel("error", true);
} else {
}
}
public boolean doUpgrade() {
try {
writeToResponse("true");
} catch (UpgradeException ue) {
} finally {
}
return false;
}
public boolean saveReport() {
"Content-Disposition", "attachment; filename=\"upgradereport." + System.currentTimeMillis() + "\"");
return false;
}
/**
* Checks whether the user has accepted the terms of the license agreement.
*
* @return true if the license acceptance parameter is present and correct, otherwise false.
*/
private boolean isLicenseAccepted() {
}
}