

import java.util.List;

//import org.gcube.application.framework.contentmanagement.model.CollectionInfo;
//import org.gcube.application.framework.core.session.ASLSession;
//import org.gcube.application.framework.core.session.SessionManager;
//import org.gcube.application.framework.search.library.impl.SearchHelper;



public class AvailableCollections {
	
	
	public static void main(String[] args) {

		// retrieve available collections, search query and search fields per metadata schema:

//			ASLSession aslSession = SessionManager.getInstance().getASLSession("fakeId", "rena.tsantouli");
//			aslSession.setScope("/gCube/devsec");
//			 
//			SearchHelper searchH = new SearchHelper(aslSession);
//			// Retrieving the available collections:
//			List<CollectionInfo>[] colls = searchH.getAvailableCollections();
//			if(colls != null)
//			{
//				for(int i=0; i<colls.length; i++)
//				{
//					System.out.println("+ " + colls[i].get(0).getName()); // group name
//					for(int j=1; j< colls[i].size(); j++)
//					{
//			    		System.out.println("|-+ " + colls[i].get(j).getName()); // collection name
//					}
//				}
//			}
 
		
	}

}
