Search in sources :

Example 26 with CCActionTableModel

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

the class PolicyOpViewBeanBase method createResponseProviderTableModels.

protected void createResponseProviderTableModels() {
    tblResponseProvidersModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblPMResponseProviders.xml"));
    tblResponseProvidersModel.setTitleLabel("label.items");
    tblResponseProvidersModel.setActionValue("tblResponseProvidersButtonAdd", "button.new");
    tblResponseProvidersModel.setActionValue("tblResponseProvidersButtonDelete", "button.delete");
    tblResponseProvidersModel.setActionValue(TBL_RESPONSE_ATTRIBUTES_COL_NAME, "policy.responseproviders.table.column.name");
    tblResponseProvidersModel.setActionValue(TBL_RESPONSE_ATTRIBUTES_COL_TYPE, "policy.responseproviders.table.column.type");
    tblResponseProvidersModel.setActionValue(TBL_RESPONSE_ATTRIBUTES_COL_ACTION, "policy.responseproviders.table.column.action");
    propertySheetModel.setModel(TBL_RESPONSE_ATTRIBUTES, tblResponseProvidersModel);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel)

Example 27 with CCActionTableModel

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

the class PolicyOpViewBeanBase method createConditionTableModels.

protected void createConditionTableModels() {
    tblConditionsModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblPMConditions.xml"));
    tblConditionsModel.setTitleLabel("label.items");
    tblConditionsModel.setActionValue("tblConditionsButtonAdd", "button.new");
    tblConditionsModel.setActionValue("tblConditionsButtonDelete", "button.delete");
    tblConditionsModel.setActionValue(TBL_CONDITIONS_COL_NAME, "policy.conditions.table.column.name");
    tblConditionsModel.setActionValue(TBL_CONDITIONS_COL_TYPE, "policy.conditions.table.column.type");
    propertySheetModel.setModel(TBL_CONDITIONS, tblConditionsModel);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel)

Example 28 with CCActionTableModel

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

the class PolicyOpViewBeanBase method createSubjectTableModels.

protected void createSubjectTableModels() {
    tblSubjectsModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblPMSubjects.xml"));
    tblSubjectsModel.setTitleLabel("label.items");
    tblSubjectsModel.setActionValue("tblSubjectsButtonAdd", "button.new");
    tblSubjectsModel.setActionValue("tblSubjectsButtonDelete", "button.delete");
    tblSubjectsModel.setActionValue(TBL_SUBJECTS_COL_NAME, "policy.subjects.table.column.name");
    tblSubjectsModel.setActionValue(TBL_SUBJECTS_COL_TYPE, "policy.subjects.table.column.type");
    tblSubjectsModel.setActionValue(TBL_SUBJECTS_COL_ACTION, "policy.subjects.table.column.action");
    propertySheetModel.setModel(TBL_SUBJECTS, tblSubjectsModel);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel)

Example 29 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 30 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)

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