Hi,
I am trying to get the information for an ON_ADD_USERS_TO_ROLES event but I have no idea how to set the info.
I get the exception "...ON_ADD_USERS_TO_ROLES. Extension reports Parameter id added_users_to_roomroles not found in extension context"
I need something like what is contained in the following code for "IRoomInfo".
IRoomInfoReader roomInfoReader = (IRoomInfoReader)context.getValue(RoomExtensionParameter.ROOM_INFO);
IExtensionResult result = extensionFactory.createExtensionResult(0);
result.putValue("RoomID", roomInfoReader.getId());
I have decompiled all the SAP extensions and I can't find a single example..
Thanks.
Dick
Hi Dick,
IRoomUsers roomUsers = (IRoomUsers) ctx.getValue(RoomExtensionParameter.ADDED_USERS_TO_ROOMROLES); ...
The IRoomUsers Interface in fact in described at https://media.sdn.sap.com/html/submitted_docs/nw_kmc/javadoc/coll/Rooms/index.html (yeah, something is documented).
Hope it helps
Detlev
Hi Detlev,
You mentioned problems / workarounds when combining the ON_CREATE_ROOM and ON_ADD_USERS_TO_ROLES extensions.
I always get the following exception when I try to combine the two extensions:
at ON_CREATE_ROOM. Extension reports Parameter added_users_to_roomroles is missing.
The two extensons work fine by themselves but they don't work when they are combined. The key from the context appears to be missing but I don't know why
Code:
<snip>
private IParameterInfo roomInfoInfo;
private IParameterInfo newUserInfo;
public TestExtension() {
roomInfoInfo =
extensionFactory.createSystemParameterInfo(
RoomExtensionParameter.ROOM_INFO,
com.sap.ip.collaboration.room.api.IRoomInfoReader.class,
true);
newUserInfo =
extensionFactory.createSystemParameterInfo( RoomExtensionParameter.ADDED_USERS_TO_ROOMROLES,
com.sap.ip.collaboration.room.api.IRoomUsers.class , true);
service_key = GENERIC_SERVICE_KEY + "." +
SERVICE_NAME;
}
public IParameterInfo[] getInputParameterInfos(IExtensionPoint extensionPoint) {
IParameterInfo result[] = null;
result = new IParameterInfo[2];
result[0] = roomInfoInfo;
result[1] = newUserInfo;
return result;
}
</snip>
Thanks.
Dick
Add a comment