

import java.rmi.RemoteException;
import java.util.List;

//import org.gcube.application.framework.core.genericresources.model.ISGenericResource;
//import org.gcube.application.framework.core.security.LDAPAuthenticationModule;
//import org.gcube.application.framework.core.session.ASLSession;
//import org.gcube.application.framework.core.session.SessionManager;
//import org.gcube.application.framework.search.library.impl.GenericResource;
//import org.gcube.common.core.scope.GCUBEScope;

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

	 
		/* Retrieve the list of the generic resources with the given name / id */
		 
//		ASLSession aslSession = SessionManager.getInstance().getASLSession("fakeSessionId", "rena.tsantouli");
//		aslSession.setScope("/gCube/devsec");
//		GenericResource gResources = new GenericResource(aslSession);
//		
//		List<ISGenericResource> resources = null;
//		try {
//			resources = gResources.getGenericResourceByName("ScenarioCollectionInfo");
//		} catch (RemoteException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//			return;
//		}
//		 
//		for (int i = 0; i < resources.size(); i++) {
//			System.out.println("Resource found: " + resources.get(i).getBody());
//		}
//		
//		return;
	}

}
