How to create weblogic Portal Group profile through Java API?
I am working on a custom UI for Weblogic Portal entitlements, for this i need to
add profile attributes to Portal Group. i use following code to add profile attributes
to a group. The code works but the attributes i have added don't show up in the
Weblogic Portal Console, and if i add any profile attribute to group through Weblogic Portal Console
i am not able to retrieve through my code. Look like there are different instances of Group used by
my code and Portal console
Here is my test code
// adding properties to group ProfileHelper.getInstance().createGroupProfile("Test sub group"); ProfileWrapper groupProfile = ProfileFactory.getProfile(null,"Test sub group", false); groupProfile.setProperty("groupProfile", "active", "Y"); //cannot see this property through portal console groupProfile.setProperty("groupProfile", "createDate", "20100928 11:11:24"); //retrieving profile properties from group ProfileWrapper groupProfile2 = ProfileFactory.getProfile(null,"Test sub group", false); out.println (groupProfile2.getPropertyAsString("groupProfile", "active")); // cannot retrieve property set through Portal console out.println (groupProfile2.getPropertyAsString("groupProfile", "createDate"));