Package com.uc4.communication.requests
Class SearchObject
- java.lang.Object
-
- com.uc4.communication.requests.XMLRequest
-
- com.uc4.communication.requests.SearchObject
-
public class SearchObject extends XMLRequest
Finds UC4 Objects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSearchObject.VariableDataTypeType of a Variable.
-
Constructor Summary
Constructors Constructor Description SearchObject()Constructs aSearch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)Creates the XML Document for the request.voiddisableTextSearch()Disable text search.DateTimegetFromDate()Returns the begin of the date range.java.lang.StringgetName()Returns the object name filter.java.lang.StringgetSearchLocation()Returns the folder path which used in the search.protected java.lang.StringgetSrc()Returns the request source.DateTimegetToDate()Returns the end of the date range.protected voidhandleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)Sub classes extract the values from the XML document and provide public getter methods.protected booleanignoreMessageBox()protected booleanisAllowedInClientZero()This method is used internally.booleanisDateSelectionCreated()Returnstrueif the creation date of objects is used in the selection for this search.booleanisDateSelectionModified()Returnstrueif the modification timestamp of objects is used in the selection for this search.booleanisDateSelectionUsed()Returnstrueif the last used timestamp of objects is used in the selection for this search.booleanisIncludeLinks()Returnstrueif links to objects are included in the result.booleanisIncludeSubfolder()Returnstrueif subfolder are included.booleanisNoDateSelection()Returnstrueif the date selection is disabled.booleanisSearchUseOfObjects()Returnstrueif the use of objects is selected.booleanisTypeCALE()Returns whether the object type CALE is enabled for the search or not.booleanisTypeCALL()Returns whether the object type CALL is enabled for the search or not.booleanisTypeCITC()Returns whether the object type CITC is enabled for the search or not.booleanisTypeCLNT()Returns whether the object type CLNT is enabled for the search or not.booleanisTypeCODE()Returns whether the object type CODE is enabled for the search or not.booleanisTypeCONN()Returns whether the object type CONN is enabled for the search or not.booleanisTypeCPIT()Returns whether the object type CPIT is enabled for the search or not.booleanisTypeDASH()Returns whether the object type DASH is enabled for the search or not.booleanisTypeDOCU()Returns whether the object type DOCU is enabled for the search or not.booleanisTypeEVNT()Returns whether the object type EVNT is enabled for the search or not.booleanisTypeFILTER()Returns whether the object type FILTER is enabled for the search or not.booleanisTypeFOLD()Returns whether the object type FOLD is enabled for the search or not.booleanisTypeHOST()Returns whether the object type HOST is enabled for the search or not.booleanisTypeHOSTG()Returns whether the object type HOSTG is enabled for the search or not.booleanisTypeHSTA()Returns whether the object type HSTA is enabled for the search or not.booleanisTypeJOBF()Returns whether the object type JOBF is enabled for the search or not.booleanisTypeJOBG()Returns whether the object type JOBG is enabled for the search or not.booleanisTypeJOBI()Returns whether the object type JOBI is enabled for the search or not.booleanisTypeJOBP()Returns whether the object type JOBP is enabled for the search or not.booleanisTypeJOBQ()Returns whether the object type JOBQ is enabled for the search or not.booleanisTypeJOBS()Returns whether the object type JOBS is enabled for the search or not.booleanisTypeJSCH()Returns whether the object type JSCH is enabled for the search or not.booleanisTypeLOGIN()Returns whether the object type LOGIN is enabled for the search or not.booleanisTypePERIOD()Returns whether the object type STORE is enabled for the search or not.booleanisTypePRPT()Returns whether the object type PRPT is enabled for the search or not.booleanisTypeQUEUE()Returns whether the object type QUEUE is enabled for the search or not.booleanisTypeSCRI()Returns whether the object type SCRI is enabled for the search or not.booleanisTypeSERV()Returns whether the object type SERV is enabled for the search or not.booleanisTypeSLO()Returns whether the object type SLO is enabled for the search or not.booleanisTypeSTORE()Returns whether the object type STORE is enabled for the search or not.booleanisTypeSYNC()Returns whether the object type SYNC is enabled for the search or not.booleanisTypeTZ()Returns whether the object type TZ is enabled for the search or not.booleanisTypeUSER()Returns whether the object type USER is enabled for the search or not.booleanisTypeUSRG()Returns whether the object type USER is enabled for the search or not.booleanisTypeVARA()Returns whether the object type VARA is enabled for the search or not.booleanisTypeXSL()Returns whether the object type XSL is enabled for the search or not.java.util.Iterator<SearchResultItem>resultIterator()Returns an iterator overSearchResultItem.voidsearchCalendarKeyword(java.lang.String keywordPattern)Sets a filter to return only CALE objects which contain the specifiedkeywordPatternThe default value is *.voidsearchInRAValues(java.lang.String pattern)Search for RA values.voidselectAllObjectTypes()Select all object types.voidsetDateSelectionCreated(DateTime from, DateTime to)Select objects which are created within the specified date range.voidsetDateSelectionModified(DateTime from, DateTime to)Select objects which are modified within the specified date range.voidsetDateSelectionUsed(DateTime from, DateTime to)Select objects which are used within the specified date range.voidsetIncludeLinks(boolean includeLinks)If the parameterincludeLinksis set totruelinks to objects are included in the result.voidsetIncludeUseInScripts(boolean scripts)Enables or disables the content of Scripts in the search.voidsetName(java.lang.String name)Sets the object name filter.voidsetNameAndTitle(java.lang.String name)Sets the search pattern for the object name and/or the object title.voidsetNoDateSelection()Disables date selection.voidsetSearchInVariable(java.lang.String pattern, boolean key, boolean value, boolean allValueColumns, SearchObject.VariableDataType dataType)Searches in UC4 Variable Objects.voidsetSearchLocation(java.lang.String path, boolean includeSubfolder)Sets the folder path.voidsetSearchUseOfObjects(boolean searchUseOfObjects)Enables or disables the search for use of objects.voidsetTextSearch(java.lang.String pattern, boolean process, boolean documentation, boolean objectTitle, boolean archiveKeys)Search for texts.voidsetTypeCALE(boolean typeCALE)Enables or disables the object type CALE.voidsetTypeCALL(boolean typeCALL)Enables or disables the object type CALL.voidsetTypeCITC(boolean typeCITC)Enables or disables the object type CITC.voidsetTypeCLNT(boolean typeCLNT)Enables or disables the object type CLNT.voidsetTypeCODE(boolean typeCODE)Enables or disables the object type CODE.voidsetTypeCONN(boolean typeCONN)Enables or disables the object type CONN.voidsetTypeCPIT(boolean typeCPIT)Enables or disables the object type CPIT.voidsetTypeDASH(boolean typeDASH)Enables or disables the object type DASH.voidsetTypeDOCU(boolean typeDOCU)Enables or disables the object type DOCU.voidsetTypeEVNT(boolean typeEVNT)Enables or disables the object type EVNT.voidsetTypeExecuteable()Selects all executable object types.voidsetTypeFILTER(boolean typeFILTER)Enables or disables the object type FILTER.voidsetTypeFOLD(boolean typeFOLD)Enables or disables the object type FOLD.voidsetTypeHOST(boolean typeHOST)Enables or disables the object type HOST.voidsetTypeHOSTG(boolean typeHOSTG)Enables or disables the object type HOSTG.voidsetTypeHSTA(boolean typeHSTA)Enables or disables the object type HSTA.voidsetTypeJOBF(boolean typeJOBF)Enables or disables the object type JOBF.voidsetTypeJOBG(boolean typeJOBG)Enables or disables the object type JOBG.voidsetTypeJOBI(boolean typeJOBI)Enables or disables the object type JOBI.voidsetTypeJOBP(boolean typeJOBP)Enables or disables the object type JOBP.voidsetTypeJOBQ(boolean typeJOBQ)Enables or disables the object type JOBQ.voidsetTypeJOBS(boolean typeJOBS)Enables or disables the object type JOBS.voidsetTypeJSCH(boolean typeJSCH)Enables or disables the object type JSCH.voidsetTypeLOGIN(boolean typeLOGIN)Enables or disables the object type LOGIN.voidsetTypePERIOD(boolean typePERIOD)Enables or disables the object type PERIOD.voidsetTypePRPT(boolean typePRPT)Enables or disables the object type PRPT.voidsetTypeQUEUE(boolean typeQUEUE)Enables or disables the object type QUEUE.voidsetTypeSCRI(boolean typeSCRI)Enables or disables the object type SCRI.voidsetTypeSERV(boolean typeSERV)Enables or disables the object type SERV.voidsetTypeSLO(boolean typeSLO)Enables or disables the object type SLO.voidsetTypeSTORE(boolean typeSTORE)Enables or disables the object type STORE.voidsetTypeSYNC(boolean typeSYNC)Enables or disables the object type SYNC.voidsetTypeTZ(boolean typeTZ)Enables or disables the object type TZ.voidsetTypeUSER(boolean typeUSER)Enables or disables the object type USER.voidsetTypeUSRG(boolean typeUSRG)Enables or disables the object type USERG.voidsetTypeVARA(boolean typeVARA)Enables or disables the object type VARA.voidsetTypeXSL(boolean typeXSL)Enables or disables the object type XSL.intsize()Returns the number of objects in the search result.voidunselectAllObjectTypes()Unselect all object types.-
Methods inherited from class com.uc4.communication.requests.XMLRequest
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, send, setMessageBox, showQuarantineNotification
-
-
-
-
Method Detail
-
getSrc
protected java.lang.String getSrc()
Description copied from class:XMLRequestReturns the request source. This method is used internally.- Specified by:
getSrcin classXMLRequest- Returns:
- Source
-
createRequest
protected void createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)Description copied from class:XMLRequestCreates the XML Document for the request. This method is used internally.- Specified by:
createRequestin classXMLRequest- Parameters:
doc- Document, used to create new Elementsrequest- Request Element - classes append information to this request elementsessionInfo- Information about the session
-
handleContent
protected void handleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)Description copied from class:XMLRequestSub classes extract the values from the XML document and provide public getter methods.- Overrides:
handleContentin classXMLRequest- Parameters:
doc- XML Documentsession- Info about the user session
-
ignoreMessageBox
protected boolean ignoreMessageBox()
- Overrides:
ignoreMessageBoxin classXMLRequest
-
setTypeExecuteable
public void setTypeExecuteable()
Selects all executable object types.
-
resultIterator
public java.util.Iterator<SearchResultItem> resultIterator()
Returns an iterator overSearchResultItem.- Returns:
- iterator over
SearchResultItemornullif this request does not contain a search result
-
isSearchUseOfObjects
public boolean isSearchUseOfObjects()
Returnstrueif the use of objects is selected.- Returns:
- Boolean containing
trueif the use of objects is selected
-
setSearchUseOfObjects
public void setSearchUseOfObjects(boolean searchUseOfObjects)
Enables or disables the search for use of objects.- Parameters:
searchUseOfObjects- Boolean containingtrueif the use of objects is selected
-
isIncludeLinks
public boolean isIncludeLinks()
Returnstrueif links to objects are included in the result.- Returns:
- Include links to objects
-
setIncludeLinks
public void setIncludeLinks(boolean includeLinks)
If the parameterincludeLinksis set totruelinks to objects are included in the result.- Parameters:
includeLinks- true to include links in the search result
-
setIncludeUseInScripts
public void setIncludeUseInScripts(boolean scripts)
Enables or disables the content of Scripts in the search.- Parameters:
scripts- Boolean containingtrueif Scripts are included
-
getSearchLocation
public java.lang.String getSearchLocation()
Returns the folder path which used in the search.- Returns:
- path
-
setSearchLocation
public void setSearchLocation(java.lang.String path, boolean includeSubfolder)Sets the folder path. Only UC4 Objects in the specified folder or subfolders are found.- Parameters:
path- PathincludeSubfolder- Include subfolder
-
isIncludeSubfolder
public boolean isIncludeSubfolder()
Returnstrueif subfolder are included.- Returns:
- Boolean containing
trueif subfolders are included
-
getName
public java.lang.String getName()
Returns the object name filter.- Returns:
- Pattern containing the object name
-
setNameAndTitle
public void setNameAndTitle(java.lang.String name)
Sets the search pattern for the object name and/or the object title. By default this method adds the wildcard character '*' as prefix to the given search pattern.- Parameters:
name- Pattern containing the object name or title
-
setName
public void setName(java.lang.String name)
Sets the object name filter.- Parameters:
name- Pattern containing the object name
-
isTypeCALE
public boolean isTypeCALE()
Returns whether the object type CALE is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type CALE is enabled
-
setTypeCALE
public void setTypeCALE(boolean typeCALE)
Enables or disables the object type CALE.- Parameters:
typeCALE- Boolean which is set totrueif objects of type CALE should be returned.
-
isTypeCITC
public boolean isTypeCITC()
Returns whether the object type CITC is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type CITC is enabled
-
setTypeCITC
public void setTypeCITC(boolean typeCITC)
Enables or disables the object type CITC.- Parameters:
typeCITC- Boolean which is set totrueif objects of type CITC should be returned.
-
isTypeCONN
public boolean isTypeCONN()
Returns whether the object type CONN is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type CONN is enabled
-
setTypeCONN
public void setTypeCONN(boolean typeCONN)
Enables or disables the object type CONN.- Parameters:
typeCONN- Boolean which is set totrueif objects of type CONN should be returned.
-
isTypeFILTER
public boolean isTypeFILTER()
Returns whether the object type FILTER is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type FILTER is enabled
-
isTypeQUEUE
public boolean isTypeQUEUE()
Returns whether the object type QUEUE is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type QUEUE is enabled
-
setTypeQUEUE
public void setTypeQUEUE(boolean typeQUEUE)
Enables or disables the object type QUEUE.- Parameters:
typeQUEUE- Boolean which is set totrueif objects of type QUEUE should be returned.
-
setTypeFILTER
public void setTypeFILTER(boolean typeFILTER)
Enables or disables the object type FILTER.- Parameters:
typeFILTER- Boolean which is set totrueif objects of type FILTER should be returned.
-
isTypeHSTA
public boolean isTypeHSTA()
Returns whether the object type HSTA is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type HSTA is enabled
-
setTypeHSTA
public void setTypeHSTA(boolean typeHSTA)
Enables or disables the object type HSTA.- Parameters:
typeHSTA- Boolean which is set totrueif objects of type HSTA should be returned.
-
isTypeXSL
public boolean isTypeXSL()
Returns whether the object type XSL is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type XSL is enabled
-
setTypeXSL
public void setTypeXSL(boolean typeXSL)
Enables or disables the object type XSL.- Parameters:
typeXSL- Boolean which is set totrueif objects of type XSL should be returned.
-
isTypeCALL
public boolean isTypeCALL()
Returns whether the object type CALL is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type CALL is enabled
-
setTypeCALL
public void setTypeCALL(boolean typeCALL)
Enables or disables the object type CALL.- Parameters:
typeCALL- Boolean which is set totrueif objects of type CALL should be returned.
-
isTypeCLNT
public boolean isTypeCLNT()
Returns whether the object type CLNT is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type CLNT is enabled
-
setTypeCLNT
public void setTypeCLNT(boolean typeCLNT)
Enables or disables the object type CLNT.- Parameters:
typeCLNT- Boolean which is set totrueif objects of type CLNT should be returned.
-
isTypeCODE
public boolean isTypeCODE()
Returns whether the object type CODE is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type CODE is enabled
-
setTypeCODE
public void setTypeCODE(boolean typeCODE)
Enables or disables the object type CODE.- Parameters:
typeCODE- Boolean which is set totrueif objects of type CODE should be returned.
-
isTypeCPIT
public boolean isTypeCPIT()
Returns whether the object type CPIT is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type CPIT is enabled
-
setTypeCPIT
public void setTypeCPIT(boolean typeCPIT)
Enables or disables the object type CPIT.- Parameters:
typeCPIT- Boolean which is set totrueif objects of type CPIT should be returned.
-
isTypeDOCU
public boolean isTypeDOCU()
Returns whether the object type DOCU is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type DOCU is enabled
-
setTypeDOCU
public void setTypeDOCU(boolean typeDOCU)
Enables or disables the object type DOCU.- Parameters:
typeDOCU- Boolean which is set totrueif objects of type DOCU should be returned.
-
isTypeEVNT
public boolean isTypeEVNT()
Returns whether the object type EVNT is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type EVNT is enabled
-
setTypeEVNT
public void setTypeEVNT(boolean typeEVNT)
Enables or disables the object type EVNT.- Parameters:
typeEVNT- Boolean which is set totrueif objects of type EVNT should be returned.
-
isTypeFOLD
public boolean isTypeFOLD()
Returns whether the object type FOLD is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type FOLD is enabled
-
setTypeFOLD
public void setTypeFOLD(boolean typeFOLD)
Enables or disables the object type FOLD.- Parameters:
typeFOLD- Boolean which is set totrueif objects of type FOLD should be returned.
-
isTypeHOST
public boolean isTypeHOST()
Returns whether the object type HOST is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type HOST is enabled
-
setTypeHOST
public void setTypeHOST(boolean typeHOST)
Enables or disables the object type HOST.- Parameters:
typeHOST- Boolean which is set totrueif objects of type HOST should be returned.
-
isTypeJOBF
public boolean isTypeJOBF()
Returns whether the object type JOBF is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type JOBF is enabled
-
setTypeJOBF
public void setTypeJOBF(boolean typeJOBF)
Enables or disables the object type JOBF.- Parameters:
typeJOBF- Boolean which is set totrueif objects of type JOBF should be returned.
-
isTypeJOBG
public boolean isTypeJOBG()
Returns whether the object type JOBG is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type JOBG is enabled
-
setTypeJOBG
public void setTypeJOBG(boolean typeJOBG)
Enables or disables the object type JOBG.- Parameters:
typeJOBG- Boolean which is set totrueif objects of type JOBG should be returned.
-
isTypeJOBI
public boolean isTypeJOBI()
Returns whether the object type JOBI is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type JOBI is enabled
-
isTypeHOSTG
public boolean isTypeHOSTG()
Returns whether the object type HOSTG is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type HOSTG is enabled
-
setTypeHOSTG
public void setTypeHOSTG(boolean typeHOSTG)
Enables or disables the object type HOSTG.- Parameters:
typeHOSTG- Boolean which is set totrueif objects of type HOSTG should be returned.
-
setTypeJOBI
public void setTypeJOBI(boolean typeJOBI)
Enables or disables the object type JOBI.- Parameters:
typeJOBI- Boolean which is set totrueif objects of type JOBI should be returned.
-
isTypeJOBP
public boolean isTypeJOBP()
Returns whether the object type JOBP is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type JOBP is enabled
-
setTypeJOBP
public void setTypeJOBP(boolean typeJOBP)
Enables or disables the object type JOBP.- Parameters:
typeJOBP- Boolean which is set totrueif objects of type JOBP should be returned.
-
isTypeJOBS
public boolean isTypeJOBS()
Returns whether the object type JOBS is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type JOBS is enabled
-
setTypeJOBS
public void setTypeJOBS(boolean typeJOBS)
Enables or disables the object type JOBS.- Parameters:
typeJOBS- Boolean which is set totrueif objects of type JOBS should be returned.
-
isTypeJSCH
public boolean isTypeJSCH()
Returns whether the object type JSCH is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type JSCH is enabled
-
setTypeJSCH
public void setTypeJSCH(boolean typeJSCH)
Enables or disables the object type JSCH.- Parameters:
typeJSCH- Boolean which is set totrueif objects of type JSCH should be returned.
-
isTypeLOGIN
public boolean isTypeLOGIN()
Returns whether the object type LOGIN is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type LOGIN is enabled
-
setTypeLOGIN
public void setTypeLOGIN(boolean typeLOGIN)
Enables or disables the object type LOGIN.- Parameters:
typeLOGIN- Boolean which is set totrueif objects of type LOGIN should be returned.
-
isTypeSCRI
public boolean isTypeSCRI()
Returns whether the object type SCRI is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type SCRI is enabled
-
setTypeSCRI
public void setTypeSCRI(boolean typeSCRI)
Enables or disables the object type SCRI.- Parameters:
typeSCRI- Boolean which is set totrueif objects of type SCRI should be returned.
-
isTypeSERV
public boolean isTypeSERV()
Returns whether the object type SERV is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type SERV is enabled
-
setTypeSERV
public void setTypeSERV(boolean typeSERV)
Enables or disables the object type SERV.- Parameters:
typeSERV- Boolean which is set totrueif objects of type SERV should be returned.
-
isTypeSYNC
public boolean isTypeSYNC()
Returns whether the object type SYNC is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type SYNC is enabled
-
setTypeSYNC
public void setTypeSYNC(boolean typeSYNC)
Enables or disables the object type SYNC.- Parameters:
typeSYNC- Boolean which is set totrueif objects of type SYNC should be returned.
-
isTypeTZ
public boolean isTypeTZ()
Returns whether the object type TZ is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type TZ is enabled
-
setTypeTZ
public void setTypeTZ(boolean typeTZ)
Enables or disables the object type TZ.- Parameters:
typeTZ- Boolean which is set totrueif objects of type TZ should be returned.
-
isTypeUSER
public boolean isTypeUSER()
Returns whether the object type USER is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type USER is enabled
-
setTypeUSER
public void setTypeUSER(boolean typeUSER)
Enables or disables the object type USER.- Parameters:
typeUSER- Boolean which is set totrueif objects of type USER should be returned.
-
isTypePRPT
public boolean isTypePRPT()
Returns whether the object type PRPT is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type PRPT is enabled
-
setTypePRPT
public void setTypePRPT(boolean typePRPT)
Enables or disables the object type PRPT.- Parameters:
typePRPT- Boolean which is set totrueif objects of type PRPT should be returned.
-
isTypeUSRG
public boolean isTypeUSRG()
Returns whether the object type USER is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type USER is enabled
-
setTypeUSRG
public void setTypeUSRG(boolean typeUSRG)
Enables or disables the object type USERG.- Parameters:
typeUSRG- Boolean which is set totrueif objects of type USERG should be returned.
-
isTypeVARA
public boolean isTypeVARA()
Returns whether the object type VARA is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type VARA is enabled
-
setTypeVARA
public void setTypeVARA(boolean typeVARA)
Enables or disables the object type VARA.- Parameters:
typeVARA- Boolean which is set totrueif objects of type VARA should be returned.
-
isTypeJOBQ
public boolean isTypeJOBQ()
Returns whether the object type JOBQ is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type JOBQ is enabled
-
setTypeJOBQ
public void setTypeJOBQ(boolean typeJOBQ)
Enables or disables the object type JOBQ.- Parameters:
typeJOBQ- Boolean which is set totrueif objects of type JOBQ should be returned.
-
isTypeDASH
public boolean isTypeDASH()
Returns whether the object type DASH is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type DASH is enabled
-
setTypeSTORE
public void setTypeSTORE(boolean typeSTORE)
Enables or disables the object type STORE.- Parameters:
typeSTORE- Boolean which is set totrueif objects of type STORE should be returned.
-
setTypePERIOD
public void setTypePERIOD(boolean typePERIOD)
Enables or disables the object type PERIOD.- Parameters:
typePERIOD- Boolean which is set totrueif objects of type PERIOD should be returned.
-
isTypeSLO
public boolean isTypeSLO()
Returns whether the object type SLO is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type SLO is enabled
-
setTypeSLO
public void setTypeSLO(boolean typeSLO)
Enables or disables the object type SLO.- Parameters:
typeSLO- Boolean which is set totrueif objects of type SLO should be returned.
-
isTypeSTORE
public boolean isTypeSTORE()
Returns whether the object type STORE is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type STORE is enabled
-
isTypePERIOD
public boolean isTypePERIOD()
Returns whether the object type STORE is enabled for the search or not.- Returns:
- Boolean containing
trueif the object type STORE is enabled
-
setTypeDASH
public void setTypeDASH(boolean typeDASH)
Enables or disables the object type DASH.- Parameters:
typeDASH- Boolean which is set totrueif objects of type DASH should be returned.
-
selectAllObjectTypes
public void selectAllObjectTypes()
Select all object types.
-
unselectAllObjectTypes
public void unselectAllObjectTypes()
Unselect all object types.
-
setNoDateSelection
public void setNoDateSelection()
Disables date selection.
-
isNoDateSelection
public boolean isNoDateSelection()
Returnstrueif the date selection is disabled.- Returns:
- Boolean which is set to
trueif date selection is not enabled
-
setDateSelectionCreated
public void setDateSelectionCreated(DateTime from, DateTime to)
Select objects which are created within the specified date range.- Parameters:
from- Begin of the date rangeto- End of the date range
-
isDateSelectionCreated
public boolean isDateSelectionCreated()
Returnstrueif the creation date of objects is used in the selection for this search.- Returns:
- Boolean indicating whether the creation date is used to find objects
-
setDateSelectionModified
public void setDateSelectionModified(DateTime from, DateTime to)
Select objects which are modified within the specified date range.- Parameters:
from- Begin of the date rangeto- End of the date range
-
isDateSelectionModified
public boolean isDateSelectionModified()
Returnstrueif the modification timestamp of objects is used in the selection for this search.- Returns:
- Boolean indicating whether the modification timestamp is used to find objects
-
setDateSelectionUsed
public void setDateSelectionUsed(DateTime from, DateTime to)
Select objects which are used within the specified date range.- Parameters:
from- Begin of the date rangeto- End of the date range
-
isDateSelectionUsed
public boolean isDateSelectionUsed()
Returnstrueif the last used timestamp of objects is used in the selection for this search.- Returns:
- Boolean indicating whether the last used timestamp is used to find objects
-
getFromDate
public DateTime getFromDate()
Returns the begin of the date range.- Returns:
- DateTime containing the begin of the date range
-
getToDate
public DateTime getToDate()
Returns the end of the date range.- Returns:
- DateTime containing the end of the date range
-
searchCalendarKeyword
public void searchCalendarKeyword(java.lang.String keywordPattern)
Sets a filter to return only CALE objects which contain the specifiedkeywordPatternThe default value is *.- Parameters:
keywordPattern- String containing a keyword pattern
-
setTextSearch
public void setTextSearch(java.lang.String pattern, boolean process, boolean documentation, boolean objectTitle, boolean archiveKeys)Search for texts.- Parameters:
pattern- text patternprocess- Include Scriptsdocumentation- Include documentation contentobjectTitle- Include object titlearchiveKeys- Include archive keys
-
searchInRAValues
public void searchInRAValues(java.lang.String pattern)
Search for RA values.- Parameters:
pattern- Text pattern
-
setSearchInVariable
public void setSearchInVariable(java.lang.String pattern, boolean key, boolean value, boolean allValueColumns, SearchObject.VariableDataType dataType)Searches in UC4 Variable Objects.- Parameters:
pattern- Search patternkey- Find pattern in key column?value- Find pattern in value column?allValueColumns- Find pattern in all value columnsdataType- Type of a variable
-
disableTextSearch
public void disableTextSearch()
Disable text search.
-
isAllowedInClientZero
protected boolean isAllowedInClientZero()
Description copied from class:XMLRequestThis method is used internally. Tests if thisXMLRequestis allowed in client 0. The default implementation returnsfalse, subclasses may override.- Overrides:
isAllowedInClientZeroin classXMLRequest- Returns:
trueif this request is allowed in client 0,falseotherwise
-
size
public int size()
Returns the number of objects in the search result.- Returns:
- number of objects in result
-
-