ADF Mobile - ACS request for issuance of roles

I developed an example of mobile application based on authentication and access control.

Authentication works very well, but I set my authorization to point to my URL to access - control http://xxx.xxx.com/xxxACSRestApi/Jersey/authorize/getACS

I set my filter to the roles of the user (role1, role2) list and my list of filters of privileges (priv1, priv2, priv3).

When I run the application and try to auth returs:

ACS failed: unsupported media Type

Here's my REST method


@POST
@Path ("getACS")
@Consumes (MediaType.APPLICATION_FORM_URLENCODED)
@Produces("application/json")
public String getACS (@FormParam ("userId"), String userId)
{
AcsObject obj = new AcsObject();
Gson gson = new Gson();
convert the java object in JSON format,
and returned as JSON format string
String json = gson.toJson (obj);
return json;
}

The output is (just like the documentation of application):

{"userId": "johnsmith", 'filterMask': ['role', 'Annie'], 'roleFilter': ["role1", "role2"], "privilegeFilter": ["priv1', 'priv2', 'priv3']}

Remove the

@Consumes (MediaType.APPLICATION_FORM_URLENCODED)

Product the web form MediaType.APPLICATION_FORM_URLENCODED?

Tags: Java

Similar Questions

  • ADF Mobile: Gray background for default springboard

    Use case: users should see a slight contrast between the sliding platform and active functionality located below.

    I am aware of the skin mobilAlta & default css files ADF Mobile uses.  In addition, I created a custom.css & added the extra skin in adfmf_skins.xml (code below).  My research told me that this feature is available for most of the components of the ADF.  Specifically, I can create some custom CSS and assign CSS styles using components of the ADF 'style =' syntax. 


    It remains that I am not able to change the background color of my springboard.   I want the springboard to have light gray contrast as he slips that 170 pixels & screen feature active behind it is white.  Appears white on white.  The UX is not aesthetic.

    Can someone tell me a solution please?  I must be missing something simple.

    Here's what I've done

    in AMX. CSS I changed the springboard by default CSS

    / * - < platform >-* /.

    {.adfmf-panelPage-springboard

    background-color: #c2c7c8;

    }

    in amx-mobileAlta - 1.1.css , I modified the springboard by default CSS

    / * - < platform >-* /.

    {.adfmf-panelPage-springboard

    background-color: #c2c7c8;

    }

    inside the adfmf_skins.xml , I added a skin.

    < skin-added id = "s1" >

    <>skin-id myAST-Mobile < / skin-id >

    < name-sheet-style >custom.css < / name of style sheet >

    < / skin-add >

    in my custom.css

    {.adfmf-springboard

    background-color: #c2c7c8;

    }

    It seems that Oracle has taken my advice and the MAF springboard offers a bit of contrast.  Problem solved at the CRG.

  • How to get the extension of the ADF Mobile Client

    Hi all

    Please post a link where I can download the ADF Mobile Client extension for Jdeveloper 11.1.1.4.0 directly on my local disk. I tried to go through the help-> check updates in Jdeveloper but my proxy does not work

    Let him. so the only possible option for me is to download it on my local drive and should be updated. I searched but could not find the appropriate link, so I have to post here. Kindly help me to find it please...

    Thank you
    Flavian.

    Just to clarify, there are two types of mobile applications, we support:
    Web mobile apps are the ones that you create using the components of the Trinity, access you them from the browser on the mobile device. To use it, you don't have any extension for JDeveloper.
    If you want to get all of the features shown in the video that you are referencing you should get the latest * 11.1.2 JDeveloper - in the version you have 11.1.1.4 you will need to manually do steps (such as the creation of the skins file).
    Tutorials for 11.1.1. *-http://www.oracle.com/technetwork/developer-tools/jdev/ccset51-all-102005.html

    The other type of applications mobile, we will offer a solution soon is application that you build and install on the device itself.

  • ADF Mobile Client Oracle extension not found in JDeveloper 11.1.1.2.0?

    Hello. I tried to install the extension for mobile development in the ADF, but unfortunately I could not find the extension.

    I went to help-> check for updates-> official Oracle Extensions and updates. Yet, I have not found the * 'Oracle ADF Mobile Client extension' * it.

    I'm under 11.1.1.2.0 Jdeveloper.

    What is the framework Oracle ADF Mobile Client compatible for 11.1.1.2.0? Or is it not available? Can someone enlighten me please? Thank you!

    It is no longer available - see the last update on the ADF Mobile page section: http://www.oracle.com/technetwork/developer-tools/adf/overview/adf-mobile-096323.html

  • Play Google store does not accept the ADF Mobile apps for tablets

    My ADF Mobile app is published on the Google game, but he says that the app is not compatible with the tablets, for the following reasons:

    1. properly target the Android Versions

    I fixed this by going into the properties of the Application > deployment > Android profile > edit > Options Android > change target SDK API level from 9 to 14.

    Note to the ADF Mobile Team: I recommend that you change the default target SDK API level from 9 to a higher level (Google recommends 14 today).

    2. correctly report physical dependencies

    I understand the problem, but I need help to find a good solution.

    The problem is, when ADF Mobile deploys on the package, it creates an AndroidManifest.xml file and since my application uses SMS, it necessarily adds a < permission > element for telephony.  In general, approval will be "implies" that phone is a "requirement of functionality of the material" unless we also add an element of <>uses feature corresponding with android: required = "false".  However, ADF Mobile not set the < uses > function in the AndroidManifest.xml.

    Does anyone know a good solution for this?  (I searched for a way to configure this in ADF Mobile and in the docs, but it found nothing. "And I can't manually change the AndroidManifest.xml because ADF Mobile it creates in the middle of the deployment process).

    3. take advantage of the extra screen available on shelf area

    I have no start troubleshooting this in detail yet, but I'm curious to know how the Google game store, determines exactly?

    Anyway, if anyone can help me with #2, I would be grateful.  Thank you!

    Patrick

    Edit: Title changed this message, because I believe it is a more serious current problem.  Will respond with more information soon.

    Hi, Patrick, recently Google game made a number of changes, so it is much stricter in terms of supported Android.  Successfully, we applied workarounds and found the combination that seems to work for Google play.  Here are the details based on your questions:

    (1) the level of the API should not matter as long as it's 9 or above - 9 is the current default value.  Nothing specific in ADF Mobile that requires the level more high API.  However, if you are interested you should limit your application to 4.x devices, you can set the minimum and target API level accordingly to assert that.

    (2) by default, ADF Mobile says all the permissions of the device which may potentially be required by the framework.  This is why, for example, even if the application accesses a camera, the AndroidManifest.xml file will still contain references to the permissions of the camera.  Possibility to choose the correct hardware permissions selectively is planned for the next version of Mobile of the ADF.  In the meantime, you can change the AndroidManifest.xml file template in an extension of the ADF Mobile as the workaround.

    (3) Google game uses the element of "Supports the screen" in the file AndroidManifest.xml to determine what factors shape/devices are supported.  Summary of form factors supported and densities are described here: supporting multiple screens | Android developers.  ADF Mobile supports the display of different density already.  In what concerns the size of the screen, you must add the element "supports the screen" in the model of manifest file xml for the size of the screen that you want to support.  For example, if you want to add in support of all devices:

    Android: normalScreens = 'true '.

    Android: largeScreens = "true".

    Android: xlargeScreens = "true" / >

    The Android site would give you definitions of what mean these sizes.

    Finally, here are the instructions on changing the template AndroidManifest.xml:

    -Access file /JDeveloper/JDev/Extensions/oracle.adf.mobile/Android/Oracle_ADFmf_Framework.zip

    -Make a backup copy of the zip file

    -Unzip the file, which would be to extract all files in a directory of 'framework '.

    -Navigate to the framework/template/AndroidManifest.template.xml file

    -Use a text editor to change the permissions of the device, as well as the addition of the screen element supports as indicated above.

    -Zip up the framework directory and name the file zip as Oracle_ADFmf_Framework.zip, replacing the old.  Please make sure that the zip file has the same directory structure exactly as before.

    -In JDeveloper, before you deploy the application, please do a "Clean All" to clean up all the old objects deployment.

    -Deploy the application - the application should now be visible for tablets, as well as with adequate permissions.

    -Download the application on Google game - no further action is necessary in the game of Google around form factors supported and the permissions of the device.

    Now the Android deployment process does not additional validation for the device permissions are actually necessary, therefore, to ensure that these are properly defined.

    I'll also cross post this on the blog of the ADF Mobile team.

    Thank you

    Joe Huang

  • Support for Windows 8 for ADF Mobile (Client)

    We are developing an ADF Mobile application for our sales team. We know that there are two operating systems today (IOS and Android). We know that Oracle will also support Blackberry and Windows 8 operating systems. But it has not yet been published, and there is no information of annouced on dates realese.

    Are they still in your ADF Mobile roadmap? Will be forthcoming in the new feature? We are about to decide on hardware and operating system that we will use in our society and need to know the release date for Windows 8.

    Hello

    can't say about the release dates of other mobile device operating systems, but I don't see coming in the very short term. If you plan better with Android and iOS

    Frank

  • ADF mobile for Android is not available

    Hi all

    I created Oracle ADF Mobile application. I need to deploy my project view controller using the deployment "ADF" mobile for android But for some reason that this option is not in the deployment. I have an option of "ADF Mobile feature Archive", but I need to deploy the application by using the Android emulator.

    I use Jdeveloper 11.1.2.3.0. I have installed mobile extension of the ADF.

    I already have Android SDK and program in the preferences. Can someone help me on this?

    Thank you!

    You deploy in the application menu, not for the project controller View menu.

  • ADF Mobile: give application to another person for iOS

    I am building an iOS application using ADF Mobile. My friend another is in a remote location.
    For android, I can easily create an apk and send it for him but for iOS while creating a configuration profile it ask for the device id. So, looks like I can't do the same in the case of iOS for him to see and test on his device.
    is that correct or I missed something?

    Please notify

    Vik2 wrote:
    I have a license and to generate the provisioning certificate, he asks me the ID unique to my device.

    so once I have provide it then the profile will be just on my phone. How my friend will be able to get the app on the phone even with the source code? used to another license?

    Your friend must save his camera as well (with Apple) before it can deploy in its device.
    If you need basically to do the same process you did.

  • ADF Mobile: How user Bind for Backing Bean UI elements

    Hello

    Is it possible to access UI element such as the PanelGroupLayout of the bean of ADF Mobile support? I would like to gain access to its properties and methods.

    Thank you

    estt wrote:
    Thank you for your response. We expect hide or show a PanelGroupLayout according to the preferences. If the user defined in the preferences, the necessary information, we will hide the Panel, show otherwise.

    You can set an attribute in your bean that contains the value 'true' or 'false' and use this attribute to the attribute that is made for your PanelGroupLayout component.

  • Oracle Fusion Middleware Java QAnywhere for Oracle ADF Mobile

    Where can I find "Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile?

    Thank you very much for your time.

    Hi, this is a reference to the JavaDocs of the methods/classes supported by ADF Mobile Java. You can usually right (or ctrl) click on any method of specific Java ADF Mobile and select "JavaDoc". You can open a sample application that contains a Java class - for example the HR sample application, and find any method with the name "adfmf." You should be able to see the doc of Java for the ADF Mobile related methods/classes.

    Thank you

    Joe Huang

  • ADF mobile deployment for windows/blackberry-mobile option is disabled

    Hello
    We seek to deploy the sample FOD mobile application on a blackberry Simulator according to the tutorial given at:.
    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/jdev/obe11jdev/PS3/adf_mobile_top/adf_mobile/jdtut_11r2_54_1.html

    We had followed all the steps in part 2 and have been able to deploy the application on the BB Simulator and test also.

    After that, we followed the steps in part 3 and now when you try to deploy the mobile client application on the Simulator, the deployment for BB profile option is disabled and this is why we are not able to deploy the application.

    We Jdev 11.1.1.4.0 with mobile client extension installed and also installed the Simulator and BB JDE.
    Can someone please help us get the deployment to BB profile option active again?

    PS: We also tried to install Jdev 11.1.1.4.0 with extension adf mobile on another machine with JDE BB and BB 9700 Simulator, but on this new machine, deployment profile is disabled from the beginning, we are not yet able to deploy the changes that we made to part 2 of this tutorial.

    Kind regards
    Hemant

    Hi, Hemant, just to be sure, have you tried the kickoff of deployment of the project MobileClient, or in the Application menu? Mobile client app must be deployed in the application menu.

    In addition, if you have already deployed, the deployment profile has been created, so you only have to deploy again in the application menu.

    If you see that these items are disabled in some way, then I don't think I've seen it before. Maybe we can set up a web conference to look at.

    Please just ping - me directly.

    Thank you

    Joe Huang ([email protected])

  • No Extension for JDeveloper 11.1.1.4.0 ADF Mobile?

    Hello
    I have recently improved and jdev 11.1.1.3 to 11.1.1.4.0 when checking for extension, can't find one for the ADF Mobile Client extension.
    But the tutorial at: http://www.oracle.com/webfolder/technetwork/tutorials/obe/jdev/obe11jdev/ps3/adf_mobile_top/adf_mobile/jdtut_11r2_54_1.html, says that she is available.
    Can someone please clarify if it is available for the 11.1.1.4.0 and if so, how to get it?
    If this is not the case, how to build projects adf mobile using this version? Or should I roll back 11.1.1.3 if I want to create mobile client applications? And guess which also apply to the browser mobile apps?
    Kind regards
    Hemant

    Published by: HVT on March 2, 2011 02:55

    Hi, Hemant, both Android and iOS are both on the roadmap for ADF Mobile Client, with Android as the first target. iOS is much more difficult, and we take a multiphase approach to solve it.

    Windows Phone 7 is still under review - a direction of Nokia it give Windows Phone 7 a little more important now.

    There are currently no J2SE / provided for the "Windows" version - if there is strong demand for the approach on the laptop, please let us know. It seems that tablets (iPad, Android, BlackBerry PlayBook tablet, etc.) are taking more and more the mobile use case who traditionally filled by the laptop.

    We will also see if WebOS/Palm catches ever.

    Symbian is unlikely, given the Nokia seems to have indicated that it will with Windows Phone.

    It is also probable that we would target consumer/J2ME phones type at this point. It is not commonly used as enterprise mobile application devices, and also the trend seems to be that this smart phone will finally exceed the phones to consumers in terms of volume.

    Thank you

    Joe Huang

    Published by: Joe Huang on March 4, 2011 19:00

    Published by: Joe Huang on March 4, 2011 19:05

  • ADF Mobile: Can I add Badging to the features of Mobile?

    Nice day:

    I'll put up the Push Notifications.  Is this possible in ADF Mobile badge function icons?  Here is my goal.  When a Push Notification comes in the badge number is displayed on the icon of the application.  After that the user launches the app I want to display badges for each feature that requires attention.

    Use case: A Manager has the badge number 40 on the application icon.  When the application is launched, I want this number be broken down into service level badging.  For example: the Manager must answer the following questions: 15 claims, 5 applications for leave, 2 requests for home work, etc...

    I looked and didn't see any documentation.  I'm under JDK 7_55, JDev 11.1.2.4, XCode 5.0

    Thank you for your expert opinion on how to proceed,

    Tree Strepek

    Function icon badges is not supported, otherwise get listed in the documentation.

    http://www.Oracle.com/pls/as111240/search?remark=quick_search&Word=+badging&PartNo=

  • ADF Mobile | using secure web services


    Hi all

    I'm pretty new to ADF Mobile, I use JDev 11.1.2.4.

    In my Mobile application I want to use the secure web service.

    Here's what I do:

    1. creation of a data control based on the WSDL binding.

    2. get the web service methods in the data control.

    3. during the race, I'm getting that error "oracle.j2ee.ws.client.jaxws.JRFSOAPFaultException: Client from server SOAP fault: Missing < wsse: Security > in the SOAP header.

    When trying to run the WSDL binding in SOAP UI, I need set request username and passwordproperties, then only I will be able to invoke this web service.

    Here, my question is where can I set these properties for the data control to the web service ?

    Please suggest.

    Thank you

    Vieu

    Hi Shay,

    Thank you very much for the reply, I'm able to resolve the problem with the approach mentioned user guide.

    I forgot to set it up for the first time: ADF Mobile allows you to specify a custom provider class in your DataControls.dcx file. This custom class extends oracle.adfinternal.model.adapter.webservice.provider.soap.SOAPProvider . You can use it to specify an implementation of the SoapHeader[] getAdditionalSoapHeaders() method

    Example 9-1 shows how to extend the SOAPProvider and create a custom header has shown in example 9-2

    package provider.ebs.soap;

    Import oracle.adfinternal.model.adapter.webservice.provider.soap.SOAPProvider;

    Import oracle.adfinternal.model.adapter.webservice.provider.soap.SoapHeader;

    SerializableAttribute public class EBSSOAPProvider extends SOAPProvider {}

    SoapHeader public getAdditionalSoapHeaders() {}]

    SoapHeader header [] = SoapHeader News [2];

    SoapHeader token = null;

    SoapHeader user = null;

    SoapHeader pass = null;

    header [0] = new SoapHeader ("http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/",

    "SOAHeader");

    header [0] .addChild (new SoapHeader)

    "http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

    "Responsibility."

    'SYSTEM_ADMINISTRATOR'));

    header [0] .addChild (new SoapHeader)

    "http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

    "RespApplication,"

    'SYSADMIN'));

    header [0] .addChild (new SoapHeader)

    "http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

    "SecurityGroup."

    'STANDARD'));

    header [0] .addChild (new SoapHeader)

    "http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

    "NLSLanguage,"

    'AMERICAN'));

    header [0] .addChild (new SoapHeader)

    "http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

    "Org_Id."

    "0"));

    header [1] = (new) SoapHeader

    "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd,"

    'Security');

    Token = new (SoapHeader

    "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd,"

    "UsernameToken");

    User = new (SoapHeader

    "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd,"

    "Username."

    "sysadmin");

    pass = new (SoapHeader

    "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd,"

    "Password."

    "sysadmin");

    Header [1]. AddChild (Token);

    token.addChild (user);

    token.addChild (pass);

    Returns the header;

    }

    }

    Kind regards

    Vieira

  • Accidents of Simulator XCode5 ADF Mobile update

    Then I updated my JDev ADF Mobile update (11.1.2.4.39.64.62).

    I'm in XCode Version 5.0.2 (A 5, 3005). I can create a new simple application with a single page (home.amx) and when I deploy it in the Simulator he closes my Simulator, opening a new and behaves as the launch of my application and then does nothing. There is no icon and nothing has been implemented in the Simulator.

    [07:37:27 PM] ****************************************************************************************
    [07:37:27 PM] This ADF Mobile app was deployed in Debug mode and should not
    [07:37:27 PM] be used for performance evaluation purposes.
    [07:37:27 PM] Set the deployment profile Build Mode option to Release for performance testing.
    [07:37:27 PM] ****************************************************************************************
    [07:37:27 PM] Elapsed time for deployment:  34 seconds
    [07:37:27 PM] ----  Deployment finished.  ----
    
    

    When I open the temporary application of Xcode, I am able to launch the app in XCode 5 successfully.

    Any suggestions?

    Chris,

    Yes, I am aware that it is soft on the 2nd page. This isn't a "request" I ask.

    My steps were this:

    -deploy the app on iOS Simulator

    -iOS 7.03 (B 11, 508) Simulator closed

    -iOS 7.03 (B 11, 508) Simulator would open

    -l' screen would flash and everything just to sit on the home screen

    -J' then tried to navigate to page 2. At the time only my other apps were on the 2nd page. (not that I tried to deploy)

    -J' I reset the content and settings and tried again, same thing. A flash (as he tried to run automatically), then displays the home page.

    I was finally able to make it work by:

    -Uninstall XCode 5.0.2 (A 5, 3005)

    -uninstalled jDev 11.1.2.4

    -reinstalled xcode and jdev

    -install the updated mobile

    -open my test application, he managed to put the app on the 2nd page

    The flash and the stall on the homepage is now gone. I understand, it can be confusing to what exactly the problem I had with this update, but if all goes well in breaking it down it makes clear.

    It has never been an icon of the application on the 2nd page. He simply behaved as he tried to launch automatically. Never be able to launch an application with this update, I thought he was trying to run automatically (as a new feature) instead of the old way.

    I hope this post helps others that may encounter the same problem.

