Search in sources :

Example 1 with AMServiceProfileModel

use of com.sun.identity.console.base.model.AMServiceProfileModel in project OpenAM by OpenRock.

the class AMServiceProfileViewBeanBase method createPropertyModel.

protected void createPropertyModel() {
    AMServiceProfileModel model = (AMServiceProfileModel) getModel();
    if (model != null) {
        try {
            propertySheetModel = new AMPropertySheetModel(getPropertySheetXML(model));
            propertySheetModel.clear();
        } catch (AMConsoleException e) {
            setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
        }
    }
}
Also used : AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException) AMServiceProfileModel(com.sun.identity.console.base.model.AMServiceProfileModel)

Example 2 with AMServiceProfileModel

use of com.sun.identity.console.base.model.AMServiceProfileModel in project OpenAM by OpenRock.

the class AMServiceProfileViewBeanBase method getValues.

protected Map getValues() throws ModelControlException, AMConsoleException {
    Map values = null;
    AMServiceProfileModel model = (AMServiceProfileModel) getModel();
    if (model != null) {
        AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
        values = ps.getAttributeValues(model.getAttributeValues(), model);
    }
    return values;
}
Also used : HashMap(java.util.HashMap) Map(java.util.Map) AMServiceProfileModel(com.sun.identity.console.base.model.AMServiceProfileModel)

Example 3 with AMServiceProfileModel

use of com.sun.identity.console.base.model.AMServiceProfileModel in project OpenAM by OpenRock.

the class SMG11NViewBean method beginDisplay.

public void beginDisplay(DisplayEvent event) throws ModelControlException {
    super.beginDisplay(event);
    resetButtonState(TBL_SUPPORTED_CHARSETS_DELETE_BTN);
    resetButtonState(TBL_CHARSET_ALIAS_DELETE_BTN);
    if (!tablePopulated) {
        if (!isSubmitCycle()) {
            AMServiceProfileModel model = (AMServiceProfileModel) getModel();
            if (model != null) {
                Set supportedCharsets = new OrderedSet();
                supportedCharsets.addAll(model.getAttributeValues(SMG11NModelImpl.ATTRIBUTE_NAME_SUPPORTED_CHARSETS));
                populateSupportedCharsetsTable(supportedCharsets);
                Set charsetAlias = new OrderedSet();
                charsetAlias.addAll(model.getAttributeValues(SMG11NModelImpl.ATTRIBUTE_NAME_CHARSET_ALIAS));
                populateCharsetAliasTable(charsetAlias);
            }
        }
    }
    if (!isInlineAlertMessageSet()) {
        String flag = (String) getPageSessionAttribute(PAGE_MODIFIED);
        if ((flag != null) && flag.equals("1")) {
            setInlineAlertMessage(CCAlert.TYPE_INFO, "message.information", "message.profile.modified");
        }
    }
}
Also used : OrderedSet(com.sun.identity.shared.datastruct.OrderedSet) Set(java.util.Set) OrderedSet(com.sun.identity.shared.datastruct.OrderedSet) AMServiceProfileModel(com.sun.identity.console.base.model.AMServiceProfileModel)

Example 4 with AMServiceProfileModel

use of com.sun.identity.console.base.model.AMServiceProfileModel in project OpenAM by OpenRock.

the class SMG11NViewBean method getBreadCrumbDisplayName.

protected String getBreadCrumbDisplayName() {
    AMServiceProfileModel model = (AMServiceProfileModel) getModel();
    String[] arg = { model.getLocalizedServiceName(AMAdminConstants.G11N_SERVICE_NAME) };
    return MessageFormat.format(model.getLocalizedString("breadcrumbs.services.edit"), (Object[]) arg);
}
Also used : AMServiceProfileModel(com.sun.identity.console.base.model.AMServiceProfileModel)

Example 5 with AMServiceProfileModel

use of com.sun.identity.console.base.model.AMServiceProfileModel in project OpenAM by OpenRock.

the class SCPolicyViewBean method getAllValues.

protected Map getAllValues() throws ModelControlException, AMConsoleException {
    Map values = null;
    AMServiceProfileModel model = (AMServiceProfileModel) getModel();
    if (model != null) {
        AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
        values = ps.getAttributeValues(model.getAttributeValues(), false, false, model);
    }
    return values;
}
Also used : AMPropertySheet(com.sun.identity.console.base.AMPropertySheet) HashMap(java.util.HashMap) Map(java.util.Map) AMServiceProfileModel(com.sun.identity.console.base.model.AMServiceProfileModel)

Aggregations

AMServiceProfileModel (com.sun.identity.console.base.model.AMServiceProfileModel)16 OrderedSet (com.sun.identity.shared.datastruct.OrderedSet)6 Map (java.util.Map)6 Set (java.util.Set)6 HashMap (java.util.HashMap)5 AMPropertySheet (com.sun.identity.console.base.AMPropertySheet)2 AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)2 CCPageTitleModel (com.sun.web.ui.model.CCPageTitleModel)2 AMPropertySheetModel (com.sun.identity.console.base.model.AMPropertySheetModel)1 HttpServletRequest (javax.servlet.http.HttpServletRequest)1