Search in sources :

Example 6 with EntitiesModel

use of com.sun.identity.console.idm.model.EntitiesModel in project OpenAM by OpenRock.

the class ServicesEditViewBean method getBreadCrumbDisplayName.

protected String getBreadCrumbDisplayName() {
    EntitiesModel model = (EntitiesModel) getModel();
    String lserviceName = model.getLocalizedServiceName((String) getPageSessionAttribute(SERVICE_NAME));
    String[] param = { lserviceName };
    return MessageFormat.format(model.getLocalizedString("breadcrumbs.editentities.editservice"), (Object[]) param);
}
Also used : EntitiesModel(com.sun.identity.console.idm.model.EntitiesModel)

Example 7 with EntitiesModel

use of com.sun.identity.console.idm.model.EntitiesModel in project OpenAM by OpenRock.

the class EntityOpViewBeanBase method beginDisplay.

public void beginDisplay(DisplayEvent event) throws ModelControlException {
    super.beginDisplay(event);
    if (!submitCycle) {
        String realmName = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
        EntitiesModel model = (EntitiesModel) getModel();
        try {
            String entityType = (String) getPageSessionAttribute(ENTITY_TYPE);
            setDefaultValues(entityType);
        } catch (AMConsoleException e) {
            setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
        }
    }
}
Also used : AMConsoleException(com.sun.identity.console.base.model.AMConsoleException) EntitiesModel(com.sun.identity.console.idm.model.EntitiesModel)

Example 8 with EntitiesModel

use of com.sun.identity.console.idm.model.EntitiesModel in project OpenAM by OpenRock.

the class EntityOpViewBeanBase method createPropertySheetModel.

protected AMPropertySheetModel createPropertySheetModel(String type) {
    AMPropertySheetModel psModel = null;
    EntitiesModel model = (EntitiesModel) getModel();
    String realmName = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
    String agentType = (String) getPageSessionAttribute(ENTITY_AGENT_TYPE);
    try {
        psModel = new AMPropertySheetModel(model.getPropertyXMLString(realmName, type, agentType, isCreateViewBean(), getClass().getName()));
    } catch (AMConsoleException e) {
        psModel = handleNoAttributeToDisplay(e);
    }
    return psModel;
}
Also used : AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException) EntitiesModel(com.sun.identity.console.idm.model.EntitiesModel)

Example 9 with EntitiesModel

use of com.sun.identity.console.idm.model.EntitiesModel in project OpenAM by OpenRock.

the class ServiceViewBeanBase method getValues.

protected Map getValues() throws ModelControlException, AMConsoleException {
    Map values = null;
    EntitiesModel model = (EntitiesModel) getModel();
    if (model != null) {
        String serviceName = (String) getPageSessionAttribute(SERVICE_NAME);
        String universalId = (String) getPageSessionAttribute(EntityEditViewBean.UNIVERSAL_ID);
        AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
        values = ps.getAttributeValues(model.getServiceAttributeValues(universalId, serviceName), model);
    }
    return values;
}
Also used : AMPropertySheet(com.sun.identity.console.base.AMPropertySheet) Map(java.util.Map) EntitiesModel(com.sun.identity.console.idm.model.EntitiesModel)

Example 10 with EntitiesModel

use of com.sun.identity.console.idm.model.EntitiesModel in project OpenAM by OpenRock.

the class ServiceViewBeanBase method createThreeButtonPageTitleModel.

protected void createThreeButtonPageTitleModel() {
    ptModel = new CCPageTitleModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/threeBtnsPageTitle.xml"));
    EntitiesModel model = (EntitiesModel) getModel();
    ptModel.setValue("button1", "button.save");
    ptModel.setValue("button2", "button.reset");
    ptModel.setValue("button3", "button.cancel");
}
Also used : CCPageTitleModel(com.sun.web.ui.model.CCPageTitleModel) EntitiesModel(com.sun.identity.console.idm.model.EntitiesModel)

Aggregations

EntitiesModel (com.sun.identity.console.idm.model.EntitiesModel)55 AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)23 Map (java.util.Map)15 Set (java.util.Set)13 HashSet (java.util.HashSet)10 Iterator (java.util.Iterator)10 List (java.util.List)9 OptionList (com.iplanet.jato.view.html.OptionList)7 AMIdentity (com.sun.identity.idm.AMIdentity)7 IdRepoException (com.sun.identity.idm.IdRepoException)7 ArrayList (java.util.ArrayList)7 HashMap (java.util.HashMap)7 AMPropertySheet (com.sun.identity.console.base.AMPropertySheet)5 SerializedField (com.sun.identity.console.components.view.html.SerializedField)5 CCAddRemoveModel (com.sun.web.ui.model.CCAddRemoveModel)4 CCAddRemove (com.sun.web.ui.view.addremove.CCAddRemove)4 AMViewConfig (com.sun.identity.console.base.AMViewConfig)3 IdSearchResults (com.sun.identity.idm.IdSearchResults)3 IdType (com.sun.identity.idm.IdType)3 AMPropertySheetModel (com.sun.identity.console.base.model.AMPropertySheetModel)2