boolean adminProfile)
throws ProcessingException {
// calling method is synced
DocumentFragment userFragment;
RequestState reqstate = this.getRequestState();
SourceParameters pars;
pars = new SourceParameters();
pars.setSingleParameterValue("ID", id);
pars.setSingleParameterValue("role", role);
pars.setSingleParameterValue("application", reqstate.getApplicationName());
pars.setSingleParameterValue("handler", reqstate.getHandlerName());
pars.setSingleParameterValue("profile", "user-delta");
String res = (String)config.get(PortalConstants.CONF_USERDELTA_LOADRESOURCE);
if (res != null) {
if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("loading user profile");
}
userFragment = SourceUtil.readDOM(res,
null,
pars,
this.resolver);
if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("user profile loaded");
}
this.importProfileDelta(profileRoot, userFragment, "user-delta", "layout-delta");
this.importProfileDelta(profileRoot, userFragment, "user-delta", "coplets-delta");
this.addProfilePart(profileRoot, userFragment, "user-delta", "portal-profile");
this.importProfileDelta(profileRoot, userFragment, "user-delta", "personal-delta");
}
// types
res = (String)config.get(PortalConstants.CONF_USERDELTA_TYPERESOURCE);
if (!adminProfile && res != null) {
pars.setSingleParameterValue("profile", "user-type-delta");
if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("loading user type profile");
}
userFragment = SourceUtil.readDOM(res,
null,