use of com.sun.identity.console.base.model.AMServiceProfileModel in project OpenAM by OpenRock.
the class AMServiceProfileViewBeanBase method createTwoButtonPageTitleModel.
protected void createTwoButtonPageTitleModel() {
ptModel = new CCPageTitleModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/twoBtnsPageTitle.xml"));
AMServiceProfileModel model = (AMServiceProfileModel) getModel();
if (model != null) {
ptModel.setPageTitleText(model.getPageTitle());
ptModel.setValue("button1", "button.save");
ptModel.setValue("button2", "button.reset");
}
}
use of com.sun.identity.console.base.model.AMServiceProfileModel in project OpenAM by OpenRock.
the class AMServiceProfileViewBeanBase method createThreeButtonPageTitleModel.
protected void createThreeButtonPageTitleModel() {
ptModel = new CCPageTitleModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/threeBtnsPageTitle.xml"));
AMServiceProfileModel model = (AMServiceProfileModel) getModel();
if (model != null) {
ptModel.setPageTitleText(model.getPageTitle());
ptModel.setValue("button1", "button.save");
ptModel.setValue("button2", "button.reset");
ptModel.setValue("button3", getBackButtonLabel());
}
}
use of com.sun.identity.console.base.model.AMServiceProfileModel in project OpenAM by OpenRock.
the class AMServiceProfileViewBeanBase method handleButton1Request.
/**
* Handles save request.
*
* @param event Request invocation event.
*/
public void handleButton1Request(RequestInvocationEvent event) throws ModelControlException {
submitCycle = true;
AMServiceProfileModel model = (AMServiceProfileModel) getModel();
if (model != null) {
try {
Map values = getValues();
onBeforeSaveProfile(values);
model.setAttributeValues(values);
setInlineAlertMessage(CCAlert.TYPE_INFO, "message.information", "message.updated");
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
}
forwardTo();
}
use of com.sun.identity.console.base.model.AMServiceProfileModel in project OpenAM by OpenRock.
the class SCSAML2SOAPBindingViewBean method beginDisplay.
public void beginDisplay(DisplayEvent event) throws ModelControlException {
super.beginDisplay(event);
resetButtonState(TBL_REQUEST_HANDLER_LIST_DELETE_BTN);
if (!tablePopulated) {
if (!isSubmitCycle()) {
AMServiceProfileModel model = (AMServiceProfileModel) getModel();
if (model != null) {
Set handlers = new OrderedSet();
handlers.addAll(model.getAttributeValues(SCSAML2SOAPBindingModelImpl.ATTRIBUTE_NAME_REQUEST_HANDLER_LIST));
populateRequestHandlerListTable(handlers);
}
}
}
if (!isInlineAlertMessageSet()) {
String flag = (String) getPageSessionAttribute(PAGE_MODIFIED);
if ((flag != null) && flag.equals("1")) {
setInlineAlertMessage(CCAlert.TYPE_INFO, "message.information", "message.profile.modified");
}
}
}
use of com.sun.identity.console.base.model.AMServiceProfileModel in project OpenAM by OpenRock.
the class SCSOAPBindingViewBean method beginDisplay.
public void beginDisplay(DisplayEvent event) throws ModelControlException {
super.beginDisplay(event);
resetButtonState(TBL_REQUEST_HANDLER_LIST_DELETE_BTN);
if (!tablePopulated) {
if (!isSubmitCycle()) {
AMServiceProfileModel model = (AMServiceProfileModel) getModel();
if (model != null) {
Set handlers = new OrderedSet();
handlers.addAll(model.getAttributeValues(SCSOAPBindingModelImpl.ATTRIBUTE_NAME_REQUEST_HANDLER_LIST));
populateRequestHandlerListTable(handlers);
}
}
}
if (!isInlineAlertMessageSet()) {
String flag = (String) getPageSessionAttribute(PAGE_MODIFIED);
if ((flag != null) && flag.equals("1")) {
setInlineAlertMessage(CCAlert.TYPE_INFO, "message.information", "message.profile.modified");
}
}
}
Aggregations