EntityMembersViewBean.java revision b41c8f49ce3f7a1704fc476c272271b75fc55dab
/**
* 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: EntityMembersViewBean.java,v 1.3 2008/06/25 05:42:59 qcheng Exp $
*
* Portions Copyrighted 2015 ForgeRock AS.
*/
public class EntityMembersViewBean
extends EntityEditViewBean
{
public static final String DEFAULT_DISPLAY_URL =
private boolean canModify;
private boolean submitCycle;
private List assignedMembers;
private OptionList cacheAssigned;
public EntityMembersViewBean() {
super("EntityMembers", DEFAULT_DISPLAY_URL);
}
protected void registerChildren() {
super.registerChildren();
}
throws ModelControlException {
super.beginDisplay(event);
}
private void getMemberNames() {
if (!submitCycle) {
try {
if (cacheAssigned != null) {
} else {
assignedMembers = new ArrayList();
}
if (canModify) {
if (cacheAssigned != null) {
} else {
}
} else {
",", false));
}
} catch (AMConsoleException e) {
e.getMessage());
}
if (canModify) {
}
}
}
private OptionList getAssignableMembers() {
filter = "*";
}
try {
switch (errorCode) {
"message.sizelimit.exceeded");
break;
"message.timelimit.exceeded");
break;
}
// assignable will contain users which shouldn't be displayed in
// the console (dsameuser, etc...)
} catch (AMConsoleException e) {
e.getMessage());
}
return avail;
}
/*
* Remove the users who are already members of this entity
* and also remove those members who are 'special users'.
*/
if (obj instanceof AMIdentity) {
} else {
boolean removed = false;
) {
) {
removed = true;
}
}
}
}
}
protected void setSelectedTab() {
}
if (canModify) {
}
return psModel;
}
protected void createPageTitleModel() {
ptModel = new CCPageTitleModel(
getBackButtonLabel("tab.sub.subjects.label"));
}
private CCAddRemoveModel createAddRemoveModel() {
return addRemoveModel;
}
submitCycle = false;
forwardTo();
}
forwardTo();
}
submitCycle = true;
try {
}
}
"message.updated");
} catch (AMConsoleException e) {
e.getMessage());
}
forwardTo();
}
}