Package com.trustyoram.web.storage.config

Examples of com.trustyoram.web.storage.config.ImageLinkStorage


    TreeMap<String, Storage> storages;
    ArrayList<Storage> storagelist;
    HtmlStorage htmlStorage;
    InternalStorage internalStorage;
    PhotoInternalStorage photoInternalStorage;
    ImageLinkStorage imageLinkStorage;
    int i;
    Iterator<String> keys;

    try {
      IPath root = Configuration.getSystemRoot().getRoot().getFolderItem(subfolder);

      files = getDefinitionFiles(root, "storage.xml");
      storages = new TreeMap<String, Storage>();

      for (i = 0; i < files.length; i++) {
        try {
          storage = Storage.load(files[i]);

          if (storage instanceof ImageLinkStorage) {
            imageLinkStorage = (ImageLinkStorage) storage;

            imageLinkStorage.setImage(getUrl(files[i].getParent(), imageLinkStorage.getImage()));
          } else if (storage instanceof InternalStorage) {
            internalStorage = (InternalStorage) storage;

            internalStorage.setUrl(getUrl(files[i].getParent(), internalStorage.getUrl()));
          } else if (storage instanceof PhotoInternalStorage) {
View Full Code Here

TOP

Related Classes of com.trustyoram.web.storage.config.ImageLinkStorage

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.