WSPPServiceSupportedContainerAddViewBean.java revision 4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1c
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * The contents of this file are subject to the terms
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * of the Common Development and Distribution License
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * (the License). You may not use this file except in
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * compliance with the License.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * You can obtain a copy of the License at
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * https://opensso.dev.java.net/public/CDDLv1.0.html or
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * See the License for the specific language governing
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * permission and limitations under the License.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * When distributing Covered Code, include this CDDL
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * Header Notice in each file and include the License file
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * If applicable, add the following below the CDDL Header,
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * with the fields enclosed by brackets [] replaced by
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * your own identifying information:
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * "Portions Copyrighted [year] [name of copyright owner]"
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * $Id: WSPPServiceSupportedContainerAddViewBean.java,v 1.2 2008/06/25 05:49:50 qcheng Exp $
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Fosterimport com.sun.identity.console.webservices.model.WSPersonalProfileServiceModelImpl;
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Fosterimport com.sun.identity.shared.datastruct.OrderedSet;
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Fosterpublic class WSPPServiceSupportedContainerAddViewBean
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster extends WSPPServiceSupportedContainerViewBeanBase
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster public static final String DEFAULT_DISPLAY_URL =
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster "/console/webservices/WSPPServiceSupportedContainerAdd.jsp";
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster public WSPPServiceSupportedContainerAddViewBean(
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster public WSPPServiceSupportedContainerAddViewBean() {
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster super("WSPPServiceSupportedContainerAdd", DEFAULT_DISPLAY_URL);
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster protected void createPageTitleModel() {
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster getClass().getClassLoader().getResourceAsStream(
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster "com/sun/identity/console/twoBtnsPageTitle.xml"));
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster "webservices.personal.profile.supportedContainer.create.page.title");
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster protected void handleButton1Request(Map values) {
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster WSPersonalProfileServiceViewBean vb = (WSPersonalProfileServiceViewBean)
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster getViewBean(WSPersonalProfileServiceViewBean.class);
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster WSPersonalProfileServiceViewBean.PROPERTY_ATTRIBUTE);
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster WSPersonalProfileServiceModelImpl.ATTRIBUTE_NAME_SUPPPORTED_CONTAINERS);
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster if ((containers == null) || containers.isEmpty()) {
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster WSPersonalProfileServiceModelImpl.ATTRIBUTE_NAME_SUPPPORTED_CONTAINERS,
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster return "breadcrumbs.webservices.personalprofile.supportedcontainer.add";
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster protected boolean startPageTrail() {
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster return false;