public interface ProfileItemQuerySession extends OsidSession
This session provides methods for searching ProfileItem
objects. The search query is constructed using the
ProfileItemQuery.
The profile item record Type
also
specifies the record interface for the profil eitem query.
This session defines views that offer differing behaviors for searching.
Profile items may have a profile item query record indicated by their
respective record types. The profile item query record is accessed via the
ProfileItemQuery.
Modifier and Type | Method and Description |
---|---|
boolean |
canSearchProfileItems()
Tests if this user can perform
ProfileItem searches. |
Profile |
getProfile()
Gets the
Profile associated with this session. |
Id |
getProfileId()
Gets the
Profile Id associated with this
session. |
ProfileItemQuery |
getProfileItemQuery()
Gets a profile item query.
|
ProfileItemList |
getProfileItemsByQuery(ProfileItemQuery profileItemQuery)
Gets a list of
ProfileItems matching the given profile
item query interface. |
void |
useFederatedProfileView()
Federates the view for methods in this session.
|
void |
useIsolatedProfileView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getProfileId()
Profile
Id
associated with this
session. Profile Id
associated with this sessionmandatory
- This method must be implemented. Profile getProfile() throws OperationFailedException, PermissionDeniedException
Profile
associated with this session. Profile
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canSearchProfileItems()
ProfileItem
searches. A
return of true does not guarantee successful authorization. A return
of false indicates that it is known all methods in this session will
result in a PERMISSION_DENIED.
This is intended as a
hint to an application that may opt not to offer search operations to
unauthorized users. false
if search methods are not authorized,
true
otherwisemandatory
- This method must be implemented. void useFederatedProfileView()
mandatory
- This method is must be implemented. void useIsolatedProfileView()
mandatory
- This method is must be implemented. ProfileItemQuery getProfileItemQuery()
mandatory
- This method must be implemented. ProfileItemList getProfileItemsByQuery(ProfileItemQuery profileItemQuery) throws OperationFailedException, PermissionDeniedException
ProfileItems
matching the given profile
item query interface.profileItemQuery
- the profile item query ProfileItemList
NullArgumentException
- profileItemQuery
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- profileItemQuery
is not of this servicemandatory
- This method must be implemented.