Maybe you are looking for

  • Cannot install Adobe Reader!

    Hello. I had to bring my Mac, but for now it only works on 10.5.8. I am trying to install Adobe Reader, but the new version does not work. I've done some looking to find a version that did, and they (Adobe) say that the X version work. Now when I try

  • Edit images

    I have imported some photos in an album and would like to change all the photos in the same way. How this is done in Photos?

  • TouchSmart 520 TV tuner stopped working

    I have a 1190EA Touchsmart 520. I have recently upgraded to Windows 8 to 8.1 Windows and now the TV tuner stopped working. I've already used Windows Media Center to watch TV. I ran install MCE and windows MCE is unable to find all channels. My TV car

  • Satellite Pro M10 cannot start properly - AC LED flashing orange

    Hello I have a weird problem that I can't solve. (1) when my Satellite Pro M10 the plugged AC adapter and the battery, the AC led is green and battery led is orange.(2) when I try to turn it on, several times it not light and the dissepear of leds fo

  • Memory / RAM upgrade - the standard issue! -HP Compaq Pro 6300 microtour

    Hello I intend to increase the RAM in this machine (Microtour HP Compaq Pro 6300) and I'm a bit confused to a specification - latency CASE. To start:I plan to purchase memory from a manufacturer of renowned as Crucial or Corsair and purchase identica