Interface Proxy
- All Superinterfaces:
Browsable, Extensible, OsidResult
A Proxy is used to transfer external information from an
application server into an OSID Provider.
-
Method Summary
Modifier and TypeMethodDescriptionGets theAuthenticationfor this proxy.Gets the effectiveAgentfor this proxy.Gets the effectiveAgent Idfor this proxy.Gets the rate of the clock.Gets the effective date.Gets theDisplayTextformatType.Gets the locale.getProxyRecord(Type proxyRecordType) Gets the proxy record corresponding to the givenProxyrecordType.This method is used to retrieve an object implementing the requested record.booleanTests if an authentication is available.booleanTests if an effective agent is available.booleanTests if an effective date is available.booleanTests if aDisplayTextformatTypeis available.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.
-
Method Details
-
hasAuthentication
boolean hasAuthentication()Tests if an authentication is available.- Returns:
trueif anAuthenticationis available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAuthentication
Authentication getAuthentication()Gets theAuthenticationfor this proxy.- Returns:
- the authentication
- Throws:
IllegalStateException-hasAuthentication()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasEffectiveAgent
boolean hasEffectiveAgent()Tests if an effective agent is available.- Returns:
trueif an effective agent is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getEffectiveAgentId
Id getEffectiveAgentId()Gets the effectiveAgent Idfor this proxy.- Returns:
- the effective agent
Id - Throws:
IllegalStateException-hasEffectiveAgent()isfalse- Compliance:
mandatory- This method must be implemented.
-
getEffectiveAgent
Gets the effectiveAgentfor this proxy.- Returns:
- the effective agent
- Throws:
IllegalStateException-hasEffectiveAgent()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasEffectiveDate
boolean hasEffectiveDate()Tests if an effective date is available.- Returns:
trueif an effective date is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getEffectiveDate
Date getEffectiveDate()Gets the effective date.- Returns:
- the effective date
- Throws:
IllegalStateException-hasEffectiveDate()isfalse- Compliance:
mandatory- This method must be implemented.
-
getEffectiveClockRate
BigDecimal getEffectiveClockRate()Gets the rate of the clock.- Returns:
- the rate
- Throws:
IllegalStateException-hasEffectiveDate()isfalse- Compliance:
mandatory- This method must be implemented.
-
getLocale
Locale getLocale()Gets the locale.- Returns:
- a locale
- Compliance:
mandatory- This method must be implemented.
-
hasFormatType
boolean hasFormatType()Tests if aDisplayTextformatTypeis available.- Returns:
trueif a format type is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getFormatType
Type getFormatType()Gets theDisplayTextformatType.- Returns:
- the format
Type - Throws:
IllegalStateException-hasFormatType()isfalse- Compliance:
mandatory- This method must be implemented.
-
getProxyRecord
Gets the proxy record corresponding to the givenProxyrecordType.This method is used to retrieve an object implementing the requested record. TheproxyRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(proxyRecordType)istrue.- Parameters:
proxyRecordType- the type of proxy record to retrieve- Returns:
- the proxy record
- Throws:
NullArgumentException-proxyRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(proxyRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-