Package net.sf.archimede.model.metadata

Examples of net.sf.archimede.model.metadata.MetadataDao


      List existingMetadataTypes = new ArrayList(existingMetadatas.size());
      for (Iterator it = existingMetadatas.iterator(); it.hasNext(); ) {
        Metadata metadata = (Metadata) it.next();
        existingMetadataTypes.add(metadata.getName());
      }
      MetadataDao metadataDao = MetadataDao.createInstance();
      for (Iterator it = metadataDao.listTypes().iterator(); it.hasNext(); ) {
        String metadataType = (String) it.next();
        if (!existingMetadataTypes.contains(metadataType)) {
          availableMetadataTypesItems.add(new SelectItem(metadataType));
        }
      }
View Full Code Here


   
    public String removeMetadata() {
      CustomTreeNode tnb = (CustomTreeNode) this.metadataTreeModel.getNode();
      Metadata selectedMetadata = (Metadata) tnb.getContent();
      this.selectedFolder.getMetadatas().remove(selectedMetadata);
      MetadataDao metadataDao = MetadataDao.createInstance();
      try {
        metadataDao.remove(selectedMetadata);
      } catch (ObjectLockedException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (ObjectExistsException e) {
            // TODO Auto-generated catch block
View Full Code Here

TOP

Related Classes of net.sf.archimede.model.metadata.MetadataDao

Copyright © 2018 www.massapicom. 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.