Getting weblogic usersegment details using an API
Hi,
Can weblogic usersegment (*.seg) information be got using some API?
if not, how can the information be got, so that we can for example, pass the usersegment name to the weblogic businessrule as a condition and got some contentquery as an action??
Please find below the sample code to get information about user segment.
@Control
private SegmentManagerControl segmentManagerControl;
@Jpf.Action(forwards = { @Jpf.Forward(name = "default", path = "index.jsp") })
public Forward begin() throws PersistenceException, XmlException, LoginException {
Authentication.login("weblogic", "weblogic", getRequest());
ResourceContext resCtx = ResourceContext.createResourceContext(getRequest(), getResponse(),getServletContext(), false);
resCtx.setRetrieveResultsIfNoLocale(true);
resCtx.setWebApp(getServletContext().getServletContextName());
RuleModel ruleModel = segmentManagerControl.getSegment("/segments/GlobalClassifications/testUserSegment.seg", resCtx);
System.out.println("Name"+ruleModel.getName());
System.out.println("Description"+ruleModel.getDescription());
Authentication.logout(getRequest());
return new Forward("default");
Note: You can use this API only from the controller. You need to create SegmentManagerControl in controller and from there you can access the user segment details. you need to be in the Administrative group to access SegmentManagerCotnrol (and all other controls related to campaigns, placeholders etc.).
segmentManager.getSegment() always returns null, if you're not in the Administrators group.
Similar Messages
-
Getting completed process details using BPM API
Hi Experts,
is there any way to get the completed process details using BPM API or Analytics API for a specific process definition (in 7.31 SP10)?
my observations:
1. using getRunningProcessInstances(process_def_id) of ProcessInstanceManager, I can fetch running process instances.
but I need completed process instances.
Thanks in advance.
Best Regards
-Trimseems no way
-
Need help in getting MDM relationship details using Java Apis
Hi,
Is it possible to search records which are in relationship using Java Apis? Suppose Record A is Parent record and Record B,C,D ... are child records.
I have to search all the records which are in relationship with record A.
Can any one send code snippet on this.
Regards,
NirajHi Niraj,
You can use RetrieveRelationshipsCommand api to get the relationship child of the Anchor Record.
RetrieveRelationshipsCommand command = new RetrieveRelationshipsCommand(connectionAccesor);
command.setSession(session);
command.setAnchorRecord(anchorRecord); / command.setAnchorRecordId(anchorRecordId); (use any of the two statements)
command.setRelationship(relationshipId); //For child int type is 10, and for Parent_child int type is 5
command.setMemberResultDefinition(resultDefinition);
command.execute();
//Get Member Records' resuld definition
ResuldDefinition rd = command.getMemberResultDefinition();
Hope this helps you. -
How to get all GroupSpaces name using Spaces API, irrespective of user logged in?
Hi
Can anyone please tell me, how to retrieve list of all group spaces using Spaces API. I have used this method getGroupSpaces(null) to retrieve all group spaces, however it returns only the logged in members groups.
Is there any way to get all groupspaces details?
Regards
Raji don't think so other than admin user can get all group spaces informaiton, is it possible in webcenter portal:spaces default deployment?
-
How to access Task details using BPM API for substituting user
Hi Expert,
I need one help, we have a requirement, in which I wanted to access the BPM task details of a user which is substituting user using BPM API.
Substituting user's name is not exist in Potential owner of Task. That’s why Using method "getMyTaskAbstracts(Status)" we cant acess those task which assigned by Substited user.
Kindly let me know if there is any way, we can get task details of the task which assigned by substituted user to substituting user.
Regards
DivPl use this api.
getTaskAbstractsForMySubstitutedUsers.There are couple of variations u can use.
Thanks
Manish -
Can I get the GP status using GP API.
Hi all,
Can I use the GP API to get one process status present,for example,"reject" or "approve" according to the process instance ID?
If there's a way,how can i archive this?
Best regards,
delmaHi,
Using GP API it is possible to achieve the process status of any particular process.
In the package com.sap.caf.eu.gp.process.api, we have several classes that can give the process such as IGP Process and the status can be achieved by the method getStatus.
For more information refer to this link:
http://help.sap.com/javadocs/nwce/current/gp/index.html
Award points if helpful.
Regards,
Sujana -
How to get user profile details using first name and last name of the user?
Is it possible to get profile details using firstname and lastname of the user with SharePoint UserProfile service?
any thoughts?
SP 2010 is history SP 2013 is mystery :)You could try the search method of UserProfileManager.
https://msdn.microsoft.com/en-us/library/microsoft.office.server.userprofiles.userprofilemanager.search.aspx
SPServiceContext serviceContext = SPServiceContext.GetContext(SPContext.Current.Site);
UserProfileManager upm = new UserProfileManager(serviceContext);
string[] searchPattern = { "Firstname", "Lastname"};
ProfileBase[] searchResults = upm.Search(searchPattern);
foreach (ProfileBase profile in searchResults)
//Do something
//Console.WriteLine(profile.DisplayName); -
OIM11gr2 - How to get currently logged in user details using oim api
Hi All,
I have a requirement to retrieve currently logged in users profile in the process adapter.
I have tried with getSelfProfile in tcUserOperation and also ContextManager.getOIMUser API's however, in both the cases i am getting xelsysadm details only.
Also as know request details in Process task mapping doesnot work for OIM11g onwards (its returning column not found exception )
DOes any one has idea how to achieve this.
PS. - i am using platform to retrieve API's.
Thanks & Regards
Swati PandeyYou can get the logged in user name using the below java code:
ADFContext adfCtx = ADFContext.getCurrent();
SecurityContext secCntx = adfCtx.getSecurityContext();
String user = secCntx.getUserPrincipal().getName();
HTH -
Scheduling in weblogic 7.0 using java API
Hi,
There is a java class that needs to be executed each day at a specified time through
weblogic 7.0 app server. In weblogic 6.1, the weblogic timer classes were deprecated.
Weblogic 7.0 suggests using 3rd party J2EE scheduling tools like FLUX and Kronos
Enterprise Scheduler. However, are there some other weblogic java APIs available
in weblogic 7.0 through which scheduling can be achieved?
TIA,
abhishek.you might also consider using java.util.Timer. See
http://java.sun.com/j2se/1.3/docs/api/java/util/Timer.html
Regards,
Michael
"abhishek" <[email protected]> wrote in message
news:[email protected]..
>
Hi,
There is a java class that needs to be executed each day at a specifiedtime through
weblogic 7.0 app server. In weblogic 6.1, the weblogic timer classes weredeprecated.
Weblogic 7.0 suggests using 3rd party J2EE scheduling tools like FLUX andKronos
Enterprise Scheduler. However, are there some other weblogic java APIsavailable
in weblogic 7.0 through which scheduling can be achieved?
TIA,
abhishek. -
How to get regional options information using java api
Hi all
I want to read what is properties like what is the currency symbol , what is the precession , what is the digit seperator and No of digits after the decimal .. such information i want to get using the java API
How can i get this information.
i tried with Locale API.
But it always giving me the default information only.
If i go and change those things in teh regional options it is not effecting
Any suggestions.
Thankin youhttp://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormatSymbols.html
-
Why getting WebLogic Connection when using Oracle Driver?
Does anyone know why I would be getting back an instance of weblogic.jdbc.rmi.SerialConnection
when retrieving a connection out of the connection pool, via my JDBC TX DataSource,
when my JDBC Connection pool is configured to use oracle.jdbc.OracleDriver. Seems
that since I'm using the Oracle driver I should not be getting back this WebLogic
connection.
Any insight is appreciated :)
thanks,
Daninnumonenu wrote:
Even we are facing the same problem of ClassCastException when we try to cast to
OracleCallableStatement from the weblogic pool made of Oracle JDBC driver.
What is the URL which explains,
"Our wrappers do provide access to various non-standard
Oracle methods, and we document how to cast (to our concret class or to an interface
we define) in order to access these calls." as said by Joseph.http://e-docs.bea.com/wls/docs70/jdbc/thirdparty.html#1043705
>
>
"Dan Branley" <[email protected]> wrote:
Joseph,
Thanks for the insight. This answers a lot of questions. I appreciate
the thorough
explanation. Your assumption is correct. I am trying to use an Oracle
extension,
specifically I need to call PreparedStatement.setBlob() passing an instance
of
an Oracle BLOB.empty_lob(). I'll take a look at the WLS documentation
for an
alternative.
thanks,
Dan Branley
Joseph Weinstein <[email protected]> wrote:
We never give application code direct access to pooled connections.We
always
supply a wrapper class. These wrapper classes have various extra functionality,
such as cooperating under-the-covers with the transaction coordinator
to provide
EJB/UserTransaction transactional semantics/guarantees, regardless of
the number
of EJBs involved in a given transaction. For instance, when in an EJB/UserTransaction,
our wrapper will cheerfully ignore if application code calls a Connection.commit().
The
application code has no idea really when the transaction is done and
commitable, only
the transaction coordinator does. Most simply, our pools guarantee that
whatever
application reserves a pool connection will have sole use of it until
they close the connection
to return it to the pool. If we allowed direct access to a pooled connection,
one application
could cache the reference, and re-use it later when we presumed to allow
another user to
use it from the pool. Some of our wrapper objects are RMI-enabled so
they work in
external client JVMs and will do JDBC over the wire to the weblogicserver
and it's
pool connections. This wayt application code need not change to work
inside or
outside weblogic.
I suspect this question is because you want to use some of Oracle's
non-standard
extensions to JDBC. Our wrappers do provide access to various non-standard
Oracle methods, and we document how to cast (to our concret class or
to an interface we
define) in order to access these calls. Not all calls can be successfully
proxied by our wrappers
because some Oracle methods (which claim to take java.sql object asarguments)
actually
require oracle specific classes, and reject our proxies, even if they
are standard JDBC objects.
Joe
Dan Branley wrote:
Does anyone know why I would be getting back an instance of weblogic.jdbc.rmi.SerialConnection
when retrieving a connection out of the connection pool, via my JDBCTX DataSource,
when my JDBC Connection pool is configured to use oracle.jdbc.OracleDriver.Seems
that since I'm using the Oracle driver I should not be getting backthis WebLogic
connection.
Any insight is appreciated :)
thanks,
Dan -
How to get Payment Advice details using REGUH REGUP tables
Hi,
How to fetch payment Advice details in REGUH REGUP tables by passing Header details of Payment document (BEKNR, BUKRS and GJAHR) ?
My observation:
E.g. for Payment document 1500000135 i am getting following records from REGUH table
MANDT LAUFD LAUFI ZBUKR LIFNR VBLNR
300 15.04.2010 00009O 1000 AB6666 1500000135
300 16.04.2010 00002O 1000 AB6666 1500000135
300 17.04.2010 00001O 1000 AB6666 1500000135
While debugging driver program for Check print i have observed that REGUH contain entry as
300 17.04.2010 00001* 1000 AB6666 1500000135
For other document also i have found that its picking up last entry from REGUH (i have relate 00001O with 00001*) and accordingly its displaying records on Check
Correct if my observation is wrong
Whats the meaning of LAUFI 'Additional Identification' ?
While displaying Check is the program always picks last/latest payment run entry from REGUH?
thanks,
Edited by: Amol Deshpande on Apr 19, 2010 9:41 AMHi Suhas,
But if we are making payments through F-58 and FBZ5 transaction then these both tables REGUH REGUP also get updated. in such case how does system determines --> Payment Run id
Payment Run id (REGUH-LAUFI) is crucial for me to fetch Payment details from REGUP table
also tell me when does system generates multiple lines for single payment document in REGUH ?
Please share your views -
How to get the service name of a webservice using UDDI API
Hi,
Iam working on setting up a dynamic partner link in a BPEL, by passing the endpoint of a web service queried from the UDDI (Oracle Service Registry 10.3 ) using the API. Iam able to do it successfully.
Now, for example I have two operations in my wsdl, one to createCustomer and the other to bookTicket. I need to get the operation name using UDDI API so that i can pass it along with the endpoint to the partner link. ie. When i need to createCustomer, my UDDI API code will need to get the service name createCustomer and the endpoint and I would pass them to the partnerlink and the createCustomer operation of my webservice would be called.
Can any one help me to get the service names of the wsdl using UDDI APIs.
Thanks,
AnanthHi sia,
1. Table is APQI
2. field name for session name is GROUPID
regards,
amit m. -
Help , How to get data from database using recordset with UI API
I want to get a data from database
when I want to create recordset i notice that UI API didn't has record set
so I created recordset using DI API (SAPbobscom.recordset and SAPbobscom.company)
======================================================
Dim oCompanyUI As SAPbouiCOM.Company <<UI API
Dim oRecSet As New SAPbobsCOM.Recordset << DI API
Dim oCompanyDI As New SAPbobsCOM.Company << DI API
'=====================================================
oCompanyDI.Connect
Set oRecSet = oCompanyDI.GetBusinessObject(BoRecordset)
oRecSet.DoQuery ("SELECT T0.CardCode, T0.CardName FROM OCRD T0")
SBO_Application.MessageBox oRecSet.Fields.Item(1).Value
======================================================
but I got an error it said "you are not connected to company"
I'm really don't have an idea about how to get a data from using UI API (exp I want to get a date or costumer code)
can someone help me please, I really need it
Thanksyou need a single sign on
Dim oDICompany As SAPbobsCOM.Company
Dim sCookie As String
Dim sConnStr As String
Dim ret As Integer
oDICompany = New SAPbobsCOM.Company
sCookie = oDICompany.GetContextCookie
sConnStr = SBO_Application.Company.GetConnectionContext(sCookie)
If oDICompany.Connected Then
oDICompany.Disconnect()
End If
ret = oDICompany.SetSboLoginContext(sConnStr)
If Not ret = 0 Then
SBO_Application.MessageBox("set Login Context failed!")
Exit Sub
End If
ret = oDICompany.Connect()
If Not ret = 0 Then
SBO_Application.MessageBox("Company Connect failed!")
End If -
Hello everybody !
I want to use POI package (HSSF - interfacing with Excel files) and I cannot compile my Java file ! (I can run the file from netbeans !!!)
Maybe I don't know how should I manage the package installation!Prakash,
I have followed your weblog and set the content dispostion.
HttpServletResponse res = request.getServletResponse(true);
try {
res.setContentType("application/vnd.ms-excel");
res.setHeader("Content-disposition", "inline; filename=report.xls");
wb.write(res.getOutputStream());
} catch (Exception e) {
e.printStackTrace();
When I test this on my pc, I get file download window and I can choose 'open' or'save'. I also have tested this on some of my collegues PCs successfully. But the some of the end users are not getting this window.
when the same is file is downloaded by running an asp page the enire MSExcel application with standard tool bar and menus(file edit etc..) is showing up.
Why is it not poosible to get the same result using HSSF api?
Maybe you are looking for
-
I cannot update my iphone 3gs version 4.3.5 to ios5!
help! i cannot update my iphone 3gs version 4.3.5 to ios5! everytime the download is almost done it says there was a problem with my network.. or more like network time out! how do i solve this?
-
HT4623 Recently updated my iphone 5 with IOS7 and lost all my photos - Help!?
Hi, I'm wondering if anyone might be able to help? I updated my Iphone 5 with this IOS7 update a few days ago and seem to have lost all my photos. I tried a 'Restore' and then 'Back up from restore' in itunes but the phone kept going round in circle
-
0HR_PT_3 Load is taking too much time when i execute the Info package
Dear All, i am working on HR Module. i am extracting data from 0HR_PT_3 from R/3 PRD system through info package its taking long time to load data. I have checked in RSA3 in R/3 PRD system whenever i extract "0HR_PT_3" instead of showing records it
-
Hi , Jdev version : 11.1.1.5 How to create a line graph based on x- axis is Date and y-axis is String ( hours and minutes i.e 02:30) . when i click any line /legend the line should be gray out. Any idea? Thanks in advance Regards Sathish.k
-
Using .DLL in a JSP application
Hi, I have a dll component wrote with Visual Basic 6.0, and i'm thinking in reutilize it in a JSP project. Is it possible?? How could i do? Please give me some tips! []�s Cas