|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SearchService
SearchService is needed for searching for qualified asset with given query It could search against a list of asset types or all asset types if not specified
Method Summary | |
---|---|
int |
addToActiveList(java.lang.String userId,
java.util.List<AssetId> assets)
Add the assets to active list |
boolean |
deleteSaveSearch(long saveSearchId)
Deletes the save Search |
java.util.List<SmartList> |
getAllSaveSearch(java.lang.String userName,
long siteId)
returns save search object for the user and site |
java.util.List<AttributeDef> |
getEnabledAttributes(TypeBean type)
Return the list of enabled attributes in search for an asset type |
SmartList |
getSaveSearch(long saveSearchId)
Returns the save search object |
boolean |
isSearchEnabled(java.lang.String assetType)
check whether search is enabled for the assetType |
boolean |
removeFromActiveList(java.util.List<java.lang.Long> activeListItems)
Remove items from the active list |
boolean |
removeFromActiveList(java.lang.String UserID,
java.util.List<java.lang.Long> activeListItems)
|
java.util.List<ActiveListItemBean> |
retrieveBookmarks(java.lang.String userId,
long siteId)
Retrieve the assets from active list. |
java.util.List<AssetId> |
retrieveFromActiveList(java.lang.String userId,
long siteId)
Retrieve the assets from active list. |
boolean |
saveSearch(SmartList saveSearch)
saves search criteria |
java.util.List<ResultRow> |
search(SearchCriteria searchCriteria,
int maxResults,
java.util.List<SortOrder> sortby)
Advanced search |
java.util.List<ResultRow> |
search(java.lang.String phrase,
long siteId,
java.util.List<TypeBean> assetTypeSubType,
int maxResults,
java.util.List<SortOrder> sortby)
|
java.util.List<ResultRow> |
search(java.lang.String phrase,
java.lang.String phraseOperation,
java.lang.String searchfield,
long siteId,
java.util.List<TypeBean> types,
int maxResults,
java.util.List<SortOrder> sortby)
|
java.util.List<ResultRow> |
searchAssetType(java.lang.String assetType,
long siteId,
int maxResults,
java.util.List<SortOrder> sortby)
|
java.util.List<ResultRow> |
searchImmediateChildren(AssetId parentId,
long siteId,
int maxResults,
java.util.List<SortOrder> sortby)
|
java.util.List<ResultRow> |
searchTreeNode(java.util.List<AssetId> assetIdList,
int maxQueryNum,
int maxResults,
long siteId,
SortOrder sortby)
Search TreeNode |
Methods inherited from interface com.fatwire.services.Service |
---|
getManager, getResponse, setManager |
Method Detail |
---|
java.util.List<ResultRow> search(java.lang.String phrase, long siteId, java.util.List<TypeBean> assetTypeSubType, int maxResults, java.util.List<SortOrder> sortby) throws ServiceException
phrase
- Search string, it is normally the keywords to search.siteId
- site id.assetTypeSubType
- List of assetype, subtype on which search should be performedmaxResults
- max total number of results to be returnedsortby
- list of SortFields
ServiceException
java.util.List<ResultRow> search(java.lang.String phrase, java.lang.String phraseOperation, java.lang.String searchfield, long siteId, java.util.List<TypeBean> types, int maxResults, java.util.List<SortOrder> sortby) throws ServiceException
phrase
- Search string, it is normally the keywords to search.phraseOperation
- Operation which will be applied on the indexed field to match with the phrase for example contains , starts with etc.searchfield
- Field in the index which will be searched for the phrase.siteId
- site id.assetTypeSubType
- List of assetype, subtype on which search should be performedmaxResults
- max total number of results to be returnedsortby
- list of SortFields
ServiceException
java.util.List<ResultRow> searchAssetType(java.lang.String assetType, long siteId, int maxResults, java.util.List<SortOrder> sortby) throws ServiceException
ServiceException
java.util.List<ResultRow> searchImmediateChildren(AssetId parentId, long siteId, int maxResults, java.util.List<SortOrder> sortby) throws ServiceException
ServiceException
boolean saveSearch(SmartList saveSearch)
saveSearch
- - Save Search object
SmartList getSaveSearch(long saveSearchId)
saveSearchIds
- ID of the saved search
boolean deleteSaveSearch(long saveSearchId)
saveSearchId
-
java.util.List<SmartList> getAllSaveSearch(java.lang.String userName, long siteId)
userName
- user namesiteId
- the site ID
boolean isSearchEnabled(java.lang.String assetType)
assetType
- the asset type
java.util.List<AttributeDef> getEnabledAttributes(TypeBean type) throws ServiceException
assetType
- the asset typesubtype
- subtype of the asset
ServiceException
java.util.List<ResultRow> search(SearchCriteria searchCriteria, int maxResults, java.util.List<SortOrder> sortby) throws ServiceException
searchCriteria
- search criteriamaxResults
- maximum search resultssortby
- list of SortFields
ServiceException
int addToActiveList(java.lang.String userId, java.util.List<AssetId> assets) throws ServiceException
userId
- user IDassets
- list of asset IDs to be added to the active list
ServiceException
java.util.List<ResultRow> searchTreeNode(java.util.List<AssetId> assetIdList, int maxQueryNum, int maxResults, long siteId, SortOrder sortby) throws ServiceException
assetIdList
- list of asset IDsmaxQueryNum
- //TODOmaxResults
- maximum search resultssiteId
- the site ID
UIServiceException
ServiceException
java.util.List<AssetId> retrieveFromActiveList(java.lang.String userId, long siteId) throws ServiceException
userId
- user IDsiteId
- the site ID
ServiceException
java.util.List<ActiveListItemBean> retrieveBookmarks(java.lang.String userId, long siteId) throws ServiceException
userId
- user IDsiteId
- the site ID
ServiceException
boolean removeFromActiveList(java.util.List<java.lang.Long> activeListItems) throws ServiceException
assets
- list of active list items to be removed from activeList
ServiceException
boolean removeFromActiveList(java.lang.String UserID, java.util.List<java.lang.Long> activeListItems) throws ServiceException
UserID
- assets
- list of activeListItems to be removed from activeList
ServiceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |