// If we are in partial refresh mode, we assume that they are already loaded
if(AjaxUtil.isAjaxPartialRefresh(context)) {
return;
}
UISbtClient ctClient = (UISbtClient)component;
// Ensure that the dojo theme is loaded
UIViewRootEx2 rootEx = (UIViewRootEx2)context.getViewRoot();
rootEx.setDojoTheme(true);
// Make the client enabled
UISbtClient.enableClient(rootEx, true);
// Find the Connections Endpoint
String endpointName = ctClient.getEndpoint();
if(StringUtil.isEmpty(endpointName)) {
endpointName = EndpointFactory.SERVER_CONNECTIONS;
}
Endpoint ctServer = EndpointFactory.getEndpointUnchecked(endpointName);
if(ctServer==null) {
//Platform.getInstance().log("Sametime server URL is undefined.");
return;
}
boolean inclProfiles = ctClient.isProfilesBusinessCard();
boolean inclCommunities = ctClient.isCommunitiesBusinessCard();
if(inclProfiles || inclCommunities) {
// Write the Profiles semantic servlet
if(inclProfiles) {
writeCommunitiesConfig(context, rootEx, ctClient, ctServer, endpointName);
}