Reg UserAssaigned() method in RoleListener API

Hi,This method is  in the interface RoleListener
1) I want to know when the following method is called. This is in the interface RoleListener
2)When do we may find its usage?
3)Do we need to register for  the Roles that are to be observed when a user assaigned to them?
or is this method called each time a user assiagned to any role in UME.
javadoc:
public void  userAssigned (java.lang.String uniqueIdOfRole,
                         java.lang.String uniqueIdOfUser)
                  throws UMExceptionuserAssigned() is called if event INFORM_ON_USER_ASSIGNED is fired from the registering factory
Parameters:
uniqueIdOfRole - name of the role
uniqueIdOfUser - name of the user who was assigned to the role
Thanks & Regards
Veerabhadram

Hi,
Just look for observer pattern, as the RoleListener api is implementing this pattern.
RoleListener allows to register for user mangagement events and classes which are interested in these events can implement the RoleListener.
Classes AclManager, GroupManager, EventHandler and so on implement RoleListener.
1) I want to know when the following method is called. This is in the interface RoleListener
--> As the method signature says, this method is called when a user is assigned to role. This method is called on all classes that registered to hear for this event.
2)When do we may find its usage?
-->Check AclManager, GroupManager, EventHandler classes to understand its usage.
3)Do we need to register for the Roles that are to be observed when a user assaigned to them?
or is this method called each time a user assiagned to any role in UME.
-->You need not do any thing special, the userAssigned method is called on all listeners each time a user is assigned to any role in UME.
Regards,
Praveen Gudapati

