MAF: AdfmfJvaUtilities.clearPasswordCreditial)

Hi Experts,

I want to use the method AdfmfJvaUtilities.clearPasswordCreditial (adfCredentialStoreKey, username) to remove the user when the logout user credentials.

but I do not understand what is the value for the parameter "username"?

Manish,

Go far post MAF research related in the Oracle Mobile Application Framework forum.

Here, the username parameter is to pass the current logged in user name for which the credentials will be reset.

Arun-

Tags: Java

Similar Questions

  • Service Oracle MAF geolocation 2.2 question

    Hello

    I try to access my current coordinates (lat and long) in accordance with the MAF 2.2, but I'm not able to get the coordinates.

    I tried to AMX verbatim as follows:

    < amx: verbatim id = "fetchlatlongID" >

    <! [CDATA]

    < script type = "text/javascript" >

    document.addEventListener ("showpagecomplete", onDeviceReady, false);

    function onDeviceReady() {}

    Console.log ("showpagecomplete");

    navigator.geolocation.getCurrentPosition (storeCurrentPosLatLong, onErrorGPS);

    }

    function storeCurrentPosLatLong (position) {}

    latitude = position.coords.latitude var;

    longitude of the var = position.coords.longitude;

    Console.log ("Lat =" + "latitude + long =" +longitude);

    }

    function onErrorGPS() {}

    Console.log ("GPS error");

    }


    < /script >

    []] >

    < / amx: verbatim >

    In the console, I get the following warning:

    "2016-02-19 19:00:03.761 demo [8008:93866] [warning] No. NSLocationAlwaysUsageDescription or NSLocationWhenInUseUsageDescription keys are defined in the Info.plist file."

    And the reminder "'storeCurrentPosLatLong ' is never reached. "

    I also tried calling Datacontrol Java code:

    watchID =

    DeviceManagerFactory.getDeviceManager (.startUpdatingPosition) (20000, true, "MyGPSSubscriptionID",)

    new GeolocationCallback() {}

    {} public void locationUpdated (location, position)

    System.out.println ("location updated to:" + position);

    }

    });

    But here too I get a similar error.

    Please let me know, if someone faced this problem and the solution if any.

    Best regards

    Deepak

    Hi all

    Just to bring this issue to closure, this problem occurs when the file Info.plist - Oracle_ADFmc_Container_Template (inside the temporary_xcode_project\Oracle_ADFmc_Container_Template folder) does not have the keys NSLocationAlwaysUsageDescription or NSLocationWhenInUseUsageDescription.


    These two keys are required to iOS8 to get quick concerning the use of the user's location (iOS8 Dev Tip: get the GPS location using Core location |) Matthew Fecher | Denver App & Web Developer).


    These two keys are actually written to the file plugin.xml inside cordova-plugin-Geolocation. But it seems, sometimes, keys of theses are not getting written to the file plist during the build process. In this case you can add it explicitly in the file Info.plist - Oracle_ADFmc_Container_Template.

    Best regards

    Deepak

  • Features of anonymous connection utility sample MAF - MCS

    Deployed Sample App updated MAF - CSM CSM details as in the base url, backend id, secret key, etc.. Sailed to the start screen and tried to connect to an anonymous user, all we get is the graph of spinning and the refreshed logical screen. We could see the connection attempts made on the MCS, but the user does not navigate farther than the login screen.

    Any suggestions?

    Kind regards

    VK

    Actually solved myself...

    Please find the note that helped if someone needs it.

    https://blogs.Oracle.com/mobile/entry/maf_mcs_utility_patch_for

  • Oracle embedded SQLite MAF - ability

    Hi all

    I would like to know if there is no data limit for the SQLite data base integrated in Oracle MAF - how much data can be stored in the embedded SQLite DB?

    Best regards

    Deepak

    Hello.

    The theoretical limits of SQLite are described here:

    https://www.SQLite.org/limits.html

    This page mentions this subject the maximum number of rows in a table:

    The theoretical maximum number of rows in a table is 264 (18446744073709551616 or about 1.8e + 19). This limit is inaccessible because the maximum size of 140 terabytes database will be reached first. A database of 140 terabytes may no more contain to about 1e + 13 lines and then only if he has no clue and each line contains very little data.

    And on the maximum size of a database:

    Every database consists of one or more 'pages '. On the breast of a single database, each page has the same size, but other data can have page sizes that are powers of two between 512 and 65536, inclusively. The maximum size of a database file is 2147483646 pages. In the page size maximum of 65536 bytes, this translates into a maximum size of database about 1.4e + 14 bytes (140 tera-bytes or 128 000 gibibytes, 128 tebibytes, or 140 000 gigabytes).

    This particular upper limit is not tested because developers do not have access to the material capable of reaching this limit. However, the tests verify that SQLite behaves properly and healthily when a database reaches the maximum file size of the underlying filesystem (which is usually much lower than the theoretical maximum size of database) and when a database is unable to grow due to depletion of disk space.

    In other words: the maximum size of a SQLite database is usually limited by the maximum file size allowed by the file system.

    This means that you could probably create a SQLite database with billions of documents on your phone. But should you? Mobile storage is limited, and your application will coexist with many others. Honestly, if your design requires significant amounts of data on the device, you must rethink your architecture and aggregate the data on the server.

    Best regards

    Frédéric Desbiens

    Senior Product Manager

    Mobility and Cloud oracle

    Twitter: @BlueberryCoder

    blog: http://blogs.oracle.com/blueberry

  • Oracle MAF: Changing data in non-reflecting DB in WebService.

    Hello

    I use Oracle of the CRG as well as AMPA (A-team Mobile Accelerator persistence) to develop a mobile application.

    MAF Version: 2.1.2.0.41

    AMPA Version: 12.1.3.2.32

    WebLogic Version: 12.x

    Oracle Toplink Version: oracle.toplink_12.1.3

    I encountered this problem often, I made changes to data manually to the backend (Oracle DB) and try to get the data modified by Web service URL in the browser. But data changes to does not appear until I restarted the WebLogic Server (where I deployed the Application WebService) and redeploy the application.

    Is it possible to reflect the changes without restarting the WebLogic Server? Because it will be needed when this application become a request for support.  Please suggest.

    PS: Please comment below, if you need clarification in this regard.

    Kind regards

    Indana Blackburn

    Hi Steven Davelaar,

    Thanks, I'll look at the link that you shared.

    ___________________________________________________________

    Update:

    Yes, it seems problem with TopLink which I've used (oracle.toplink_12.1.3).

    ___________________________________________________________

    Update:

    As Steven suggested, we need to disable the cache in TopLink, here is the code example to set this configuration in persistence.xml (note the number of the line 12 and 18).

    
    
      
        org.eclipse.persistence.jpa.PersistenceProvider
        java:/app/jdbc/jdbc/DBDS
        model.TableName
        
          
          
          
        
      
      
        org.eclipse.persistence.jpa.PersistenceProvider
        model.TableName
        NONE
        
          
          
          
          
          
        
      
    
    

    Now, Webservice will give you latest data always it will render all cached data.

    Thank you

    Indana Blackburn

  • Download the ipa to itunesconnect defective after the upgrade to 2.2.1 MAF (ITMS-90474 ERROR: "Invalid Bundle.) iPad multitasking support requires these guidelines)

    Hello

    Everyone knows about this problem? It all started after the upgrade to 2.2.1 MAF. The application loader complains with the following message:

    ITMS-90474 ERROR: "Invalid Bundle. iPad multitasking support requires these guidelines: "UIInterfaceOrientationPortraitUpsideDown, UIInterfaceOrientationLandscapeLeft, UIInterfaceOrientationPortrait and UIInterfaceOrientationLandscapeRight. Find "UIInterfaceOrientationLandscapeLeft, UIInterfaceOrientationLandscapeRight" in all «...» »

    A quick google search lead me to this link http://stackoverflow.com/questions/32559724/ipad-multitasking-support-requires-these-orientations. I'll try again, but I thought that maybe there is a solution that has the parameters of MAF.

    Kind regards

    Majdi Jaqaman

    Hello.

    I am happy that it has worked for you in the end. The CRG team will probably add an option setting somewhere in a later version of the MAF. They also suggested a more clean approach to deal with the issue than to change the XCode project template.

    First, create a file named plugin.xml and paste the following inside XML. I suggest you create the file in a central location, because it can be referenced by more than one app.

    
    
        maf-plugin-opt-out-multitaskingn
        Opt out of iOS multitasking on iOS 9
        
            
                
            
        
    
    

    Then just register the plugin in the MAF - application.xml. Things should look like this:

    Best regards

    Frédéric.

  • Device feature feature ceased after the upgrade of oracle MAF 2.2.1

    Hello

    My Google maps, messaging features stopped after that I upgraded the Oracle of the MAF from 2.1 to 2.2.1.

    ERROR_MAF_ 2016-01-05 at 8.35.59 pm.png

    Thank you

    Diattou

    For the plan, it could be number 2 in the problems here:

    MAF 2.2.1 Release notes

    How you connect to the server?

    You specify the server connection using http somewhere? You will probably need to change to be https instead.

    See migration notes here - https://blogs.oracle.com/mobile/entry/oracle_maf_2_2_1

  • How to add validation to go and to date in Oracle MAF?

    Hello

    I'm trying to add validation for FROM and to this day. In the ADF, I saw the tag something like af:validateDateTimeRange . Through this block, it can be implemented in application of the ADF. But I could ' t find such label in Oracle MAF. Can you please suggest me to get this functionality?

    Kind regards

    Indana Blackburn

    Hi all

    Please note, as suggested by Amey, this can be achieved using valueChangeListener...! Click here for more details.

    Kind regards

    Indana Blackburn

  • Multithreading in MAF Application

    I have a requirement where I need to generate multiple threads to perform different actions. Can you please tell me some documents or examples to achieve this?

    Hello

    you use Java threads for that. The only thing to know is that if you change data in a thread, you must call AdfmfJavaUtilities.flushDataChangeEvent () for the main thread to learn about changes to display in the user interface

    http://docs.Oracle.com/middleware/mobile201/Mobile/API-ref/Oracle/adfmf/framework/API/AdfmfJavaUtilities.html

    For example

    public void doSomethingAsynch() {}

    Runnable yourJob = new Runnable() {}

    prepare the call

    public void run() {}

    1 call for something

    2. response of the handle

    If the data has been changed in the MAF, r UI example for the list

    providerChangeSupport.fireProviderRefresh(")
    refresh the user interface in the main thread

    AdfmfJavaUtilities.flushDataChangeEvent ();

    }

    }

    in your method, run the above code by using a separate thread. Note that if you have more than one task to run, you want to create several threads in the pool and reuse of the pool

    ExecutorService executor = Executors.newFixedThreadPool (1);

    Executor.Execute (yourJob);

    Executor.Shutdown ();

    }

    See:

    https://codelatte.WordPress.com/2013/11/09/a-simple-newfixedthreadpool-example/

    http://tutorials.jenkov.com/Java-util-concurrent/executorservice.html

    http://Baptiste-Wicht.com/posts/2010/09/Java-concurrency-part-7-eXecutors-and-thread-pools.html

    Frank

  • How to decode the received imagePath getPicture method in Oracle MAF?

    Hi all

    I have a use case in which I have to perform following tasks:

    1. take a picture using the MAF.

    2. save the encoded image in sqlite database path.

    3. then decode this path of the image and then convert the image to a byte [], so that I can send it to Oracle MCS storage.

    I put the parameter encodingType getPicture on "1". I'm stuck at the point where I have to decode the image path returned by the getPicture method.

    How can I do so?

    Kind regards

    Gurkeerat Singh

    Hello

    Thanks for repIy. I used the following code and it worked.

    Byte [] imageData = Base64.decodeBase64 (insertSR.getSrAttachment () .getAttachmentPath () .substring (contentStartIndex));

    and added a jar "Commons-Codec - 1.9.jar.

    Kind regards

    Gurkeerat Singh

  • MAF 2.2.0 - Refresh container does not return to original position if incidental layout is used

    Hello

    As the title suggests the container update don't go back to original position if incidental layout is used.

    I have included a small sample project with the minimum required components to reproduce the bug.

    Find the project here:

    https://www.dropbox.com/s/hy5jdce4w5qc2b6/refreshTest.zip?DL=0

    Is there any workaround for this problem, or is this something that will be fixed in a next version of MAF?

    Kind regards

    Ognjen

    Hey,.

    This is fixed in the latest version of MAF - 2.2.2.

    Kind regards

    Ognjen

  • How MAF 2.2.0 security work?

    I have experience working on the ADF, but not on the site of the security. Now I have the need to provide for application of the MAF. Current application of ADF has CustomsLoginModule.jar in \wlserver\server\lib\mbeantypes < JDEV_HOME >, then the application web.xml has login-config

    <>login-config

    FORM < auth-method > < / auth-method >

    < form-login-config >

    /faces/signin/signin.JSF < form-login-page > < / form-login-page >

    /faces/signin/signin.JSF < form-error-page > < / form-error-page >

    < / form-login-config >

    < / login-config >

    On signin.jsf after the user enters the name of user and password, doLogin use in training for under user name and password that store in the oracle database table. Then put UserInfo in the scope of session for ADF session using.

    My question is how can I do for connection of the MAF and give me UserInfo or any other information, then I can make use of this information to call the WebService JSON REST use this CustomsLoginModule.jar ?

    I use Jdeveloper 12.2.1 side Server (under Windows) and Jdeveloper with MAF 2.2.0 12.1.3 extension (Mac) for consuming side.

    Hello.

    Here are answers to your questions.

    (1) this is the way I can replace button registration by entering the user name / password (exist in the oracle database table) that the only logical Web ID / password?

    You must configure the SQL WebLogic authentication provider so that it works. See here for more details:

    https://docs.Oracle.com/middleware/1221/WLS/SECMG/rdbms_atn.htm#SECMG190

    (2) is there anywhere that explains step by step how to create the ACS project (in public samples)?

    Unfortunately, no. However, you should be able to re-use almost as is, since it relies on the API OPSS. If you configure the SQL authenticator, then OPSS will be able to authenticate on the DB as well.

    This video explains the basics of the ACS: https://www.youtube.com/watch?v=2RQPtI6o-l0

    Best regards

    Frédéric.

  • Pattern Singleton MAF 2.2.0

    Hello

    I have a change in behavior after upgrade to 2.2.0 MAF. I'm not sure if this is intentional or a bug. For me, looks like a bug because it is at odds with the singleton design pattern and behavior change does occur when the application is disabled, and then press it again.

    Basically, I have a class in the ApplicationController which has been implemented in the singleton design pattern. The instance of this class (singleton) behaves as a singleton and is used by all the features. So MAF 2.1.3 which has worked. As MAF 2.2.0 instance behaves as a singleton until the application is disabled and then press it again.

    Here's the scenario:

    (1) start the application = > the singleton is created

    (2) go to any device = > the singleton is always the same instance.

    (3) turn off the app

    (4) to activate the soft

    (5) the original instance (singleton) is always available in the ApplicationLifeCycleListenerImpl as we like the functionality of the application in when he was disabled and enabled

    (6) go to any other feature = > now I have a new instance of the class that implements the singleton pattern (I did several instances)

    Everyone knows anything of this kind? I'm running on iOS.

    Kind regards

    Majdi Jaqaman

    Hello

    This has been fixed in 2.2.1 MAF.

    Kind regards

    Majdi Jaqaman

  • MAF update problems

    Hello world

    I updated to version Oracle MAF to 2.2

    {

    AdfELContext adfELContext = AdfmfJavaUtilities.getAdfELContext ();

    ValueExpression pageNameVe = AdfmfJavaUtilities.getValueExpression ("#{viewScope.pageName}", String.class);

    String pageName = (String) pageNameVe.getValue (adfELContext);

    try {}

    ValueExpression imageVe = null;

    imageVe = AdfmfJavaUtilities.getValueExpression ("#{bindings.attachmentPath.inputValue}", String.class);

    ValueExpression ve1 = AdfmfJavaUtilities.getValueExpression ("#{viewScope.previousImage}", String.class);

    String storedImage = (String) ve1.getValue (adfELContext);

    AdfmfJavaUtilities.evaluateELExpression("#{bindings.getPicture.execute}");

    {ValueExpression ve2 = AdfmfJavaUtilities.getValueExpression ("#{bindings.", String.class "}") Return.inputValue};

    String returnedImage = (String) ve2.getValue (adfELContext);

    If (returnedImage.equalsIgnoreCase("") |) returnedImage.length () == 0) {}

    imageVe.setValue (adfELContext, storedImage);

    } else {}

    imageVe.setValue (adfELContext, "data: image/gif;") Base64, "+ returnedImage);

    }

    } catch (Exception e) {}

    e.getMessage ();

    }

    Returns the name of the page;

    He shows me the error of cannot solve "links."

    Are there changes to also evaluateELExpression?

    and any suggestions or corrections to screen icon and splash app?

    And for the record of code above worked fine before the update.

    Hello

    What version did you use before, 2.1.3?

    Anyway, you can try to replace

    AdfmfJavaUtilities.evaluateELExpression("#{bindings.getPicture.execute}");

    {ValueExpression ve2 = AdfmfJavaUtilities.getValueExpression ("#{bindings.", String.class "}") Return.inputValue};

    String returnedImage = (String) ve2.getValue (adfELContext);

    with

    String returnedImage = (String) AdfmfJavaUtilities.getELValue("#{bindings.getPicture.execute}");

    The shortcut above to value EL resolution has been introduced in an earlier version of MAF but was not available, for example in the ADF Mobile (just in case you have migrated from there)

    You want to do the same thing for

    imageVe = AdfmfJavaUtilities.getValueExpression ("#{bindings.attachmentPath.inputValue}", String.class);

    ValueExpression ve1 = AdfmfJavaUtilities.getValueExpression ("#{viewScope.previousImage}", String.class);

    String storedImage = (String) ve1.getValue (adfELContext);

    and to take

    String storedImage = (String) AdfmfJavaUtilities.getELValue("#{bindings.attachmentPath.inputValue}");

    Let me know if that makes a difference.

    Frank

  • JDeveloper 12.2.1 and MAF 2.2.0

    Hello

    Is the new Jdeveloper - adapted 12.2.1 / compatable with MAF 2.2.0 that is is - it safe to upgrade?

    I noticed that on the download page for JDeveloper under 'Other versions' it says:

    Oracle JDeveloper 12 c (12.1.3.0.0) for Oracle Mobile Application Framework

    So I think that 12.2.1 JDeveloper release is not compatible with the MAF?

    Kind regards

    Ognjen

    MAF 2.2 compatible only with JDeveloper 12.1.3, by applying the oracle the next version of MAF note will be supported in JDeveloper 12.2.1

