Block and unblock users

Hello,
I am triying to build an application that block and unblock users, using UME api.
This is the code that I created, but it is not working, I always get the exception. I call this method in onClick event of a button.
My user's database is a LDAP.
public void onLocked(Event event) throws PageException {
               IUserAccountFactory useraccountf;           
               IUserAccount useraccount;
               String uniqueId;
               boolean locked;
               try{
                    useraccountf = UMFactory.getUserAccountFactory();                    
                    uniqueId = useraccountf.getUserAccountByLogonId(username).getUniqueID();                    
                    useraccount= UMFactory.getUserAccountFactory().getMutableUserAccount(uniqueId);
                    locked = useraccount.isLocked();
                    if (locked == false){
                         useraccount.setLocked(true,2);
                         useraccount.save();
                         useraccount.commit();     
                         componentState = SUCCESS;
                    else{
                         myBean.setError(true);
                         myBean.setMessage("El Usuario ya estaba Inactivo");     
                         componentState = EDIT_USER_DATA;                    
               catch (UMException e) {
                    e.printStackTrace();
                    componentState = ERROR;
Thanks,

hello, please see https://blog.mozilla.org/tanvi/2013/04/10/mixed-content-blocking-enabled-in-firefox-23/ for details why this is happening. firefox doesn't block vimeo in particular, but all active content (scripts, flash objects, etc.) that is served via http:// one sites that otherwise use a secure connection (https://).
i think vimeo is currently working on that: http://vimeo.com/help/faq/embedding#https but otherwise you'd have to temporarily switch to serving your site via http:// to avoid the issue...

Similar Messages

  • For block and unblock date .

    Hi All,
                 In me22n for standard PO  there are 2 Lock icons under Header details,
    In my Report the user wants that Lock icons  details to be appeared in output. (ie) for block and unblock date .....
    Kindly suggest me how to do it .....
    Your Valuable answers will be  rewarded .
    Regards,
    Vinoth.

    Hi Paras
    Try as below:
    data: l_lock type ICON_D value '@06@',
          l_ulock type ICON_D value '@07@'.
    write:/ l_lock as icon,
          / l_ulock as icon.
    Kind Regards
    Eswar

  • Handling Unit Block and Unblock

    Hi,
    I have requirement to block and unblock Handling Unit  or Storage Unit  in warehouse management. How to block and unblock the
    Handling Unit  with the function module and what is the table where I can see the blocking status of
    the Handling Unit .
    I tried a lot before posting here with no luck.
    Thanks...

    Dear Sridhar,
    I hope I get you right.
    To change the status of handling unit to blocked stock, do the following:
    - transaction code VLMOVE
    - above select procedure "0023" --> Posting chance from unrestricted use stock to blocked stock (movement type 344)
    - then enter handling unit number
    - press enter --> you get new line item with this HU number below
    - select this new line item --> post document
    - on the next screen you get the number of material document just created
    - now the handling unit is blocked
    - to unblock it later - use another VLMOVE procedure
    Table where you can see this status:
    - check table LQUA (warehouse quants)
    - enter the WH number and quant number (you get this one if you check details of the quant in bin) --> you get record for exactly this handling unit
    - see field LQUA-BESTQ (equals S - blocked stock)
    Hope this will be of any use.
    Regards,
    Primoz

  • Function Module for HU Block and Unblock

    Hi,
    Can you please tell me the function module name to Block and Unblock the Handling Unit
    which is exists iin a particular warehouse?
    I searched in SDN already with no luck.
    Thanks in advance...
    Sridhar ....

    Hi,
    Try the below  Function Modules
    SD_CUSTOMER_CHECK
    SD_CUSTOMER_CHECK_1
    SD_CUSTOMER_CHECK_B
    SD_CUSTOMER_MAINTAIN_ALL
    SD_CUSTOMER_MAINTAIN_KNKA_K
    Regards,
    Anki Reddy

  • Reset password, block or unblock user in a R/3 from the SAP GRC AC 5.3

    Hello,
    I have 2 doubts.
    I want to know if a user can reset his password of the R/3 from the SAP GRC AC 5.3 automaticly.
    And can someone block or unblock a user using  the GRC AC 5.3 automaticly too?.
    I know you can create a user automaticly from GRC, but can I do those 2 things?
    Best Regards.
    Pablo Mortera.

    Hello,
    What I don't get is, that why do I need the HR module (HR Trigger) to lock, unlock, password slñf service of a user ID. The HR module uses employees attached to a user ID if it has one.
    Why do I need the HR module to configure the automatic request access?
    Best regards.
    Pablo Mortera.

  • Block and Unblock a GR/IR Account

    Team,
    I Blocked a GR/IR account to update open item management field. After the program finished I went back and unblocked account, I am able to post directly to the account, however receiving warehouse still gets a message that account is blocked even though it shows unblocked in master data.
    Anyone has any idea is tehre is anotehr field I have to reset after this?
    Thank You for you help

    Not answered

  • Block and Unblock the .zip and .rar files based on doamin or user account base on incoming mails with ironport email security.

    Hi All,
    Request you all to help me out in blocking/dropping only the attachments with the extension .rar and .zip in incoming mails for particular users or domains.
    as of now I have did for all the domains or users.However, I want to unblock it only for some particular/specific users and for rest it should block.
    kindly help me with the steps to do the configuration.
    Thanks a ton in advance
    Regards,
    LRN

    It sounds like you just need to use different incoming mail policies per group of individuals you want to block/drop .rar and .zip and those which you don't want this to happen.
    The fact that you want a specific group to be allowed receipt of these and everyone else should have these blocked I would recommend creating an additional incoming mail policy that does NOT have a content filter that performs this blocking.  Add the appropriate users to this incoming mail policy.  Then create a incoming content filter that does this dropping of .rar and .zip files and apply this to the Default Incoming Mail Policy.
    The content filter in this situation would not need a condition, just a action of strip attachments by file info , filename contains  .rar or .zip
    Here is a useful regex for the content filter action:  (?i)\.(zip|rar)
    Hope this helps!
    Steve

  • Tcode for block and unblock for the  material

    Hi Guru's
      What are the t-codes for blocking the material
      and to unblock the material.
    Thanks in advance.
    Rgds

    HI u can block material in material master as informed in one of above thread in T-CODE : MM17 as well in T-CODE : MASS.
    Re: BOM - block status (Urgent)
    Message was edited by:
            SHESAGIRI.G

  • How to block and unblock an operation when an error ocurrs

    hi guys,
    I am designing an interface with XI and I have some doubts.
    The scenario is the next:
    File (System A) --> XI --> R3
    File (System A) <-- XI <-- R3
    From System A a file is sent to XI via File/FTP Adapter, then there is a RFC Synchonous adadpter with R3, this RFC will respond with an error message or with an ok.
    If ok, then The file will be archived in an 'OK' folder in system A, if an error occur, the file will be archived in an 'ERROR' folder in System A.
    The question is, if an error occurs, I must block next operations until the problem is solved. Is there any way to achive this without programming?
    Thanks a lot.

    Hi,
    Best option is to do this on your File System and not on XI.
    You can write a script that checks if a file exists on your Error folder and it it exists then the actual file is not moved to the source folder and so on.
    But controlling this from XI would prove to be tricky and complex and this should rather be done outside of XI.
    Regards
    Bhavesh

  • Why access switch has flapping lead another distribution layer switch has root guard blocking and unblocking log

    is it misconfiguration in Access Point's access switch or hacker attack from this switch?
    many MATM-4-MACFLAP_NOTIF Host 0015.5dc1XXX VLAN 1 is flapping between port 1 and port 2
    many MATM-4-MACFLAP_NOTIF Host 0015.5dc2XXX VLAN 1 is flapping between port 1 and port 2
    many MATM-4-MACFLAP_NOTIF Host 0015.5dc3XXX VLAN 50 is flapping between port 1 and port 2
    many MATM-4-MACFLAP_NOTIF Host 0015.5dc4XXX VLAN 50 is flapping between port 1 and port 2
    last time we do not have these switch also meet the same issue about distribution layer switch have many ports down
    last time someone mention a switch lost config, but today, i remember that the switch has reloaded and can be login again with radius, 
    today i do not connect any notebook with this switch and just have configured radius setting for window NPS radius server and then reload, then
    i have dinner and come back and after a while, last time's issue happen again. 
    it seems port channel easy to have problem when abnormal traffic coming from access switch  result in down port in distribution layer switch
    i wonder whether someone can hack through the switchport access mode port and send some broadcast message

    From that output and your description it looks like you have an STP issue as a result of misconfiguration somewhere.
    Are your access points connected to switches with ports in access mode or trunk mode?

  • Can I block website on user Basis...I want to block Perticular user from some URLs

    I want to block some Urls from some local users....How can i do that ..... I should able to access these sites.

    First you should update Firefox, as the old version you have is leaving you vulnerable to attack. [[Update Firefox to the latest version]]
    If you want to control web access, try reading [[Block and unblock websites with parental controls]]

  • Automatic blocking and deletion flag for temporary unblocked vendors/custom

    Hi All,
    Can you please help me IS there any Standard Reports for the Follwing,
    *"automatic blocking and deletion flag for temporary unblocked vendors/customers in Master Finance SAP machines"*.
    Please reply me as soon as possibly.
    Thanks & Regards,
    Pavithranad.
    Moderator message: please research before asking, do not assign higher urgency than normal.
    Edited by: Thomas Zloch on Mar 3, 2011 2:43 PM

    In XK06, flagging Vendor for deletion, I get warning "vendor xxxxx has open items in company code xxxx". Does this mean open Invoice Items, pending payment in FI? Since this is just warning I can hit enter and go ahead and save.
    - YES YOU ARE RIGHT. IT CAN ALSO INCLUDE OPEN PO.
    But, I can come back to XK06 and UNflag this same vendor for deletion? How would it affect the open items/POs...etc?
    - THAT'S WHY THE MESSAGE IS AN WARNING AND NOT AN ERROR. (My Opinion)
    Does basis has to do some sort of execution in order to actually delete the vendor master from the database? Would basis get a error when there are pending open items for vendors flagged for deletion?
    - NOT RECOMMENDED. ANY DATA CAN BE DELETED THOUGH. IF YOU ARE ON ECC 5.0 OR ABOVE AND USING SE16N TO DELETE, YOU WILL NOT GET AN ERROR.
    What's the advantage of using XK05 (blocking/unblocking) over XK06 (flagging/unflagging for deletion)?
    - NOT SURE IF THERE IS ANY ADVANTAGE.

  • My iphone5 was accidentally blocked and i can't unblocked it because the touch screen is not working. what should i do?

    my iphone5 was accidentally blocked and i can't unblocked it because the touch screen is not working. what should i do?

    Not much you can do.  Bring it to Apple for evaluation.

  • My iPad is blocked, and i cant unblock it with my icloud account (but it appears on it)

    My iPad is blocked, and i cant unblock it with my icloud account (but it appears on it)

    Hello Hadesn,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    Connect the device to the computer with which you normally sync and open iTunes.
    Note: If iTunes asks you to enter the passcode, try another computer that you have synced with. Otherwise, go to "If you have never synced your device with iTunes, or you do not have access to a computer" section below.
    If the device is still disabled, or if iTunes does not automatically sync your device, sync the device with iTunes.
    If you have chosen to encrypt your backup, it will contain the passcode. Disable backup encryption before restoring from backup. Learn more about iOS backups in iTunes.
    When the backup and sync is complete, select Restore from Backup and choose the most recent backup of your device.
    Best of luck,
    Mario

  • How to block file transfer and desktop sharing in Lync 2010 for Fedrated and Guest Users

     
    Dear,
    Can anybody guide me how to restrict desktop sharing and file transfer for federated and Anonymous logins in Lync 2010.
    I have tried to apply this policy through “Conferencing Policy”, but this gets applied to all users including corporate users.
    Please help in this.

    Hi,
    As my knowledge, the CsFileTransferFilterConfiguration and setting in confercing policy are used to block transfer file between users. So if the policy is applied to user, the user would not transfer file with anybody. Since all Federation and Guest
    Users access thought the Access Edge service, here is a update that helps to enable the control of the file transfer through the Access Edge service.
    http://support.microsoft.com/kb/2621840
    The update helps to define the file transfer policy between users on the local area network and users that connect through the Access Edge server in a Microsoft Lync Server 2010 environment. It helps protect Microsoft Lync Server 2010 deployment against
    the spread of the most common forms of viruses with minimal degradation to the user experience.
    Regards,
    Kent Huang
    TechNet Community Support ************************************************************************************************************************ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a
    marked post does not actually answer your question.

Maybe you are looking for

  • New Airport Extreme Base Station will only talk to one MacBook

    Thanks for any help you can give. I set up my new AEBS yesterday with my Core 2 Duo Macbook with the installer CD and the updater applied. It set up flawlessly, and once I deleted and reinstalled the USB printer that worked too. My wife's Macbook Cor

  • Unable to assign the dimensions to the Applications

    Dear Experts, While i am assigning the Dimensions to the Consolidation Application i am getting the following error "THE FOLLOWING DIMENSIONS ARE SET AS CONCURRENT LOCK DIMENSIONS.[CATEGORY][P_CC] GO TO [CONCURRENT LOCK MENU] TO CONTINUE." Can you pl

  • Itunes doesn't recognize my iphone, i cannot sync playlists

    I am having trouble with itunes, when I hook up wo itunes, it doesnot recognize my phone and says'donns'a iphone' like it used to. I also cannot sync my playlist nd put them on my phne And.. on my iphone in my music folder, some songs are in bold and

  • So far your site has crashed over twenty times on me!

    I just have one quick important question... Jesus - I can't even cut and paste into this space! This is the worst maddening website I have ever been confronted with! Just for get it!

  • IPad Game Rendering Issues

    I just downloaded Infinity Blade today, and about 10 minutes into the game, I realized my character and any opponents I faced have rendering issues. Their shading an color is of, and the colors sometimes flicker. This happens in every single video, b