Examples of RepositoryEntry


Examples of org.olat.repository.RepositoryEntry

        //NotificationsManager.getInstance().delete(publisher);
        // return nothing available
        return null;
      }
      ModuleConfiguration config = ((WikiCourseNode)courseNode).getModuleConfiguration();
      RepositoryEntry re = WikiEditController.getWikiRepoReference(config, true);
      resId = re.getOlatResource().getResourceableId();
      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;
View Full Code Here

Examples of org.olat.repository.RepositoryEntry

   * </ul>
   *
   * @param feed
   */
  private void enrichFeedByRepositoryEntryInfromation(Feed feed) {
    RepositoryEntry entry = getRepositoryEntry(feed);
    if (entry != null && feed != null) {
      Date whenTheFeedWasLastModified = feed.getLastModified();
      if (whenTheFeedWasLastModified == null || entry.getLastModified().after(whenTheFeedWasLastModified)) {
        // entry is newer then feed, update feed
        feed.setTitle(entry.getDisplayname());
        // Formatter.formatWikiMarkup(entry.getDescription())
        feed.setDescription(entry.getDescription());
        feed.setAuthor(entry.getInitialAuthor());
        // Update the image
        String imageFilename = RepositoryEntryImageController.getImageFilename(entry);
        String repoImagePath = FolderConfig.getCanonicalRoot() + FolderConfig.getRepositoryHome() + "/" + imageFilename;
        File repoEntryImage = new File(repoImagePath);
        if (repoEntryImage.exists()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.