Examples of LibraryType


Examples of com.day.cq.widget.LibraryType

            writer.array();
            String type = request.getRequestPathInfo().getSelectorString();
            if (type != null) {
                try {
                    Set<String> categories = new TreeSet<String>();
                    LibraryType libraryType = LibraryType.valueOf(type.toUpperCase());
                    Map<String, ClientLibrary> libraries = libraryManager.getLibraries();
                    for (ClientLibrary library : libraries.values()) {
                        if (library.getTypes() != null && library.getTypes().contains(libraryType)) {
                            String[] libraryCats = library.getCategories();
                            if (libraryCats != null) {
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.type.LibraryType

    return false;
  }

  public LibraryType getLibraryTypeById(long libraryTypeId) throws IOException {
    List eResults = template.query(LIBRARY_TYPE_SELECT_BY_ID, new Object[]{libraryTypeId}, new LibraryTypeMapper());
    LibraryType e = eResults.size() > 0 ? (LibraryType) eResults.get(0) : null;
    return e;
  }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.type.LibraryType

    return e;
  }

  public LibraryType getLibraryTypeByDescription(String description) throws IOException {
    List eResults = template.query(LIBRARY_TYPE_SELECT_BY_DESCRIPTION, new Object[]{description}, new LibraryTypeMapper());
    LibraryType e = eResults.size() > 0 ? (LibraryType) eResults.get(0) : null;
    return e;
  }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.type.LibraryType

    return e;
  }

  public LibraryType getLibraryTypeByDescriptionAndPlatform(String description, PlatformType platformType) throws IOException {
    List eResults = template.query(LIBRARY_TYPE_SELECT_BY_DESCRIPTION_AND_PLATFORM, new Object[]{description, platformType.getKey()}, new LibraryTypeMapper());
    LibraryType e = eResults.size() > 0 ? (LibraryType) eResults.get(0) : null;
    return e;
  }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.type.LibraryType

    }
  }

  public class LibraryTypeMapper implements RowMapper<LibraryType> {
    public LibraryType mapRow(ResultSet rs, int rowNum) throws SQLException {
      LibraryType lt = new LibraryType();
      lt.setLibraryTypeId(rs.getLong("libraryTypeId"));
      lt.setDescription(rs.getString("description"));
      lt.setPlatformType(rs.getString("platformType"));
      return lt;
    }
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.