OSID Logo
OSID Specifications
profile package
Version 3.1.0
Interfaceosid.profile.ProfileEntry
Implementsosid.OsidRelationship
Used Byosid.profile.ProfileEntryAdminSession
osid.profile.ProfileEntryList
osid.profile.ProfileEntryLookupSession
Description

A 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 a profile may be specified in a variety of forms.

  • Agent
  • Resource: all 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetResourceId
Description

Gets the resource Id for this profile entry.

Returnosid.id.Id the Resource Id
ErrorsILLEGAL_STATE hasResource() is false
Compliancemandatory This method must be implemented.
MethodgetResource
Description

Gets the Resource for this profile ebtry.

Returnosid.resource.Resource the Resource
ErrorsILLEGAL_STATE hasResource() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetAgentId
Description

Gets the Agent Id for this profile entry.

Returnosid.id.Id the Agent Id
ErrorsILLEGAL_STATE hasAgent() is false
Compliancemandatory This method must be implemented.
MethodgetAgent
Description

Gets the Agent for this profile entry.

Returnosid.authentication.Agent the Agent
ErrorsILLEGAL_STATE hasAgent() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetProfileItemId
Description

Gets the ProfileItem Id for this profile entry.

Returnosid.id.Id the profile item Id
Compliancemandatory This method must be implemented.
MethodgetProfileItem
Description

Gets the ProfileItem for this profile entry.

Returnosid.profile.ProfileItem the profile item
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This 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.TypeprofileEntryRecordType the type of the record to retrieve
Returnosid.profile.records.ProfileEntryRecord the profile entry record
ErrorsNULL_ARGUMENT profileEntryRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(profileEntryRecordType) is false
Compliancemandatory This method must be implemented.