Programatic session property set updates
I have created a session property set user.ses
with a property user_type
How do I modify a property from a page flow controller.
session.setAttribute("user_type","value") doesn't seem to have any effect when used with an entitlement role.
I also tried user/user_type as the attribute name.
When I dump the session attributes I don't see a property set called user.
Any help would be appreciated since the documentation doesn't really address how to do this.
Thank you, deepshet. Now, it works perfectly.
Similar Messages
-
Session property set not updating in Portal Admin console
Hello,
We have a Portal application running on 10 MP1. Included in the EAR file is a session property set and is correctly stored in the right directory (META-INF/data).
When deployed, I can view our session properties when I try to create some entitlements and expressions. However, we need to update the name of one property and when we redeployed the EAR with an updated session property file, in the Portal Admin console, the session property still has the old name.
This happens on one of our environments, but does not happen on my local machine. On my local machine, when I look at the database, the DATA_SYNC_ITEM table is empty. But on our other environment (where the problem exists), in the database I can see relevant entries for my app and property file in the DATA_SYNC_ITEM table.
Does anyone have any ideas why this table is not populated on my local machine and why I can't seem to update the session property file on my other environment where the table is populated?
Any help would be much appreciated.
Thanks,
JonathanProbably either development mode /prodiction mode differences or differences between deploying as an exploded ear (local) and a compressed ear (in your environment that doesnt work). The easiest way is to propagate the changes from your local to the other environment (you can scope it to just session properties)
http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/prodOps/propToolAdvanced.html -
Updating a session property set
Hi,
How can I update a session property set?
I can get my properties like this: <%= session.getProperty("test_set", "groups")
%>
But how do I update the same set. The documentation does not mention this...
Is it possible to um? I did not get it to work.
But maybe I did something wrong.
<um:getProperty id="getResult" propertySet="test" propertyName="groups_test"/>
The above returned null.
But after updating it with:
<um:setProperty propertySet="test" propertyName="groups_test" value="<%= list
%>" result="setResult"/>
It returned something.
br,
ChrisA correction: It appears that it is being set but, as the pageflow action forwards to the success page the entitlement isn't taking effect until I refresh the page I forward to.
Any ideas on why the entitlement requires a refresh on the forwarded page? -
How to update Session property set.
Hi,
How can I update a session property set?
I can get my properties like this:
<%= session.getProperty("test_set", "groups") %>
But how do I update the same set.
The documentation does not mention this...
br,
ChrisChris wrote:
Hi,
How can I update a session property set?
I can get my properties like this:
<%= session.getProperty("test_set", "groups") %>
But how do I update the same set.
The documentation does not mention this...
br,
ChrisI am not sure what you want, but you can add properties to the session
property set in the EBCC, by adding custom properties. You should then
be able to retrieve them programmatically.
Jalpesh -
Hi,
How can I update a Session property set from a JSP page?
I can get the properties with the following code:
com.bea.p13n.http.Session s = new com.bea.p13n.http.Session(request.getSession());
out.println(s.getProperty("TestSet", "TestProperty"));
This prints the default TestProperty values but how can I update the same Session property set?
Do I have to use PropertySetManager?
br,
ChrisHi,
How can I update a Session property set from a JSP page?
I can get the properties with the following code:
com.bea.p13n.http.Session s = new com.bea.p13n.http.Session(request.getSession());
out.println(s.getProperty("TestSet", "TestProperty"));
This prints the default TestProperty values but how can I update the same Session property set?
Do I have to use PropertySetManager?
br,
Chris -
Session Property Set not available in Portal Administration Console
We have a Portal Application (WLP 10.0 MP1) that needs to have visitor entitlements applied to allow some customization based upon a Session Property Set. The property set has been defined in Workshop and the .ses file is now included in our Portal EAR file in the /META-INF/data directory. When the EAR is deployed on a local (winXP) domain the property set is then available in the portal admin console and can be used to build entitlements. When the EAR is deployed to our test server (Solaris 10) the property set does not become available in the portal admin console. Both servers are in development mode and already have a previous version of the EAR deployed in streaming mode.
Is there anything obvious that needs to be done to ensure that a property set is enabled when deploying a new EAR?We are actually performing the portal EAR build using maven but are creating the same directory layout as is created by Workshop when a data sync project is used and an EAR exported, i.e. the contents of the data sync project ends up in the EAR /META-INF/data directory.
The mystery here is that the property set correctly deploys in one environment but not in another. I'd really like to know whether there are any particular tricks to the property set deployment and what the deployent process actually does. Could issues with the target environment prevent correct deployment of the property set? -
How to set updatable property of view object on runtime
Hello Gurus,
I am new in adf and using jdev 11.1.2.3.
I have two view object which has view link and they are based on entity object. In master view i have a column with the name of status. The target is if the value of status is 'active' then i want to allow add rows in detail view and if it is inactive then wants to disable adding or editing in the detail view.
I don't know how to do this. I don't know how to get the other view object and how to set update able property and where to write code in entity object class or view object class.
Any advice................
Thanks in AdvanceThere are multiple possible ways to archive this. As the VOs are in a master-detail relationship, you can opt to add a navigation method to the child back to the parent. This method can be accessed via java or groovy to allow the child access to the master row. Once the child has access you can use this to ask the master for it's status and if it's not active disable the edit and update buttons.
If both master and detail are on the same page in the ui, there is an easier way. Drag the status attribute from the master table onto the page as e.g. inputText. This will create a binding for the attribute which changes if you select a row in the master table. As you don't need to inputtext, switch to the source mode of the page and delete it. This will remove the inputtext put keep the binding. Now you can use hte binding in an EL to set the disable property of other components to true like
<af:commandButton text="commandButton 1" id="cb1" disabled="#{bindings.masterstatus.inputValue ne 'active'}"/>
The button will only be active it the binding for masterstatus is active.
Timo -
Hello All:
I am looking for a way to deploy a property set file; joedoe.usr to Weblogic Portal 8.1. Has anyone successfully deployed a property set file (including the UUP ejb that uses it) to WebLogic outside of Workshop? If so, can you provide steps to do so?
FYI, I created a property set file and added to my ear in the META-INF directory. When I deploy my ear to Weblogic, I can see my portal application and all the portal resources in the Portal Admin. However, I do not see my "custom" property set when editing a user. My constraint is that my application must not use Workshop to create and deploy.
Thank you,
SouthinHi Deepak:
Thank you for replying to my message. Unfortunately, the example the BEA does not work for me. Yes my corporateProfile.usr is in the data/userprofiles folder where the CustomerProperties.usr resides. My custom ejb that extends extends com.bea.p13n.property.EntityPropertyManager is successfully deployed, however I cannot see the property set that I created in the Portal Admin console.
Attached are my weblogic-ejb-jar.xm and ejb-jar.xml files that I edit after following the instructions for "Deploy a ProfileManager That Can Use the New EntityPropertyManager." Does anyone see something wrong?
------------------------ ejb-jar.xml -------------
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC
'-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN'
'http://java.sun.com/dtd/ejb-jar_2_0.dtd' >
<ejb-jar>
<enterprise-beans>
<!-- TrackedAnonymous EJB -->
<entity>
<ejb-name>TrackedAnonymous</ejb-name>
<home>com.bea.p13n.usermgmt.profile.TrackedAnonymousHome</home>
<remote>com.bea.p13n.usermgmt.profile.TrackedAnonymous</remote>
<ejb-class>com.bea.p13n.usermgmt.profile.internal.TrackedAnonymousBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>TrackedAnonymousBean</abstract-schema-name>
<cmp-field>
<field-name>anonymousUserId</field-name>
</cmp-field>
<cmp-field>
<field-name>lastVisited</field-name>
</cmp-field>
<primkey-field>anonymousUserId</primkey-field>
<ejb-local-ref>
<description>Reference to TrackedPropertySet EJB</description>
<ejb-ref-name>ejb/TrackedPropertySet</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.bea.p13n.property.TrackedPropertySetHome</local-home>
<local>com.bea.p13n.property.TrackedPropertySet</local>
<ejb-link>TrackedPropertySet</ejb-link>
</ejb-local-ref>
</entity>
<!-- Tracked Property Set EJB -->
<!-- Local interfaces for this one only, because it's referred to only by TrackedAnonymous.
The relationships bewteen these two EJBs are defined in the 'relationships' attribute at
the end of this file. -->
<entity>
<ejb-name>TrackedPropertySet</ejb-name>
<local-home>com.bea.p13n.property.TrackedPropertySetHome</local-home>
<local>com.bea.p13n.property.TrackedPropertySet</local>
<ejb-class>com.bea.p13n.property.internal.TrackedPropertySetBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>TrackedPropertySetBean</abstract-schema-name>
<cmp-field>
<field-name>anonymousPropertyId</field-name>
</cmp-field>
<cmp-field>
<field-name>anonymousUserId</field-name>
</cmp-field>
<cmp-field>
<field-name>propertySetName</field-name>
</cmp-field>
<cmp-field>
<field-name>propertyName</field-name>
</cmp-field>
<cmp-field>
<field-name>propertyValue</field-name>
</cmp-field>
<primkey-field>anonymousPropertyId</primkey-field>
<!-- Find all property sets with the same anonymous user id. This gives us all property sets associated with a single
TrackedAnonymous EJB -->
<query>
<query-method>
<method-name>findByAnonymousUserId</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>SELECT OBJECT (a) FROM TrackedPropertySetBean a WHERE a.anonymousUserId = ?1 </ejb-ql>
</query>
</entity>
<!-- PropertySetManager EJB -->
<session>
<ejb-name>PropertySetManager</ejb-name>
<home>com.bea.p13n.property.PropertySetManagerHome</home>
<remote>com.bea.p13n.property.PropertySetManager</remote>
<ejb-class>com.bea.p13n.property.internal.PropertySetManagerImpl</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<env-entry>
<env-entry-name>repository/CONTENT</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>com.bea.content.manager.propertysets.PropertySetRepositoryImpl</env-entry-value>
</env-entry>
<!-- following are mappings from file extension to property set type -->
<env-entry>
<env-entry-name>extension/clg</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>CATALOG</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>extension/evt</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>EVENT</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>extension/req</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>REQUEST</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>extension/ses</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>SESSION</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>extension/usr</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>USER</env-entry-value>
</env-entry>
<!-- the ejb/ContentManagers branch is for the
com.bea.p13n.content.PropertyRepositoryImpl
-->
<ejb-ref>
<ejb-ref-name>ejb/ContentManagers/Document</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.bea.p13n.content.document.DocumentManagerHome</home>
<remote>com.bea.p13n.content.document.DocumentManager</remote>
<!-- FIXME. Eventually need to rework user manager stuff so we can do this. For now, the DocumentManager
is in weblogic-ejb-jar.xml, where it is deployed only if it is referenced.
<ejb-link>wps.jar#DocumentManager</ejb-link> -->
</ejb-ref>
</session>
<!-- EntityPropertyManager EJB -->
<session>
<ejb-name>EntityPropertyManager</ejb-name>
<home>com.bea.p13n.property.EntityPropertyManagerHome</home>
<remote>com.bea.p13n.property.EntityPropertyManager</remote>
<ejb-class>com.bea.p13n.property.internal.EntityPropertyManagerImpl</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-ref>
<ejb-ref-name>ejb/PropertySetManager</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.bea.p13n.property.PropertySetManagerHome</home>
<remote>com.bea.p13n.property.PropertySetManager</remote>
<ejb-link>PropertySetManager</ejb-link>
</ejb-ref>
<resource-ref>
<res-ref-name>jdbc/commercePool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</session>
<!-- Ldap Property Manager
To use this, uncomment it here as well as in weblogic-ejb-jar.xml.
Configure the LDAP connection and settings using the env-entry values (see descriptions below).
Do not forget to uncomment the ejb-link and method-permission tags for the LdapPropertyManager.
An easy way to ensure you don't miss anything is to search for "ldap" (case-insensitive) here AND in
weblogic-ejb-jar.xml. Search from the beginning to the end of the file.
<session>
<ejb-name>LdapPropertyManager</ejb-name>
<home>com.bea.p13n.usermgmt.profile.ldap.LdapPropertyManagerHome</home>
<remote>com.bea.p13n.usermgmt.profile.ldap.LdapPropertyManager</remote>
<ejb-class>com.bea.p13n.usermgmt.profile.ldap.internal.LdapPropertyManagerImpl</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<env-entry>
<description>Use SSL to connect to ldap server</description>
<env-entry-name>config/useSSL</env-entry-name>
<env-entry-type>java.lang.Boolean</env-entry-type>
<env-entry-value>false</env-entry-value>
</env-entry>
<env-entry>
<description>LDAP Server URL</description>
<env-entry-name>config/serverURL</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>ldap://server.company.com:389</env-entry-value>
</env-entry>
<env-entry>
<description>Principal name to use when connecting to the ldap server (optional).
Anonymous bind will be used if not specified. This entry will be
ignored if config/credentialMBeanName is set below. </description>
<env-entry-name>config/principal</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>uid=admin, ou=Administrators, ou=TopologyManagement, o=NetscapeRoot</env-entry-value>
</env-entry>
<env-entry>
<description>The password of the principal specified above (required if principal set). This
entry is ignored if config/credentialMBeanName is set below.</description>
<env-entry-name>config/principalCredential</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>weblogic</env-entry-value>
</env-entry>
<env-entry>
<description>The name of the Credential MBean in application-config.xml that will
be used to store the principal's username and principal's password. The password
will be stored in an encrypted form. This is the principal/credential used to bind to
the LDAP server. The password will be decrypted before it is used to bind to the
LDAP server.
Using this entry will override anything set for the config/principal and
config/principalCredential. If this entry and config/principal and
config/principalCredential are not specified then anonymous bind will be used.
(this entry is optional)</description>
<env-entry-name>config/credentialMBeanName</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>LdapPropertyManager</env-entry-value>
</env-entry>
<env-entry>
<description> The location(s) of users in the ldap directory.
There can be one or more user DNs. The entries are named like this:
config/userDN
config/userDN-1
config/userDN-2
and they are searched in that order.
If there is only one, then it must be config/userDN
Typical values:
ou=People,o=company.com
ou=People,dc=mycompany,dc=com
</description>
<env-entry-name>config/userDN</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>ou=People,o=company.com</env-entry-value>
</env-entry>
<env-entry>
<description> The location(s) of groups in the ldap directory
There can be one or more group DNs. The entries are named like this:
config/groupDN
config/groupDN-1
config/groupDN-2
and they are searched in that order.
If there is only one, then it must be config/groupDN
Typical values:
ou=Groups,o=company.com
ou=Groups,dc=mycompany,dc=com
</description>
<env-entry-name>config/groupDN</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>ou=Groups,o=company.com</env-entry-value>
</env-entry>
<env-entry>
<description>A boolean to enbable/disable SUBTREE_SCOPE searches for user/group properties
below the userDN(s) and groupDN(s). For example, if this property is true, then you could specify
the "config/userDN" env-entry as ou=People,dc=mycompany,dc=com and users that are in both
ou=PeopleA,ou=People,dc=mycompany,dc=com and in ou=PeopleB,ou=People,dc=mycompany,dc=com
could be used. A getProperty() call would return a value for the first user found in
the specified "config/userDN" or in any branch below it. This boolean also affects
searches for group properties. If multiple userDNs (or groupDNs) are specified then
this SUBTREE_SCOPE will apply to searches starting in all of those specified DNs.
</description>
<env-entry-name>config/objectPropertySubtreeScope</env-entry-name>
<env-entry-type>java.lang.Boolean</env-entry-type>
<env-entry-value>false</env-entry-value>
</env-entry>
<env-entry>
<description>The user attribute to map to a username
If there is only one, then it is applied to all userDNs.
If there is more than one, then they are applied, in order,
to the userDNs. If there is more than one, then the number must
match the number of userDNs.
The entries are named like this:
config/usernameAttribute
config/usernameAttribute-1
config/usernameAttribute-2
and they are used in that order.
If there is only one, then it must be config/usernameAttribute
</description>
<env-entry-name>config/usernameAttribute</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>uid</env-entry-value>
</env-entry>
<env-entry>
<description> The group attribute to map to a group name
If there is only one, then it is applied to all groupDNs.
If there is more than one, then they are applied, in order,
to the groupDNs. If there is more than one, then the number must
match the number of groupDNs.
The entries are named like this:
config/groupnameAttribute
config/groupnameAttribute-1
config/groupnameAttribute-2
and they are used in that order.
If there is only one, then it must be config/groupnameAttribute
</description>
<env-entry-name>config/groupnameAttribute</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>cn</env-entry-value>
</env-entry>
<env-entry>
<description>Flag to specify if LDAP attributes will be determined to be
single value or multi-value via the schema obtained from
the attribute. If false, then the attribute is stored as
multi-valued (a Collection) only if it has more than one value.
Leave false unless you intend to use multi-valued LDAP attributes
that may have only one value. Using true adds overhead to check the
LDAP schema. Also, if you use true beware that most LDAP attributes
are multi-value. For example, iPlanet Directory Server 5.x uses multi-value
for givenName, which you may not expect unless you are familiar with LDAP
schemas.
This flag will apply to property searches for all userDNs and all groupDNs.
</description>
<env-entry-name>config/detectSingleValueFromSchema</env-entry-name>
<env-entry-type>java.lang.Boolean</env-entry-type>
<env-entry-value>false</env-entry-value>
</env-entry>
<env-entry>
<description>Value of the name of the attribute in the LDAP schema that is used to
determine single value or multi-value (RFC2252 uses SINGLE-VALUE)
This attribute in the schema should be true for single value and false or
absent from the schema otherwise.
The value only matters if config/detectSingleValueFromSchema is true.
</description>
<env-entry-name>config/singleValueSchemaAttribute</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>SINGLE-VALUE</env-entry-value>
</env-entry>
<env-entry>
<description> Name for the cache used by the ldap property manager
If you deploy multiple LdapPropertyManager beans, you must set
the caches to different names to avoid collisions.
Defaults to "ldapPropertyCache" if unset.
</description>
<env-entry-name>config/ldapPropertyCacheName</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>ldapPropertyCache</env-entry-value>
</env-entry>
</session>
-->
<!-- Property Set Web Service EJB -->
<session>
<ejb-name>PropertySetWebService</ejb-name>
<home>com.bea.p13n.property.webservice.PropertySetWebServiceHome</home>
<remote>com.bea.p13n.property.webservice.PropertySetWebService</remote>
<ejb-class>com.bea.p13n.property.webservice.internal.PropertySetWebServiceImpl</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-ref>
<ejb-ref-name>ejb/PropertySetManager</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.bea.p13n.property.PropertySetManagerHome</home>
<remote>com.bea.p13n.property.PropertySetManager</remote>
<ejb-link>PropertySetManager</ejb-link>
</ejb-ref>
</session>
<!-- RulesManager EJB -->
<session>
<ejb-name>RulesManager</ejb-name>
<home>com.bea.p13n.rules.manager.RulesManagerHome</home>
<remote>com.bea.p13n.rules.manager.RulesManager</remote>
<ejb-class>com.bea.p13n.rules.manager.internal.RulesManagerImpl</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<env-entry>
<description>
This property will be used by RulesManagerImpl to create an instance of
the RuleSetRepository.
</description>
<env-entry-name>RuleSetRepositoryClassName</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>com.bea.p13n.rules.manager.internal.RuleSetPersistenceManager</env-entry-value>
</env-entry>
</session>
<!-- User Manager EJB -->
<session>
<ejb-name>UserManager</ejb-name>
<home>com.bea.p13n.usermgmt.UserManagerHome</home>
<remote>com.bea.p13n.usermgmt.UserManager</remote>
<ejb-class>com.bea.p13n.usermgmt.internal.UserManagerImpl</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<!-- ReservedUserNames is used to list all names (case insensitive)
that are restricted: the UserManager will not create users
with these names. The list is comma-delimited.
-->
<!--
<env-entry>
<env-entry-name>ReservedUserNames</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>foo,foo2</env-entry-value>
</env-entry>
-->
<!-- ProtectedUserNames is used to list all names (case insensitive)
that cannot be deleted through the UserManager (or portal tools).
The list is comma-delimited.
-->
<!--
<env-entry>
<env-entry-name>ProtectedUserNames</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>foo,foo2</env-entry-value>
</env-entry>
-->
<!-- The UserManager used programatic security to allow
users to modify their own data (where username == profileName)
or anyone in one of these (administrative) roles.
Used in the methods: setPassword and removeUser.
Other methods can be protected using declarative security.
Should at least include the WebLogic Admin role, if left empty
or mapped to "empty" roles, then no one will be able to admin
user profiles.
Each role listed here should also have a security-role-ref entry below -->
<env-entry>
<env-entry-name>AuthorizedRoles</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>Admin,PortalSystemAdministrator</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>disallowedUserCharacters</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>*,%</env-entry-value>
</env-entry>
<ejb-ref>
<ejb-ref-name>ejb/UserProfileManager</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.bea.p13n.usermgmt.profile.ProfileManagerHome</home>
<remote>com.bea.p13n.usermgmt.profile.ProfileManager</remote>
<ejb-link>UserProfileManager</ejb-link>
</ejb-ref>
<ejb-ref>
<ejb-ref-name>ejb/ProfileType/WLCS_Customer</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.bea.commerce.ebusiness.customer.CustomerProfileManagerHome</home>
<remote>com.bea.commerce.ebusiness.customer.CustomerProfileManager</remote>
<!-- FIXME. Can't do this without always deploying Customer. Eventually need
to rework user manager stuff so we can do this. For now, the CustomerProfileManager
is in weblogic-ejb-jar.xml, where it is deployed only if it is referenced.
<ejb-link>commerce.jar#CustomerProfileManager</ejb-link> -->
</ejb-ref>
<!-- Security role refs for roles listed in AuthorizedRoles -->
<security-role-ref>
<description>Portal system administrators</description>
<role-name>PortalSystemAdministrator</role-name>
<role-link>PortalSystemAdministrator</role-link>
</security-role-ref>
<security-role-ref>
<description>WLS System administrators</description>
<role-name>Admin</role-name>
<role-link>Admin</role-link>
</security-role-ref>
<resource-ref>
<res-ref-name>jdbc/commercePool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</session>
<!-- Group Manager EJB -->
<session>
<ejb-name>GroupManager</ejb-name>
<home>com.bea.p13n.usermgmt.GroupManagerHome</home>
<remote>com.bea.p13n.usermgmt.GroupManager</remote>
<ejb-class>com.bea.p13n.usermgmt.internal.GroupManagerImpl</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<!-- ProtectedGroupNames is used to list all names (case insensitive)
that cannot be deleted through the GroupManager (or portal tools).
The list is comma-delimited.
-->
<env-entry>
<env-entry-name>ProtectedGroupNames</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>Operators,Monitors,Deployers</env-entry-value>
</env-entry>
<ejb-ref>
<ejb-ref-name>ejb/GroupProfileManager</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.bea.p13n.usermgmt.profile.ProfileManagerHome</home>
<remote>com.bea.p13n.usermgmt.profile.ProfileManager</remote>
<ejb-link>GroupProfileManager</ejb-link>
</ejb-ref>
</session>
<!-- Realm Configuration EJB -->
<session>
<ejb-name>RealmConfiguration</ejb-name>
<home>com.bea.p13n.usermgmt.config.RealmConfigurationHome</home>
<remote>com.bea.p13n.usermgmt.config.RealmConfiguration</remote>
<ejb-class>com.bea.p13n.usermgmt.config.internal.RealmConfigurationImpl</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-ref>
<ejb-ref-name>ejb/GroupProfileManager</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.bea.p13n.usermgmt.profile.ProfileManagerHome</home>
<remote>com.bea.p13n.usermgmt.profile.ProfileManager</remote>
<ejb-link>GroupProfileManager</ejb-link>
</ejb-ref>
<ejb-ref>
<ejb-ref-name>ejb/UserProfileManager</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.bea.p13n.usermgmt.profile.ProfileManagerHome</home>
<remote>com.bea.p13n.usermgmt.profile.ProfileManager</remote>
<ejb-link>UserProfileManager</ejb-link>
</ejb-ref>
</session>
<!-- User Profile Manager-->
<session>
<ejb-name>UserProfileManager</ejb-name>
<home>com.bea.p13n.usermgmt.profile.ProfileManagerHome</home>
<remote>com.bea.p13n.usermgmt.profile.ProfileManager</remote>
<ejb-class>com.bea.p13n.usermgmt.profile.internal.UserProfileManagerImpl</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<!-- map all properties in property set ldap to ldap server -->
<env-entry>
<env-entry-name>PropertyMapping/ldap</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>LdapPropertyManager</env-entry-value>
</env-entry>
<!-- map all properties in corporateProfile property set to CorporateProfileManager -->
<env-entry>
<env-entry-name>PropertyMapping/corporateProfile</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>CorporateProfileManager</env-entry-value>
</env-entry>
<!-- The UserProfileManager used programatic security to allow
users to modify their own data (where username == profileName)
or anyone in one of these (administrative) roles.
Used in the methods: deleteProfile, removeProperty,
removeSuccessor, setProperty, and setSuccessor.
Other methods can be protected using declarative security.
Should at least include the WebLogic Admin role, if left empty
or mapped to "empty" roles, then noone will be able to admin
user profiles.
Each role listed here should also have a security-role-ref entry below --> -
Forms Personalization: FRM-41017- Cannot set UPDATE ALLOWED attribute error
Hey All,
I have a requirement in Projects > Allocation > Allocation Rules which needs a few mandatory columns to be greyed out.
I think that the form is not getting query-able because of the “FRM-41017- Cannot set UPDATE ALLOWED attribute of non-enabled item RULE.OFFSET_METHOD” error when we open the form.
I was trying to set the required property to false for personalization’s done on mandatory columns and see if that can work in suppressing that error. But it did not.
Can anyone help me by telling how to avoid this and make the form query-able?
Any help is much appreciated.
Thanks !Please post the details of the application release, database version and OS.
Please see if (Capital Projects Form Personalizations Error- FRM-41017 [ID 1072660.1]) helps.
Thanks,
Hussein -
Cannot attach User property set within a Rule set
Hi,
I cannot attach a user property set within a rule set. When i create a new
rule set in the tools it doesnt give me a field to attach a User property
set to a rule set. I dont get this.
I am using WLCS 3.2, cloudscape, WL 5.1 SP 6, Win2000.
Any help wud be greatly appreciated.Hello Kapil,
This is a good thing. Allow me to convince you. Prior to WLCS 2.0.1 sp1,
each rule set required that a property set be associated with it. Rules in
that rule set could only use properties from that property set. You could not
write a rule that used properties from multiple property sets. Therefore, it
was impossible to combine user/group, session, and request properties in
rules. It is a good thing that you don't have to associate a property set
with the rule set anymore.
kapil wrote:
Hi,
I cannot attach a user property set within a rule set. When i create a new
rule set in the tools it doesnt give me a field to attach a User property
set to a rule set. I dont get this.
I am using WLCS 3.2, cloudscape, WL 5.1 SP 6, Win2000.
Any help wud be greatly appreciated.--
Ture Hoefner
BEA Systems, Inc.
2590 Pearl St.
Suite 110
Boulder, CO 80302
www.bea.com -
How do I make a new property that I added to a property set show up in the portal
admin tool when I am editing a user?
I was able to do this in my dev environment. After that worked, I updated my EAR
file with the modified property set file (the .usr file) and redeployed the app
in my QA environment. When I go into the admin tool and try to edit the property
set for a user (in QA), I still don't see the new property. Is there anything
else I need to do? Any help would be appreciated. Thanks
Also, is there a way to add new properties to a property set thru the portal admin
tool? Or is editing the file thru workshop the only way? Thankshttp://e-docs.bea.com/wlp/docs81/deploy/deploy.html#1003633 for the
first problem. Since you have a compressed EAR, you'll need to flush the
JDBC repository to have it pick up the files from the EAR.
You can only change possible and default values through the admin portal.
Greg
Ramesh wrote:
How do I make a new property that I added to a property set show up in the portal
admin tool when I am editing a user?
I was able to do this in my dev environment. After that worked, I updated my EAR
file with the modified property set file (the .usr file) and redeployed the app
in my QA environment. When I go into the admin tool and try to edit the property
set for a user (in QA), I still don't see the new property. Is there anything
else I need to do? Any help would be appreciated. Thanks
Also, is there a way to add new properties to a property set thru the portal admin
tool? Or is editing the file thru workshop the only way? Thanks -
Hi,
I am learning ADF property set .According to the guide book, I wrote the following code :
AttributeDef fi = getDefinitionObject().getAttributeDef(FIRSTNAME);
String hello = (String)fi.getProperty("HELLOWORLD");
But in Debug i could not get the value , the value of "hello" is null;
And I set the property set in the attribute of the entity object.
TestPropertySet.xml:
<Properties>
<CustomProperties>
<Property
Name="Property"
ResId="HELLOWORLD"/>
</CustomProperties>
</Properties>
EmployeeEO :
<Attribute
Name="FirstName"
Precision="20"
ColumnName="FIRST_NAME"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="VARCHAR2"
TableName="EMPLOYEES"
Domain="com.mm.demo.model.entities.TestPropertySet">
JesseHi Timo,
My jdev version is 11.1.1.4.0 . And the name of the guide book I saw is Oracle ADF Real World Developer's Guide.
I reference book 75 .I have followed this example do:
public class EmployeeEOImpl extends EntityImpl {
* Sets value as the attribute value for Email.
* @param value value to set the Email
public void setEmail(String value) {
boolean updateAllowed = true;
//Read the UPDATE_CHECK_ENFORCED property
//for the Email field
String emailUpdateCheckEnforced =
(String)getDefinitionObject()
.getAttributeDef(EMAIL).getProperty("UPDATE_CHECK_ENFORCED");
//If the UPDATE_CHECK_ENFORCED is added to
//the attribute, then call
//custom isEmailUpdatable() to check if update is allowed.
//Call to isEmailUpdatable() may be expensive and
//we are doing it selectively using custom property.
if (("true".equals(emailUpdateCheckEnforced))) {
updateAllowed = isEmailUpdatable();
if (updateAllowed)
Introducing Entity Object
[ 76 ]
setAttributeInternal(EMAIL, value);
//Remaining EntityImpl code goes here...
Now ,I get the value with the name "Property". But Why the value come according to the Property and not according to the Key.
Because when I get the overview of my PropertySet , I point the green plus sign butto for the Custom Properties tab.
And then I set the Key 'HELLOWORLD' , but you tell me is the Property . So I was wondering , I thought the value is got By the Key. -
Get values from attributes of property sets
Hi!
Anyone know how to obtain values of attributes from property sets? Now I am using directly the EJBs but I would like to use tags (I found <ps:getPropertyNames> but it doesn´t give me the values) Any idea?
Thanks,
GuillermoGuillermo:
I am not sure if this is exactly what you mean but you can get the values of properties with the user management tags <um:getProperty> and <um:getPropertyAsString>. You are correct, though, in that the
<ps:getPropertyNames> tag only returns the names of the properties.
Ted
Guillermo wrote:
Hi!
Anyone know how to obtain values of attributes from property sets? Now I am using directly the EJBs but I would like to use tags (I found <ps:getPropertyNames> but it doesn´t give me the values) Any idea?
Thanks,
Guillermo -
11.1.2.2.000 Patch Set Update (PSU): 11.1.2.2.501 patch has been released
Hi, John!
I have already apply patch Patch 17529887: and redeploy RA, but workspace shows old version of RA Framework -
Setting up LDAP for authentication to portal:default property set named "ldap
Hi
I am trying to implement the LDAP authentication to WebLogic Portal .Iam went
thru the docmentation ( http://edocs.bea.com/wlp/docs40/p13ndev/users.htm#1131824).It
mentions using the default property set named "ldap" and deploying ldapprofile.jar.My
quenstion is:
-Is there a way to look into the property using EBCC
- Apart from deploying,configuring the ldapprofile.jar,do I have to do any additional
steps in order to make my portal(say,stockportal) authenticate users from LDAP?
-If a create my own portal,should I create a similar "ldap" property set?If so,how.
Any suggestions/help is appreciated.Thanks
- MikeThanks Dave.
"David Anderson" <[email protected]> wrote:
You should be able to view the property set for LDAP through the EBCC
if you
have the propertysetws.jar installed in your Portal domain. This provides
the ability for the EBCC to retrieve property set information from your
server.
Dave
"mike" <[email protected]> wrote in message
news:[email protected]...
Hi Adrian
Thank you for the pointers.Much appreciate it.However,one questionstill
persists.
What is the significance of the property set "ldap" mentioned in the
document(http://edocs.bea.com/wlp/docs40/p13ndev/users.htm#1131824).Where
does this property set feature vis-a-vis setting up LDAP securityrealm;does it
mater prior to/after the setting up as mentioned in the document pointeryou just
gave .
Is it sufficinet that i follow the procedure to set up the LDAP oris
there more
to post setting,like creating a property set (similar to "ldap" orcloning
it)
apaprt frpom deploying ldapprofile.jar.
Thanks.
- Mike
"Adrian Fletcher" <[email protected]> wrote:
Mike,
The documentation that covers LDAP authentication is listed under
Weblogic
Server rather than Weblogic Portal.
See Configuring the LDAP Security Realm in Managing Security
(http://e-docs.bea.com/wls/docs61////adminguide/cnfgsec.html#1071872)
Also take a look at the FAQ - Why can't I boot WebLogic Server whenusing
the LDAP Security Realm?
(http://e-docs.bea.com/wls/docs61//faq/security.html#25833)
Hope this helps,
Sincerely,
Adrian.
Adrian Fletcher.
Senior Software Engineer,
BEA Systems, Inc.
Boulder, CO.
email: [email protected]
"mike" <[email protected]> wrote in message
news:[email protected]...
Hi
I am trying to implement the LDAP authentication to WebLogic Portal.Iam
went
thru the docmentation
http://edocs.bea.com/wlp/docs40/p13ndev/users.htm#1131824).It
mentions using the default property set named "ldap" and deployingldapprofile.jar.My
quenstion is:
-Is there a way to look into the property using EBCC
- Apart from deploying,configuring the ldapprofile.jar,do I have
to
do any
additional
steps in order to make my portal(say,stockportal) authenticate usersfrom
LDAP?
-If a create my own portal,should I create a similar "ldap" propertyset?If so,how.
Any suggestions/help is appreciated.Thanks
- Mike
Maybe you are looking for
-
SAP B1 always not responding after install in Windows 7
Dear All experts, I have one client machine after change to Windows 7, the client SAP B1 always show not responding or seems like "freeze", cannot do any thing while user only open some marketing document. But the othes application like Ms Office or
-
Can't open mail as "dossiers de départ" is saturated
Hi there, When I try to open mail, I get a window saying it is impossible to do so as my "dossier de départ" (sorry, it's a French system) are saturated. It encourages me to "delete non necessary documents" or "move them to another volume" before try
-
HT1349 my itunes player is skipping?how can i resolve this issue??
my itunes player is skipping?how can i resolve this issue??
-
I lost my "recently added" file and can't get it back.
I lost my "recently added" folder and can't get it back.
-
The code generated by EJBC in Weblogic 5.1 is wrong!
I have a container managed bean that has a primary key named productLicenseId as follows: public class ProductLicenseBean implements EntityBean public int productLicenseId; I had this code running in Weblogic 4.5.1 and converted it to EJB 1.1 (now I