OSID Logo
OSID Specifications
profile package
Version 3.0.0
Release Candidate Preview
Interfaceosid.profile.ProfileEntry
Implementsosid.OsidRelationship
Description

An ProfileEntry is a mapping among an Agent or Resource, and a ProfileItem. This interface is not required for performing a profile check but is used for examining and managing profiles.

The actor of an profile may be specified in a variety of forms.

  • Agent
  • Resource: the profile provider uses all the Agents associated with a Resource for matching profiles

An explicit ProfileEntry represents the mappings as they are specified in the profile provdier. Implicit profile entries may be retrieved which are profile entries inferred through the ProfileItem hierarchy. An implicit ProfileEntry is one where isImplicit() is true and should not be used for modification as it is only available for auditing purposes.

An ProfileEntry containing a Resource may also provide the associated Agent in a request for implicit profiles or for all the profiles, both explicit and implicit, for a given Agent.

MethodisImplicit
Description

Tests if this profile entry is implicitly generated.

Returnboolean true if this profile entry is implicit, false otherwise
CompliancemandatoryThis method must be implemented.
MethodhasResource
Description

Tests if this profile entry has a Resource.

Returnboolean true if this profile entry has a Resource, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetResourceId
Description

Gets the resource Id for this profile entry.

Returnosid.id.Idthe Resource Id
ErrorsILLEGAL_STATE hasResource() is false
CompliancemandatoryThis method must be implemented.
MethodgetResource
Description

Gets the Resource for this profile ebtry.

Returnosid.resource.Resourcethe Resource
ErrorsILLEGAL_STATE hasResource() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodhasAgent
Description

Tests if this profile entry has an Agent. An implied profile entry may have an Agent in addition to a specified Resource.

Returnboolean true if this profile entry has an Agent, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAgentId
Description

Gets the Agent Id for this profile entry.

Returnosid.id.Idthe Agent Id
ErrorsILLEGAL_STATE hasAgent() is false
CompliancemandatoryThis method must be implemented.
MethodgetAgent
Description

Gets the Agent for this profile entry.

Returnosid.authentication.Agentthe Agent
ErrorsILLEGAL_STATE hasAgent() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetProfileItemId
Description

Gets the ProfileItem Id for this profile entry.

Returnosid.id.Idthe profile item Id
CompliancemandatoryThis method must be implemented.
MethodgetProfileItem
Description

Gets the ProfileItem for this profile entry.

Returnosid.profile.ProfileItemthe profile item
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetProfileEntryRecord
Description

Gets the proile entry record corresponding to the given ProfileEntry record Type. This method ie used to retrieve an object implementing the requested record. The profileEntryRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(profileEntryRecordType) is true .

Parametersosid.type.TypeprofileEntryRecordTypethe type of the record to retrieve
Returnosid.profile.records.ProfileEntryRecordthe profile entry record
ErrorsNULL_ARGUMENT profileEntryRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(profileEntryRecordType) is false
CompliancemandatoryThis method must be implemented.