Search in sources :

Example 41 with AMPropertySheetModel

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

the class ResponseProviderOpViewBeanBase method createPropertyModel.

private boolean createPropertyModel() {
    boolean init = false;
    HttpServletRequest req = RequestManager.getRequestContext().getRequest();
    String pType = (String) getPageSessionAttribute(PG_SESSION_PROVIDER_TYPE);
    if ((pType == null) || (pType.trim().length() == 0)) {
        pType = req.getParameter(getName() + "." + RESPONSEPROVIDER_TYPE);
        if ((pType != null) && (pType.trim().length() > 0)) {
            setPageSessionAttribute(PG_SESSION_PROVIDER_TYPE, pType);
        }
    }
    String curRealm = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
    if ((curRealm == null) || (curRealm.trim().length() == 0)) {
        curRealm = req.getParameter(getName() + "." + REALM_NAME);
        if ((curRealm != null) && (curRealm.trim().length() > 0)) {
            setPageSessionAttribute(AMAdminConstants.CURRENT_REALM, curRealm);
        }
    }
    init = (curRealm != null) && (curRealm.trim().length() > 0) && (pType != null) && (pType.trim().length() > 0);
    DelegationConfig dConfig = DelegationConfig.getInstance();
    canModify = dConfig.hasPermission(curRealm, null, AMAdminConstants.PERMISSION_MODIFY, getModel(), getClass().getName());
    if (init) {
        propertySheetModel = new AMPropertySheetModel(getResponseProviderXML(curRealm, pType, !canModify));
        propertySheetModel.clear();
        if (canModify) {
            addRemoveModel = new CCAddRemoveModel();
            addRemoveModel.setShowMoveUpDownButtons("false");
            addRemoveModel.clear();
            propertySheetModel.setModel(VALUES_MULTIPLE_CHOICE_VALUE, addRemoveModel);
        }
    }
    return init;
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) CCAddRemoveModel(com.sun.web.ui.model.CCAddRemoveModel) AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel) DelegationConfig(com.sun.identity.console.delegation.model.DelegationConfig)

Example 42 with AMPropertySheetModel

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

the class ServerAddViewBean method createPropertyModel.

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

Example 43 with AMPropertySheetModel

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

the class ServerCloneViewBean method createPropertyModel.

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

Example 44 with AMPropertySheetModel

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

the class ServerConfigXMLAddServerViewBean method createPropertyModel.

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

Example 45 with AMPropertySheetModel

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

the class ServerConfigXMLViewBean method createPropertyModel.

private void createPropertyModel(String serverName) {
    String fileName = (bAMSDKEnabled) ? "com/sun/identity/console/propertyServerConfigXMLWithAMSDK.xml" : "com/sun/identity/console/propertyServerConfigXML.xml";
    String xml = AMAdminUtils.getStringFromInputStream(getClass().getClassLoader().getResourceAsStream(fileName));
    propertySheetModel = new AMPropertySheetModel(xml);
    propertySheetModel.clear();
}
Also used : AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel)

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