Search in sources :

Example 96 with CCActionTableModel

use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.

the class ServerConfigInheritViewBean method createTableModel.

private void createTableModel() {
    tblPropertyNamesModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblPropertyNames.xml"));
    tblPropertyNamesModel.setTitleLabel("label.items");
    tblPropertyNamesModel.setActionValue(TBL_COL_PROPERTY_NAME, "table.inherit.property.name.column.name");
    tblPropertyNamesModel.setActionValue(TBL_COL_VALUE, "table.inherit.property.name.column.value");
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel)

Example 97 with CCActionTableModel

use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.

the class SMG11NViewBean method handleTblSupportedCharsetsButtonDeleteRequest.

/**
     * Handles remove supported container request.
     *
     * @param event Request Invocation Event.
     */
public void handleTblSupportedCharsetsButtonDeleteRequest(RequestInvocationEvent event) throws ModelControlException {
    setSubmitCycle(true);
    CCActionTable table = (CCActionTable) getChild(SMG11NModelImpl.ATTRIBUTE_NAME_SUPPORTED_CHARSETS);
    table.restoreStateData();
    CCActionTableModel tblModel = (CCActionTableModel) propertySheetModel.getModel(SMG11NModelImpl.ATTRIBUTE_NAME_SUPPORTED_CHARSETS);
    Integer[] selected = tblModel.getSelectedRows();
    if ((selected != null) && (selected.length > 0)) {
        OrderedSet tblValues = (OrderedSet) getPageSessionAttribute(SMG11NModelImpl.ATTRIBUTE_NAME_SUPPORTED_CHARSETS);
        tblValues.removeAll(selected);
        setPageSessionAttribute(SMG11NModelImpl.ATTRIBUTE_NAME_SUPPORTED_CHARSETS, tblValues);
        populateSupportedCharsetsTable(tblValues);
    }
    forwardTo();
}
Also used : OrderedSet(com.sun.identity.shared.datastruct.OrderedSet) CCActionTableModel(com.sun.web.ui.model.CCActionTableModel) CCActionTable(com.sun.web.ui.view.table.CCActionTable)

Example 98 with CCActionTableModel

use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.

the class ServerSiteViewBean method createTableModel.

private void createTableModel() {
    tblSiteModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblSite.xml"));
    tblSiteModel.setTitleLabel("label.items");
    tblSiteModel.setActionValue(TBL_SITE_BUTTON_ADD, "table.site.button.new");
    tblSiteModel.setActionValue(TBL_SITE_BUTTON_DELETE, "table.site.button.delete");
    tblSiteModel.setActionValue(TBL_COL_SITE_NAME, "table.site.name.column.name");
    tblSiteModel.setActionValue(TBL_COL_SITE_URL, "table.site.url.column.name");
    tblSiteModel.setActionValue(TBL_COL_SITE_SERVERS, "table.site.servers.column.name");
    tblServerModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblServer.xml"));
    tblServerModel.setTitleLabel("label.items");
    tblServerModel.setActionValue(TBL_SERVER_BUTTON_ADD, "table.server.button.new");
    tblServerModel.setActionValue(TBL_SERVER_BUTTON_DELETE, "table.server.button.delete");
    tblServerModel.setActionValue(TBL_SERVER_BUTTON_CLONE, "table.server.button.clone");
    tblServerModel.setActionValue(TBL_COL_SERVER_NAME, "table.server.name.column.name");
    tblServerModel.setActionValue(TBL_COL_SITE, "table.server.site.column.name");
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel)

Example 99 with CCActionTableModel

use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.

the class ServerConfigXMLViewBean method createTableModel.

