Search in sources :

Example 6 with AccessControlModelImpl

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

the class AMViewConfig method getDefaultTabId.

public int getDefaultTabId(String type, String realmName, HttpServletRequest req) {
    AccessControlModel model = new AccessControlModelImpl(req);
    List list = getTabList(type);
    int id = -1;
    for (Iterator i = tabs.iterator(); i.hasNext() && (id == -1); ) {
        AMTabEntry entry = (AMTabEntry) i.next();
        id = entry.getID(model, realmName);
    }
    return id;
}
Also used : AccessControlModel(com.sun.identity.console.base.model.AccessControlModel) AccessControlModelImpl(com.sun.identity.console.base.model.AccessControlModelImpl) Iterator(java.util.Iterator) ArrayList(java.util.ArrayList) NodeList(org.w3c.dom.NodeList) OptionList(com.iplanet.jato.view.html.OptionList) List(java.util.List)

Aggregations

AccessControlModel (com.sun.identity.console.base.model.AccessControlModel)6 AccessControlModelImpl (com.sun.identity.console.base.model.AccessControlModelImpl)6 OptionList (com.iplanet.jato.view.html.OptionList)5 ArrayList (java.util.ArrayList)5 Iterator (java.util.Iterator)5 List (java.util.List)5 NodeList (org.w3c.dom.NodeList)5 CCNavNode (com.sun.web.ui.model.CCNavNode)2 CCTabsModel (com.sun.web.ui.model.CCTabsModel)2 AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)1 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 Map (java.util.Map)1 Set (java.util.Set)1 NamedNodeMap (org.w3c.dom.NamedNodeMap)1