use of com.sun.identity.console.delegation.model.DelegationModel in project OpenAM by OpenRock.
the class DelegationPropertiesViewBean method beginDisplay.
public void beginDisplay(DisplayEvent event) throws ModelControlException {
super.beginDisplay(event);
DelegationModel model = (DelegationModel) getModel();
if (model != null) {
if (!submitCycle && hasPrivileges) {
AMPropertySheet ps = (AMPropertySheet) getChild(DELEGATION_PROPERTIES);
psModel.clear();
ps.setAttributeValues(getPrivileges(model), model);
}
setPageTitle(model);
}
if (!hasPrivileges) {
disableButton("button1", true);
disableButton("button2", true);
}
}
use of com.sun.identity.console.delegation.model.DelegationModel in project OpenAM by OpenRock.
the class DelegationViewBean method getSubjects.
private void getSubjects() {
DelegationModel model = (DelegationModel) getModel();
String filter = ((String) getDisplayFieldValue(TF_FILTER));
if ((filter == null) || (filter.length() == 0)) {
filter = "*";
setDisplayFieldValue(TF_FILTER, "*");
} else {
filter = filter.trim();
}
try {
String curRealm = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
populateTableModel(model.getSubjects(curRealm, filter));
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
}
Aggregations