Similar Messages

  • Do You have a method of EWS API to set the share a calendar for other another user

    Do You have a method of EWS API to set the share a calendar for  another user , kindly if you can help as soon as possible i'm going to develop an application and share a calendar events as well ,,, thanks my regards 

    You can add and remove delegates.
    https://msdn.microsoft.com/EN-US/library/office/dn641959(v=exchg.150).aspx This does not work exactly like the sharing feature in Outlook in that no sharing message is sent.

  • How to use the is_selected method of if_wd_context_element API

    HI,
    scenario : if the element is selected, I want to pass some of its attributes to the backend.
    description : In a Context node, I want to check which elements are selected by the user. For this there is a method in the in if_wd_context_elemenent API in web dynpro ABAP. The method is called is_selected. How to use this method ?
    Please give me an example. What does this method return. can I use it in the if condition.
    Regards
    seventyros
    Edited by: seventyros on May 5, 2011 9:32 AM

    Hi tryos,
    IS_SELECT method is available at element and node level.
    check this...
    http://help.sap.com/saphelp_nw04s/helpdata/en/fd/be5b4150b38147e10000000a1550b0/content.htm
    Check this is set_selected method, try with is_select also...
    Select All in table
    if lo_el_it_lips->is_selected ( flag = abap_true ).
    endif.
    // Node
    DO count TIMES.
    lo_nd_it_lips1->is_selected(             // lo_el_it_lips - element has no index, only flag.
    flag = abap_true
    index = int ).
    ADD 1 TO int.
    ENDDO.
    Cheers,
    Kris.
    Edited by: kissnas on May 5, 2011 9:49 AM

  • Enums for System.getProperty(...) method in Java API?

    Just had a thought today as a result of a colleaugue mis-spelling "file.separator" in a System.getProperty() call:
    How about an enum for the above method (e.g. SystemProperty) that has all the known properties and the String method for any prop not included in the enum?
    Am I being too greedy or pedantic about type-safety?
    Appreciate your feedback.
    Cheers,
    Ali
    Edited by: user7627452 on 30-Apr-2012 19:09

    Yes. The whole idea is that anybody can add their own. As opposed to an API.

  • Reg :  wd_get_api( ) method

    What is the use of wd_get_api( ). method??
    Iam confused on this method....Can anyone help me .
    When Iam using message manager..the below code got generated . Here why are we using this method?? this method Returns
    of  type REF TO if_wd_controller .
    get message manager
    DATA lo_api_controller     TYPE REF TO if_wd_controller.
    DATA lo_message_manager    TYPE REF TO if_wd_message_manager.
    lo_api_controller ?= wd_this->wd_get_api( ).
    but when iam using popup window.. the below code got generated .Here why are we using this method?? this method Returns
    of  type REF TO  if_wd_component.
    DATA lo_api_component  TYPE REF TO if_wd_component.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    why there is difference in returning  parameter ??
    for message it is  type REF TO if_wd_controller .
    for poup it is TYPE REF TO if_wd_component

    Hi Arjun ,
    hope this post by neha satifies ur query :
    When you create any web dynpro component, two controller interfaces are created. One you can see at design time of type IF_COMPONENTCONTROLLER, this is the interface which provides you necessary API specific to your component only. Like contexts,nodes,attributes,events etc. The reference variable which is available in code is wd_this.
    However at runtime you also get an access to so called run time interface of type IF_WD_COMPONENT. This is a generic standard API which is provided by web dynpro framework to access some important information related to the component. This particular interface contains near about 20 methods which gives you different information. To see the methods just go through the interface IF_WD_COMPONENT in se24. So the method wd_get_api just returns you the instance/object of type IF_WD_COMPONENT. This interface is implemented by web dynpro framework so you need not to worry about that. Once you have the instance you can use this API in your code as and when required.
    reference thread :
    Re: purpose of methods wd_get_api ?
    rgds.
    amit

  • Export method OWB JAVA API

    Hello,
    I've been getting an eyeful to Warehouse Builder JAVA API offers and I find that JAVA API have a method to Import metadata but I don't find a method to export metadata from a repository. �Why JAVA API does not offer an export metadata method?
    Thanks

    Hi Pedro,
    I quickly glanced at the functional spec and there should be an export (actually this seems to be more granular than the import). I will look around some more, but I think you have export for MDL as well as import.
    I'll get back to you with some more details on this.
    Jean-Pierre

  • Create() method not in API

    Why create() method is not in J2EE API.

    I assume you're asking why it's not in the EJB API in J2EE?
    In EJB 2.1 and earlier it does not appear in the actual javax.ejb.* API
    because the create() signature is bean specific. That allows the
    developer to decide what information should be passed to a Stateful
    Session Bean or 2.x Entity Bean at creation time. Stateless session
    beans never take any parameters to their create method.
    In EJB 3.0, Home interfaces were removed so there aren't any create
    mehods needed. Stateful session beans are created as a side
    effect or lookup or injection. To pass in specific initialization state
    you just define a business method and call it after acquiring the
    bean reference.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Reg. METHOD redefnition

    Hi,
    I tried to inherit a subclass from super class. In se38, i created supercalss and subclasses as local classes. Here in subclass, the system was expecting the keyword REDEFINITION while resuing the same method in the subclass.
    But when i do the same thing in SE24 for creating a Global Class, the system was not asking to redefine the method.
    Can anyone tell me what could the difference?
    Regards,
    Prabu

    Hi Marcin,
    Thanks for your response.
    I still have the same doubt.
    See the following code, i ahve used the only method DISPLAY in both superclass and subclass. Here if i remove the keyword REDEFINITION from the subclass. I am getting the error as " method DISPLAY as already been declared "
    class lc_superclass DEFINITION.
      PUBLIC SECTION.
      METHODS : display.
    ENDCLASS.
    CLASS lc_superclass IMPLEMENTATION.
      METHOD display.
      ENDMETHOD.
    ENDCLASS.
    CLASS lc_subclass DEFINITION INHERITING FROM lc_superclass.
      PUBLIC SECTION.
      METHODS : display REDEFINITION.
    ENDCLASS.
    CLASS lc_subclass IMPLEMENTATION.
      METHOD display.
      ENDMETHOD.
    ENDCLASS.
    Can you please correct if i am wrong.
    Regards,
    Prabu

  • Reg : Payment method details in MIRO

    Hi All,
    In MIRO i have to populate Payment method supplement field with some data based on the vendor. I have to use an exit for this in MIRO.
    Could you please tell me from which table we are getting the data for payment method so that in the exit i can update that table for the corresponding vendor.
    Regards,
    Anil.

    The payment method info on MIRO gets populated from the Vendor Master Data which is LFB1.
    Nandita

  • Reg call method im_item- set_data

    hi,
    if i try to pass values to me52n tr thro badi me_process_req_cust-process_item method ->set_data...its not going to screen and not reflecting...
    please help if anybody knows

    my req is:
    if user checks the checkbox "closed' in quantities/dates tab, block id of status tab changed to "blocked by requestor'' for that line item.i am pasting my code...please correct me where i am wrong.
    data: ls_datax type mereq_itemx.
      data : item_data        type  mereq_item.
    if im_count = 1.
        if sy-tcode eq 'ME52N' or sy-tcode eq 'ME53N'.
          call method im_item->get_data
            receiving
              re_data = item_data.
          if item_data-ebakz eq 'X' and item_data-frgkz = '2'.
    move 'X' to ls_datax-blckd.
                call method im_item->set_datax
                  exporting
                    im_datax = ls_datax.
                item_data-blckd = '1'.
    CALL METHOD im_item->set_data
    EXPORTING
    im_data =  item_data.
    endif.
    endif.

  • Is there a method in the API that turns an href attribute into a full URL?

    Perhaps it would take the href string as one parameter and then have the current URL as another paramater, since many href strings find their actual target URL based on the current URL.
    Is there anything included in Java that does this, or would I just have to implement this myself?
    Thanks!

    Oh, oops, is it this?
    public URL(URL context,
    String spec)
    throws MalformedURLException

  • Trying to understand the various methods of the Office Web API

    Looking at the Office Web API, I don't see explanations, details of what a specific Office Web API method does. Is one suppose to experiment to discovered what they do, or is there some place I need to look for details?
    Thanks
    Jim

    ​Hi JimBassett,
    What do you mean by "Office Web API"? Do you mean javascript api for office? If so, I think you could turn to the link below for explanations, details of the methods.
    #JavaScript API for Office
    https://msdn.microsoft.com/en-us/library/office/fp142185.aspx
    If you mean the Office 365 API, here is a article for your reference:
    #Overview of developing on the Office 365 platform​
    https://msdn.microsoft.com/en-us/office/office365/howto/platform-development-overview
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • Integration API method to get display name

    Is there a method in Integration API to get display name of columns.
    I want a method like getDisplayName(string fieldName) returns the name displayed on Primavera UI.

    Hi Onkar,
    not sure if you already testet it like that, but as far as I know the full username of an AD user is displayed just the way it is, for an enterprise user.
    Have you checked, if the full name is filled with AD information?
    If not, you might check your settings in the CMC -> "Authentication" -> "Windows AD" -> "Import Full Name and Email Address"
    I can not check it with our test system, cause our user names are identical to our full names.
    But it might give you a hint!
    Regards
    Jan
    Edited by: Jan Fröhlich on Jul 23, 2009 1:00 PM

  • Preferences API: How to implement Preferences modifications methods?

    I want to implement methods in Preferences API like putSpi, removeSpi and flushSpi. Backend where all preferences exists is LDAP and XML. At present I have only prefs accessing methods. Please provide me some guidance in this regards.
    Regards,
    Varun

    found it out myself:
    private Preferences prefs = Preferences.userRoot().node(MyClass.class.getName());

  • Unauthorized Issue in invoking REST API

    Hi,
    I am getting the following issue when i am calling the "GET" method of REST API:" https://secure.p03.eloqua.com/API/bulk/2.0/syncs/14"
    Unauthorized
    java.lang.RuntimeException: Failed : HTTP error code : 401
      at GetContactSync.main(GetContactSync.java:41)
    This is the code i have used to invoke the API:
    String proxyhost="www-proxy.us.oracle.com";
      int  proxyport=80;
      String inputparam="14";
        String urlstring="https://secure.p03.eloqua.com/API/bulk/2.0/syncs/14";
       String authString = "IBUDEMO\\aman.adarsh" + ":" + "Welcome@1";
      //String authString = "IBUDEMO1\\aman.adarsh" + ":" + "Welcome@1";
       String authToken = "Basic" + javax.xml.bind.DatatypeConverter.printBase64Binary(authString.getBytes());
       String output="";
       String line="";
      URL url = new URL(urlstring);
      //Properties systemProperties = System.getProperties();
      //systemProperties.setProperty("http.proxyHost",proxyhost);
      HttpURLConnection conn = (HttpURLConnection) url.openConnection(new Proxy(Type.HTTP,new InetSocketAddress(proxyhost, proxyport)));
      conn.setInstanceFollowRedirects(false);
      conn.setDoOutput(true);
      conn.setRequestMethod("GET");
      conn.setRequestProperty("Accept", "application/json");
      //conn.setRequestProperty("Authorization", authToken);
      conn.setRequestProperty("Proxy-Authorization", "Basic " + authToken);
      System.out.println(conn.getResponseMessage());
      if (conn.getResponseCode() != 200) {
                throw new RuntimeException("Failed : HTTP error code : " +
                                           conn.getResponseCode());
    I want to know if i have missed any parameter
    The same authentication piece of code is working fine for "POST" methods of other API's
    Request your help on this

    Hi,
    I am getting the following issue when i am calling the "GET" method of REST API:" https://secure.p03.eloqua.com/API/bulk/2.0/syncs/14"
    Unauthorized
    java.lang.RuntimeException: Failed : HTTP error code : 401
      at GetContactSync.main(GetContactSync.java:41)
    This is the code i have used to invoke the API:
    String proxyhost="www-proxy.us.oracle.com";
      int  proxyport=80;
      String inputparam="14";
        String urlstring="https://secure.p03.eloqua.com/API/bulk/2.0/syncs/14";
       String authString = "IBUDEMO\\aman.adarsh" + ":" + "Welcome@1";
      //String authString = "IBUDEMO1\\aman.adarsh" + ":" + "Welcome@1";
       String authToken = "Basic" + javax.xml.bind.DatatypeConverter.printBase64Binary(authString.getBytes());
       String output="";
       String line="";
      URL url = new URL(urlstring);
      //Properties systemProperties = System.getProperties();
      //systemProperties.setProperty("http.proxyHost",proxyhost);
      HttpURLConnection conn = (HttpURLConnection) url.openConnection(new Proxy(Type.HTTP,new InetSocketAddress(proxyhost, proxyport)));
      conn.setInstanceFollowRedirects(false);
      conn.setDoOutput(true);
      conn.setRequestMethod("GET");
      conn.setRequestProperty("Accept", "application/json");
      //conn.setRequestProperty("Authorization", authToken);
      conn.setRequestProperty("Proxy-Authorization", "Basic " + authToken);
      System.out.println(conn.getResponseMessage());
      if (conn.getResponseCode() != 200) {
                throw new RuntimeException("Failed : HTTP error code : " +
                                           conn.getResponseCode());
    I want to know if i have missed any parameter
    The same authentication piece of code is working fine for "POST" methods of other API's
    Request your help on this

Maybe you are looking for

  • Will somebody at least just try to help me?

    I know it's getting annoying, but obviously I need help. Please. My computer won't log in. I enter the password, it says "logging in" and the blue and white bar is frozen. I'm then unable to click back or log in, and my mouse turns into the little pi

  • DV7-6c90us 2nd hard drive issues and AMD Radeon Issues

    The Problem: 1)My AMD card has always been flakey and I've tried multiple times to uninstall it permanently and can't, it won't let me. I want to remove it completely since I'd rather have access to the extra hard drive than the graphics card. 2) whe

  • Apps on ipad 2 two times or more bigger as usual...

    Hi, all the apps on my ipad 2 are twice (or more) as big as usual...like when you zoom out everything on the screen...I restarted it two times but it did not help...what should I do? Thanks a lot

  • How does Calendar calculate travel times?

    When I select the Travel Time function for an event in Calendar, it tells me there is a 35 minute travel time from home to my scheduled event destination. However, when I transfer over to the Maps application to get the directions from my home, the M

  • Enter query clear block

    Hi, Is it possible to enter the ENTER_QUERY mode without the implicit CLEAR_BLOCK ? In other words is it possible to keep some data in some text field when we change to enter_query mode so that the user wouldn't need to enter the criteria everytime.