SMDiscoveryBootstrapRefOffViewBeanBase.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: SMDiscoveryBootstrapRefOffViewBeanBase.java,v 1.2 2008/06/25 05:49:44 qcheng Exp $
*
*/
public abstract class SMDiscoveryBootstrapRefOffViewBeanBase
extends AMPrimaryMastHeadViewBean
{
public static final String PROPERTY_ATTRIBUTE =
"bootstrapRefPropertyAttributes";
private static final String ATTR_RESOURCE_OFFERING_OPTIONS_OPTIONS =
"resourceOfferingOptionsOptions";
private static final String ATTR_RESOURCE_OFFERING_OPTIONS_LIST =
"resourceOfferingOptionsList";
private static final String ATTR_DIRECTIVES_GENERATE_BEARER_TOKEN_REFS =
"resourceOfferingOptionsDirectivesGenerateBearerTokenRefs";
private static final String ATTR_DIRECTIVES_AUTHENTICATE_REQUESTER_REFS =
"resourceOfferingOptionsDirectivesAuthenticateRequesterRefs";
private static final String ATTR_DIRECTIVES_ENCRYPT_RESOURCE_ID_REFS =
"resourceOfferingOptionsDirectivesEncryptResourceIDRefs";
private static final String
"resourceOfferingOptionsDirectivesAuthenticateSessionContextRefs";
private static final String ATTR_DIRECTIVES_AUTHORIZE_REQUESTER_REFS =
"resourceOfferingOptionsDirectivesAuthorizeRequesterRefs";
private static final String ATTR_DIRECTIVES_GENERATE_BEARER_TOKEN =
"GenerateBearerToken";
private static final String ATTR_DIRECTIVES_AUTHENTICATE_REQUESTER =
"AuthenticateRequester";
private static final String ATTR_DIRECTIVES_ENCRYPT_RESOURCE_ID =
"EncryptResourceID";
private static final String ATTR_DIRECTIVES_AUTHENTICATE_SESSION_CONTEXT =
"AuthenticateSessionContext";
private static final String ATTR_DIRECTIVES_AUTHORIZE_REQUESTER =
"AuthorizeRequester";
static {
}
private static final String TBL_SECURITY_MECH_ID_ADD_BTN =
"tblSecurityMechIDButtonAdd";
private static final String TBL_SECURITY_MECH_ID_DELETE_BTN =
"tblSecurityMechIDButtonDelete";
private static final String TBL_SECURITY_MECH_ID_COL_ID =
"tblSecurityMechIDColID";
private static final String TBL_SECURITY_MECH_ID_COL_ACTION =
"tblSecurityMechIDColAction";
private static final String TBL_SECURITY_MECH_ID_DATA_ID =
"tblSecurityMechIDDataID";
protected static final String TBL_SECURITY_MECH_ID_HREF_ACTION =
"tblSecurityMechIDHrefAction";
private static final String TBL_SECURITY_MECH_ID_LABEL_ACTION =
"tblSecurityMechIDLabelAction";
private static final String ATTRIBUTE_NAME_SECURITY_MECH_ID =
"SecurityMechID";
protected boolean tablePopulated = false;
protected CCPageTitleModel ptModel;
protected AMPropertySheetModel propertySheetModel;
protected boolean canModify = true;
) {
super(pageName);
}
protected void initialize() {
if (!initialized) {
super.initialize();
initialized = true;
}
}
protected void registerChildren() {
ptModel.registerChildren(this);
super.registerChildren();
}
if (!tablePopulated) {
}
} else {
}
return view;
}
protected void createPropertyModel() {
}
while (idx != -1) {
}
return origXML;
}
protected void createSecurityMechIDTable() {
"discovery.service.bootstrapResOff.securityMechID.ID");
"discovery.service.bootstrapResOff.securityMechID.Action");
"discovery.service.bootstrapResOff.securityMechID.add.button");
"discovery.service.bootstrapResOff.securityMechID.delete.button");
}
protected AMModel getModelInternal() {
try {
model = new SMDiscoveryServiceModelImpl(
} catch (AMConsoleException e) {
e.getMessage());
}
return model;
}
private void prePopulateTable() {
}
}
throws ModelControlException {
super.beginDisplay(event);
}
if (canModify) {
}
}
}
tablePopulated = true;
boolean firstEntry = true;
int counter = 0;
if (!firstEntry) {
} else {
firstEntry = false;
}
"discovery.service.table.bootstrapResOff.action.edit.label");
counter++;
}
}
}
}
/**
* Handles cancel request.
*
* @param event Request Invocation Event.
*/
SMDiscoveryServiceViewBean.class);
backTrail();
}
if (!tablePopulated) {
}
}
if (canModify) {
} else {
}
if (canModify) {
cb.setChecked(true);
} else {
}
} else {
refIds, ",", false));
} else {
}
}
} else {
if (canModify) {
cb.setChecked(false);
} else {
}
}
}
}
private Map getDirectiveMechIDMapping() {
}
}
return map;
}
throws AMConsoleException
{
ATTR_ABSTRACT)).trim();
ATTR_SERVICE_TYPE)).trim();
ATTR_PROVIDER_ID)).trim();
}
}
if (validated) {
throw new AMConsoleException(
"discovery.service.bootstrapResOff.missing.service.desc.message");
throw new AMConsoleException(
"discovery.service.bootstrapResOff.missing.serviceType.message");
throw new AMConsoleException(
"discovery.service.bootstrapResOff.missing.providerId.message");
}
}
return smDisco;
}
throws ModelControlException
{
try {
} catch (AMConsoleException e) {
forwardTo();
}
}
public void handleTblSecurityMechIDButtonAddRequest(
) throws ModelControlException {
try {
smData);
} catch (AMConsoleException e) {
forwardTo();
}
}
/**
* Handles edit security mechanism ID request.
*
* @param event Request Invocation Event.
*/
public void handleTblSecurityMechIDHrefActionRequest(
) throws ModelControlException {
smData);
}
/**
* Handles remove security mechanism ID request.
*
* @param event Request Invocation Event.
*/
public void handleTblSecurityMechIDButtonDeleteRequest(
) throws ModelControlException {
try {
}
}
} catch (AMConsoleException e) {
}
forwardTo();
}
protected abstract void createPageTitleModel();
throws AMConsoleException;
}