Oracle® Beehive RESTful Web Services API Reference Release 2 (2.0.1.7) E16658-04 |
Resource is a union type that includes internal resource and external resource.
Since Resource is a union type, it is NOT an Entity.
Therefore Resource does NOT provide a getHandle call.
The goal of this Resource union type is to provide a way to search, in one single call, across both InternalResources and ExternalResources. Once the search is performed and a list of Resources is returned, it is expected that the caller will use "instanceof" against BookableResource and ExternalResource in order to downcast the Resource object into its real object, and access the full set of methods from that real object. However a basic set of methods is defined in Resource for convenience.
The attributes that can be returned with the various projections are defined in bookableResource and in externalResource. They are not listed here as the effective attribute list will vary depending on whether the Resource object is in reality a BookableResource or an ExternalResource.
Copyright © 2008, 2012, Oracle and/or its affiliates. All rights reserved.
Legal Notices