Oracle Weblogic Server (MOSC)

MOSC Banner

How to create weblogic Portal Group profile through Java API?

edited Oct 1, 2010 4:24AM in Oracle Weblogic Server (MOSC) 1 commentAnswered
Hello everyone,

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"));
	
	
		

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center