OVD question -- Hiding selected nodes

Hi,
This is what my OVD DIT looks like:
Join View Adapter:
Primary Adapter: OID
Join Adapter: AD
The resulting DIT looks like this:
dc=company,dc=com
- cn=OracleContext
- cn=Calendar Server
- cn=Users
- cn=Groups
- ou=Oblix
I would like to expose only cn=Users and cn=Groups in my OVD. How do I hide the remaining nodes? I tried DN Matching, but it blocks all the children nodes.
The other option is to create a Local Store Adapter for dc=company,dc=com and then create two nodes:
- Join View Adapter for ou=Users
- Join View Adapter for ou=Groups
Is it safe to use a Local Store Adapter in a production environment, if it contains no data? I basically need this for an OAM deployment.
Thanks.

hello,
i think, from OVD view you want to allow only the users node & groups node and not the OracleContext,Calender, oblix nodes. if i am correct, then you might done your adapter configuration in this approach:
1. create the local store adapter as:
cn=users,dc=company,dc=com (if u want ou instead of cn, just define ou mapping for the users node)
cn=groups,dc=company,dc=com
2. create 2 adapters with the following parameters:
a) remote is: cn=users,dc=company,dc=com
root Base: cn=users,dc=company,dc=com
b) remote is: cn=groups,dc=company,dc=com
root base: cn=groups,dc=company,dc=com
in this approach you definately get the users, group nodes and its children nodes. ofcourse, if you want to do object mappings on any specific entity like user node you can extend in the adapter configuration.
Also, it won't be any issue by using the local store adapter in production also. you will be using this local store adapter only for mapping puprose and for storing the data i believe, you might do any operation onthe user nodes under user/group node but not on user/group node right!

