group db-related stuff in sfa/storage
[sfa.git] / sfa / methods / ResolveGENI.py
1 from sfa.util.method import Method
2
3 from sfa.storage.parameter import Parameter
4
5 class ResolveGENI(Method):
6     """
7     Lookup a URN and return information about the corresponding object.
8     @param urn
9     """
10
11     interfaces = ['registry']
12     accepts = [
13         Parameter(str, "URN"),
14         Parameter(type([str]), "List of credentials"),
15         ]
16     returns = Parameter(bool, "Success or Failure")
17
18     def call(self, xrn):
19         return self.api.manager.Resolve(self.api, xrn, '')