Customization of the user for users of the data base and without security ADF

JDeveloper version - 11.1.1.7.0

I want to implement personalization by the user on the database of users and without ADF security. I followed the link in storing the repository in a file system but its same showing below the user interface for all users.

http://Sameh-Nassar.blogspot.IE/2012/03/apply-MDS-to-Oracle-ADF-application.html

Please guide me on how to do this for users of the database. Please share any other useful links, as appropriate.

Customization of the user (SDM) does not care the security of applications. You can also apply to the MDS in your ADF application if you use the ADF security or custom security. The main idea is the class of customization (like MyUserCC) has the method call getValue this method should return the user name. When the user login stores the user id in the session and the method getValue returns the user session ID as:

  public String[] getValue(RestrictedSession restrictedSession, MetadataObject metadataObject)
  {
    try
    {
      String user = (String)FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("userId"); // userId is the session variable that store the login user id
      if(user == null)
      {
        return new String[]{""};
      }

      return new String[]{user};
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
    return new String[]{""};
  }

Tags: Java

Similar Questions

  • Petition for grant to display all objects in the DB in the data base and discovers the DOF for each.

    Dear administrators,

    I created the user but now I have a requirement for the granting of privileges to view all objects in the DB in the data base and discovers the DOF for each.

    Any help please

    Ritz

    Thanks to advise all the

  • How to recover the data pin and a location for visitors to the Web site

    need help

    I'm doing a project with asp.net blackberry

    How to recover the data pin and a location for visitors to the Web site when he pressed the button on the web using asp.net?

    so far, this is the only code that works for me to get a location in a web widget:

    http://docs.BlackBerry.com/en/developers/deliverables/17954/CS_Retrieving_a_GPS_loc_by_using_a_web_p...

  • ADF is intended for the data base designed with vertical diagram?

    Hello

    I want to know if ADF 11 g is intended for the data base designed with vertical scheme where even the names of columns will be stored in a generic table?

    Thanks in advance.

    Published by: user8925296 on April 12, 2010 10:06

    The short answer is no...

    What do you call a 'vertical plan', it's what others have called for a schema of entity-attribute-value or universal data model. I advise you to do some research open minded on these types of patterns if you develop an application before continuing. Great sound in practice, they have very inherent ease of use and scalability problems. [url http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:2314483800346542969] This could be a good starting point...

    John

  • How to transfer pictures from iphone to PC and keep the date, time and place

    How to transfer pictures from iphone to PC and keep the date, time and place

    Hello Grumpelfuerer,

    Thank you for using communities of Apple Support.

    If I understand your message that you want to import your photos from your iPhone 6 s, as well as for your Windows PC. I would like to save my photos on my computer as well. There are two ways to do this. You can use the iCloud photo library allowing to synchronize photos between your devices or import your photos to your PC using Windows Photo Gallery. This article will provide you with the steps that you can use for both options:

    Import photos and videos from your iPhone, iPad or iPod touch

    Best regards

  • According to the journal of DDPE encryption starting not due to the fact that the the TPM Base Services (TBS) secure is not started

    Basic services of the title: original TMP (TBS)

    I'm running Windows 7 x 64 SP1 Enterprise Edition.  We use DDPE to manage BitLocker.  Laptops are not encrypted.  According to the journal of DDPE encryption starting not due to the fact that the the TPM Base Services (TBS) secure is not started.  Open services.msc and realized that TBS was not even as a service.  Research on TBS and found it's relies on the file "tbssvc.dll.  This file is not anywhere on my PC, (should be in Windows\System32).  I hope someone can help me with the following questions.  I'M assuming that TBS is a Windows service?  He would appear in a standard installation? Windows Update?  If it is standard, and it does not install, is there a way to reinstall the service?  I found a link on the Dell site that got copy tbssvc.dll from a work computer, paste it to a computer for non-working, create new registry keys and register the dll from the registry.  It works, but I prefer not to go down this rabbit hole if there is a simpler solution.  Thanks for your help.

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)

    If you give us a link to the new thread we can point to some resources it
  • Transfer all of the data files and program from old computer (Vista) to new computer (Windows 7)

    I've been using a Dell xps 420, 32-bit Vista since 2008. I just bought a new Dell xps-8700, 64-bit with windows 7 preinstalled. I would like to transfer all THE DATA, SETTINGS AND PROGRAMS from my old computer to the new computer. I bought a cable easy transfer of Dell for windows, xp, vista, windows 7 and 8. I read somewhere that the method of cable will transfer all my installed programs. Is this true?

    Can someone give me the better, easier and faster method available. At least give me a step by step procedure for this task.

    I am 81 years old and not too computer savvy. Any help you can give will BE appreciated.   bobnancy

    From Internet Explorer

    Original title: Transfer all data and program files from old computer to the new computer

    I've been using a Dell xps 420, 32-bit Vista since 2008. I just bought a new Dell xps-8700, 64-bit with windows 7 preinstalled. I would like to transfer all THE DATA, SETTINGS AND PROGRAMS from my old computer to the new computer. I bought a cable easy transfer of Dell for windows, xp, vista, windows 7 and 8. I read somewhere that the method of cable will transfer all my installed programs. Is this true?

    No, it won't, it will transfer personal files and settings. You will have to reinstall your applications from the original installation files or install CDs and DVDs.

    Can someone give me the better, easier and faster method available. At least give me a step by step procedure for this task.

    If you really want to move your applications to the Vista computer, you will need to buy a commercial programs such as Laplink PC Mover that will allow you to move your programs:

    Laplink PCmover® | Laplink.com

    I am 81 years old and not too computer savvy. Any help you can give will BE appreciated.   bobnancy

    From Internet Explorer

    Original title: Transfer all data and program files from old computer to the new computer

  • When the signer will sign on the doc that I want to fill the date today, and he should be able to change the date

    Hello world.

    I joined salesforce with echosign.

    I need a help, whenever signatory 2 goes to sign on the doc I want to fill the date today and the signatory 2 should be able to change the date preceding the date of signature. 

    Hello

    So firstly follow the post on the forum to create a formula in salesforce field that creates the date as a string and this merge field in an agreement echosign.

    For example, configure the following field to receive the sfdc date string:
    {{todayeditable_es_:signer1}}

    of course to call the field all you want and also assign the right if not signer signatory 1.

    You can then add a calculated field that compares the date in the field of the todayedtiable against today's date

    {{datecheck_es_:signer1:calc(if(date([today]) > now(), "today larger than today", "continue to next step"))}}

    so, for example today's date is February 12, 2015
    the date entered in the todayeditable field is
    12/02/2015
    the audit date field will say "contine" (or whatever text put you between quotation marks)
    If the date entered has been
    13/02/2015
    datecheck displays "today higher than today.

  • Get the former locations of the data files and Redo logs

    Version: 11.2
    Platform: Solaris 10

    When we manage hundreds of DBs, we do not know the locations of all DB files these allows DBs. say a DB goes down and you have all the required RMAN backups.

    When you restore the DB in a new location in the path of the new server, you must run the commands for the data files and ORLs below. But how do we know

    The former location of the data files.

    B. the old location of redo online stores that I can run

    run
    alter database rename file 'oldPath_of_OnlineRedoLogs' to 'newPath_of_OnlineRedoLogs' ;  --- Without this command , the restored control file will still reflect the old control file location
    run {
    set newname for datafile 1 to '/u04/oradata/lmnprod/lmnprod_system01.dbf' ;
    set newname for datafile 2 to '/u04/oradata/lmnprod/lmnprod_sysaux01.dbf' ;
    set newname for datafile 3 to '/u04/oradata/lmnprod/lmnprod_undotbs101.dbf' ;
    set newname for datafile 4 to '/u04/oradata/lmnprod/lmnprod_audit_ts01.dbf' ;
    set newname for datafile 5 to '/u04/oradata/lmnprod/lmnprod_quest_ts01.dbf' ;
    set newname for datafile 6 to '/u04/oradata/lmnprod/lmnprod_yelxr_ts01.dbf' ;
    .
    .
    .
    .
    .
    }

    Hello

    With the help of Oracle 11.2, you can use feature 'set newname for database' using OMF.

    SET NEWNAME FOR DATABASE TO '/oradata/%U';
    RESTORE DATABASE;
    SWITCH DATAFILE ALL;
    SWITCH TEMPFILE ALL;
    RECOVER DATABASE;
    

    After the restore and recover databases (i.e. before resetlog open) you can do to rename redolog. Just a query column member from v$ logfile and deliver ' alter database rename file 'oldPath_of_OnlineRedoLogs' to 'newPath_of_OnlineRedoLogs ';

    When we use the DSO is much easier to use OMF because Oracle automatically creates the directory structure.
    But when we use the file system that the OMF does not serve due DBA dislikes system generated on file system names.

    If you don't like OMF file system, you can use the script on thread below to help restore you using readable for datafile names, tempfile, and redo.

    {message: id = 9866752}

    Kind regards
    Levi Pereira

  • Accounting software Microsoft Error Message: can not connect because the version of the application is older than the data base of the company

    Original title:

    Error message

    I use windows 7 laptop I format. After installation of Microsoft, accounting software and I wanted to backup restored it gives me error massage "can not connect because the version of the application is older than the data base of the company.» Up grade the application. " Eventhough I used the software even before I format the computer laptop and does ' t give me the options to upgrade. Need help.

    This means MS accounting requires the latest updates that have been installed originally creating this accounting database

    Accounting MS was abandoned a few years previously, so updates are not driven by windows/office update

  • What is the diffenrece between the Windows Defender and Microsoft Security Essentials? It is worth more than the other?

    Windows Defender vs Microsoft Security Essentials

    What is the diffenrece between the Windows Defender and Microsoft Security Essentials?  One is more recommended than the other or guarantee better security than the other? .. .or do they use the same definition files and also provide a safe protection?

    Please feel free to share your own opinions and thoughts on the comparison of the two programmes.  It would be much appreciated.

    If you run either of these two programs... That who and why?

    Thank you friends.

    Windows Defender is not an anti-virus program. MSE is a comprehensive security program and that you want to use.
  • Activate the data bindings and server behaviors in Dreamweaver CC 2015

    Hallo,

    Heute habe ich Dreamweaver written on,

    Leider ist den Panel as data base edge, (Activate the data bindings and server behaviors )

    Wie kann ich wieder're installieren in dreamweaver cm³ 2015.

    ICH am dringend of are. Bitte

    LG

    Roger

    Dies wird helfen, http://www.dmxzone.com/go/21842/enable-server-behaviors-and-data-bindings-panel-support-fo r-dreamweaver-cc /

  • The event handlers for multiple displays involving data SUBMIT and GET

    Hello

    We have a requirement as below:

    Note: cannot share the details accurate screen customer etc. because of the limitations of data security

    For example

    (1) 1 screen.

    Please enter the employee ID you want to recover data for

    (2) 2nd screen-

    Now, based on input that the user gives on the first screen that EMP_ID, we want to retrieve the details of a DB(not to worry as the DB connection part is taken care of) Native and display on-screen in the respective attributes.

    After that the user sees the correct details on the 2nd screen, they can go ahead and edit the details and which must be submitted to the DB.

    Queries:

    (1) we tried to use different managers and - OnSessionCreatedEventHandler, OnSubmitDataEventHandler - but what happens is the OnSessionCreatedEventHandler not get entry into the 1st screen, because it (i.e. OnSessionCreatedEventHandler) is triggered immediately after the loading of the 1st screen.

    The handleEvent() for the OnSessionCreatedEventHandler method has a piece of hibernate code base that requires the EMP_ID as input to run the query. So when the 1st screen itself is loaded, the event handler fails to get the emp_id entered by the user, because it is not yet approved in the session, finally throw an exception to put into hibernation.

    (2) is it possible, we could use an EventHandler or combination of these, to capture the data entered on the 1st screen and commit in the session, so that the 2nd screen can take this value from the session and then extract the DB.

    Any help would be much appreciated.

    The real scenario involves a lot of complex business rules and hibernate activity as well, but now those who have been supported.

    Hello

    You can implement an OnBeforeSubmitData handler that does something like the following:

    Look in the data presented for the user name attribute and if necessary

    Call your Hibernate utility to search for additional data

    Add additional data to the data sent

    During your 1st screen send the related data will be submitted with it.

    An alternative would be to have the user enter their Id in a Java screen, maybe a kind of servlet filter to make a pseudo login and then add user for query parameters identification and redirect to the URL standard OWD. You can write a plugin Manager OnRequest to retrieve the id of the user, looking for seeds and additional data before the session thanks to this data.

    Maybe there are also other possibilities, and it would be a shame not to use the OPA to manage maintenance and business rules.

    Concerning

    Ian

  • customization of the google search and the new inconsistency of tabs

    1. is there a way to customize the google search bar to the effect of doing this and this addons?

    2. I dislike the inconsistency of FF3 when it comes to opening new tabs: CTRL + T opens a new tab to the very good, while clicking on a link or search in the menu shortcut opens the new tab next to the tab that is currently open. There should be a way to make the FF to work one way or the other.

    1. you can change the google.xml file in the program folder files \searchplugins\ to match one of these two XML files search plugins.

    2. which changed in Firefox 3.6 to fix a Bug which was introduced some time - ago "related" URL opens to the right of the tab being viewed, others open on the far right. Many of us did not like that and we have disabled this feature.

    Type of topic: config in the URL bar and press ENTER.

    If you see the warning, you can confirm that you want to access this page.

    Filter = browser.tabs.insertRelatedAfterCurrent

    Double-click the preference to change the false value

  • Update for Windows Vista (KB2505189), updated platform for Windows Vista (KB2117917) Supplement - french and a security update Cumulative for the ActiveX for Windows Vista (KB2508272) stop bits

    I have update for Windows Vista (KB2505189), platform update Supplement for Windows Vista (KB2117917) - french and Cumulative security update for ActiveX Killbits for Windows Vista (KB2508272). These updates get the 8007371B error code. I have Windows Vista 32-bit. I searched the Microsoft catalog available and tried a manual installation for these updates, but they have always failed. I have not yet tried to install it in safe mode. Is there anything else I can do to fix this?

    8007371B ERROR_SXS_TRANSACTION_CLOSURE_INCOMPLETE
    One or more required members of the transaction are not present.

    Only the specific return code can be solved by running system, aka CheckSUR update readiness tool -.

    Description of the preparation tool system update for Windows Vista for Windows Server 2008, for Windows 7 and for Windows Server 2008 R2

    CheckSUR for taken over all the versions of basic x 86 (32 bit) Windows Vista

    When you are prompted to save CheckSUR, choose to not run it.
    When the download is complete, close all open programs and browsers.

    If the installed antivirus is Firewall Norton/McAfee party or a 3rd is used, then suggest you first boot system configuration before you run it.

    NOTE: In the clean boot state will be disabled all firewalls of part 3. Ensure that the native Vista firewall is now enabled - enable Windows Firewall on or off

    Now run CheckSUR (. Windows6 0-KB947821-v12-x 86.msu).
    Restart the system for the same configuration of boot clean and do a check for updates in Windows Update in Control Panel.
    If the system can search, detect, download, and install updates now, save an update of a subsequent test.

    If the system can or cannot now, cancel the clean boot configuration and restart in normal Windows mode.
    See if the registered update installs now.

    If the system still cannot install the updates, please copy and paste the contents of one of the newspapers that CheckSUR created when he ran. They are located in and are named

    Windows\Logs\CBS\CheckSUR.log
    Windows\Logs\CBS\CheckSUR.persist.log

    If the system can install the updates in the clean boot configuration, but not in normal mode of Windows, then there are 3rd party software which is the origin of the update installation problem.

Maybe you are looking for

  • Setting up RAID1 on Qosmio G30-116

    Y at - it guides regarding the implementation of raid 1 on model G30-116. Are there hidden traps or pitfalls I should know about?

  • recently deleted iPhotos after El Capitan

    Hi everyone I have a small question. I'm a bit confused. I still have my photos in my "Photos" folder I never use iPhoto. After I download El Capitan, I saw in iPhotos that there is this section "recently deleted". In this section, it is full of all

  • SoftMotion error

    Hi all I don't know if the right section to post this question. IM new and started NOR softmotion today. I got an error like that I have attached, how can I sort out this issue please help me to solve. This will lead to me study more. Thanks guys...

  • Browser Instrumentation (a list of the supported browsers?)

    Hello May I know if there is a list of browser supporting us for the instrumentation of browser? Currently, I run a CEP for UM and when I asked my client to load in the file instr.js EUM, it prompt error on IE8's javascript for their application. The

  • The user profile Service has no user cannot load profile

    Hello There are a lot of posts here and on Youtube about this... but in all of them they ask you to start in safe mode and use the registry editor. I am facing a problem because I can not access the reg edition in order to follow the instructions. Wh