private void createTableModel() {
    tblServerModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblServerConfigXMLServers.xml"));
    tblServerModel.setTitleLabel("label.items");
    tblServerModel.setActionValue(TBL_SERVERS_COL_NAME, "amconfig.serverconfig.xml.server.table.column.name");
    tblServerModel.setActionValue(TBL_SERVERS_COL_HOST, "amconfig.serverconfig.xml.server.table.column.host");
    tblServerModel.setActionValue(TBL_SERVERS_COL_PORT, "amconfig.serverconfig.xml.server.table.column.port");
    tblServerModel.setActionValue(TBL_SERVERS_COL_TYPE, "amconfig.serverconfig.xml.server.table.column.type");
    propertySheetModel.setModel(TBL_SERVERS, tblServerModel);
    tblUserModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblServerConfigXMLUsers.xml"));
    tblUserModel.setTitleLabel("label.items");
    tblUserModel.setActionValue(TBL_USERS_COL_NAME, "amconfig.serverconfig.xml.user.table.column.name");
    tblUserModel.setActionValue(TBL_USERS_COL_HOST, "amconfig.serverconfig.xml.user.table.column.host");
    tblUserModel.setActionValue(TBL_USERS_COL_PORT, "amconfig.serverconfig.xml.user.table.column.port");
    tblUserModel.setActionValue(TBL_USERS_COL_TYPE, "amconfig.serverconfig.xml.user.table.column.type");
    propertySheetModel.setModel(TBL_USERS, tblUserModel);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel)

Example 100 with CCActionTableModel

use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.

the class WSPersonalProfileServiceViewBean method populateDSAttributeMapListTable.

private void populateDSAttributeMapListTable(Set attributeMap) {
    tablePopulated = true;
    CCActionTableModel tblModel = (CCActionTableModel) propertySheetModel.getModel(WSPersonalProfileServiceModelImpl.ATTRIBUTE_NAME_DS_ATTRIBUTE_MAP_LIST);
    tblModel.clearAll();
    boolean firstEntry = true;
    int counter = 0;
    for (Iterator iter = attributeMap.iterator(); iter.hasNext(); ) {
        if (!firstEntry) {
            tblModel.appendRow();
        } else {
            firstEntry = false;
        }
        String mapping = (String) iter.next();
        int idx = mapping.indexOf('=');
        if (idx != -1) {
            String name = mapping.substring(0, idx);
            String attr = mapping.substring(idx + 1);
            tblModel.setValue(TBL_DS_ATTRIBUTE_MAP_LIST_DATA_NAME, name);
            tblModel.setValue(TBL_DS_ATTRIBUTE_MAP_LIST_DATA_MAP, attr);
            tblModel.setValue(TBL_DS_ATTRIBUTE_MAP_LIST_HREF_ACTION, Integer.toString(counter));
            tblModel.setValue(TBL_DS_ATTRIBUTE_MAP_LIST_LABEL_ACTION, "webservices.personal.profile.table.dsAttributeMapList.action.edit.label");
        }
        counter++;
    }
    setPageSessionAttribute(WSPersonalProfileServiceModelImpl.ATTRIBUTE_NAME_DS_ATTRIBUTE_MAP_LIST, (OrderedSet) attributeMap);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel) Iterator(java.util.Iterator)

Aggregations

CCActionTableModel (com.sun.web.ui.model.CCActionTableModel)103 CCActionTable (com.sun.web.ui.view.table.CCActionTable)22 OrderedSet (com.sun.identity.shared.datastruct.OrderedSet)18 Iterator (java.util.Iterator)18 List (java.util.List)14 AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)13 ArrayList (java.util.ArrayList)12 HashSet (java.util.HashSet)9 Set (java.util.Set)9 SerializedField (com.sun.identity.console.components.view.html.SerializedField)8 OptionList (com.iplanet.jato.view.html.OptionList)6 SMSubConfig (com.sun.identity.console.base.model.SMSubConfig)6 HashMap (java.util.HashMap)5 Map (java.util.Map)5 SCConfigModel (com.sun.identity.console.service.model.SCConfigModel)4 AuthPropertiesModel (com.sun.identity.console.authentication.model.AuthPropertiesModel)3 EntityModel (com.sun.identity.console.federation.model.EntityModel)2 FSAuthDomainsModel (com.sun.identity.console.federation.model.FSAuthDomainsModel)2 FSSAMLServiceModel (com.sun.identity.console.federation.model.FSSAMLServiceModel)2 SMDiscoEntryData (com.sun.identity.console.service.model.SMDiscoEntryData)2