/**
* 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: ServicesViewBean.java,v 1.2 2008/06/25 05:43:12 qcheng Exp $
*
*/
public class ServicesViewBean
extends RealmPropertiesBase
{
"/console/realm/Services.jsp";
/**
* Creates a services view bean.
*/
public ServicesViewBean() {
super("Services");
}
protected void registerChildren() {
super.registerChildren();
ptModel.registerChildren(this);
tblModel.registerChildren(this);
}
} else {
}
return view;
}
if (isXuiAdminConsoleEnabled()) {
} else {
super.beginDisplay(event);
try {
btnAdd.setDisabled(true);
"services.noservices.for.assignment.message");
}
} catch (AMConsoleException e) {
e.getMessage());
btnAdd.setDisabled(true);
}
}
}
}
private void createPageTitleModel() {
ptModel = new CCPageTitleModel(
}
private void createTableModel() {
tblModel = new CCActionTableModel(
"table.services.button.delete");
"table.services.name.column.name");
"table.services.action.column.name");
}
private void getServiceNames() {
try {
} catch (AMConsoleException e) {
e.getMessage());
}
}
model.getUserLocale());
boolean firstEntry = true;
if (firstEntry) {
firstEntry = false;
} else {
}
"table.services.action.edit");
}
} else {
}
}
/**
* Forwards request to creation view bean.
*
* @param event Request Invocation Event.
*/
ServicesSelectViewBean.class);
}
/**
* Forwards request to edit Service view bean.
*
* @param serviceName name of the service to be edited
*/
if ((propertiesViewBeanURL != null) &&
) {
getRequestContext().getRequest());
}
try {
"&Location=" +
} catch (UnsupportedEncodingException e) {
e.getMessage());
forwardTo();
} catch (IOException e) {
e.getMessage());
forwardTo();
}
} else {
ServicesEditViewBean.class);
// set save vb to return to this view after selecting back
// button in services edit viewbean.
}
}
/**
* Deletes ID Repo.
*
* @param event Request Invocation Event.
* @throws ModelControlException if table model cannot be restored.
*/
throws ModelControlException
{
}
try {
"services.message.deleted");
} else {
"services.message.deleted.pural");
}
} catch (AMConsoleException e) {
e.getMessage());
}
forwardTo();
}
/**
* Handles "back to" page request.
*
* @param event Request invocation event
*/
backTrail();
}
}