Access to the data after the managed service VOImpl in bean method call
I use JDeveloper 11.1.2.4.
I created a method to Interface customer and he calls you a managed bean.
The method is exposed in the control of data and I have a links to it through links on the page.
The method runs just a view of criteria for a row of data in the database.
But, because the method does not have a return value, how could access the View object data.
Here's the Service method and the method of the bean management;
The service method: in PersonVOImpl.java - should result in 1 row:
public void getPersonByCnViewCriteria (String cn)
{
ViewCriteria viewCriteria = this.getViewCriteria ("PersonVOCriteriaByCn");
Reset a display criteria of values that may was resolved at design time
viewCriteria.resetCriteria ();
this.setCnBind (cn);
this.applyViewCriteria (viewCriteria);
this.executeQuery ();
}
Method in managed Bean: I have a linking operation method to access the Service method.
It seems that the Service method is executed successfully. But, how to access the data after the call?
protected void getPersonByCn (String cn)
{
BindingContainer bindingContainer = this.getBindings ();
OperationBinding operationBinding = bindingContainer.getOperationBinding("getPersonByCn");
Map operationsParamsMap = operationBinding.getParamsMap ();
operationsParamsMap.put (WorkFlowBean.PROPERTY_CN, NC);
Object result = operationBinding.execute ();
If (! operationBinding.getErrors () .isEmpty ())
{
}
// How to access data after the call?
}
You should never use a class VOImpl or VORowImpl in a managed bean. If you have to use them, create Interfaces and use.
I'm not too sure if it's good to return a view in a method object.
Tags: Java
Similar Questions
-
Insufficient privileges. "Access to the ConditionEvaluationService service.
Hi allWhen you create the condition in IBot I get following error.
Insufficient privileges. "Access to the ConditionEvaluationService service.
Thank you
Kiran
Hello
This is a problem of security access.
Give privilege as 'Access ConditionEvaluationService Service'
with roles like BIConsumer, BISystemThis allows users to access the ConditionEvaluationService Web service.
Thank you
~ KKT ~.
-
Hello
Recently our Windows server 2008R2 patched as hosts vSphere Server with the fix above.
After that, the update management service starts a java process that works 100% of the CPU and the custom
Let in.
Restart the server or restart service makes no apparent difference.
Also, killing java.exe doesn't reappear after a few seconds.
Memorywise seems to be correct.
Clues on where to start looking for what it tries to do?
Included file is procmon, which says that the result of the java call's NAME NOT FOUND
I couldn't find a way to paste Cut, so the text instead of the file.
Concerning
Tommy
Uninstall everything already installed customer manager update and Manager himself, reboot, and reinstall update fixed the problem for me.
-
Hello
I try to access a web page API in the APEX, but still get an error in the ACL. I tried everything I can think of as well as the multitude of usual information "bits and pieces", which I found on the web.
USER who needs access to the ACL and the fact that it is an https site makes a difference for settings?
I can return data from SqlPlus without problem.
FOR INFO.
Oracle 11g
APEX 5
W2008.
Pointers would be appreciated!
Thank you
Hi Samuistu,
Samuistu wrote:
Basically, what I want to do is to download data in a table to a Web site. A good example of the type of data is here https://www.cryptopia.co.nz/api/GetCurrencies
Is it possible to get this data into a table that contains the Id column headers, name, etc. of symbol.
Assuming that you have a table as follows:
create table crypt_currencies ( id number, name varchar2(128), symbol varchar2(8), algorithm varchar2(128) );
Finally with regard to the features to get the web service data and insert them in the table, for that you can do something like this:
declare l_response clob; l_values apex_json.t_values; l_data_count integer; l_crypt_curr_rec crypt_currencies%rowtype; begin l_response := apex_web_service.make_rest_request ( p_url => 'https://www.cryptopia.co.nz/api/GetCurrencies', p_http_method => 'GET', p_wallet_path => 'file:path/to/oracle/wallet', p_wallet_pwd => 'password' ); apex_json.parse ( p_values => l_values, p_source => l_response ); if apex_json.get_boolean ( p_values => l_values, p_path => 'Success' ) then dbms_output.put_line('Success --> true'); end if; dbms_output.put_line ( 'Data Members Count --> '|| apex_json.get_count ( p_values => l_values, p_path => 'Data' ) ); l_data_count := apex_json.get_count ( p_values => l_values, p_path => 'Data' ); for i in 1 .. l_data_count loop l_crypt_curr_rec := null; dbms_output.put_line ( 'Id --> '|| apex_json.get_number ( p_values => l_values, p_path => 'Data[%d].Id', p0 => i ) ||', '|| 'Name --> '|| apex_json.get_varchar2 ( p_values => l_values, p_path => 'Data[%d].Name', p0 => i ) ||', '|| 'Symbol --> '|| apex_json.get_varchar2 ( p_values => l_values, p_path => 'Data[%d].Symbol', p0 => i ) ||', '|| 'Algorithm --> '|| apex_json.get_varchar2 ( p_values => l_values, p_path => 'Data[%d].Algorithm', p0 => i ) ); l_crypt_curr_rec.id := apex_json.get_number ( p_values => l_values, p_path => 'Data[%d].Id', p0 => i ); l_crypt_curr_rec.name := apex_json.get_varchar2 ( p_values => l_values, p_path => 'Data[%d].Name', p0 => i ); l_crypt_curr_rec.symbol := apex_json.get_varchar2 ( p_values => l_values, p_path => 'Data[%d].Symbol', p0 => i ); l_crypt_curr_rec.algorithm := apex_json.get_varchar2 ( p_values => l_values, p_path => 'Data[%d].Algorithm', p0 => i ); insert into crypt_currencies values l_crypt_curr_rec; end loop; end;
NOTE:
- The code above is for purposes of example, if you use it make the necessary changes.
- Dbms_output calls are given for the purpose of debugging. You can remove that in the actual code.
I hope this helps!
Kind regards
Kiran
-
Access to the managed connection in bean container
Hello
I was following the situation in the workflow: viewOne-> method invocation (from managed bean)-> viewTwo. Anyway, I need to call the method of a bean managed between pages. It works and method is executed, but in this method, I do have access to the link container. Using
BindingContainer is null. How can I solve this problem?BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry()
KubaOK, it was simple after all.
Your method call in the empDeptTf workflow does not have a pafe definition file and has therefore no ties. In your bean method when you try to get the DCBindingContainer is null.
Solution:
in the empDetTf, select the method call 'callBeanMethod' activity, right-click on it and select 'Create the Page definition' in the context menu. This will create the page for the method call definition file. It is always empty, add what you need here. To make the testContainerMethod() in the work of bean you can for example click the Green + signer sign on 'routes', select 'action', (not open), click on the RootAMDataControl and select 'validation' or 'rollback' in the choice of a select "Operation".
This will create a binding operation to the operation you choose. Now your application will run, and you get a DCBindingContainer in your bean.On the other hand I do not understand your use case. So everything that might not be necessary. If you give more information we may be able to point in the right direction.
Timo
-
Duration of the apex - can we have access to the "Public Services" link Avaialbe in IDE
Currently using Apex 3.2-11 GR 2
The Production Server has only "Apex RUNTIME". All developer access is not allowed.
But the requirement is a Manager to open a session in the IDE of the Apex and click "Utilities" and click reports Apex in the only case of "Apex runtime" on production. This is necessary for the Manager to see and monitor due to security requirements.
The "Utilities" option is available during the installation of the apex is "runtime" only mode? Whatever it is dynamically switchable to a specific user connection to allow them to access these reports of object? Other suggestions on how these reports are available directly outside the Apex would also help.
Thank you!
citing the book Oracle Application Express 3.2
When the APEX is first installed, we can choose whether to install the APEX or APEX Runtime Environment complete development environment. This can be changed later by running the SQL scripts provided with the installation of the APEX. We can convert from a development environment complete APEX for an APEX runtime environment by running script SQL apxdevrm.sql that helps the user SYS with SYSDBA role. We can also convert a runtime environment to a full development environment by running SQL apxdvins.sqlscript. Conversion of the environment leave our unchanged applications, and they can be run using the same exact URL.
Thank you
Tony Miller
Software LuvMuffin
-
I uninstalled VeriFace that even my children can log in with my password. Now I have more access to all programs 'admin' privilege etc. Can anyone help? THX, Bryn.
Well, I tried the "one - key" and the functions to return.
However, I got a bunch of errors of PSSWCORE configuration at startup, and the suspect most of my other software is now compromised.
2 steps forward, 1 step back...
-
Managed Bean method called several times in AF:ITERATOR
Dear all,
I can do not to understand this concept in the ADF. Being a beginner, I would like to know
the reasoning behind this.
I use af:foreach components and then I link it to my below managed bean.<af:panelTabbed id="pt1"> <af:forEach var="item" items="#{testBean.departmentsData}"> <af:showDetailItem text="#{item}" id="sdi1"/> </af:forEach> </af:panelTabbed>
On the first charge, it prints 7 times "I clicked".public class TestBean { public List getDepartmentsData() { System.out.println("I was clicked!!!!"); List lstData = new ArrayList(); lstData.add("IT"); lstData.add("Finance"); lstData.add("Accounting"); return lstData; } }
When I clicked on one of the tab, I get 7 again which means my method was called 7 times.
Any reason behind this. ? Thank you.
I have used JDEV PS3 is told by the way.Rather than build the list in your getter, build a list somewhere (in the constructor, perhaps). Your getter can then return just this list.
John
-
The wireless printer works fine, except that I am not allowed access to the "printer services.
Hello
What is the operating system installed?
Download and install the complete operating system software of features appropriate for your printer. During execution of the tasks of maintenance on your printer, it is better to go in the HP, not the properties of the printer dialog window software.
The following image use Dutch as a language, but it works for me. The HP Solution Center is where I align and clean the print heads. I print only to test the pages in the print dialog window.
-
deploy the web service to xp embedded
Hi all
I struggle to run a web service on an xp embedded system. The web service works very well in my LV 2011 development environment and I have created an installer for my main application it is the lvws file is included as described in web services FAQ:
http://zone.NI.com/DevZone/CDA/tut/p/ID/7747#toc12
After the installation on the target computer, I can't access the web service. Also if you call localhost:3580, then I get an access error.
But in the System Control Panel administrative tools, I can see that the server system OR like many Web server OR Web applications are started.
For further investigation, I added the 'Distributed System Manager' to my Installer. With this tool, I see that all my web services deployed on my development system, but on the XP embedded system with TEN target is listed.
I installed my application for a professional reference XP system to exclude that the problem is caused by embedded XP. But the behavior is exactly the same. So far, I tested only local so that settings security like firewalls and ports system should pose no problems. But to be sure I have disabled the firewall without success... I can't access the Web service. I have often found the suggestions in the forum to check if the web service is enabled. But I am not already and then access to http://localhost:3580.
Any ideas?
Thank you!
This help document is somewhat outdated.
You see 2 different problems: 1) you can not display the Configuration utility and do not install Web using localhost:3580 2) your web service monitoring.
For the first number-->
You probably did not understand the "Interface Web NI 2011 infrastructure" in your Setup program. The doc to help you mentioned does not tell you to do, because it is not necessary for your web service works. However, if you want to change one of the settings of your web server after the installation, you will need this extra setup program.
For the second question-->
You probably didn't get your Spec to build Web services as a source file in your Setup program. The help doc says to put your LVWS file as your installation source, but this is not correct. You must include the technical article to build real web service as a source file (not the web service create out of spec files, like LVWS).
Let me know if any of these will help you.
-Jared
-
Grant access to the URI at the time of installation or execution
Hello world
I don't know if this is possible, but basically I want to grant access to a URI (URI Web service when executing).
So, let said customers running our ERP system on the premise, our ERP system comes with the generic web services to access the data of the ERP.
We want to develop a playbook application that will ask the URI of the Web Service the first time, launch the application. Now, by my understanding, without adding this URI to the access list, the app will not have permission to call any service using the XMLhttpRequest object, right?
So, how can I add this in the file config.xml during execution? Or y at - it another way to do this?
Thanks for your help.
Phuong
Hello Phuong,
If all you want to do is to access data from an outside domain and does not allow API access to this area there is an easy trick.
This gives access to any field. What it won't let you do, is add WebWorks APIs in this area. If you need to provide APIs for a domain, you must explicitly set in the config.xml file at
-
Allowing the VPN Clients to the management network - nat woes
Try to allow the VPNClient IPSEC access to the management network. packet trace stops on the vpn encrypt even through phase 7 States it's NAT EXEMPT, he said his tent still NAT by a static. The only thing I can think to put a rule of nat exempted for the subnet on the external interface.
Please notify. Thank you.
Phase: 1
Type: ACCESS-LIST
Subtype:
Result: ALLOW
Config:
Implicit rule
Additional information:
MAC access listPhase: 2
Type: FLOW-SEARCH
Subtype:
Result: ALLOW
Config:
Additional information:
Not found no corresponding stream, creating a new streamPhase: 3
Type:-ROUTE SEARCH
Subtype: entry
Result: ALLOW
Config:
Additional information:
in 0.0.0.0 0.0.0.0 outdoorsPhase: 4
Type: ACCESS-LIST
Subtype: Journal
Result: ALLOW
Config:
Access-group MANAGEMENT-IN in the management interface
access-list MANAGEMENT-IN-scope ip allowed any one
Additional information:Phase: 5
Type: IP-OPTIONS
Subtype:
Result: ALLOW
Config:
Additional information:Phase: 6
Type: FOVER
Subtype: Eve-updated
Result: ALLOW
Config:
Additional information:Phase: 7
Type: NAT-FREE
Subtype:
Result: ALLOW
Config:
match ip MANAGEMENT 10.10.10.0 255.255.255.0 outside 172.18.0.32 255.255.255.240
Exempt from NAT
translate_hits = 3, untranslate_hits = 33
Additional information:Phase: 8
Type: NAT
Subtype:
Result: ALLOW
Config:
static (MANAGEMENT, outside) 203.23.23.75 10.10.10.10 netmask 255.255.255.255
MANAGEMENT ip 10.10.10.10 host game OUTSIDE of any
static translation at 203.23.176.75
translate_hits = 0, untranslate_hits = 1
Additional information:Phase: 9
Type: NAT
Subtype: host-limits
Result: ALLOW
Config:
static (MANAGEMENT, outside) 203.23.23.75 10.10.10.10 netmask 255.255.255.255
MANAGEMENT ip 10.10.10.10 host game OUTSIDE of any
static translation at 203.23.23.75
translate_hits = 0, untranslate_hits = 1
Additional information:Phase: 10
Type: VPN
Subtype: encrypt
Result: DECLINE
Config:
Additional information:Result:
input interface: MANAGEMENT
entry status: to the top
entry-line-status: to the top
output interface: OUTSIDE
the status of the output: to the top
output-line-status: to the top
Action: drop
Drop-reason: flow (acl-drop) is denied by the configured rule-EXCERPT FROM CONFIG-
CorpVPN to access extended list ip 10.10.10.0 allow 255.255.255.0 172.18.0.32 255.255.255.240
Access extensive list ip 172.18.0.32 CorpVPN allow 255.255.255.240 10.10.10.0 255.255.255.0mask 172.18.0.33 - 172.18.0.46 255.255.255.240 IP local pool CorpVPN
access-list MANAGEMENT-extended permitted tcp 172.18.0.32 255.255.255.240 host 10.10.10.11 eq ssh
access-list MANAGEMENT-extended permitted tcp 172.18.0.32 255.255.255.240 host 10.10.10.10 eq ssh
access-list MANAGEMENT-extended permitted tcp 172.18.0.32 255.255.255.240 host 10.10.10.13 eq 3389access-list 101 extended allow ip 10.10.10.0 255.255.255.0 172.18.0.32 255.255.255.240
NAT 0 access-list (MANAGEMENT) No.-NAT-DU-MGMT
access-list no.-NAT-DU-MGMT scope ip 10.10.10.0 allow 255.255.255.0 172.18.0.32 255.255.255.240CorpVPN to access extended list ip 10.10.10.0 allow 255.255.255.0 172.18.0.32 255.255.255.240
Access extensive list ip 172.18.0.32 CorpVPN allow 255.255.255.240 allinternal CorpVPN group strategy
attributes of Group Policy CorpVPN
value of server DNS 203.23.23.23
VPN - connections 8
VPN-idle-timeout 720
Protocol-tunnel-VPN IPSec l2tp ipsec
Split-tunnel-policy tunnelspecified
value of Split-tunnel-network-list CorpVPN
the address value CorpVPN poolstype tunnel-group CorpVPN remote access
attributes global-tunnel-group CorpVPN
address pool CorpVPN
Group Policy - by default-CorpVPN
IPSec-attributes tunnel-group CorpVPN
pre-shared keyFirst of all, there is overlap crypto ACL with the VPN static L2L:
crypto ASA1MAP 10 card matches the address 101
access-list 101 extended allow ip 10.10.10.0 255.255.255.0 172.18.0.32 255.255.255.240
access-list 101 extended allow ip 172.18.0.32 255.255.255.240 10.10.10.0 255.255.255.0I would remove the 2 lines of ACL 101 above because it is incorrect.
Secondly, from the output of ' cry ipsec to show his ", you seem to be getting the ip address of the"jdv1.australis.net.au", not"CorpVPN"pool pool. Therefore, the No. NAT ACL on the management interface is incorrect. I would just add a greater variety of education no. NAT so that it covers all your ip pool:
access-list no.-NAT-DU-MGMT scope ip 10.10.10.0 allow 255.255.255.0 172.18.0.0 255.255.255.0
Thirdly, even with your dynamic ACL 'OUTSIDE_cryptomap_65535.65535' crypto map, it only covers the 172.18.0.32/28, so I just want to add a wider range since it seems you get the ip address of the different pool:
OUTSIDE_cryptomap_65535.65535 list of allowed ip extended access all 172.18.0.0 255.255.255.0
Then I would disable the following group of access for purposes of test first:
no access-group MANAGEMENT - OUT Interface MANAGEMENT
Finally, please clear all the SA on your ASA and xlate, then reconnect to your vpn client and test it again:
delete the ipsec cry his
clear the isa cry his
clear xlate
Please let us know how it goes after the changes. If it still doesn't work, please please send again the last configuration and also to send the output of the following:
See the isa scream his
See the ipsec scream his
and a screenshot of the page of statistics on your vpn client. Thank you.
-
Political dynamic VPN access and access to the administration
Hi all
I'm testing a scenerio with an ASA 5520 so he could authenticate VPN users against and an environment Active Directory more access to management as well. I created a dynamic access on the ASA policy indicating that, if you are a member of the Active Directory 'Managment' group continue. I have chagned the DefaultAccessPolicy to "Finish." With it, users could not connect VPN because they are not a member of this group, but access to manage the ASA is allowed due to this policy.
Is there a way through the use of dynamic access policies I can afford access to the administration (SSH, AMPS, etc.) by matching to membership in a group and will allow normal users to VPN in successfully, but not give them access to the management of the ASA?
I just try this but it seems that I should be able to swing that?
Thaks in advance.
Hello
You can try to apply the DAP and configure the filter ACL network. allowing only the protocols you want to that they can access.
Kind regards
Anisha
P.S.: Please mark this thread as answered if you feel that your query is resolved. Note the useful messages.
-
How to add THE web service to the ACL?
I want to access a web service from a PL/SQL procedure (using UTL_HTTP) since a 11g R2 database. However, before you do anything, I need to give access to the web service by adding the web service to the access control list (ACL).
I want to test the web service is full here: http://www.service-repository.com/service/overview/-1789095104
This is a free WS, you can use to test the code WS. The endpoint is http://www.w3schools.com/webservices/tempconvert.asmx
Therefore, adding www.w3schools.com to list ACL will be fine, I think? Am I wrong?
I tried the method below but I get this error and the user guide is not clear what to do.
SQL > exec dbms_network_acl_admin.assign_acl (LCD = > 'temp_ws1.xml', host = > 'www.w3schools.com');
BEGIN dbms_network_acl_admin.assign_acl (LCD = > 'temp_ws1.xml', host = > 'www.w3schools.com'); END;
*
ERROR on line 1:
ORA-31001: handle or path of the invalid resource name ' / sys/acls/temp_ws1.xml '.
ORA-06512: at "SYS." DBMS_SYS_ERROR', line 86
ORA-06512: at "SYS." DBMS_NETWORK_ACL_ADMIN', line 94
ORA-06512: at "SYS." DBMS_NETWORK_ACL_ADMIN', line 479
ORA-06512: at line 1
Any help would be greatly appreciated.
This,
host-online "www.w3shools.com."
is not the same thing as this,
host-online "www.w3schools.com".
-
OSB security: limiting access to a name server or IP service
Hi all
We are in the process of setting up security for our VSOS, and one of the things that we want to do is to restrict access to the proxy service according to the user name used for authentication and the IP (or name) of the server that initiates the communication. Creating an authentication mechanism based on the user credentials is a little easy, but I was a little perplexed as to how retrict access based on intellectual property.
I was thinking to create a role that would grant access and then adding a condition based on intellectual property, but when a condition is added, I don't see which of these options in the list of predicate would suit me. Maybe "value of the context item is equal to a string constant"? In this case, what would be the name of the context item?As I wrote, you can also do the same within your proxy service flow. For example, you can create something like AuthorizationProxy in the front of your proxy service (which routes, running all that). Only AuthorizationProxy could handle the authorization for your. You can watch the SOAP payload there, you can also watch the IP source (inside the $inbound variable), you can have a matrix of complex access involving IP, user name, service operations... Just what you want. But like I said also that it's somehow too late for me, as you are actually allowing everyone access to the OSB technically. I prefer to address security in the first place possible to limit the number of resources available for unauthorized requests.
Maybe you are looking for
-
Apple store tells me that I have to update my iphone 4 iOS 8 or more if I want to download something, but from what I ve heard iphone 4 updated to ios can´t 8? is there a solution or is that means I need to by a new phone to download something?
-
How can I get mozila remember usernames etc?
I can't find anything in the options, security that allows Mozilla to remember user names. Can you help me? Thank you
-
Hoe kan ik van het food letters bladwijzerbalk veranderen van
IK wil like een kleine letter voor bladwijzerblak, Het meer op er kunne bladwijzers bloodstains.
-
Firefox opens, but this morning, I can't access all the links via Firefox. I can through Explorer.
-
Pavilion DV6-3030SD: Pavilion DV6-3030SD processor and HD upgrade
Hello, I would like to know if I can pass for example the processor of my Pavilion DV6-3030SD with intel i3 M350 2, 27GHz and 2 hearts with every 4 GB of RAM (8GB total). Win10 64-bit is installed and works perfectly. I don't understand that a change