Package org.olat.core.commons.modules.bc.meta

Examples of org.olat.core.commons.modules.bc.meta.MetaInfo.deleteAll()


          VFSItem item = currentContainer.resolve(file);
          if (item != null && (item.canDelete() == VFSConstants.YES)) {
            if (item instanceof OlatRelPathImpl) {
              // delete all meta info
              MetaInfo meta = MetaInfoFactory.createMetaInfoFor((OlatRelPathImpl)item);
              if (meta != null) meta.deleteAll();
            }
            // delete the item itself
            item.delete();
          } else {
            getWindowControl().setWarning(translator.translate("del.partial"));
View Full Code Here


          VFSItem item = rootContainer.resolve(cmdUpload.getFileName());
            if (item != null && (item.canDelete() == VFSConstants.YES)) {
              if (item instanceof OlatRelPathImpl) {
                // delete all meta info
                MetaInfo meta = MetaInfoFactory.createMetaInfoFor((OlatRelPathImpl)item);
                if (meta != null) meta.deleteAll();
              }
              // delete the item itself
              item.delete();
            }
          return;
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.