org.integratedmodelling.kserver.resources.services.ObservationService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of klab-server Show documentation
Show all versions of klab-server Show documentation
Spring controllers and common components for all k.LAB REST servers
package org.integratedmodelling.kserver.resources.services;
import java.util.Map;
import org.integratedmodelling.api.configuration.IResourceConfiguration;
import org.integratedmodelling.common.beans.requests.ConnectionAuthorization;
import org.integratedmodelling.common.interfaces.DirectResourceService;
import org.integratedmodelling.exceptions.KlabException;
/**
* Looks up an observation based on the URN, checks permissions against namespace and
* project, and returns the observation bean that allows the caller to reconstruct it.
*
* @author Ferd
*
*/
public class ObservationService implements DirectResourceService {
@Override
public Object resolveUrn(String urn, String element, ConnectionAuthorization authorization, IResourceConfiguration configuration, Map requestParameters)
throws KlabException {
// TODO Auto-generated method stub
return null;
}
@Override
public boolean allowsUnauthenticated(String urn) {
// TODO Auto-generated method stub
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy