Gettin GroupName using IDK 6.0
hello ,
i´m trying to get the group name using the folling code
HttpServletRequest HttpRequest = (HttpServletRequest) request;
HttpServletResponse HttpResponse = (HttpServletResponse) response;
IPortletContext portletContext = PortletContextFactory.createPortletContext(HttpRequest, HttpResponse);
IRemoteSession remoteSession = portletContext.getRemotePortalSession();
IUserManager userManager = remoteSession.getUserManager();
int[] groupsIds = userManager.getCurrentUserGroups();
IObjectManager objectManager = remoteSession.getObjectManager(ObjectClass.UserGroup);
for (int H = 0; H < groupsIds.length; H++) {
IObjectQueryRow groupQuery = objectManager.querySingleObject(H);
String groupName = groupQuery.getName();
when in my portlet class i call IRemoteSession prcSession = portletContext.getRemotePortalSession(); i receive an error with the following description:
230016 [[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR com.plumtree.portlet.servlet.BaseServlet - org/apache/axis/plumtr_enum/Style
java.lang.NoClassDefFoundError: org/apache/axis/plumtr_enum/Style
at com.plumtree.remote.prc.soap.QueryInterfaceAPISoapBindingStub.<clinit>(QueryInterfaceAPISoapBindingStub.java:27)
at com.plumtree.remote.prc.soap.QueryInterfaceAPIServiceLocator.getQueryInterfaceAPI(QueryInterfaceAPIServiceLocator.java:43)
at com.plumtree.remote.prc.soap.QueryInterfaceProcedures.<init>(QueryInterfaceProcedures.java:37)
at com.plumtree.remote.prc.xp.XPRemoteSession.<init>(XPRemoteSession.java:202)
at com.plumtree.remote.prc.xp.XPRemoteSessionFactory.GetTokenContext(XPRemoteSessionFactory.java:80)
at com.plumtree.remote.portlet.xp.XPPortletContext.getRemotePortalSession(XPPortletContext.java:261)
at com.plumtree.remote.portlet.PortletContextWrapper.getRemotePortalSession(PortletContextWrapper.java:45)
at gepe.controler.webInterfaceControler.doView(webInterfaceControler.java:102)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:164)
at com.plumtree.portlet.servlet.PortletServlet.service(PortletServlet.java:323)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:176)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3404)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1398)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
does anybody know what this means ??
i´m using IDK 6.0 version
best regards.
I have been doing some search and this is the problem:
IDK 6.0 uses an Axis.jar file with version 1.1 , if we create a WS client this Axis.jar will be replaced for axis.jar 1.4 and some methods that exists in 1.1 doesn't exist in 1.4.
so for what i´m understanding i can´t use WS client with IDK because some jar files are replaced by other ones ...
did somebody had the same issue ...or how can i had an workaround ? help please!
many tks
Similar Messages
-
How we develop inter-portlet communication in plumtree portal using IDK
1)How we will develop inter-portlet communication in plumtree portal using IDK .
is it possiable using Master Detail Pattern? or any other alternate way.
Regards
Dheeraj SaiThis can be done by developing Adaptive Portlets:
http://edocs.bea.com/alui/devdoc/docs60/Portlets/Adaptive_Portlets/PlumtreeDevDoc_Integration_Portlets_Adaptive_Intro.htm -
Prob gettin data using RH_START_EXCEL_WITH_DATA
hi i hav data in my internal table raw.i want to popup excel sheet for displaying data.excel is opening but im not able to see the data..pls help me out...its urjent...here is my code...CALL FUNCTION 'RH_START_EXCEL_WITH_DATA'
EXPORTING
data_filename = 'TEST.DAT'
data_path_flag = 'W'
DATA_ENVIRONMENT =
wait = 'X'
data_table = RAW[]
EXCEPTIONS
no_batch = 1
excel_not_installed = 2
internal_error = 3
cancelled = 4
download_error = 5
no_authority = 6
file_not_deleted = 7
OTHERS = 8.
ENDIF. .Hi Kiran,
Here is the example program
REPORT Z_DISPLAY_IDOC_AND_DATA line-size 275.
* This tool reads an existing Idoc and dispays the contents in a *
* spreadsheet format. The spreadsheet (MS-EXCEL) will be automatically *
* created if D_EXCEL = 'X'. *
data: idoc_control like EDIDC,
NUMBER_OF_DATA_RECORDS like sy-dbcnt,
NUMBER_OF_STATUS_RECORDS like sy-dbcnt,
INT_EDIDS like edids occurs 0 with header line,
INT_EDIDD like edidd occurs 0 with header line.
TYPE-POOLS : LEDID.
data: STRUCT_TYPE TYPE LEDID_STRUCT_TYPE ,
IDOC_STRUCT TYPE LEDID_T_IDOC_STRUCT,
SEGMENTS TYPE LEDID_T_SEGMENT,
SEGMENT_STRUCT TYPE LEDID_T_SEGMENT_STRUCT,
excel_tab(2000) occurs 0 with header line.
parameter: DOCNUM like edidc-docnum obligatory, ""Idoc Number
sap_rel like SY-SAPRL default SY-SAPRL obligatory,
pi_ver like EDI_VERREC-VERSION default '3' obligatory,
d_excel as checkbox default 'X'. ""Download ?
start-of-selection.
perform read_idoc.
perform process_idoc.
if d_excel = 'X'.
perform download_to_excel.
endif.
end-of-selection.
FORM read_idoc.
CALL FUNCTION 'IDOC_READ_COMPLETELY'
EXPORTING
DOCUMENT_NUMBER = docnum
IMPORTING
IDOC_CONTROL = idoc_control
NUMBER_OF_DATA_RECORDS = NUMBER_OF_DATA_RECORDS
NUMBER_OF_STATUS_RECORDS = NUMBER_OF_STATUS_RECORDS
TABLES
INT_EDIDS = INT_EDIDS
INT_EDIDD = INT_EDIDD
EXCEPTIONS
DOCUMENT_NOT_EXIST = 1
DOCUMENT_NUMBER_INVALID = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "" read_idoc
FORM process_idoc.
perform read_idoc_structure.
perform display_data_records.
ENDFORM. "" process_idoc
FORM display_data_records.
data: PE_seg_HEADER like EDI_SAPI01,
segname like EDI_IAPI12-SEGMENTTYP,
prev_segname like EDI_IAPI12-SEGMENTTYP value ' ',
pt_fields2 like EDI_IAPI12 occurs 0 with header line,
PT_FVALUES2 like EDI_IAPI14 occurs 0 with header line,
byte_first type i,
byte_last type i,
field_val(50),
tmp_str(15),
tmp_str3(15),
seg_repeats type i value 0,
tmp_str2(15),
tab_cr(1) type x value '09',
tot_ctr type i value 0,
ctr type i value 0,
msg(40) type c.
data: IDOC_STRUCT_wa TYPE LEDID_IDOC_STRUCT.
sort int_edidd by segnum.
describe table int_edidd lines tot_ctr.
loop at int_edidd.
move int_edidd-segnam to segname.
clear msg.
concatenate 'Reading segment ' segname
into msg separated by space.
if tot_ctr <> 0.
ctr = ( 100 * sy-tabix ) / tot_ctr.
endif.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = ctr
TEXT = msg.
add 1 to seg_repeats.
clear tmp_str2.
if int_edidd-segnam <> prev_segname.
seg_repeats = 1.
clear: pe_seg_header, pt_fields2, pt_fvalues2.
refresh: pt_fields2, pt_fvalues2.
CALL FUNCTION 'SEGMENT_READ_COMPLETE'
EXPORTING
PI_SEGTYP = segname
PI_RELEASE = sap_rel
PI_VERSION = pi_ver
IMPORTING
PE_HEADER = pe_seg_header
TABLES
PT_FIELDS = pt_fields2
PT_FVALUES = pt_fvalues2
EXCEPTIONS
SEGMENT_UNKNOWN = 1
SEGMENT_STRUCTURE_UNKNOWN = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE 'I' NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
prev_segname = int_edidd-segnam.
endif.
read table idoc_struct into idoc_struct_wa with key
segment_type = int_edidd-segnam.
if sy-subrc = 0.
IF IDOC_STRUCT_WA-SYNTAX_ATTRIB-MUSTFL = 'X'.
TMP_STR = 'Mandatory'. ""Mandatory
ELSE.
TMP_STR = 'Optional'. ""Optional
ENDIF.
if IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-QUALIFIER = 'X'.
tmp_str3 = 'Qualified'.
else.
tmp_str3 = 'Non-Qualified'.
endif.
shift IDOC_STRUCT_wa-SYNTAX_ATTRIB-OCCMAX
left deleting leading '0'.
move seg_repeats to tmp_str2.
condense: IDOC_STRUCT_wa-SYNTAX_ATTRIB-OCCMAX, tmp_str2.
concatenate tmp_str2 'of' IDOC_STRUCT_wa-SYNTAX_ATTRIB-OCCMAX
into tmp_str2 separated by space.
write :/ IDOC_STRUCT_wa-SEGMENT_TYPE,
tmp_str,
TMP_STR3,
tmp_str2,
IDOC_STRUCT_wa-SYNTAX_ATTRIB-HLEVEL,
IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-plast,
IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-DESCRP.
if d_excel = 'X'.
concatenate 'Segment Name' tab_cr
'Mand / Opt ' tab_cr
'Qual / non-Qual' tab_cr
'Seq of Max' tab_cr
'Level' tab_cr
'Owner' tab_cr
'Description'
into excel_tab.
append excel_tab.
concatenate IDOC_STRUCT_wa-SEGMENT_TYPE tab_cr
tmp_str tab_cr
TMP_STR3 tab_cr
tmp_str2 tab_cr
IDOC_STRUCT_wa-SYNTAX_ATTRIB-HLEVEL tab_cr
IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-plast tab_cr
IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-DESCRP
into excel_tab.
append excel_tab.
concatenate tab_cr
'Field Nma' tab_cr
'Type' tab_cr
'Length' tab_cr
'Byte From' tab_cr
'Byte To' tab_cr
'Description' tab_cr
'Value' tab_cr
'Qualifier Meaning'
into excel_tab.
append excel_tab.
endif.
endif.
sort pt_fields2 by field_pos.
byte_first = 0.
loop at pt_fields2.
clear: field_val.
byte_last = pt_fields2-EXTLEN.
write int_edidd-sdata+byte_first(byte_last) to
field_val left-justified.
shift pt_fields2-EXTLEN left deleting leading '0'.
shift pt_fields2-byte_first left deleting leading '0'.
shift pt_fields2-byte_last left deleting leading '0'.
write:/ ' ', pt_fields2-fieldname,
pt_fields2-datatype,
pt_fields2-EXTLEN,
pt_fields2-byte_first ,
pt_fields2-byte_last,
pt_fields2-descrp,
field_val.
read table pt_fvalues2 with key fieldname = pt_fields2-fieldname
fldvalue_l = field_val.
add byte_last to byte_first.
if sy-subrc = 0.
write : pt_fvalues2-descrp.
else.
clear pt_fvalues2-descrp.
endif.
if d_excel = 'X'.
concatenate tab_cr pt_fields2-fieldname tab_cr
pt_fields2-datatype tab_cr
pt_fields2-EXTLEN tab_cr
pt_fields2-byte_first tab_cr
pt_fields2-byte_last tab_cr
pt_fields2-descrp tab_cr
field_val tab_cr
pt_fvalues2-descrp
into excel_tab.
append excel_tab.
endif.
endloop.
endloop.
ENDFORM. "" display_data_records
FORM read_idoc_structure.
data: idoctype type LEDID_IDOCTYPE.
if not idoc_control-cimtyp is initial.
STRUCT_TYPE = 'E'. ""Extended
idoctype = idoc_control-cimtyp.
else.
STRUCT_TYPE = 'B'. ""Basic
idoctype = idoc_control-idoctp.
endif.
CALL FUNCTION 'IDOC_TYPE_COMPLETE_READ'
EXPORTING
RELEASE = sap_rel
STRUCT_TYPE = STRUCT_TYPE
IDOCTYPE = idoctype
VERSION = pi_ver
* IMPORTING
* IDOC_TYPE = idoctype
TABLES
IDOC_STRUCT = idoc_struct
SEGMENTS = segments
SEGMENT_STRUCT = segment_struct
EXCEPTIONS
IDOCTYPE_UNKNOWN = 1
IDOCSTRUCT_UNKNOWN = 2
SEGMENT_DATA_MISSING = 3
ILLEGAL_STRUCT_TYPE = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "" read_idoc_structure
FORM download_to_excel.
data: name like RLGRAP-FILENAME.
shift docnum left deleting leading '0'.
concatenate docnum '-' idoc_control-idoctp '.xls'
into name.
CALL FUNCTION 'RH_START_EXCEL_WITH_DATA'
EXPORTING
DATA_NAME = name
DATA_TYPE = 'ASC'
WAIT = ' '
TABLES
DATA_TAB = excel_tab
EXCEPTIONS
NO_BATCH = 1
EXCEL_NOT_INSTALLED = 2
WRONG_VERSION = 3
INTERNAL_ERROR = 4
INVALID_TYPE = 5
CANCELLED = 6
DOWNLOAD_ERROR = 7
OTHERS = 8
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "" download_to_excel
Regards
Sudheer -
Retriving the employee information using LDAP
How could I get all the entries in LDAP that matches entries with first name or second name or the employee number(if user the number for sure).
Any sample program would help more.
thanksThanks for reply!
Actualy I am trying to retrieve the Prefernces ( Community Preference, User Preference, Administrative Preference ) values in a custom Tag.
But I did not find any way in native APIs to retrieve the preferences.
So I was wondering if somehow I can established a remote session using IDK to retrieve the same. -
Invoke-Command and $using:ACL problem
Hi,
Can anyone point me in the right direction.
I want to modify and ACL on a remote server, but i cannot assign a variable inside the invoke-command where i'm also refferencing an local variable.
When the first invoke-command is ran i get an error:
A Using variable cannot be retrieved. A Using variable can be used only with Invoke-Command, Start-Job, or InlineScript
in the script workflow. When it is used with Invoke-Command, the Using variable is valid only
if the script block is invoked on a remote computer.
$DriveFunctionDirectoryStructure="z:\projects\1"
Invoke-Command
-Session$s-ScriptBlock{$acl=get-acl$using:DriveFunctionDirectoryStructure}
Invoke-Command
-Session$s-ScriptBlock{$acl.SetAccessRuleProtection($using:True,$using:ToggleAccessRuleFlag)}
Invoke-Command
-Session$s-ScriptBlock{Start-Sleep-Seconds5}
Invoke-Command
-Session$s-ScriptBlock{$rule=New-ObjectSystem.Security.AccessControl.FileSystemAccessRule("localdomain\$using:groupName","$using:AccessOption","ContainerInherit,
ObjectInherit","None","Allow")}
Invoke-Command
-Session$s-ScriptBlock{$acl.AddAccessRule($rule)}
Invoke-Command
-Session$s-ScriptBlock{Set-Acl$using:DriveFunctionDirectoryStructure$acl}Hi RFalken,
you can use the -ArgumentList parameter of Invoke-Command like this:
$script = {
Param (
$Parameter1,
$Parameter2
Invoke-Command -ScriptBlock $script -ArgumentList @(2,42)
Cheers,
Fred
There's no place like 127.0.0.1 -
My customer customizes WCI pages using IDK APIs.
They have some problem to check user/community information using following APIs:
ICommunityManager.querySingleObject()
IObjectQueryRow.getExtendedData()
IUserManager.getCurrentUserGroups()
ICommunityManager.queryACL()
These APIs' performance are bad in the customer's environment.
Each API costs about one second, so the top page will be displayed
7 or 8 seconds later after the users login to WCI.
So my customer asks me a workaround.
Is there any alternatives of these APIs to get user/community information?
Best Regards.
thosoyaYou might what to check portal source version 6.5, there is Activity Space called Ajax. Based on this example you could write something similar that will fit to your needs.
There is also another option maybe even better: custom tags. Anyhow try to check documentation because with OOTB tags maybe you achieve your goal. -
Retriving Portlet preference information using a custom tag
Hi ,
I am trying to create a custom tag which will be used to retrieve portlet prefrence information (administrative pref, community pref, user pref etc.).
In the displayTag method i am not able to create the Portlet request object.
I am getting the IEnvironment reference by calling the method GetEnvironment().
IEnvironment has methods called currentHTTPRequest() and currentHTTPResponse() which returns IXPRequest and IXPResponse object,
But to create a portlet context I need HTTPRequest and HTTPresponse.
If some one is aware of any other method for creating the portlet context from IXPRequest and IXPResponse object. please share as it will be of great help.
Thanks in advance!!Thanks for reply!
Actualy I am trying to retrieve the Prefernces ( Community Preference, User Preference, Administrative Preference ) values in a custom Tag.
But I did not find any way in native APIs to retrieve the preferences.
So I was wondering if somehow I can established a remote session using IDK to retrieve the same. -
Want to add a prepopulated User defined field in create user form
Hi,
I have an entity adapter which will perform a pre-insert check on the user group of the user logged in to the oim.
If the logged in user belongs to a group say "IT ADMIN", another validation check will be imposed on the create user action performed by him.
If not from "IT ADMIN" group then create user action will be handled normally.
Now the catch is, how would I determine the group name of the user logged in from the adapter code I have written?
I decided to keep an User defined field "Created by" in the create user form which will be non-editable and auto-prepopulated with the group name of the logged in user. This way I will be able to map the variable field from the User definition drop down list while mapping the adapter variables.
May you please guide me how I can achieve this?
Would highly appreciate suggestion/inputs.Thanks for all your replies!
However I am still in dark.
I tried to retrieve the groupname using tcUSerOperationsIntf. But iit tries to retrieve the group name of the user getting created.
Please note, the group name I want is not of the user yet to get created, but that of the user creating it i.e., the logged in user.
My requirement is to have this created_by field in the create user form already prepopulated with the group name of the logged in user.
So that I can put a check based on this field value in the netity adapter.
If the group is IT ADMIN then proceed with the validation.
Else no validation required.
In short, I want to know,how can I auto-prepopulate a UDF in Create USer form? -
All,
Is there any Crawler for crawling files from Solaris File System, similar to Windows Crawler? I know we can develop one, but just wanted to check if there is one available already.
Thanks,
BharatHi Bharat,
There is no such crawler for Solaris out-of-the-box. You are right, we can write custom crawlers using IDK.
The workaround would be share the folders thru Samba and map it as a Windows Drive, then run the NT File crawler against the mapped drive.
I think SES has the ability to index files on *NIX file system.
BTW: Sun is introducing ZFS into new version of Solaris, take this into account if you decide to do that. -
Can a RVL200 connect to BEEVPN with this config?
Hi all,
Hope someone can help me get clear on this. I'm in doubt whether I should buy a RVL200. I'm no expert in VPN or routers.
I would like to know whether or not I can use a RVL200 to establish an Ipsec tunnel to BEEVPN-service (beevpn.com).
They themselves use cisco equipment to connect to their customers.
They request the following configuration of me:
Server: use "*****.beevpn.com"
Account/Login/Username: Use your beevpn username.
Password: Use your beevpn password.
Group/Groupname: use "*******"
Shared key/Shared secret: use "*******"
Can I config the RVL200 to those requirements? Then i'll happily buy one
Regards
KaspermathiasI checked my 4 extremes and found that the 3 mac mini's, 2 powerbook's, 1 imac, and 1 xserve do connect to the closest extreme.
I have 1 extreme in the middle of the 2nd floor as the gateway. An extreme on the third floor for 2 mac mini's, an extreme on the far end of the second floor for an imac and a powerbook, and extreme on the 1st floor for a mac mini, powerbook, and xserve.
One item for consideration to help control access is by manipulating the min connect speed dialog box. The default is 1 mb. Up that number until your clients become ineligble to connect to distant routers. As cleints move away from routers, their connection speed reduces. -
Remote exception while fetching information from ALI collaboration 4.5
We have seen a remote exception recurring from IDK api while accessing collaboration service.
It says :
“java.rmi.RemoteException: Unexpected fault was returned by the server (faultcode: Server.userException, faultstring: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.).
at com.plumtree.remote.prc.collaboration.project.ProjectManagerWrapper.queryProjects(ProjectManagerWrapper.java:177)”
we are using idk api 6.0 to fetch information from ali collaboration 4.5 concurrently.
Please guide usFirst and foremost question....do you think is this THE ONLY & BEST possible way to implement your business logic ? To me it seems this can be achieved using much less code...more the code, more the chances of errors, difficult to debug and difficult to maintain...
Anyways, it is quite difficult to pinpoint the error without the knowledge of underlying table structure and data. Here are some observations...
In your outermost loop, you are doing this:
FETCH cur_accdetail BULK COLLECT INTO vl_t_LogDate; If this step yields data, you are populating vl_t_ModStEnDate collection.
However, if FETCH results into an exception (maybe NO_DATA_FOUND), you are writing the error to a file and program CONTINUES.
In next logic, you are directly refereing to vl_t_ModStEnDate collection, without verifying whether it is populated. THAT MAY BE THE CULPRIT. NO CLAIMS...JUST GUESSES....
BUT, I sincerely request you to revisit your requirement and see if you really need to have this much code to address the same.
p.s. If you feel you don't have that much time (close deadlines etc...), take my word, it will be worth doing it now. -
User preferences, community properties caching
Hi,
I would like to know if user preferences, and community property values are cached by ALUI internally or they are retreived from database every time a request is made to retreive these values using IDK API. We have a requirement to retrieve user preference values and act up on them in each portal page. We are trying to evaluate how costly this could be and how it can have impact on response time of the page.
Thanks.To understand better internal caching mechanism it's necessary to realize how portal cache portlets. Take a look on this link: [http://edocs.bea.com/alui/devdoc/docs60/Portlets/Basics/PlumtreeDevDoc_Portlets_Caching.htm]
Class(java version of the portal) responsible for reading this kind of informations is CSPPortletProviderConfig, I think portal will try to read those info every time when cache key is not matched for connected user. -
How to query for content type in plumtree?
Hi,
I am able to browse through the documents in knowledge directory and their properties programmatically using IDK. Here I am getting document property ids and their values, but not property name?
Can anybody suggest me how to get property names for a given document in knowledge directory?
Regards,
GRemoteSession.getObjectManager(ObjectClass.Property)
ObjectManager.querySingleObejct(id)
theObject.getName()
is that what you mean?
Edited by: Joel Collins on Dec 5, 2008 5:57 AM -
BEA public API (WLS6.1)for programatically updating default security realm?
Hi,
Does anyone know how to use BEA's public API to programmatically add/update WLS
6.1 user credentials in the default security realm? The API would of course
automatically persist the updates to $WLS/config/mydomain/fileRealm.properties.
Is there a way to do such updates by programmatically engaging the WLS security
realm related Mbeans? I basically need to do (from a deployed application component)
what is easily done from the WLS Console's [security->User->Add User/Change
Password] screen. Ideally, I could use the same API that the weblogic.security.acl.internal.FileRealm
command line utility (or wlshell also) uses to make updates. But I doubt that
the classes used by these tools are in BEA's public API for WLS 6.1. Especially
important to me would be the BEA API mechanism that takes a clear-text password
and hashes it to the encrypted format written in fileRealm.properties (and synchronized
w/ SerializedSystemIni.dat). Ultimately, I am trying to replicate a large
Oracle table of (*user, clear-text -password, group) records into the default
WLS security realm. Thanks for any insights.
BenThanks to another's post, I have found the answer to my problem in the Girdley/Woollen/Emerson
book "J2EE Applications and BEA WebLogic Server" pp. 496-498:
Note: this code segment is for WLS 6.1 and this API is said to be deprecated
in WLS 7+
//Roughly outlined, assuming session w/ userName, groupName, password Strings
in HTTP Post request
weblogic.security.acl.CachingRealm realm = (weblogic.security.acl.CachingRealm)
weblogic.security.acl.Security.getRealm();
weblogic.security.acl.User u;
weblogic.security.acl.Group g;
u = realm.newUser(userName, password, null);
g = realm.getGroup(groupName); // use g = realm.newGroup(groupName) if groupName
does not exist in realm
g.addMember(u);
//log in the new user
int rc = weblogic..servlet.security.ServletAuthentication.weak(userName, password,
httpSession);
// use realm.deleteUser(u), realm.deleteGroup(g) as appropriate, etc.
"Ben Cotton" <[email protected]> wrote:
>
>
Hi,
Does anyone know how to use BEA's public API to programmatically add/update
WLS
6.1 user credentials in the default security realm? The API would of
course
automatically persist the updates to $WLS/config/mydomain/fileRealm.properties.
Is there a way to do such updates by programmatically engaging the
WLS security
realm related Mbeans? I basically need to do (from a deployed application
component)
what is easily done from the WLS Console's [security->User->Add User/Change
Password] screen. Ideally, I could use the same API that the weblogic.security.acl.internal.FileRealm
command line utility (or wlshell also) uses to make updates. But I
doubt that
the classes used by these tools are in BEA's public API for WLS 6.1.
Especially
important to me would be the BEA API mechanism that takes a clear-text
password
and hashes it to the encrypted format written in fileRealm.properties
(and synchronized
w/ SerializedSystemIni.dat). Ultimately, I am trying to replicate
a large
Oracle table of (*user, clear-text -password, group) records into the
default
WLS security realm. Thanks for any insights.
Ben -
Post Author: jalmeida
CA Forum: Formula
I have a report that is made up of two groups; grouper 1, then grouper 2. I supress the details section, and group footers. The report is being used as table of contents(sub report) at the beginning of my main report. When this report is run there is always a set amount of groupnumbers (grouper 2) that I want on the page: 30. The reason I do this is so I can use two of these reports to appear as columns, and the gh2 data corresponding to its gh1 is not split between the two pages. Unfortunately, every now and again when the data is read in two grouper 2's are not included, because they don't exist; therefore I want to suppress if groupnumber > 28 instead of when groupnumber > 30. Here is a picture of what I am talking about:
The highlighted numbers on the left represent groupnumber which is there only for formatting purposes.
I have tried the following formula with no luck:
If GroupName ({TOCBatch.Grouper1}) = "BondEdge Reports" thengroupnumber > 28elsegroupnumber > 30
Please Help!by restricting authorizations? check object M_MATE_STA whether this fullfills your requirements.
Maybe you are looking for
-
How do I add multiple pictures to email?
how do I add multiple pictures to email?
-
My itouch is making me mad and i don't know what to do????
So my itouch is my most favorite device. Except now it is giving me trouble. When I go into facebook or any of my apps i can go in it for about ten to fifteen minutes then the screen black outs and then sends me back to the home page. How can i go an
-
Edit a smart object by a deformation in photoshop
Edit a smart object by a deformation in photoshop Hello I'd like to know if it is possible to edit a smart object by deformation (type rotation..) (in A dynamic layer above another layer (a round for example) when I apply a rotation of the round cela
-
After going through the config on one of our switches I noticed some QoS settings that I have no idea what they mean and was wondering if someone could help me understand what these settings mean. Here is the config I found plus the config on one of
-
Need to increase the font size of SAP printer
Hi all, We had some new HP printers HP4015 which needs to print from SAP . we created the new device type ZHPLJCM1 after checking correct device type for it from HP printer site. For some users printouts are coming in small fonts ,they wanted it to p