Class SynchronousQuickSearch.Builder
- java.lang.Object
-
- com.microstrategy.webapi.paramsobject.SynchronousQuickSearch.Builder
-
- Enclosing class:
- SynchronousQuickSearch
public static class SynchronousQuickSearch.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(SynchronousQuickSearch quickSearchObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SynchronousQuickSearch.Builder
beginCreateTime(java.lang.String beginCreateTime)
Begin Create Time GMT.SynchronousQuickSearch.Builder
beginModifyTime(java.lang.String beginModifyTime)
Begin Modify Time GMT.SynchronousQuickSearch
build()
Build SynchronousQuickSearch objectSynchronousQuickSearch.Builder
count(int count)
Set the max number of objects to be returned, usually equals to the page size.SynchronousQuickSearch.Builder
descriptionPattern(java.lang.String descriptionPattern)
Query in object description.SynchronousQuickSearch.Builder
documentTypes(java.lang.String documentTypes)
SynchronousQuickSearch.Builder
dossierTemplate(boolean dossierTemplate)
SynchronousQuickSearch.Builder
endCreateTime(java.lang.String endCreateTime)
End Create Time GMT.SynchronousQuickSearch.Builder
endModifyTime(java.lang.String endModifyTime)
End Modify Time GMT.SynchronousQuickSearch.Builder
includeManagedObject(boolean includeManagedObject)
Set whether include managed objectsSynchronousQuickSearch.Builder
namePattern(java.lang.String namePattern)
Query in object name, If namePattern is empty, it means search all objects.SynchronousQuickSearch.Builder
outputType(int outputType)
Define the output type of the search result. "1" means json type, "2" means XML type.SynchronousQuickSearch.Builder
ownerIds(java.lang.String ownerIds)
Define owner ID(s) we need to search in objects owned by.SynchronousQuickSearch.Builder
quickSearchCertifiedStatus(EnumDSSXMLQuickSearchCertifiedStatus quickSearchCertifiedStatus)
Set quickSearchCertifiedStatus 0 -> return none certified only; 1 -> return certfied only; 2 -> return both certified and none certified objectSynchronousQuickSearch.Builder
quickSearchCmd(int quickSearchCmd)
Set what type of data need to get back from the quick search command. quickSearchCmd=1 means get quick search status, quickSearchCmd=2 means do quick search.SynchronousQuickSearch.Builder
quickSearchFields(java.lang.Integer quickSearchFields)
Set quickSearchFields, the fields of the quick searchSynchronousQuickSearch.Builder
quickSearchMode(EnumDSSXMLQuickSearchMode quickSearchMode)
SynchronousQuickSearch.Builder
quickSearchVisibility(EnumDSSXMLQuickSearchVisibility quickSearchVisibility)
Set quick search visibility, 0 -> return visible object only; 1 -> return hidden object only; 2 -> return both hidden and visible objectSynchronousQuickSearch.Builder
recommendationQueryString(java.lang.String recommendationQueryString)
Set sourceObjectProjectId, the source object project id for the recommendationSynchronousQuickSearch.Builder
recursive(boolean recursive)
Set whether search in sub folders recursively, 0 means false, others means true.SynchronousQuickSearch.Builder
resolveShortcut(boolean resolveShortcut)
Set resolve shortcut to targetSynchronousQuickSearch.Builder
searchFolders(java.lang.String searchFolders)
Set search FoldersSynchronousQuickSearch.Builder
searchType(int searchType)
Set the type of quick search, 0=contains, 2=exactly, 3=beginwith, 5=endwith; -1=not use quick searchSynchronousQuickSearch.Builder
sessionID(java.lang.String sessionID)
Set a valid Session ID.SynchronousQuickSearch.Builder
sourceObjectId(java.lang.String sourceObjectId)
Set sourceObjectId, the source object id for the recommendationSynchronousQuickSearch.Builder
sourceObjectProjectId(java.lang.String sourceObjectProjectId)
Set sourceObjectProjectId, the source object project id for the recommendationSynchronousQuickSearch.Builder
sourceObjectType(int sourceObjectType)
Set sourceObjectType, the source object type for the recommendationSynchronousQuickSearch.Builder
startObject(int startObject)
Set startObjectSynchronousQuickSearch.Builder
sXProjIDs(java.lang.String sXProjIDs)
SynchronousQuickSearch.Builder
targetUserGroupId(java.lang.String targetUserGroupId)
SynchronousQuickSearch.Builder
types(java.lang.String types)
Define the object type(s) we need to search.SynchronousQuickSearch.Builder
userEnabledStatus(EnumDSSXMLQuickSearchEnabledStatus userEnabledStatus)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(SynchronousQuickSearch quickSearchObject)
-
-
Method Detail
-
sessionID
public SynchronousQuickSearch.Builder sessionID(java.lang.String sessionID)
Set a valid Session ID.- Parameters:
sessionID
-- Returns:
-
quickSearchCmd
public SynchronousQuickSearch.Builder quickSearchCmd(int quickSearchCmd)
Set what type of data need to get back from the quick search command. quickSearchCmd=1 means get quick search status, quickSearchCmd=2 means do quick search.- Parameters:
quickSearchCmd
-- Returns:
-
quickSearchMode
public SynchronousQuickSearch.Builder quickSearchMode(EnumDSSXMLQuickSearchMode quickSearchMode)
- Parameters:
quickSearchMode
-- Returns:
-
namePattern
public SynchronousQuickSearch.Builder namePattern(java.lang.String namePattern)
Query in object name, If namePattern is empty, it means search all objects.- Parameters:
namePattern
-- Returns:
-
startObject
public SynchronousQuickSearch.Builder startObject(int startObject)
Set startObject- Parameters:
startObject
- 0 based, the start index of returned objects.- Returns:
-
count
public SynchronousQuickSearch.Builder count(int count)
Set the max number of objects to be returned, usually equals to the page size.- Parameters:
count
-- Returns:
-
searchType
public SynchronousQuickSearch.Builder searchType(int searchType)
Set the type of quick search, 0=contains, 2=exactly, 3=beginwith, 5=endwith; -1=not use quick searchOptional parameter
- Parameters:
searchType
-- Returns:
-
descriptionPattern
public SynchronousQuickSearch.Builder descriptionPattern(java.lang.String descriptionPattern)
Query in object description.- Parameters:
descriptionPattern
-- Returns:
-
recursive
public SynchronousQuickSearch.Builder recursive(boolean recursive)
Set whether search in sub folders recursively, 0 means false, others means true.- Parameters:
recursive
-- Returns:
-
includeManagedObject
public SynchronousQuickSearch.Builder includeManagedObject(boolean includeManagedObject)
Set whether include managed objects- Parameters:
includeManagedObject
-- Returns:
-
resolveShortcut
public SynchronousQuickSearch.Builder resolveShortcut(boolean resolveShortcut)
Set resolve shortcut to target- Parameters:
resolveShortcut
-- Returns:
-
searchFolders
public SynchronousQuickSearch.Builder searchFolders(java.lang.String searchFolders)
Set search Folders- Parameters:
searchFolders
- Define folder ID(s) we need to search in which folder/folders. If there are multiple folders, the ids should be separated by space.- Returns:
-
ownerIds
public SynchronousQuickSearch.Builder ownerIds(java.lang.String ownerIds)
Define owner ID(s) we need to search in objects owned by. If there are multiple owners, the ids should be separated by space.- Parameters:
ownerIds
-- Returns:
-
types
public SynchronousQuickSearch.Builder types(java.lang.String types)
Define the object type(s) we need to search. If there are multiple types, the types should be separated by space. It could be either type or subtype.- Parameters:
types
-- Returns:
-
beginCreateTime
public SynchronousQuickSearch.Builder beginCreateTime(java.lang.String beginCreateTime)
Begin Create Time GMT. The time is in ISO 8601 format (YYYY-MM-DD hh:mm:ss.msec).- Parameters:
beginCreateTime
-- Returns:
-
endCreateTime
public SynchronousQuickSearch.Builder endCreateTime(java.lang.String endCreateTime)
End Create Time GMT. The time is in ISO 8601 format (YYYY-MM-DD hh:mm:ss.msec).- Parameters:
endCreateTime
-- Returns:
-
beginModifyTime
public SynchronousQuickSearch.Builder beginModifyTime(java.lang.String beginModifyTime)
Begin Modify Time GMT. The time is in ISO 8601 format (YYYY-MM-DD hh:mm:ss.msec).- Parameters:
beginModifyTime
-- Returns:
-
endModifyTime
public SynchronousQuickSearch.Builder endModifyTime(java.lang.String endModifyTime)
End Modify Time GMT. The time is in ISO 8601 format (YYYY-MM-DD hh:mm:ss.msec).- Parameters:
endModifyTime
-- Returns:
-
outputType
public SynchronousQuickSearch.Builder outputType(int outputType)
Define the output type of the search result. "1" means json type, "2" means XML type.- Parameters:
outputType
-- Returns:
-
quickSearchVisibility
public SynchronousQuickSearch.Builder quickSearchVisibility(EnumDSSXMLQuickSearchVisibility quickSearchVisibility)
Set quick search visibility, 0 -> return visible object only; 1 -> return hidden object only; 2 -> return both hidden and visible object- Parameters:
quickSearchVisibility
-- Returns:
-
quickSearchCertifiedStatus
public SynchronousQuickSearch.Builder quickSearchCertifiedStatus(EnumDSSXMLQuickSearchCertifiedStatus quickSearchCertifiedStatus)
Set quickSearchCertifiedStatus 0 -> return none certified only; 1 -> return certfied only; 2 -> return both certified and none certified object- Parameters:
quickSearchCertifiedStatus
-- Returns:
-
dossierTemplate
public SynchronousQuickSearch.Builder dossierTemplate(boolean dossierTemplate)
-
sXProjIDs
public SynchronousQuickSearch.Builder sXProjIDs(java.lang.String sXProjIDs)
- Parameters:
sXProjIDs
-- Returns:
-
sourceObjectId
public SynchronousQuickSearch.Builder sourceObjectId(java.lang.String sourceObjectId)
Set sourceObjectId, the source object id for the recommendation- Parameters:
sourceObjectId
-- Returns:
-
sourceObjectType
public SynchronousQuickSearch.Builder sourceObjectType(int sourceObjectType)
Set sourceObjectType, the source object type for the recommendation- Parameters:
sourceObjectType
-- Returns:
-
sourceObjectProjectId
public SynchronousQuickSearch.Builder sourceObjectProjectId(java.lang.String sourceObjectProjectId)
Set sourceObjectProjectId, the source object project id for the recommendation- Parameters:
sourceObjectProjectId
-- Returns:
-
recommendationQueryString
public SynchronousQuickSearch.Builder recommendationQueryString(java.lang.String recommendationQueryString)
Set sourceObjectProjectId, the source object project id for the recommendation- Parameters:
recommendationQueryString
-- Returns:
-
quickSearchFields
public SynchronousQuickSearch.Builder quickSearchFields(java.lang.Integer quickSearchFields)
Set quickSearchFields, the fields of the quick search- Parameters:
quickSearchFields
-- Returns:
-
documentTypes
public SynchronousQuickSearch.Builder documentTypes(java.lang.String documentTypes)
-
userEnabledStatus
public SynchronousQuickSearch.Builder userEnabledStatus(EnumDSSXMLQuickSearchEnabledStatus userEnabledStatus)
-
targetUserGroupId
public SynchronousQuickSearch.Builder targetUserGroupId(java.lang.String targetUserGroupId)
-
build
public SynchronousQuickSearch build()
Build SynchronousQuickSearch object- Returns:
-
-