API that deals with domain

We are trying to migrate C++ application to JAVA. I need to find out JAVA api that deals with domain, such as list of user(group) name under one domain, list of all domain controllers...
Under C++ world, it would be NetUserEnum, NetServerEnum...
thanks in advance

Not sure if this is what you are looking for , but give it a look. ..
http://java.sun.com/products/jndi/overview.html
http://java.sun.com/products/jndi/tutorial/

Similar Messages

  • Seeking for API to deal with XML processing instructions

    Hi all,
    I have a requirement to list all the processing instructions inside a xml document.
    E.g. For the document
    <?xml version="1.0" encoding="utf-8"?>
    <?AAA att1="att 1"?>
    <?BBB?>
    <?CCC?>
    <body>
      <empty>True</empty>
    </body>
    I need to print out PIs AAA, BBB, CCC.
    Two solutions i can find are:
    1. to treat the doc as a string and do a pattern search for <?*?>.
    2. use IF_IXML_DOCUMENT to traverse all the nodes and check their node types against IF_IXML_NODE=>CO_NODE_PI_PARSED and TYPE = IF_IXML_NODE=>CO_NODE_PI_UNPARSED.
    However, I am wondering if there's any xml API to deal with XML PIs.
    During my research on this, i got IF_IXML_DOCUMENT. It provides two creation APIs for XML PI: CREATE_PI_PARSED and CREATE_PI_UNPARSED. However, there is no corresponding getter API found.
    Does anybody know if there is such one?
    Thanks in advance.

    Never do yourself down Richard.
    Leave that to other people.
    It's quite common for smart developers to think they're not as good as they are.
    I coach a fair bit and it's a surprisingly common feeling.
    And to repeat.
    Never use anything ends .. provider.  They're for trivial demo apps.  Transform xml into objects and use them.  Write it back as xml.  Preferably, use a database.
    You want to read a little mvvm theory first.
    http://en.wikipedia.org/wiki/Model_View_ViewModel
    Whatever you do, don't read Josh Smiths explanation.  I used to recommend it but it confuses the heck out newbies. Leave that until later.
    Laurent Bugnion did a great presentation at mix10.  Unfortunately that doesn't seem to be working on the MS site, but I have a copy.  Download and watch:
    http://1drv.ms/1IYxl3z
    I'm writing an article at the moment which is aimed at beginners.
    http://social.technet.microsoft.com/wiki/contents/articles/30564.wpf-uneventful-mvvm.aspx
    The sample is just a collection of techniques really.
    I have a sample which involves no real data but is intended to illustrate some aspects of how viewmodels "do stuff" and how you use datatemplates to generate UI.
    I can't remember if I recommended it previously to you:
    https://gallery.technet.microsoft.com/WPF-Dialler-simulator-d782db17
    And I have working samples which are aimed at illustrating line of business architecture.  This is an incomplete step by step series but I  think more than enough to chew on once you've done the previous stuff.
    http://social.technet.microsoft.com/wiki/contents/articles/28209.wpf-entity-framework-mvvm-walk-through-1.aspx
    The write up for step2 is work in progress.
    https://gallery.technet.microsoft.com/WPF-Entity-Framework-MVVM-78cdc204
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Error while using BAPIs that deals with DMS

    Hi everybody,
    We are developing a portal with Web Dynpro and trying to call from our java code BAPIs that deals with DMS:
    BAPI_DOCUMENT_CREATE2 - to create a new DMS document and checkin an original.
    CVAPI_DOC_CHECKIN - to checkin an original to an existing DMS document.
    CVAPI_DOC_CHECKOUT - to checkout an original from the DMS.
    While using other bapi's that deals with DMS but do not deals with originals (like creating a new document, retrieving metadata about documents and originals) we don't have any problem.
    Only when trying to checkin or checkout originals we get the following message (from the DMS?): RFC_START_PROGRAM
    the full message is: com.sap.aii.proxi.framework.core.BaseProxiException:RFC_START_PROGRAM error key:RFC_ERROR_PROGRAM.
    does anybody knows the meaning of this message?
    by the way - those BAPIs works well while called from the R/3. only when we call them from the portal we have this problem.
    thanks for any information, Adi.

    Hello,
    BTW, You have BAPIs for Doc. checkin and checkout.
    BAPI_DOCUMENT_CHECKIN
    BAPI_DOCUMENT_CHECKIN2
    BAPI_DOCUMENT_CHECKOUTSET
    BAPI_DOCUMENT_CHECKOUTSET2
    Can you use these and give a try?
    You have a detailed documentation maintained for these BAPIs.
    Hope this helps you.
    Best Regards, Murugesh AS

  • [svn:osmf:] 13914: 1. Fix a bug that deals with discontinuity of fragments.

    Revision: 13914
    Revision: 13914
    Author:   [email protected]
    Date:     2010-02-01 16:02:58 -0800 (Mon, 01 Feb 2010)
    Log Message:
    1. Fix a bug that deals with discontinuity of fragments. This is the first check in of the fix. More extensive testings may discover other issues.
    2. Apply a patch from Matthew, quoted from Matthew's email:
    This one should pick up ?\226?\128?\156play now can take a starting offset?\226?\128?\157, stubs out ?\226?\128?\156play for duration?\226?\128?\157, and also picks up ?\226?\128?\156data messages are lost during enhanced seek?\226?\128?\157.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPNetStream.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/AdobeFragmentRunTable.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/HTTPStreamingF4FIndexHandler.as

    Thanks.
    I actually figured a better solution which was putting the fix right into VASTTrackingProxyElement.as so that VAST2TrackingProxyElement.as just inherits it, since I saw same issue with VAST1 ads as well!
    Cheers,
    mark

  • [svn:bz-trunk] 18821: Check-in a minor fix that deals with a missing MessageBroker class ( this could happen in Java/Android clients).

    Revision: 18821
    Revision: 18821
    Author:   [email protected]
    Date:     2010-11-26 07:33:24 -0800 (Fri, 26 Nov 2010)
    Log Message:
    Check-in a minor fix that deals with a missing MessageBroker class (this could happen in Java/Android clients).
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/MessageException.java

    I see some message about a proxy. Have you checked that you can use the proxy from you network?
    If not you should turn the proxy off.
    Timo

  • LabVIEW DSC 8.0 examples that deal with events check for valid timestamp.Why?

    Hi folks !
    There are examples that come with LabVIEW DSC 8.0 that deal with alarm events, In these examples - DSC Alarms Event Structure Support.vi contained in DSC Alarms Demo.lvproj, for instance - when an alarm event occurs, the code checks for a valid time stamp - 17:00:00.000 31/12/1975. I´m confused, can anyone help me understanding why it´s done?
    Thanks !

    Hello marc8470,
    Each Virtex 5 FPGA bank requires an external voltage reference.  The FlexRIO FPGA module provides this reference in the form of Vccoa and Vccob.  Because there are two voltage references available on the FlexRIO FPGA module, each Vcco reference is connected to 2 IO banks.  The Adapter Module Interface and Protocol chapter of the FlexRIO MDK manual has a table that indicates which GPIO banks are referenced to which Vcco reference.  The Vcco levels set in the general section of the adapter module configuration file are not used by the Xilinx compiler, but instead by the fixed FlexRIO logic to configure the external voltage references.  The IO standard constraints section of the adapter module configuration file is used during compile to configure the output drivers in the Virtex 5.  If the general VccoALevel and VccoBLevel values do not match the IO standard constraints, no error will occur during compile, but the hardware will not be configured correctly during runtime.  The logic families used by each general purpose IO (GPIO) line must match that of the Vcco levels set in the general section of the adapter module configuration file.  A mismatch in values could result to incorrect behavior or possible damage to the FlexRIO FPGA module or the adapter module. 
    In the future, please use the email address included in your NI FlexRIO Adapter Module Development Kit (MDK) User Manual to send your questions directly to the FlexRIO MDK support team.  This group has experience with specific FlexRIO MDK questions such as this one. 
    The FlexRIO MDK manual is designed to provide all of the information a hardware designer will need to create a FlexRIO adapter module.  National Instruments is always improving and working on new releases of the FlexRIO MDK.  Please feel free to use the support email address in the FlexRIO MDK manual to send me any feedback you have on the contents of the manual.
    Regards,
    Browning G
    FlexRIO R&D

  • Why would a vi that deals with xl become broken during an executable build?

    Why would a vi that deals with excel spreadsheet become broken during an executable build?  Excel vi's fine in soft copy.  But during executable build the vi's dealing with opening an excel spredsheet (open specific workbook and set cell value) become broken.

    You have to include some dynamic files while building your executable. The files are listed on the Report Generation Toolkit CD. I believe it is _excelsub.llb, but am not sure.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • My ipad 4th gen 32gb keeps crashing everytime i use a app that deals with a map?

    I updated my ipad 4th gen 32gb to iOS 7 and since then anytime i use a app that deals with a map it crashes for instance find my iphone, find my friends and the built in map app on the ipad. I restored the ipad when it first started happening and its still doing it. I do the soft reset and it seems to do not a thing to help out the matter. The first time it happened i was using my built in map app and the ipad started crashing and wouldnt stop, it went on for like 3 hours kept turning on and turning right back off when it turned back on and it would do that for the whole 3 hours it probably crashed and turned back on 200 times. I had to do a command reset using itunes on my macbook pro to get it to stop doing it and ive not used the map app since because of it. So recently ive used find my friends and find my iphone and it would crash my ipad once and when it came back on it wouldnt crash again so i would just go and kill the app that caused it to crash.

    I restored my ipad as a new ipad deleted all the backups for the ipad from my itunes and then set it up as new and put all my photos and music and apps back the way they was and i havent really messed with the apps with maps in it but the crashing is still happening and its happening inside the settings app id love if someone could help me out its starting to get pretty annoying. Thanks.

  • Keychain services API and dealing with Keychains other than the default

    Hello,
    So I've been doing some C work with the Keychain services API. But I can't figure out how to set the Keychain for a function to something other than the default, which is set by passing NULL.
    For example,
    status = SecKeychainAddGenericPassword (
    *NULL, // default keychain*
    10, // length of service name
    "SurfWriter", // service name
    10, // length of account name
    "MyUserAcct", // account name
    passwordLength, // length of password
    password, // pointer to password data
    NULL // the item reference
    This function is defined here:
    http://developer.apple.com/documentation/Security/Reference/keychainservices/Ref erence/reference.html#//apple_ref/c/func/SecKeychainAddGenericPassword
    and the data type for the Keychain is here:
    http://developer.apple.com/documentation/Security/Reference/keychainservices/Ref erence/reference.html#//appleref/doc/cref/SecKeychainRef
    But neither helps me at all for being able to edit a keychain that isn't the default Keychain.
    I appreciate any help, thanks.
    Message was edited by: Smerky

    http://developer.apple.com/documentation/Security/Reference/keychainservices/Ref erence/reference.html#//apple_ref/c/func/SecKeychainOpen

  • Any APIs to deal with screensavers, wallpapers and ringtones?

    Hello,
    I would like to ask are there any APIs to handle the launch of screensavers, change of wallpapers and ringtones??
    Thanks a lot~

    in java basically no.
    there might be a vendor specific implementation that allows access to a device's screensaver i.e..

  • Just in case any one needs a Observable Collection that deals with large data sets, and supports FULL EDITING...

    the VirtualizingObservableCollection does the following:
    Implements the same interfaces and methods as ObservableCollection<T> so you can use it anywhere you’d use an ObservableCollection<T> – no need to change any of your existing controls.
    Supports true multi-user read/write without resets (maximizing performance for large-scale concurrency scenarios).
    Manages memory on its own so it never runs out of memory, no matter how large the data set is (especially important for mobile devices).
    Natively works asynchronously – great for slow network connections and occasionally-connected models.
    Works great out of the box, but is flexible and extendable enough to customize for your needs.
    Has a data access performance curve so good it’s just as fast as the regular ObservableCollection – the cost of using it is negligible.
    Works in any .NET project because it’s implemented in a Portable Code Library (PCL).
    The latest package can be found on nugget. Install-Package VirtualizingObservableCollection. The source is on github. 

    Good job, thank you for sharing
    Best Regards,
    Please remember to mark the replies as answers if they help

  • How to deal with Memory Leaks, that are caused by Binding

    Hi, I recently noticed (huge?) memory leaks in my application and suspect bindings to be the cause of all the evil.
    I made a little test case, which confirms my suspicion:
    import javafx.application.Application;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.beans.property.StringProperty;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class TestAppMemoryLeak extends Application {
        public static void main(String[] args) {
            launch(args);
        @Override
        public void start(Stage stage) throws Exception {
            VBox root = new VBox();
            Button button = null;
            for (int i = 0; i < 100000; i++) {
                button = new Button();
                button.textProperty().bind(text);
                button.textProperty().unbind(); // if you don't call this, you can notice the increased memory of the java process.
            root.getChildren().add(button);
            Scene scene = new Scene(root);
            stage.setScene(scene);
            stage.show();
        private StringProperty text = new SimpleStringProperty("test");
    }Now the problem is, HOW can I know, when a variable is no longer needed or overwritten by a new instance.
    Just an example:
    I have a ListView with a Cell Factory. In the updateItem method, I add a ContextMenu. The textProperty of each MenuItem is bound to a kind of global property, like in the example above. I have to do it in the updateItem method, since the ContextMenu differs depending on the item.
    So every time the updateItem method is called a new ContextMenu is created, which binds some properties, but the old context menus remain in memory.
    I guess there could be many more example.
    How can I deal with it?

    I've dealt with this situation and created a Jira issue for it, but I also have a work-around that is a bit unwieldy but works. I'll share it with you.
    The bug that deals with this (in part atleast): http://javafx-jira.kenai.com/browse/RT-20616
    The solution is to use weak invalidation listeners, however they are a bit of a pain to use as you cannot do it with something simplistic as "bindWeakly"... and you need to keep a reference around to the wrapped listener otherwise it will just get garbage collected immediately (as it is only weakly referenced). Some very odd bugs can surface if weak listeners disappear randomly because you forgot to reference them :)
    Anyway, see this code below, it shows you some code that is called from a TreeCell's updateItem method (I've wrapped it in some more layers in my program, but it is essentially the same as an updateItem method):
    public class EpisodeCell extends DuoLineCell implements MediaNodeCell {
      private final WeakBinder binder = new WeakBinder();
      @Override
      public void configureCell(MediaNode mediaNode) {
        MediaItem item = mediaNode.getMediaItem();
        StringBinding episodeRange = MapBindings.selectString(mediaNode.dataMapProperty(), Episode.class, "episodeRange");
        binder.unbindAll();
        binder.bind(titleProperty(), MapBindings.selectString(mediaNode.dataMapProperty(), Media.class, "title"));
        binder.bind(ratingProperty(), MapBindings.selectDouble(mediaNode.dataMapProperty(), Media.class, "rating").divide(10));
        binder.bind(extraInfoProperty(), Bindings.when(episodeRange.isNull()).then(new SimpleStringProperty("Special")).otherwise(episodeRange));
        binder.bind(viewedProperty(), item.viewedProperty());
        subtitleProperty().set("");
    }This code makes use of a class called WeakBinder -- it is a helper class that can make Weak bindings and can keep track of them. When you call unbindAll() on it, all of the bindings it created before are released immediately (although they will also disappear when the Cell itself is garbage collected, which is possible because it only makes weak references).
    I've tested this extensively and it solves the problem of Cells keeping references to objects with much longer life cycles (in my case, the MediaNode passed in has a longer lifecycle than the cells and so it is important to bind weakly to it). Before this would create huge memory leaks (crashing my program within a minute if you kept refreshing the Tree)... now it survives hours atleast and the Heap usage stays in a fixed range which means it is correctly able to collect all garbage).
    The code for WeakBinder is below (you can consider it public domain, so use it as you see fit, or write your own):
    package hs.mediasystem.util;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    import javafx.beans.InvalidationListener;
    import javafx.beans.Observable;
    import javafx.beans.WeakInvalidationListener;
    import javafx.beans.property.Property;
    import javafx.beans.value.ObservableValue;
    public class WeakBinder {
      private final List<Object> hardRefs = new ArrayList<>();
      private final Map<ObservableValue<?>, WeakInvalidationListener> listeners = new HashMap<>();
      public void unbindAll() {
        for(ObservableValue<?> observableValue : listeners.keySet()) {
          observableValue.removeListener(listeners.get(observableValue));
        hardRefs.clear();
        listeners.clear();
      public <T> void bind(final Property<T> property, final ObservableValue<? extends T> dest) {
        InvalidationListener invalidationListener = new InvalidationListener() {
          @Override
          public void invalidated(Observable observable) {
            property.setValue(dest.getValue());
        WeakInvalidationListener weakInvalidationListener = new WeakInvalidationListener(invalidationListener);
        listeners.put(dest, weakInvalidationListener);
        dest.addListener(weakInvalidationListener);
        property.setValue(dest.getValue());
        hardRefs.add(dest);
        hardRefs.add(invalidationListener);
    }Let me know if this solves your problem.

  • I'm receiving a message that items are not syncing and says I should go to iTunes.  However, I can't find in iTunes how to deal with issue.  Any suggestions?

    I'm receiving a message that items will are not syncing and the messages says I should go to iTunes; however, I can't find an area in iTunes that deals with my issue.  Any suggestions on where I should look for the solution?

    Right click on your device icon on the left pane of iTunes and click on transfer pur....

  • Dealing with ExtendScript hangs and long processing times?

    Just curious if an ExtendScript for some reason hangs (or takes really long time to run), you just have to kill it externally right? Or is there some other Adobe scripting feature I'm not aware of that deals with that scenario?
    So I'm guessing the best option to deal with hangs or long processing time is to:
    have an external monitoring tool/service to check up on the ExtendScript execution and handle appropriately as needed (kill it, log info)
    use the COM API (e.g. VBScript, though other COM compatible languages ok) or Applescript API (called directly or called by other programming languages) instead of ExtendScript for their additional programming and/or multi-threading capabilities

    Using whose in Snow Leopard is a lot slower for some reason. SInce you are already using a shell script, you might try using find. Various shell scripts to copy, find, move, etc, can also use wildcard characters.

  • How can I create unique partnerships to deal with like EDI messages?

    I have an EDI to Application partnership setup currently that deals with translating MEDRUC type EDIFACT messages to a mainframe format. The setup is
    Sender = PARTNERA,
    Receiver = PARTNERB
    DocType = MEDRUC.
    In the Input EDI tab the
    Sender Qualifier ID = ZZ:PARTNERA
    Receiver Qualifier ID = ZZ:PARTNERB
    Standard = EDIFACT
    Version = D
    Release Number = 97B.
    Use UNG to locate partnerships = No
    EDIFACT messages contain all this information in their UNB and UNH segments which is where SunONE IS B2B looks to then match against the relevant partnership. My problem is this does not go to enough granularity for me to distinguish uniqueness for the second partnership I need to create.
    The problem is the "Association assigned code" field in the UNH for EDIFACT messages is not catered for anywhere in the partnership details area. This means then that whilst my existing partnership deals with Simplified Billing Claim MEDRUC's which is Association assigned code = SBC20, I can't create an EDI to Application partnership for PARTNERA and PARTNER B to cater for Two Way Gap Claiming MEDRUC's which are Association assigned code = TWC10, ie the two messages are D97B MEDRUC type messages only distinguished from each other by this Association assigned code.
    Any ideas how can I then create a unique EDI to Application partnership for this TWC10 MEDRUC message?
    What I am thinking I will have to do is make this second partnership Application to Application and create a custom service to wrap the MEDRUC message with a HREC/TREC and use the parameters in the HREC to dictate the DocType rather than use the UNB/UNH segments in the MEDRUC?

    Hmmm. It looks like way back when the decision was made on how specific the keys had to be, they didn't get quite specific enough for your case. I'm not super experienced with EDIFACT but I'll throw out some suggestions based on my HREC and X12 knowledge.
    A. Could you handle both instnaces through the same partnership, but alter the map to create unique outputs based on the two different types? At least of the cards would need to be handled through Route, but you could have that picked up by a simple Outprep / Gateway Service list that put the data where you wanted it.
    B. Before Parse, run a custom service that is capable of inspecting for which type of data it is, then modify one of the key fields in place to find the Second partnership. Really getting adventurous, maybe you could alter keys in the UNG to make the distinction. This assumes that you don't have both types of documents in the same interchange.
    C. Your idea may be workable. Can you give some more detail on the make-up of the Service list and the destination/processing of the two differnt types of MEDRUC?
    Thanks.

Maybe you are looking for

  • ITunes no longer imports 320kbs MP3 files

    I have been using iTunes for several years.  I am a professional audio engineer and make my living doing it. For years, I have been able to load 320kbs MP3 files into iTunes and load them into my iPhone to check my mixes. All of this has come to a co

  • SOAP Sender Adapter + Web Service Security

    Hi all We have a SOAP scenario, where Multiple clients will expose a same webservice and got the response back. While exposing a webservice calls its asking for credentails (yes we can create the service user with proper authentication and provide th

  • Music stops at high speed?

    I play both Pandora or the music app when I ride my motorcycle. Upon accelerating/higher speeds, the music pauses/stops. This never happened on the previous phone which was a droid. I use headphones that have a built in mic on the wire, is it possibl

  • Hidden Layers

    My site has hidden layers that function with side navigation bar links so that you can show different iframes within the same window of one page. The iframes show in the various hidden layers that are shown when you click on their corresponding side

  • Local Chain Multiple times in a Meta Chain

    Hi, I have a scenario in which I have to call the same local chain multiple times in a Meta Chain. The system is not allowing me to add the same local chain in my meta chain more than two times. System is throwing the below message: Diagnosis The lin