use of com.sun.web.ui.model.CCAddRemoveModel in project OpenAM by OpenRock.
the class ConditionOpViewBeanBase method createPropertyModel.
private boolean createPropertyModel() {
boolean init = false;
HttpServletRequest req = RequestManager.getRequestContext().getRequest();
String condType = (String) getPageSessionAttribute(PG_SESSION_CONDITION_TYPE);
if ((condType == null) || (condType.trim().length() == 0)) {
condType = req.getParameter(getName() + "." + CONDITION_TYPE);
if ((condType != null) && (condType.trim().length() > 0)) {
setPageSessionAttribute(PG_SESSION_CONDITION_TYPE, condType);
}
}
String curRealm = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
if ((curRealm == null) || (curRealm.trim().length() == 0)) {
curRealm = req.getParameter(getName() + "." + REALM_NAME);
if ((curRealm == null) || (curRealm.trim().length() == 0)) {
setPageSessionAttribute(AMAdminConstants.CURRENT_REALM, curRealm);
} else {
realmName = curRealm;
}
} else {
realmName = curRealm;
}
init = (curRealm != null) && (curRealm.trim().length() > 0) && (condType != null) && (condType.trim().length() > 0);
if (init) {
DelegationConfig dConfig = DelegationConfig.getInstance();
canModify = dConfig.hasPermission(realmName, null, AMAdminConstants.PERMISSION_MODIFY, getModel(), getClass().getName());
propertySheetModel = new AMPropertySheetModel(getConditionXML(curRealm, condType, !canModify));
propertySheetModel.clear();
if (canModify) {
addRemoveModel = new CCAddRemoveModel();
addRemoveModel.setShowMoveUpDownButtons("false");
addRemoveModel.clear();
propertySheetModel.setModel(VALUES_MULTIPLE_CHOICE_VALUE, addRemoveModel);
}
}
return init;
}
use of com.sun.web.ui.model.CCAddRemoveModel in project OpenAM by OpenRock.
the class EntityMembershipViewBean method handleBtnSearchRequest.
public void handleBtnSearchRequest(RequestInvocationEvent event) {
submitCycle = false;
CCAddRemove addRemove = (CCAddRemove) getChild(ADD_REMOVE_MEMBERS);
addRemove.restoreStateData();
CCAddRemoveModel addRemoveModel = (CCAddRemoveModel) propertySheetModel.getModel(ADD_REMOVE_MEMBERS);
cacheAssigned = addRemoveModel.getSelectedOptionList();
filter = ((String) getDisplayFieldValue(TF_FILTER));
filter = filter.trim();
forwardTo();
}
use of com.sun.web.ui.model.CCAddRemoveModel in project OpenAM by OpenRock.
the class EntityMembersViewBean method handleBtnSearchRequest.
public void handleBtnSearchRequest(RequestInvocationEvent event) {
submitCycle = false;
CCAddRemove addRemove = (CCAddRemove) getChild(ADD_REMOVE_MEMBERS);
addRemove.restoreStateData();
CCAddRemoveModel addRemoveModel = (CCAddRemoveModel) propertySheetModel.getModel(ADD_REMOVE_MEMBERS);
cacheAssigned = addRemoveModel.getSelectedOptionList();
filter = ((String) getDisplayFieldValue(TF_FILTER));
filter = filter.trim();
forwardTo();
}
use of com.sun.web.ui.model.CCAddRemoveModel in project OpenAM by OpenRock.
the class EntityMembersViewBean method createAddRemoveModel.
private CCAddRemoveModel createAddRemoveModel() {
CCAddRemoveModel addRemoveModel = new CCAddRemoveModel();
addRemoveModel.setOrientation(CCAddRemoveModel.VERTICAL);
addRemoveModel.setListboxHeight(CCAddRemoveModel.DEFAULT_LISTBOX_HEIGHT);
return addRemoveModel;
}
use of com.sun.web.ui.model.CCAddRemoveModel in project OpenAM by OpenRock.
the class EntityMembershipViewBean method createAddRemoveModel.
private CCAddRemoveModel createAddRemoveModel() {
CCAddRemoveModel addRemoveModel = new CCAddRemoveModel();
addRemoveModel.setOrientation(CCAddRemoveModel.HORIZONTAL);
addRemoveModel.setListboxHeight(CCAddRemoveModel.DEFAULT_LISTBOX_HEIGHT);
return addRemoveModel;
}
Aggregations