FSSAMLTrustedPartnersViewBeanBase.java revision 4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1c
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 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: FSSAMLTrustedPartnersViewBeanBase.java,v 1.6 2009/01/16 19:30:24 asyhuang Exp $
*
*/
public abstract class FSSAMLTrustedPartnersViewBeanBase
extends AMPrimaryMastHeadViewBean {
static {
"saml.profile.trustedPartner.missing.partnerName.message");
"saml.profile.trustedPartner.missing.sourceid.message");
"saml.profile.trustedPartner.missing.target.message");
"saml.profile.trustedPartner.missing.postURL.message");
"saml.profile.trustedPartner.missing.soapURL.message");
"saml.profile.trustedPartner.missing.issuer.message");
"saml.profile.trustedPartner.missing.hostList.message");
"saml.profile.trustedPartner.missing.samlURL.message");
}
static {
}
protected CCPageTitleModel ptModel;
protected AMPropertySheetModel propertySheetModel;
protected boolean populateValues = false;
) {
super(pageName);
}
protected void initialize() {
if (!initialized) {
if (createPropertyModel()) {
initialized = true;
super.initialize();
}
}
}
protected void registerChildren() {
super.registerChildren();
ptModel.registerChildren(this);
}
} else if ((propertySheetModel != null) &&
} else {
}
return view;
}
populateValues = true;
}
throws ModelControlException {
super.beginDisplay(event);
if (populateValues) {
}
}
}
}
private boolean createPropertyModel() {
return true;
}
return false;
}
protected AMModel getModelInternal() {
}
/**
* Handles cancel request.
*
* @param event Request Invocation Event.
*/
throws ModelControlException {
}
throws ModelControlException {
try {
errorMsg);
forwardTo();
} else {
}
} catch (AMConsoleException e) {
e.getMessage());
forwardTo();
}
}
/**
* Set value of a entry from the cache value in page session.
*
* @param idx Index of the entry in the cache Set.
*/
}
}
}
return corrected;
}
} else {
}
}
}
throws AMConsoleException {
throw new AMConsoleException(
"saml.profile.trustedPartners.user.password.mismatchedmessage");
}
}
}
} else {
value = "";
}
}
}
}
// deal with the optional ones
new EncryptAction(value)));
} else {
}
}
}
return errorMessage;
}
/**
* Edits an entry to the cache value in page session.
*
* @param values Map of attribute name to value.
* @throws AMConsoleException if there are duplicate entries.
*/
throws AMConsoleException {
int count = 0;
throw new AMConsoleException(
"saml.profile.trustedPartner.already.exists");
}
count++;
}
try{
"message.information",
"saml.message.trusted.partner.updated");
} catch (AMConsoleException e) {
e.getMessage());
}
forwardTo();
}
protected void forwardToFederationView() {
getViewBean(FederationViewBean.class);
backTrail();
}
protected Set getAttributeNames() {
}
private Set getMandatoryAttributeNames() {
}
protected abstract void createPageTitleModel();
throws AMConsoleException;
protected abstract boolean isCreateViewBean();
}