Package org.opencms.file

Examples of org.opencms.file.CmsResource


            try {
              @SuppressWarnings("unchecked")
          List<CmsResource> resources = cms.getResourcesInFolder(folder, CmsResourceFilter.DEFAULT);

          for (int i = 0; i < resources.size(); i++) {
              CmsResource r = (CmsResource)resources.get(i);
              CmsJspNavElement element = CmsJspNavBuilder.getNavigationForResource(cms, cms.getSitePath(r));
              if ((element != null) && filter.include(cms, this, r, element)) {
                  result.add(element);
              }
          }
View Full Code Here


            pos1 = param.length();
          }
          String path = param.substring(0, pos1);
      filename = CmsResource.getName(path);
      String foldername = CmsResource.getFolderPath(path);
      CmsResource res = cms.readResource(path);
      I_CmsResourceType type = OpenCms.getResourceManager().getResourceType(res.getTypeId());
     
     
      createParam = foldername.concat(filename.replaceFirst("[0-9]{4}", "\\${number}")).concat("|").concat(type.getTypeName());
    } else {
      createParam = param;
View Full Code Here

//        List<String> values = new ArrayList<String>(resources.size() + 1);
//        int selectedIndex = 0;

        for (int i = 0; i < resources.size(); i++) {
            // loop all found resources defining the options
            CmsResource res = resources.get(i);
            String path = getCms().getSitePath(res);
            // determine description to show for option
            String description = "";
            try {
                description = getCms().readPropertyObject(path, CmsPropertyDefinition.PROPERTY_DESCRIPTION, false).getValue(
View Full Code Here

TOP

Related Classes of org.opencms.file.CmsResource

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.