Search in sources :

Example 41 with CCActionTableModel

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

the class SCPolicyViewBean method createResourceComparatorTableModel.

private void createResourceComparatorTableModel() {
    CCActionTableModel tblModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblPolicyResourceComparator.xml"));
    tblModel.setTitleLabel("label.items");
    tblModel.setActionValue(TBL_RESOURCE_COMPARATOR_COL_NAME, "policy.service.table.resource.comparator.name");
    tblModel.setActionValue(TBL_RESOURCE_COMPARATOR_COL_ACTION, "policy.service.table.resource.comparator.action");
    tblModel.setActionValue(TBL_RESOURCE_COMPARATOR_ADD_BTN, "policy.service.table.resource.comparator.add.button");
    tblModel.setActionValue(TBL_RESOURCE_COMPARATOR_DELETE_BTN, "policy.service.table.resource.comparator.delete.button");
    propertySheetModel.setModel(TBL_RESOURCE, tblModel);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel)

Example 42 with CCActionTableModel

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

the class SCConfigConsoleViewBean method createTableModels.

protected void createTableModels() {
    SCConfigModel model = (SCConfigModel) getModel();
    tblModelConsole = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblSCConfigConsole.xml"));
    List svcNames = model.getServiceNames(SEC_CONSOLE);
    populateTableModel(tblModelConsole, svcNames, SEC_CONSOLE);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel) SCConfigModel(com.sun.identity.console.service.model.SCConfigModel) List(java.util.List)

Example 43 with CCActionTableModel

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

the class SCConfigGlobalViewBean method createTableModels.

protected void createTableModels() {
    SCConfigModel model = (SCConfigModel) getModel();
    tblModelGlobal = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblSCConfigGlobal.xml"));
    List svcNames = model.getServiceNames(SEC_GLOBAL);
    populateTableModel(tblModelGlobal, svcNames, SEC_GLOBAL);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel) SCConfigModel(com.sun.identity.console.service.model.SCConfigModel) List(java.util.List)

Example 44 with CCActionTableModel

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

the class SCConfigSystemViewBean method createTableModels.

protected void createTableModels() {
    SCConfigModel model = (SCConfigModel) getModel();
    tblModelSystem = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblSCConfigSystem.xml"));
    List svcNames = model.getServiceNames(SEC_SYSTEM);
    populateTableModel(tblModelSystem, svcNames, SEC_SYSTEM);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel) SCConfigModel(com.sun.identity.console.service.model.SCConfigModel) List(java.util.List)

Example 45 with CCActionTableModel

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

the class WSAuthNServicesViewBean method populateHandlersTable.

private void populateHandlersTable(Set handlers) {
    tablePopulated = true;
    CCActionTableModel tblModel = (CCActionTableModel) propertySheetModel.getModel(WSAuthNServicesModelImpl.ATTRIBUTE_NAME_HANDLERS);
    tblModel.clearAll();
    boolean firstEntry = true;
    int counter = 0;
    for (Iterator iter = handlers.iterator(); iter.hasNext(); ) {
        String c = (String) iter.next();
        WSAuthHandlerEntry entry = new WSAuthHandlerEntry(c);
        if (entry.isValid()) {
            if (!firstEntry) {
                tblModel.appendRow();
            } else {
                firstEntry = false;
            }
            tblModel.setValue(TBL_HANDLERS_DATA_KEY, entry.strKey);
            tblModel.setValue(TBL_HANDLERS_DATA_CLASS, entry.strClass);
            tblModel.setValue(TBL_HANDLERS_HREF_ACTION, Integer.toString(counter));
        }
        counter++;
    }
    setPageSessionAttribute(WSAuthNServicesModelImpl.ATTRIBUTE_NAME_HANDLERS, (OrderedSet) handlers);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel) Iterator(java.util.Iterator) WSAuthHandlerEntry(com.sun.identity.console.webservices.model.WSAuthHandlerEntry)

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