public interface RelationshipEnablerSmartFamilySession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
families. A RelationshipEnablerQuery
can be retrieved from
this session and mapped to this Family
to create a virtual
collection of relationship enablers. The relationship enablers may be
sequenced using the RelationshipEnablerSearchOrder
from
this session.
This Family
has a default query that matches any
relationship enabler and a default search order that specifies no
sequencing. The queries may be examined using a
RelationshipEnablerQueryInspector.
The query may be modified by
converting the inspector back to a RelationshipEnablerQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyRelationshipEnablerQuery(RelationshipEnablerQuery relationshipEnablerQuery)
Applies a relationship enabler query to this family.
|
void |
applyRelationshipEnablerSequencing(RelationshipEnablerSearchOrder relationshipEnablerSearchOrder)
Applies a relationship enabler search order to this family.
|
boolean |
canManageSmartFamilies()
Tests if this user can manage smart families.
|
Family |
getFamily()
Gets the
Family associated with this session. |
Id |
getFamilyId()
Gets the
Family Id associated with this
session. |
RelationshipEnablerQuery |
getRelationshipEnablerQuery()
Gets a relationship enabler query.
|
RelationshipEnablerQuery |
getRelationshipEnablerQueryFromInspector(RelationshipEnablerQueryInspector relationshipEnablerQueryInspector)
Gets a relationship enabler query from an inspector.
|
RelationshipEnablerSearchOrder |
getRelationshipEnablerSearchOrder()
Gets a relationship enabler search order.
|
RelationshipEnablerQueryInspector |
inspectRelationshipEnablerQuery()
Gets a relationship enabler query inspector for this family.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getFamilyId()
Family
Id
associated with this
session. Family Id
associated with this sessionmandatory
- This method must be implemented. Family getFamily() throws OperationFailedException, PermissionDeniedException
Family
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartFamilies()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false
if smart family management is not
authorized, true
otherwisemandatory
- This method must be implemented. RelationshipEnablerQuery getRelationshipEnablerQuery()
mandatory
- This method must be implemented. RelationshipEnablerSearchOrder getRelationshipEnablerSearchOrder()
mandatory
- This method must be implemented. void applyRelationshipEnablerQuery(RelationshipEnablerQuery relationshipEnablerQuery) throws OperationFailedException, PermissionDeniedException
relationshipEnablerQuery
- the relationship enabler queryNullArgumentException
- relationshipEnablerQuery
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- relationshipEnablerQuery
not of this servicemandatory
- This method must be implemented. RelationshipEnablerQueryInspector inspectRelationshipEnablerQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyRelationshipEnablerSequencing(RelationshipEnablerSearchOrder relationshipEnablerSearchOrder) throws OperationFailedException, PermissionDeniedException
relationshipEnablerSearchOrder
- the relationship enabler search
orderNullArgumentException
-
relationshipEnablerSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
-
relationshipEnablerSearchOrder
not of this servicemandatory
- This method must be implemented. RelationshipEnablerQuery getRelationshipEnablerQueryFromInspector(RelationshipEnablerQueryInspector relationshipEnablerQueryInspector)
relationshipEnablerQueryInspector
- a relationship enabler query
inspectorNullArgumentException
-
relationshipEnablerQueryInspector
is null
UnsupportedException
-
relationshipEnablerQueryInspector
is not of this
servicemandatory
- This method must be implemented.