Rules¶
Proxy¶
-
class
dlkit.proxy.rules.Proxy¶ Bases:
dlkit.osid.rules.OsidResultA
Proxyis used to transfer external information from an application server into an OSID Provider.-
has_authentication()¶ Tests if an authentication is available.
Returns: trueif anAuthenticationis available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
authentication¶ Gets the
Authenticationfor this proxy.Returns: the authentication Return type: osid.authentication.process.AuthenticationRaise: IllegalState–has_authentication()isfalsecompliance: mandatory – This method must be implemented.
-
has_effective_agent()¶ Tests if an effective agent is available.
Returns: trueif an effective agent is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
effective_agent_id¶ Gets the effective
Agent Idfor this proxy.Returns: the effective agent IdReturn type: osid.id.IdRaise: IllegalState–has_effective_agent()isfalsecompliance: mandatory – This method must be implemented.
-
effective_agent¶ Gets the effective
Agentfor this proxy.Returns: the effective agent Return type: osid.authentication.AgentRaise: IllegalState–has_effective_agent()isfalseRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
has_effective_date()¶ Tests if an effective date is available.
Returns: trueif an effective date is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
effective_date¶ Gets the effective date.
Returns: the effective date Return type: timestampRaise: IllegalState–has_effective_date()isfalsecompliance: mandatory – This method must be implemented.
-
effective_clock_rate¶ Gets the rate of the clock.
Returns: the rate Return type: decimalRaise: IllegalState–has_effective_date()isfalsecompliance: mandatory – This method must be implemented.
-
locale¶ Gets the locale.
Returns: a locale Return type: osid.locale.Localecompliance: mandatory – This method must be implemented.
-
has_format_type()¶ Tests if a
DisplayTextformatTypeis available.Returns: trueif a format type is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
format_type¶ Gets the
DisplayTextformatType.Returns: the format TypeReturn type: osid.type.TypeRaise: IllegalState–has_format_type()isfalsecompliance: mandatory – This method must be implemented.
-
get_proxy_record(proxy_record_type)¶ Gets the proxy record corresponding to the given
ProxyrecordType.This method is used to retrieve an object implementing the requested record. The
proxy_record_typemay be theTypereturned inget_record_types()or any of its parents in aTypehierarchy wherehas_record_type(proxy_record_type)istrue.Parameters: proxy_record_type ( osid.type.Type) – the type of proxy record to retrieveReturns: the proxy record Return type: osid.proxy.records.ProxyRecordRaise: NullArgument–proxy_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(proxy_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Proxy Condition¶
-
class
dlkit.proxy.rules.ProxyCondition¶ Bases:
dlkit.osid.rules.OsidConditionA
ProxyConditionis used to transfer external information into a proxy.-
effective_agent_id¶
-
set_effective_date(date, rate)¶ Sets the effective date.
Parameters: - date (
timestamp) – a date - rate (
decimal) – the rate at which the clock should tick from the given effective date. 0 is a clock that is fixed
Raise: NullArgument–dateisnullcompliance: mandatory – This method must be implemented.
- date (
-
language_type¶
-
script_type¶
-
calendar_type¶
-
time_type¶
-
currency_type¶
-
unit_system_type¶
-
format_type¶
-
get_proxy_condition_record(proxy_condition_type)¶ Gets the proxy condition record corresponding to the given
ProxyrecordType.This method is used to retrieve an object implementing the requested record. The
proxy_record_typemay be theTypereturned inget_record_types()or any of its parents in aTypehierarchy wherehas_record_type(proxy_record_type)istrue.Parameters: proxy_condition_type ( osid.type.Type) – the type of proxy condition record to retrieveReturns: the proxy condition record Return type: osid.proxy.records.ProxyConditionRecordRaise: NullArgument–proxy_condition_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(proxy_condition_record_type)isfalsecompliance: mandatory – This method must be implemented.
-