Interface PostEntrySmartBusinessSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A PostEntryQuery can be retrieved from this session and
mapped to this Business to create a virtual collection of
PostEntries. The post entries may be sequenced using the
PostEntrySearchOrder from this session.
This Business has a default query that matches any post entry
and a default search order that specifies no sequencing. The queries may
be examined using a PostEntryQueryInspector. The query may be
modified by converting the inspector back to a PostEntryQuery.
Like all OsidSessions, PostEntrySmartBusinessSessions
are dedicated to single processing threads and a single authenticated
user.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyPostEntryQuery(PostEntryQuery postEntryQuery) Applies a post entry query to this business.voidapplyPostEntrySequencing(PostEntrySearchOrder postEntrySearchOrder) Applies a post entry search order to this business.booleanTests if this user can manage smart businesses.Gets theBusinessassociated with this session.Gets theBusinessIdassociated with this session.Gets a post entry query.getPostEntryQueryFromInspector(PostEntryQueryInspector postEntryQueryInspector) Gets a post entry query from an inspector.Gets a post entry search order.Gets a post entry query inspector for this business.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatTypes, getLocales, isAuthenticated, startTransaction, supportsTransactions
-
Method Details
-
getBusinessId
Id getBusinessId()Gets theBusinessIdassociated with this session.- Returns:
- the
Business Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getBusiness
Gets theBusinessassociated with this session.- Returns:
- the business
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageSmartBusinesses
boolean canManageSmartBusinesses()Tests if this user can manage smart businesses. A return of true does not guarantee successful assessment. A return of false indicates that it is known methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.- Returns:
falseif smart business management is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getPostEntryQuery
PostEntryQuery getPostEntryQuery()Gets a post entry query.- Returns:
- the post entry query
- Compliance:
mandatory- This method must be implemented.
-
getPostEntrySearchOrder
PostEntrySearchOrder getPostEntrySearchOrder()Gets a post entry search order.- Returns:
- the post entry search order
- Compliance:
mandatory- This method must be implemented.
-
applyPostEntryQuery
void applyPostEntryQuery(PostEntryQuery postEntryQuery) throws OperationFailedException, PermissionDeniedException Applies a post entry query to this business.- Parameters:
postEntryQuery- the post entry query- Throws:
NullArgumentException-postEntryQueryisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-postEntryQuerynot of this service- Compliance:
mandatory- This method must be implemented.
-
inspectPostEntryQuery
PostEntryQueryInspector inspectPostEntryQuery() throws OperationFailedException, PermissionDeniedExceptionGets a post entry query inspector for this business.- Returns:
- the post entry query inspector
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
applyPostEntrySequencing
void applyPostEntrySequencing(PostEntrySearchOrder postEntrySearchOrder) throws OperationFailedException, PermissionDeniedException Applies a post entry search order to this business.- Parameters:
postEntrySearchOrder- the post entry search order- Throws:
NullArgumentException-postEntrySearchOrderisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-postEntrySearchOrdernot of this service- Compliance:
mandatory- This method must be implemented.
-
getPostEntryQueryFromInspector
Gets a post entry query from an inspector.- Parameters:
postEntryQueryInspector- a query inspector- Returns:
- the post entry query
- Throws:
NullArgumentException-postEntryQueryInspectorisnullUnsupportedException-postEntryQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-