Similar Messages

  • JTree and selected node question

    Hello
    Is it possible to convert the selected node to an int?
    I guess I'm looking for something llike this.
    int nodeNumber = node.getSelectedIndex();
    There is nothing like that in the API, and it would help greatly if I could find a way do this.
    Thanks
    Have a good holiday
    Jim

    From the API for JTree
    public int getMinSelectionRow()
    Gets the first selected row.
    Returns:
    an integer designating the first selected row, where 0 is the first row in the display
    But I think this is based on how many rows are displayed at the present time and might change if the tree is opened above it.

  • How to select node in JTree without firing event?

    I have got standard situation. JTree in the left panel, and several edit boxes in right panel. Certainly, I have TreeSelectionListener, which on every tree node selection shows corresponding model values in edit boxes.
    I'd like to implement next logic:
    1. Something was changed in any edit box in right panel. Model has been changed.
    2. User clicks on different node in tree.
    3. Dialog "Message was not saved. Save?" with Yes/No/Cancel buttons are shown.
    Yes/No buttons are easy to handle.
    Question is about Cancel. I'd like on Cancel button left all edit boxes in their present state (do not restore values from saved model) and select back node, which wasn't saved.
    Problem is next. If I select node by setSelectionPath or smth like that, but... JTree fires event and my listener receives onTreeItemSelected back, which checks that node wasn't saved and ......
    Who does have any idea, or have done similar tasks? How can I select node and do not allow tree fire event this time?
    Thanks in advance.

    First, as soon as the model changes (when editing any
    combo box) some flag will be set. Now the logic which
    updates the combo boxes will do it only on a change of
    the current node and (this is new) if the flag wasn't
    set. You should have some flag anyway because somehow
    you must determine when to show the dialog, shouldn't
    you?Yes, I have got this logic implemented. But it's only the half :)
    I know exactly when my model has been changed, but if it was changed, i'd like to ask user what to do next - svae/loose changes/cancel
    And on cancel i'd like to select last edited tree node and do not get event from tree at that moment.
    >
    Second way, prevent selecting a new node if that flag
    has been set. You could do this by subclassing
    DefaultTreeSelectionModel and overriding some methods
    (setSelectionPath() et al).Ok. I'll investigate this.
    >
    MichaelThanks.

  • Help trying to delete selected node tree.

    Hello All,
    I'm hoping someone can give me some insight into what I'm
    trying to do. I've got a tree that gets populated through an xml
    data provider. Basically i'm building an XML editor for a very
    specific application and I want to be able to delete (or edit,
    change, etc) a selected node. My XML, at a high level, looks like
    the following (it may look familiar as I've posted other questions)
    <template>
    <tab label="General">
    <section label="Address">
    <field label="Street 1" />
    <field label="Street 2" />
    </section>
    <section label="Misc">
    <field label="Street 1" />
    </section>
    </tab>
    </template>
    I've build a delete function that works but its not very
    flexible and has several problems with it, not the least is that if
    I have two identical nodes (the "street 1" in the above example) it
    will delete the first one which isn't necessarilly the "selected"
    node in the tree. This is where I'm hoping for some pointers on how
    to make this better.
    private function alertResponse(event:CloseEvent):void
    if(event.detail == Alert.YES)
    var elementName:String = selectedNode.localName().toString();
    var elementLabel:String = selectedNode.@label;
    switch(elementName)
    case "tab":
    delete templateXML.tab.(@label == elementLabel)[0];
    break;
    case "section":
    delete templateXML.tab.section.(@label == elementLabel)[0];
    break;
    case "field":
    delete templateXML.tab.section.field.(@label ==
    elementLabel)[0];
    break;
    Any insight, opinion, suggestions, comments, etc., would be
    appreciated.

    Thanks Tracy,
    I finally had a chance to circle back to this and I
    downloaded your xml editor. While i didn't actually run it i did
    have a chance to peruse the code and sure enough your delete method
    was exactly what I was looking for.
    For anyone who happens upon this thread here's the solution:
    private function deleteSelectedNode():void
    // get the selectedNode into XML
    var selectedNode:XML = XML(tree.selectedItem);
    // get a listCollection of the selectedNodes siblings, the
    list collection
    // is what provides us with the removeItemAt method.
    var siblingList:XMLListCollection = new
    XMLListCollection(selectedNode.parent().children());
    // figure out where the selectedNode is in relation to its
    siblings
    var selectedNodeIndext:int =
    siblingList.getItemIndex(selectedNode);
    // The "magic" line.
    siblingList.removeItemAt(selectedNodeIndex);
    }

  • How to get the selected node value of a tree which is build on java code

    Hi Experts,
    How can i get the selected node value if I build the tree programatically.
    I am using the following code in selectionListener but it is throwing error.
    RichTreeTable treeTable = (RichTreeTable)getQaReasontreeTable();
    CollectionModel _tableModel =
    (CollectionModel)treeTable.getValue();
    RowKeySet _selectedRowData = treeTable.getSelectedRowKeys();
    Iterator rksIterator = _selectedRowData.iterator();
    String selectedQaCode ="";
    while (rksIterator.hasNext()) {
    List key = (List)rksIterator.next();
    JUCtrlHierBinding treeTableBinding =
    (JUCtrlHierBinding)((CollectionModel)treeTable.getValue()).getWrappedData();
    JUCtrlHierNodeBinding nodeBinding =
    treeTableBinding.findNodeByKeyPath(key);
    String nodeStuctureDefname =
    nodeBinding.getHierTypeBinding().getStructureDefName();
    selectedQaCode = selectedQaCode + nodeBinding.getAttribute(0);
    where I am using following link to create a tree with java code.
    http://one-size-doesnt-fit-all.blogspot.com/2007/05/back-to-programming-programmatic-adf.html
    Please help me in resolving this issue.
    Regards
    Gayaz

    Hi,
    you should also move
    JUCtrlHierBinding treeTableBinding =
    (JUCtrlHierBinding)((CollectionModel)treeTable.getValue()).getWrappedData();
    out of the while loop as this is not necessary to be repeated for each key in the set
    Frank

  • Change icon of a non selected node in JTree

    Hello
    I have a swing application contening a JTree.
    I'd like to know how to change the icon of a non selected node in my tree. I have the information about the node and its path. I try to change userObject information and the icon of the node with the setIcon of (DefaultMutableTreeNode), and reload the node (DefaultTreeModel) but it doesn't work.
    Do I have to set the change in my CellRenderer ?
    Any advice will be welcome
    Anne

    If you carefully look at the java tutorial tree, the change is made for all the leaf icon. What I want is to change the icon of a not selected node of my tree while I do other stuff with the other nodes like select, display their contents, drag them ...
    the operation of a not selected node is independant from the selection in the tree.
    So I still ask how to force a node to reload and take care of the change of his icon.
    Anne

  • How could i get the selected node in the JTree

    getLastSelectedPathComponent() �returns the parent node of currenr selected, so how could I get the selected node itself in the JTree
    I will appretiate for any help!

    i think you can get by....
    TreePath treePath = tree.getSelectionPath();
    DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) treePath.getLastPathComponent();

  • JTree: How to get the currently selected node

    How do I get the currently selected node in JTree?
    getLastSelectedPathComponent() this method always return the last selected node and not the current one.
    Thanks in advance
    Sachin

    Use
    TreePath selectedPath = tree.getSelectionPath()If your tree allows multiple selections, use
    TreePath [] selectedPaths = tree.getSelectionPaths() this will return an array of all selected tree paths.
    Once you get the tree path, call the treePath.getLastPathComponent(). this should tell you the currently selected node.
    Hope this helps
    Sai Pullabhotla

  • No properties can be maintained for the selected node (MTE)

    Hi!
    I would like to set up the user defined alerts, e.g. Shortdumps frequency for satellite system from SOLMAN.
    The access of the MTE on the satellite system goes without any problem
    (<SID>\...\R3 Abap\Shortdumps frequency)
    When I set up this alert via System Monitoring and try to access it by double clicking I get the following error: No properties can be maintained for the selected node (MTE).
    Has some one some ideas how to solve this problem?
    Any helpful information will be appreciated.
    regards
    Thom

    Hi,
    Please ensure you have enough(like S_RFCACL) authoraization in both Solman and Your satellite system
    Check here [Solution Monitoring - Regarding MTE|Solution Monitoring - Regarding MTE]
    Thanks,
    Jansi

  • Smart forms - COMPLEX SELECTION node in ECC 6.0

    HI ABAPers ,
        Where we can find the COMPLEX SELECTION node in ECC 6.0 ..
    i searched but not able to find .. can you plaese  guide me
    regards
    ravi
    Edited by: Julius Bussche on Feb 18, 2009 9:52 AM
    Please use meaningfull subject titles

    Hi Ravichandra,
    You will find the similar threads and search in SDN
    Re: Complex Section in Smart Form
    Re: complex section of main window :  smart forms
    Regards,
    Sravanthi

  • Auto scrolling to a selected node in Tree

    Hi All,
    In my one of my flex application, i am selected nodes in a tree based on some input. However, if my tree is large and the selected node is at the bottom then i cant see what is selected until i scroll down. Is there any automatic way of scrolling to a node when that node is selected?
    Thanks.

    I have tried the following, but it is not working.
    Tree.scrollToIndex(Tree.selectedIndex);
    Any idea?

  • Right click select node in tree (for a standalone Air app)?

    For the sake of userfriendliness (in regard to a context menu) I wold like to "move" the selected node in a tree to the node that currently has the focus when right clicking it - like how the context menu access in windows file explorer works (focus and selected item are always the same  when right clicking).
    In worst case scenario I would like to disable a created context menu if the selected node and the node that currently has the focus are not the same).
    Now users can get confused when right clicking to access my context menu, in the tree structure, if the selected node and the node they are currently hovering over (and thus are in focus) are different.
    I was thinking of finding which node currently has the focus and then making that node the selected node - but I cant get it to work:-).
    Please, help a beginner.

    Hi,
    Duplicate thread of
    http://swforum.sun.com/jive/thread.jspa?threadID=64518
    MJ

  • Save selected node in Tree control

    I'm making this flex form for my school to add a new student
    to the DB. When the admin clicks on a button it will open a Tree
    control that displays the available courses and sections in the
    following heirarchy:
    Year>Semester>Course Name>Sections
    Now I want that when he clicks on the button Select within
    this new window showing the Tree, it will store the current
    selected node and the full path to it, so that back in the original
    form it will display the Year, Semester, Course name and section.
    I've tried using the value and selecteditem methods from the tree
    control but they are not working. Any ideas to figure out the full
    path of the selected item?

    You will need to climb back up the ancestor nodes to build
    that path yourself.
    "parent()" i believe returns the parent of the current node.
    Tracy

  • I need only to select node with "NodeName" (or/and Number) in a Java Tree

    I need only to select node with "NodeName" (or/and Number) in a Java Tree. Can anybody help me? Thanks a lot

    http://www.jetbrains.com/idea/openapi/5.0/com/intellij/util/ui/tree/TreeUtil.html
    http://www.tangoone.com/swf/docs/javadocs/org/swf/components/TreePane.html
    I fin SelectNode() function here - but I don't know how to connect these clases

  • Treeview Selected Node is not visible

    Hi
    I have below code snippet
                                TreeNode tn = TreeView1.FindNode(DefaultCustomFolderPath);
                                if (tn != null)
                                TreeView1.CollapseAll();                           
                                tn.SelectAction = TreeNodeSelectAction.SelectExpand;
                                tn.Selected = true;
    This code was working fine when i was having Windows XP OS..
    Now that the XP OS has been upgraded to Windows7, it is showing the collapsed tree view only i.e the selected node is not automatically displayed. If you expand the treeview to the selected node, it is selected/highlighted correctly.
    Please help to solve this issue
    Edit: I am using <asp:TreeView>

    There is a different TreeView for every UI Technology (WinForms, WPF, ASP.Net). Plus several 3rd party TreeViews. Please specify wich one you use and ideall repost in the proper (sub)forum for the UI Technology.
    Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2 Please mark post as helpfull and answers respectively.

Maybe you are looking for

  • Add a website to Compatibility view settings in IE11

    hi I am able to add "Microsoft.com" to compatibility view settings in IE10 through c# console code.  Now the same code is giving me error in IE11 as "Compatibility view settings cannot be changed".   Please help me how to add Microsoft.com to compati

  • Is there any way to display a pdf inside of a swf file?

    Are there any software that will convert Word documents or pdf into swf files that ca be displayed inside of a Flash movie. Currently, I am using FlashPaper but the software is not supported anymore by Adobe. I am creating eLearning courses and havin

  • File path question....

    Yet another really simple question from me, as I've been away from DIAdem for too long. I have a program which, in part of it, needs the user to select the path that they want a set of a few hundred files to be saved in. I've tried using FileNameGet,

  • Safari and Firefox all media including U tube shows a quicktime ?

    Anbody got had this happen, I even updated to the latest of quicktime on my system. Whether I use Safari or Firefox, media doesn't load, video and flash things I think. U tube doesn't work either. Just shows a quicktime ? The funny thing is it comes

  • Profiles in location master data

    Hi guys,          There are certain profiles in location master data FR view , could you tell me how to create all this profiles? Thanks and regards Thamizhchelvan G