WSPersonalProfileServiceViewBean.java revision 4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1c
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * The contents of this file are subject to the terms
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * of the Common Development and Distribution License
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * (the License). You may not use this file except in
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * compliance with the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * You can obtain a copy of the License at
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * https://opensso.dev.java.net/public/CDDLv1.0.html or
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * See the License for the specific language governing
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * permission and limitations under the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * When distributing Covered Code, include this CDDL
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Header Notice in each file and include the License file
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * If applicable, add the following below the CDDL Header,
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * with the fields enclosed by brackets [] replaced by
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * your own identifying information:
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * "Portions Copyrighted [year] [name of copyright owner]"
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * $Id: WSPersonalProfileServiceViewBean.java,v 1.2 2008/06/25 05:49:50 qcheng Exp $
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterimport com.iplanet.jato.model.ModelControlException;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterimport com.iplanet.jato.view.event.DisplayEvent;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterimport com.iplanet.jato.view.event.RequestInvocationEvent;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterimport com.sun.identity.console.base.AMPropertySheet;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterimport com.sun.identity.console.base.AMServiceProfileViewBeanBase;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterimport com.sun.identity.console.base.model.AMConsoleException;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterimport com.sun.identity.console.base.model.AMModel;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterimport com.sun.identity.console.base.model.AMServiceProfileModel;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterimport com.sun.identity.console.webservices.model.WSPersonalProfileServiceModelImpl;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterimport com.sun.identity.shared.datastruct.OrderedSet;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster public static final String DEFAULT_DISPLAY_URL =
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster "/console/webservices/WSPersonalProfileService.jsp";
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster private static final String TBL_SUPPORTED_CONTAINER_COL_NAME =
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster "tblSupportedContainerColName";
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster private static final String TBL_SUPPORTED_CONTAINER_DATA_NAME =
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster "tblSupportedContainerDataName";
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster private static final String TBL_SUPPORTED_CONTAINER_DATA_TYPE =
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster "tblSupportedContainerDataType";
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster private static final String TBL_SUPPORTED_CONTAINER_HREF_ACTION =
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster "tblSupportedContainerHrefAction";
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster private static final String TBL_SUPPORTED_CONTAINER_LABEL_ACTION =
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster "tblSupportedContainerLabelAction";
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster private static final String TBL_SUPPORTED_CONTAINER_ADD_BTN =
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster "tblSupportedContainerButtonAdd";
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster private static final String TBL_SUPPORTED_CONTAINER_DELETE_BTN =
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster "tblSupportedContainerButtonDelete";
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster private static final String TBL_DS_ATTRIBUTE_MAP_LIST_COL_NAME =
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster "tblDSAttributeMapListColName";
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster private static final String TBL_DS_ATTRIBUTE_MAP_LIST_COL_MAP =
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster "tblDSAttributeMapListColMap";
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster private static final String TBL_DS_ATTRIBUTE_MAP_LIST_DATA_NAME =
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster "tblDSAttributeMapListDataName";
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster private static final String TBL_DS_ATTRIBUTE_MAP_LIST_DATA_MAP =
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster "tblDSAttributeMapListDataMap";
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster private static final String TBL_DS_ATTRIBUTE_MAP_LIST_HREF_ACTION =
private boolean tablePopulated = false;
public WSPersonalProfileServiceViewBean() {
if (!tablePopulated) {
protected void createPropertyModel() {
super.createPropertyModel();
private void createSupportedContainerTableModel() {
tblModel);
private void createDSAttributeMapListTableModel() {
tblModel);
return new WSPersonalProfileServiceModelImpl(
} catch (AMConsoleException e) {
e.getMessage());
return null;
protected void createPageTitleModel() {
private void prePopulateTable() {
throws ModelControlException {
if (!tablePopulated) {
if (!isSubmitCycle()) {
tablePopulated = true;
boolean firstEntry = true;
if (!firstEntry) {
firstEntry = false;
counter++;
tablePopulated = true;
boolean firstEntry = true;
if (!firstEntry) {
firstEntry = false;
counter++;
protected void onBeforeResetProfile() {
tablePopulated = false;
public void handleTblSupportedContainerButtonDeleteRequest(
) throws ModelControlException {
setSubmitCycle(true);
forwardTo();
public void handleTblSupportedContainerButtonAddRequest(
) throws ModelControlException {
} catch (AMConsoleException e) {
e.getMessage());
forwardTo();
public void handleTblSupportedContainerHrefActionRequest(
) throws ModelControlException {
} catch (AMConsoleException e) {
e.getMessage());
forwardTo();
public void handleTblDSAttributeMapListButtonDeleteRequest(
) throws ModelControlException {
setSubmitCycle(true);
forwardTo();
public void handleTblDSAttributeMapListButtonAddRequest(
) throws ModelControlException {
} catch (AMConsoleException e) {
e.getMessage());
forwardTo();
public void handleTblDSAttributeMapListHrefActionRequest(
) throws ModelControlException {
} catch (AMConsoleException e) {
e.getMessage());
forwardTo();