Maybe you are looking for

  • Satellite A200 (PSAE6) bought 2008, but the event log contains entries from 2007

    Given that I have buy my Satellite I have problems, most are a blue screen with auto restart. I found several problems dated April 2007, entries in the event log WHEN I only buy this machine on February 2008! Please someone explain me if this can be

  • Resoring personal settings

    When I boot my name of user account is available, but all personal settings have disappeared - folder my documents does not contain anything that he has done.  I tried to restore to previous settingds, but it does not work.  Help!

  • Where can I buy these parts?

    Hey,. where can I find the parts in this picture? http://gyazo.com/b6d790cc3c97dcf8b05c9ee53bb53ce1 It's a Thinkpad X220T It is the plastic on the side of the keyboard parts that prevent the screen to move when its closed. I searched everywhere and c

  • Buying a new laptop that was on an old laptop broken.

    HI, I recently got a laptop on me and bought a new laptop. How do I deactivate the license on the old laptop (that I can't turn on) and use the license on the new laptop computer? Or I have to cancel my subscription? Thanks for any help

  • SAP Adobe Print Forms - problem with Chinese characters

    Hi allWe use printing forms Adobe SAP to create a business document. It is designed using lifecycle of the Adobe Designer (ALD). The form is displayed in the Chinese language. The requirement is to display subtitles for the few fields in bold.When yo