Search in sources :

Example 76 with AMPropertySheetModel

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

the class SubjectOpViewBeanBase method createPropertyModel.

protected void createPropertyModel(String realmName) {
    DelegationConfig dConfig = DelegationConfig.getInstance();
    canModify = dConfig.hasPermission(realmName, null, AMAdminConstants.PERMISSION_MODIFY, getModel(), getClass().getName());
    propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream(getPropertyXMLFileName(!canModify)));
    propertySheetModel.clear();
    if (canModify) {
        addRemoveModel = new CCAddRemoveModel();
        addRemoveModel.setShowMoveUpDownButtons("false");
        addRemoveModel.clear();
        propertySheetModel.setModel(VALUES_MULTIPLE_CHOICE_VALUE, addRemoveModel);
    }
}
Also used : CCAddRemoveModel(com.sun.web.ui.model.CCAddRemoveModel) AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel) DelegationConfig(com.sun.identity.console.delegation.model.DelegationConfig)

Example 77 with AMPropertySheetModel

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

the class RealmResourceOfferingViewBeanBase method createPropertyModel.

protected void createPropertyModel() {
    InputStream is = getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertyRealmResOffering.xml");
    String xml = AMAdminUtils.getStringFromInputStream(is);
    propertySheetModel = new AMPropertySheetModel(xml);
    propertySheetModel.clear();
    createSecurityMechIDTable();
}
Also used : InputStream(java.io.InputStream) AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel)

Example 78 with AMPropertySheetModel

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

the class RealmResourceOfferingEditViewBean method createPropertyModel.

protected void createPropertyModel() {
    DelegationConfig dConfig = DelegationConfig.getInstance();
    canModify = dConfig.hasPermission("/", null, AMAdminConstants.PERMISSION_MODIFY, getRequestContext().getRequest(), getClass().getName());
    String xmlFile = (canModify) ? "com/sun/identity/console/propertyRealmResOffering.xml" : "com/sun/identity/console/propertyRealmResOffering_Readonly.xml";
    InputStream is = getClass().getClassLoader().getResourceAsStream(xmlFile);
    String xml = AMAdminUtils.getStringFromInputStream(is);
    propertySheetModel = new AMPropertySheetModel(processPropertiesXML(xml));
    propertySheetModel.clear();
    createSecurityMechIDTable();
}
Also used : InputStream(java.io.InputStream) AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel) DelegationConfig(com.sun.identity.console.delegation.model.DelegationConfig)

Example 79 with AMPropertySheetModel

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

the class MAPCreateDeviceViewBean method createPropertyModel.

private void createPropertyModel() {
    propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertyMAPCreateDevice1.xml"));
    propertySheetModel.clear();
}
Also used : AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel)

Example 80 with AMPropertySheetModel

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

the class MAPDeviceProfileViewBean method createPropertyModel.

private void createPropertyModel(String deviceName, String classification) {
    MAPDeviceProfileModel model = (MAPDeviceProfileModel) getModel();
    try {
        propertySheetModel = new AMPropertySheetModel(model.getProfilePropertyXML(deviceName, classification));
        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) MAPDeviceProfileModel(com.sun.identity.console.service.model.MAPDeviceProfileModel)

Aggregations

AMPropertySheetModel (com.sun.identity.console.base.model.AMPropertySheetModel)146 DelegationConfig (com.sun.identity.console.delegation.model.DelegationConfig)32 AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)16 CCAddRemoveModel (com.sun.web.ui.model.CCAddRemoveModel)9 InputStream (java.io.InputStream)8 HashSet (java.util.HashSet)7 Set (java.util.Set)7 Iterator (java.util.Iterator)5 HashMap (java.util.HashMap)4 Map (java.util.Map)4 HttpServletRequest (javax.servlet.http.HttpServletRequest)4 CCEditableListModel (com.sun.web.ui.model.CCEditableListModel)3 List (java.util.List)3 ViewBean (com.iplanet.jato.view.ViewBean)2 AgentsModel (com.sun.identity.console.agentconfig.model.AgentsModel)2 AbstractAuditModel (com.sun.identity.console.audit.model.AbstractAuditModel)2 EntitiesModel (com.sun.identity.console.idm.model.EntitiesModel)2 RMRealmModel (com.sun.identity.console.realm.model.RMRealmModel)2 SubConfigModel (com.sun.identity.console.service.model.SubConfigModel)2 CCOrderedListModel (com.sun.identity.console.ui.model.CCOrderedListModel)2