businessPath = "[RepositoryEntry:" + re.getKey().toString() + "]"
+ "[CourseNode:" + publisher.getSubidentifier() + "]";
} else {
// resName = 'BusinessGroup' or 'FileResource.WIKI'
OLATResourceable ores = OresHelper.createOLATResourceableInstance(publisher.getResName(), resId);
BusinessGroup bGroup = BusinessGroupManagerImpl.getInstance().loadBusinessGroup(resId, false);
if (bGroup==null) {
// Wiki as Repo-Ressource
RepositoryEntry re = RepositoryManager.getInstance().lookupRepositoryEntry(ores,false);
if (re != null) {
businessPath = "[RepositoryEntry:" + re.getKey().toString() + "]"
+ "["+re.getOlatResource().getResourceableTypeName()+":" + re.getResourceableId() + "]";
} else {
//repo entry not found, delete publisher
logInfo("deleting publisher with key; "+publisher.getKey(), null);
//NotificationsManager.getInstance().delete(publisher);
return null;
}
} else {
businessPath = "[BusinessGroup:" + bGroup.getKey().toString() + "][wiki:0]";
}
}
publisher.setBusinessPath(businessPath);
return publisher;
}