ScriptsViewBean.java revision 28de0461d82a4e6471c71d793af7a9492ca98dd3
/*
* 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 legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at 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 copyright [year] [name of copyright owner]".
*
* Copyright 2015 ForgeRock AS.
*/
/**
* Script management and editing.
* @since 13.0.0
*/
/**
* Creates a scripts view bean.
*/
public ScriptsViewBean() {
super("Scripts");
}
protected void initialize() {
if (!initialized) {
super.initialize();
initialized = true;
}
}
/**
* This redirects to the script editor. This isn't a natural thing for JATO, and so the strategy used here is
* to set up a redirect and then throw a CompleteRequestException (thus pretending an error occurred) which causes
* the redirect to happen.
*
* @param event The display event.
*/
} else {
}
try {
// throwing this exception here causes the redirect to occur. This is more appropriate for error
// handling, but it works, so we use it.
//
throw new CompleteRequestException();
} catch (IOException e) {
}
}
protected AMModel getModelInternal() {
}
}