on 12-24-2013 5:21 AM
Dear Friends,
I have existing group (Group Test) in Portal. This group having Roles, Parent groups, Child groups and Users.
My requirement is:-
I need to change/rename the existing group from (Group Test) to (Group XYZ).
1. How to change/rename the Group name? :- by using Webdynpro JAVA.
2. If change/rename the group name. By default Roles, Parent groups, Child groups and Users, it will come under new group or not?
3. If not:- how to assign Roles, Parent groups, Child groups and Users under new group by using webdynpro JAVA?
Regards
Chowdary.
creating a new group, copy all the data from the old group to the new group, and delete the old one
Create New group:
iGroup = groupFactory.newGroup(wdContext.currentContextElement().getNewGrpwithPermission());
iGroup.commit();
copy all the data from the old group to the new group
String newGroupUniqueID = iGroup.getUniqueID();
newGroupUniqueName = iGroup.getUniqueName();
iGroup = UMFactory.getGroupFactory().getGroup(selectedOldGroupUniqueID);
Iterator getOldRole = iGroup.getRoles(true);
while (getOldRole.hasNext()) {
String oldRoleName = (String) getOldRole.next();
IGroup newGroup = groupFactory.getGroup(newGroupUniqueID);
newGroup.addToRole(oldRoleName);
newGroup.save();
}
like that will get remaing data
delete the old one
IResourceAclManager ram = asm.getAclManager();
IResourceAcl ra = ram.getAcl(resource);
ra.removeEntry(acl); //remove the Group mapping
Regards
Vijay K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1. How to change/rename the Group name? :- by using Webdynpro JAVA.-
Ans:- Not Possible by using Webdynpro JAVA.
You can perform following steps to change/rename the Group Name in SAP Portal :-
2. If change/rename the group name. By default Roles, Parent groups, Child groups and Users, it will come under new group or not?
Ans:-If change/rename the group name By default Roles, Parent groups, Child groups and Users, it will come under new group as in MS Excel you are not changing those.
3. If not:- how to assign Roles, Parent groups, Child groups and Users under new group by using webdynpro JAVA?
Ans:-Not Required
Thanks,
Patralekha Sur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, actually you can "rename" a Portal group using Web Dynpro Java, but this also involves creating a new group, copy all the data from the old one into the new one, and delete the old one.
Use the IGroupFactory interface for creating and deleting groups, and the IGroup interface for copying the data from the old group to the new one.
Best,
Robin
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.