com.sun.identity.liberty.ws.disco
クラス ResourceOffering

java.lang.Object
  上位を拡張 com.sun.identity.liberty.ws.disco.ResourceOffering

public class ResourceOffering
extends Object

The class ResourceOffering associates a resource with a service instance that provides access to that resource.

The following schema fragment specifies the expected content within the ResourceOffering object.

 <complexType name="ResourceOfferingType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <group ref="{urn:liberty:disco:2003-08}ResourceIDGroup"/>
         <element name="ServiceInstance" type="{urn:liberty:disco:2003-08}ServiceInstanceType"/>
         <element ref="{urn:liberty:disco:2003-08}Options" minOccurs="0"/>
         <element name="Abstract" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
       </sequence>
       <attribute name="entryID" type="{urn:liberty:disco:2003-08}IDType" />
     </restriction>
   </complexContent>
 </complexType>
 
An example of the ResourceOffering is :
 <ResourceOffering xmlns="urn:liberty:disco:2003-08">
     <ResourceID>http://profile-provider.com/profiles/l4m0B82k15csaUxs</ResourceID>
     <ServiceInstance xmlns="urn:liberty:disco:2003-08">
         <ServiceType>urn:liberty:idpp:2003-08</ServiceType>
         <ProviderID>http://profile-provider.com/</ProviderID>
         <Description>
             <SecurityMechID>urn:liberty:disco:2003-08:anonymous</SecurityMechID>
             <SecurityMechID>urn:liberty:security:2003-08:x509</SecurityMechID>
             <SecurityMechID>urn:liberty:security:2003-08:saml</SecurityMechID>
             <Endpoint>https://soap.profile-provider.com/soap/</Endpoint>
         </Description>
         <Description>
             <SecurityMechID>urn:ietf:rfc:2246</SecurityMechID>
             <Endpoint>https://soap-auth.profile-provider.com/soap/</Endpoint>
         </Description>
      </ServiceInstance>
      <Options>
          <Option>urn:liberty:idpp</Option>
          <Option>urn:liberty:idpp:cn</Option>
          <Option>urn:liberty:idpp:can</Option>
          <Option>urn:liberty:idpp:can:cn</Option>
      </Options>
      <Abstract>
          This is a personal profile containing common name information. 
      </Abstract>
 </ResourceOffering>
 


コンストラクタの概要
ResourceOffering(Element elem)
          Constructor.
ResourceOffering(EncryptedResourceID resourceID, ServiceInstance serviceInstance)
          Constructor.
ResourceOffering(ResourceID resourceID, ServiceInstance serviceInstance)
          Constructor.
 
メソッドの概要
 String getAbstract()
          Gets abstract of the resource offering
 EncryptedResourceID getEncryptedResourceID()
          Gets encrypted resource ID.
 String getEntryID()
          Gets entry ID.
 List getOptions()
          Gets options of the resource offering, which expresses the options available for the resource offering, that is provides hints to a potential requester whether certain data or operations may be available with a particular resource offering.
 ResourceID getResourceID()
          Gets resource ID.
 ServiceInstance getServiceInstance()
          Gets service instance.
 void setAbstract(String value)
          Sets abstract.
 void setEncryptedResourceID(EncryptedResourceID resourceID)
          Sets encrypted resource ID.
 void setEntryID(String value)
          Sets entry ID.
 void setOptions(List options)
          Sets options.
 void setResourceID(ResourceID resourceID)
          Sets resource ID.
 void setServiceInstance(ServiceInstance value)
          Sets service instance.
 String toString()
          Returns string representation of object ResourceOffering.
 

コンストラクタの詳細

ResourceOffering

public ResourceOffering(ResourceID resourceID,
                        ServiceInstance serviceInstance)
Constructor.

パラメータ:
resourceID - ID for the resource.
serviceInstance - service instance.

ResourceOffering

public ResourceOffering(EncryptedResourceID resourceID,
                        ServiceInstance serviceInstance)
Constructor.

パラメータ:
resourceID - Encrypted Resource ID.
serviceInstance - service instance.

ResourceOffering

public ResourceOffering(Element elem)
                 throws DiscoveryException
Constructor.

パラメータ:
elem - ResourceOffering DOM element.
例外:
DiscoveryException - if error occurs.
メソッドの詳細

getOptions

public List getOptions()
Gets options of the resource offering, which expresses the options available for the resource offering, that is provides hints to a potential requester whether certain data or operations may be available with a particular resource offering.

戻り値:
List of options as String
関連項目:
ResourceOffering.setOptions(List)

setOptions

public void setOptions(List options)
Sets options.

パラメータ:
options - List of options as String
関連項目:
ResourceOffering.getOptions()

getEncryptedResourceID

public EncryptedResourceID getEncryptedResourceID()
Gets encrypted resource ID.

戻り値:
encrypted resource ID.
関連項目:
ResourceOffering.setEncryptedResourceID(EncryptedResourceID)

setEncryptedResourceID

public void setEncryptedResourceID(EncryptedResourceID resourceID)
Sets encrypted resource ID.

パラメータ:
resourceID - EncryptedResourceID to be set
関連項目:
ResourceOffering.getEncryptedResourceID()

getResourceID

public ResourceID getResourceID()
Gets resource ID.

戻り値:
resource ID.
関連項目:
ResourceOffering.setResourceID(ResourceID)

setResourceID

public void setResourceID(ResourceID resourceID)
Sets resource ID.

パラメータ:
resourceID - resource ID.
関連項目:
ResourceOffering.getResourceID()

getEntryID

public String getEntryID()
Gets entry ID.

戻り値:
entry ID.
関連項目:
ResourceOffering.setEntryID(String)

setEntryID

public void setEntryID(String value)
Sets entry ID.

パラメータ:
value - of the id
関連項目:
ResourceOffering.getEntryID()

getServiceInstance

public ServiceInstance getServiceInstance()
Gets service instance.

戻り値:
service instance.
関連項目:
ResourceOffering.setServiceInstance(ServiceInstance)

setServiceInstance

public void setServiceInstance(ServiceInstance value)
Sets service instance.

パラメータ:
value - service instance.
関連項目:
ResourceOffering.getServiceInstance()

getAbstract

public String getAbstract()
Gets abstract of the resource offering

戻り値:
abstract of the resource offering.
関連項目:
ResourceOffering.setAbstract(String)

setAbstract

public void setAbstract(String value)
Sets abstract.

パラメータ:
value - abstract of the resource offering.
関連項目:
ResourceOffering.getAbstract()

toString

public String toString()
Returns string representation of object ResourceOffering.

オーバーライド:
クラス Object 内の toString
戻り値:
string representation