What is the method isMemberOfRole in IUser class for?

Can anybody throw light on the purpose of the method
isMemberOfRole in the IUser class?
I have been trying to use it to compare user roles but without success.
IUser usr = WDClientUser.getCurrentUser().getSAPUser();
if(usr.isMemberOfRole("Test_Role",true))

Hi,
Try this code
IWDClientUser  user = WDClientUser.getCurrentUser();
IUser userID = user.getSAPUser();
String Userrole=new String();
for (Iterator iter = userID.getRoles(true); iter.hasNext();) {
IRole role = UMFactory.getRoleFactory().getRole((String) iter.next());
Userrole=role.getUniqueName();
You can use user.getSAPUser().isMemberOfGroup() method also
Regards, Anilkumar

Similar Messages

  • What is the best Book or online class for Adobe Indesign, Photoshop & the rest in Australia?

    Hi All,
    I live in australia and love using the creative cloud platform. I would like to further my training both basic and advanced in a few of the services. Is there a good set of books or physical online class (like through Seek learning etc) for Adobe??
    Regards,
    Sam

    You can't beat the online www.Lynda.com online classes.
    If you want a beginner's book on InDesign, I recommend Sandee Cohen's InDesign Visual QuickStart Guide (Peachpit Press). For an advanced class, look for Real World InDesign (Peachpit Press).

  • What is the exact mean of  classname.class.

    what is the exact mean of classname.class. what situations it will be use ful . how to use . give me one example .

    Each class, interface, or enum loaded into the JVM has an associated Class object. This contains a lot of information about the class in question, including lists of fields and methods. <classname>.class gives you a reference to the Class object of the class mentioned.
    See the java.lang.Class javadocs for all the things you can do with a Class object.
    For example:
    theImage = new ImageIcon(MainClass.class.getResource("item.png"));to retrieve an image file from the directory containing the MainClass class file.

  • What is the method name?

    Hello:
    I understood that i have to override the paintComponent method.
    But my question is that, what is the method declaration by which shall i set the background image? where image name is winter.jpg
    I will be highly grateful to u if u kindly give me the proper answer.

    The answer was already given to you in your other post.
    icewalker2g gave you this site http://www.jguru.com/faq/view.jsp?EID=9691
    The code:
    import javax.swing.*;
    import java.awt.*;
    public class BackgroundSample {
      public static void main(String args[]) {
        JFrame frame = new JFrame("Background Example");
        final ImageIcon imageIcon = new ImageIcon("draft.gif"); // <--- change this image to your image
        JTextArea textArea = new JTextArea() {
          Image image = imageIcon.getImage();
          Image grayImage = GrayFilter.createDisabledImage(image);
          {setOpaque(false);}  // instance initializer
          public void paintComponent (Graphics g) {
            g.drawImage(grayImage, 0, 0, this);
            super.paintComponent(g);
        JScrollPane scrollPane = new JScrollPane(textArea);
        Container content = frame.getContentPane();
        content.add(scrollPane, BorderLayout.CENTER);
        frame.setDefaultCloseOperation(3);
        frame.setSize(250, 250);
        frame.setVisible(true);
    }In the future please read your post and don't multipost and crosspost.

  • HT5625 if i have multiple apple IDS and i would like to delete all of them except the one I wish to continue using what is the method

    In case I have multiple Apple Ids and I want to delete all of them except one , what is the method to be followed.??
    Or is it that there is no scope for deletion and the Ids are just disabled

    Sorry, Apple ID's cannot be deleted or merged. All you can do is stop using an Apple ID.

  • What are the methods called while navigating from one applet to another one

    Hi All,
    Could any one brief me about "When you navigate from one applet to another what are the methods called ?".
    Thanks in advance.
    Best Regards,
    N.Madhusudhanan.

    http://forum.java.sun.com/thread.jsp?forum=421&thread=426771&tstart=0&trange=100

  • What are the methods available to modify standard reports?

    What are the methods available to modify standard reports?

    <b>Hi,
    I think you can copy those reports into Zreports</b>

  • What is the method used for upload of  data

    Hi All,
    What is the method used for upload of  Data from excel spread sheets to SAP HR.
    it is Bulk Data from many countries.LSMW or BDC Session Method?
    what are country specific infotypes used for PA and OM.
    can u plz give the list of country specific infotypes used for PA n OM Module.
    Thanks
    Archana

    Hi Archana,
    To Upload bulk data I think BDC is the best and effecient way.
    Regarding Infotypes we dont have any country specific Infotypes in OM & PA. In Payroll we do have according to country wise.
    I hope you had understood the point
    Regards
    Pavani
    Remainder: Points to be given on answers

  • What are the methods to modify SAP standard tables?

    hi
    what are the methods to modify SAP standard tables?

    .APPEND structures AND CUSTOMIZING INCLUDES.
    these are the two methods.. but customizing includes we, as a developers do not use.
    generally we use .APPEND structures to modify standard tables.
    note that we need an access key to modify atandard tables.
    we can create an apend structure and add that structure to the standard table at the end.
    note that .append structures should only be added only at the end.
    that is the reason we use .append structures to modify standard tables.as we should not include a field in the middle and disturb the original order of the standard table fields as it may effect many objects depending on the standard table.
    but Some standard tables for which there is a LONG datatype field can never be modified.
    the reason is the LONG datatype field should always be there at the end and also .APPEND strutures should always be there at the end. there will be a conflict. so, some standard tables can not be appended.

  • What is the advantage of using Wrapper Classes ?

    Hi friends,
    I am happy to join Java/J2EE tech. My project is scaled over the network. MVC-II struts, EJB based architecture, we are using.
    We are asked to use Wrapper Classes in in Java programs and not the primitive data types. I could not understand the reason.
    Pls tell me what is the advantage of using Wrapper Classes over the primitive data types ?
    means Integer instead of int, etc....

    Hi friends,
    I am happy to join Java/J2EE tech. My project is
    scaled over the network. MVC-II struts, EJB based
    architecture, we are using.
    We are asked to use Wrapper Classes in in Java
    programs and not the primitive data types. I could
    not understand the reason.
    Pls tell me what is the advantage of using Wrapper
    Classes over the primitive data types ?
    means Integer instead of int, etc....I am not sure why use Integer over int; but Wrapper classes are used to remove coupling between classes and create one hand doesn't know what the other hand does effect.
    for example:
    when you have a SFTP java package but doesn't do everything that your application needs to do in one step and you need to do sftp stuff at many places in your application, it would be wise not to use SFTP java package directly from all the classes that need to do sftp stuff. Because if you were to change the SFTP package later due to say some bug fix or newer version or ... you would have to go and modify all the classes that had sftp stuff to update.
    Instead you could write a custom sftp wrapper that handles all the sftp stuff for your application needs and that wrapper deals with the SFTP java package. So all the classes don't need to know which SFTP java package is being used only the custom-wrapper needs to know.

  • What is the method to make a new determination of price on a PO

    Hi;
    Friends, I submits it a question to which I do not find answers in my tests.
    I created a purchase via ME21N
    I create GR via MIGO
    I entered invoice by MIRO.
    I realized that I forgot a condition of price so,
    I cancelled the invoice via MR8M
    I cancelled GR via MIGO
    in ME22N document I wanted to make a new determination of price to update the purchase order. 
    The system signal that it is impossible to make a determination of price (Message V1227). 
    Is it normal? Otherwise what is the method to make a new determination of price on a PO with GR was validated and also validated invoice?
    Thx

    Hi,
    You can use "Unplanned dely cost" option in MIRO to pay for the difference in amount than that of PO.
    Here again, you may be aware that the unplanned dely cost may be taken to inventory (or) as price difference as per the setting you have in SPRO.
    Regards,
    Siva

  • What is the method to disable the Parameters button

    Hi Ted,
    What is the method to disable the Parameters button ("Show/Hide Parameters Panel")?
    I can't find it in the API.
    Thanks,
    Tuan

    With XI 3.0, the left-hand panel is tri-state:
    [https://boc.sdn.sap.com/node/17983#setToolPanelViewType|https://boc.sdn.sap.com/node/17983#setToolPanelViewType]
    Sincerely,
    Ted Ueda

  • What is the Method to get record from DB as Date fornat??

    Halo, i want to know what is the method to get the data from database which is store it in date format.
    Previously, i am using the getDate() to get the data together with the while (rs.next() ) method after using the "select" statement to get the data from data base.
    Here is the example when i retrieve record from database:
    java.util.Date date1 = new java.util.Date();
    String getRecord = "SELECT * FROM employee "
    ResultSet rs = db. execSQL(getRecord);
    while(rs.next() ){
    String name = rs.getString("name");
    date1 = rs.getDate("date");
    }notes: method getDate() had deprecated since JDK version 1.1.
    So, i need to know what is the method to get the date record??
    Thank you.....

    Halo, ...Yeah, Halo! Love that game...
    Um, use getDate(). ResultSet.getDate() is not deprecated. If you think so, then you better go reread the API docs, cuz you're reading the wrong ones.

  • What is the default object of a class

    can anyone please tell me what is the default object of a class???????????

    Unless you mean the actual instance of Class relating to that class, which is loaded by a classloader when the class is first loaded into memory.

  • The method getBean() is not valid for metadata object /ex/model/remittance/client/common/bc4j.xcfg

    Hi,
    I am getting bellow error when i am running my application. I am using JDeveloper 11.1.2.3
    <Nov 6, 2013 9:52:57 AM AST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Nov 6, 2013 9:52:57 AM AST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <BC4JConfigLifeCycleCallBack> <contextInitialized> MDS-01702: The method getBean() is not valid for metadata object /ex/model/remittance/client/common/bc4j.xcfg - it is allowed on only bean metadata objects.
    oracle.mds.exception.MDSRuntimeException: MDS-01702: The method getBean() is not valid for metadata object /ex/model/remittance/client/common/bc4j.xcfg - it is allowed on only bean metadata objects.
      at oracle.mds.core.MetadataObject.getBean(MetadataObject.java:327)
      at oracle.adf.share.jndi.MDSBackingStore.getMOBean(MDSBackingStore.java:558)
      at oracle.bc4j.mbean.RuntimeMXBeanImpl.init(RuntimeMXBeanImpl.java:120)
      at oracle.bc4j.mbean.RuntimeMXBeanImpl.<init>(RuntimeMXBeanImpl.java:110)
      at oracle.bc4j.mbean.RuntimeMXBeanImpl.<init>(RuntimeMXBeanImpl.java:101)
      at oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack.contextInitialized(BC4JConfigLifeCycleCallBack.java:114)
      at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
      at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
      at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
      at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
      at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
      at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
      at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
      at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
      at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
      at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
      at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
      at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
      at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
      at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
      at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
      at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
      at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
      at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
      at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
      at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
      at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    <Nov 6, 2013 9:53:11 AM AST> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\maroof\AppData\Roaming\JDeveloper\system11.1.2.3.39.62.76.1\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log will be rotated. Reop
    I seen oracle docs solution
    MDS-01702: The method getBean() is not valid for metadata object {0} - it is allowed on only bean metadata objects.
    Cause: An attempt was made to access the metadata object using the bean API but the metadata object was not a bean metadata object. The schema for the root element may not have been registered with MDS, or the beans were not available on the classpath.
    Action: Regenerate the beans from the schema definitions and ensure that the correct versions are on the classpath. Check that the schemas are registered with the MDS instance.
    Level: 1
    Type: ERROR
    Impact: Configuration
    But i am not getting what i do in my application for removing this error.
    Maroof

    Do you use MDS in your application?
    It's possible that you see a leftover of an earlier deployment.
    Do you get the same error if you only start the integrated server (application server navigator->integrated server->debug or run)?
    IF you don't get it when you only start the server without running your application, the problem is somewhere in your app. If you get the error it's probably an old deployment or a configuration error of your server. In this case stop jdev, rename the DefaultDomain folder C:\Users\maroof\AppData\Roaming\JDeveloper\system11.1.2.3.39.62.76.1\DefaultDomain tp C:\Users\maroof\AppData\Roaming\JDeveloper\system11.1.2.3.39.62.76.1\xxxDefaultDomain and start jdev again. Then use hte application server navigator to create a new integrated server (you should see this option as the DefaultDomain folder is not present) and once the new integrated server is created test again.
    Timo

Maybe you are looking for

  • Why HDV capture in FCP 6.0,3 is not as clear as original footage?

    I have tried several capture's settings for HDV footage captured in Sony HDR-HC7. Once it is in my computer's hard disk and ready to strt editing it seems that the video is not very clear mainly the edges of moving objetcs look if they were a liitle

  • How do I get a real person to handle my complaint???

    I currently have 4 lines with VerizonOn Saturday June 7, 2014, I placed an order through the Verizon website to upgrade the 5559 and 5551 lines under the Verizon Edge promotion.  Both phones I ordered were the Droid MAXX 16 GB Black.   On Tuesday Jun

  • New address to be printed in the delivery output type

    Dear all,                 For the delivery i issued one output message to take the printout of the shipping label . Now i changed the address in the ship to party and again issued the message , still it is taking the old adress only is there any poss

  • Turn off shuffle in itunes

    I can't figure our how to turn off the shuffle in my iPhone's iTunes! Help?

  • Arch not compatible with Cairo Dock

    As you can see in this topic: http://www.glx-dock.org/bg_topic.php?t= - mess_65929 it turns out using menu system in Cairo Dock on Arch is not possible due to Arch sporting newest Python 3 rather than 2. Is there any workaround for it? I do need this