Examples of equalsByPersistableKey()


Examples of org.olat.core.id.Identity.equalsByPersistableKey()

    // loop all subscriptions, as its ordered by identity, they get collected for each identity
    for(Subscriber sub : subs){
      try {
        ident = sub.getIdentity();

        if (latestSub == null || (!ident.equalsByPersistableKey(latestSub.getIdentity()))) {
          // first time or next identity => prepare for a new user and send old data.
         
          // send a mail
          notifySubscribersByEmail(latestSub, items, subsToUpdate, translator, start, veto, mailLog, mailErrorLog);
         
View Full Code Here

Examples of org.olat.repository.RepositoryEntry.equalsByPersistableKey()

        CatalogEntry newParent = cm.loadCatalogEntry(newParentId);
        // check first if this repo entry is already attached to this new parent
        List<CatalogEntry> existingChildren = cm.getChildrenOf(newParent);
        for (CatalogEntry existingChild : existingChildren) {
          RepositoryEntry existingRepoEntry = existingChild.getRepositoryEntry();
          if (existingRepoEntry != null && existingRepoEntry.equalsByPersistableKey(toBeAddedEntry)) {
            showError("catalog.tree.add.already.exists", toBeAddedEntry.getDisplayname());
            return;
          }
        }
        // don't create entry right away, user must select submit button first
View Full Code Here

Examples of org.olat.repository.RepositoryEntry.equalsByPersistableKey()

        CatalogEntry newParent = cm.loadCatalogEntry(newParentId);
        // check first if this repo entry is already attached to this new parent
        List<CatalogEntry> existingChildren = cm.getChildrenOf(newParent);
        for (CatalogEntry existingChild : existingChildren) {
          RepositoryEntry existingRepoEntry = existingChild.getRepositoryEntry();
          if (existingRepoEntry != null && existingRepoEntry.equalsByPersistableKey(toBeAddedEntry)) {
            showError("catalog.tree.add.already.exists", toBeAddedEntry.getDisplayname());
            return;
          }
        }
        CatalogEntry newEntry = cm.createCatalogEntry();
View Full Code Here

Examples of org.olat.repository.RepositoryEntry.equalsByPersistableKey()

        CatalogManager cm = CatalogManager.getInstance();
        List<CatalogEntry> children = cm.getChildrenOf(selectedCategoryLevel);
        // find all child element of this level that reference our repo entry
        for (CatalogEntry child : children) {
          RepositoryEntry childRepoEntry = child.getRepositoryEntry();
          if (childRepoEntry != null && childRepoEntry.equalsByPersistableKey(repoEntry)) {
            // remove from catalog
            cm.deleteCatalogEntry(child);
          }
        }
        // The catalog entry must have been deleted in the meantime by someone
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.