public interface ProfileEntry extends OsidRelationship
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.
Modifier and Type | Method and Description |
---|---|
Agent |
getAgent()
Gets the
Agent for this profile entry. |
Id |
getAgentId()
Gets the
Agent Id for this profile entry. |
ProfileEntryRecord |
getProfileEntryRecord(Type profileEntryRecordType)
Gets the proile entry record corresponding to the given
ProfileEntry record Type. |
ProfileItem |
getProfileItem()
Gets the
ProfileItem for this profile entry. |
Id |
getProfileItemId()
Gets the
ProfileItem Id for this profile
entry. |
Resource |
getResource()
Gets the
Resource for this profile ebtry. |
Id |
getResourceId()
Gets the
resource Id for this profile entry. |
boolean |
hasAgent()
Tests if this profile entry has an
Agent. |
boolean |
hasResource()
Tests if this profile entry has a
Resource. |
boolean |
isImplicit()
Tests if this profile entry is implicitly generated.
|
getEndReason, getEndReasonId, hasEndReason
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
getEndDate, getStartDate, isEffective
boolean isImplicit()
true
if this profile entry is implicit,
false
otherwisemandatory
- This method must be implemented. boolean hasResource()
Resource.
true
if this profile entry has a
Resource,
false
otherwisemandatory
- This method must be implemented. Id getResourceId()
resource Id
for this profile entry. Resource Id
IllegalStateException
- hasResource()
is
false
mandatory
- This method must be implemented. Resource getResource() throws OperationFailedException
Resource
for this profile ebtry. Resource
IllegalStateException
- hasResource()
is
false
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. boolean hasAgent()
Agent.
An implied
profile entry may have an Agent
in addition to a
specified Resource.
true
if this profile entry has an Agent,
false
otherwisemandatory
- This method must be implemented. Id getAgentId()
Agent Id
for this profile entry. Agent Id
IllegalStateException
- hasAgent()
is
false
mandatory
- This method must be implemented. Agent getAgent() throws OperationFailedException
Agent
for this profile entry. Agent
IllegalStateException
- hasAgent()
is
false
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. Id getProfileItemId()
ProfileItem
Id
for this profile
entry. Id
mandatory
- This method must be implemented. ProfileItem getProfileItem() throws OperationFailedException
ProfileItem
for this profile entry.OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. ProfileEntryRecord getProfileEntryRecord(Type profileEntryRecordType) throws OperationFailedException
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
.profileEntryRecordType
- the type of the record to retrieveNullArgumentException
- profileEntryRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(profileEntryRecordType)
is false
mandatory
- This method must be implemented.