001package org.nuxeo.box.api.marshalling.interfaces; 002 003import java.util.Collection; 004 005public interface IBoxResourceHub { 006 007 /** 008 * Given a {@link IBoxType}, get the corrosponding DAO class. 009 * 010 * @param type resource type 011 * @return corresponding resource DAO class 012 */ 013 @SuppressWarnings("rawtypes") 014 Class getClass(IBoxType type); 015 016 /** 017 * Get the IBoxType from a lower case string value. For example "file" would return BoxResourceType.FILE 018 * 019 * @param 020 * @return 021 */ 022 IBoxType getTypeFromLowercaseString(String type); 023 024 Collection<IBoxType> getAllTypes(); 025}