public class SearchObject extends XMLRequest
Modifier and Type | Class and Description |
---|---|
static class |
SearchObject.VariableDataType
Type of a Variable.
|
Constructor and Description |
---|
SearchObject()
Constructs a
Search . |
Modifier and Type | Method and Description |
---|---|
protected void |
createRequest(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request,
ConnectionAttributes sessionInfo)
Creates the XML Document for the request.
|
void |
disableTextSearch()
Disable text search.
|
DateTime |
getFromDate()
Returns the begin of the date range.
|
java.lang.String |
getName()
Returns the object name filter.
|
java.lang.String |
getSearchLocation()
Returns the folder path which used in the search.
|
protected java.lang.String |
getSrc()
Returns the request source.
|
DateTime |
getToDate()
Returns the end of the date range.
|
protected void |
handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session) |
protected boolean |
ignoreMessageBox() |
protected boolean |
isAllowedInClientZero()
This method is used internally.
|
boolean |
isDateSelectionCreated()
Returns
true if the creation date of objects is used
in the selection for this search. |
boolean |
isDateSelectionModified()
Returns
true if the modification timestamp of objects is used
in the selection for this search. |
boolean |
isDateSelectionUsed()
Returns
true if the last used timestamp of objects is used
in the selection for this search. |
boolean |
isIncludeLinks()
Returns
true if links to objects are included in the result. |
boolean |
isIncludeSubfolder()
Returns
true if subfolder are included. |
boolean |
isNoDateSelection()
Returns
true if the date selection is disabled. |
boolean |
isSearchUseOfObjects()
Returns
true if the use of objects is selected. |
boolean |
isTypeCALE()
Returns whether the object type CALE is enabled for the search or not.
|
boolean |
isTypeCALL()
Returns whether the object type CALL is enabled for the search or not.
|
boolean |
isTypeCITC()
Returns whether the object type CITC is enabled for the search or not.
|
boolean |
isTypeCLNT()
Returns whether the object type CLNT is enabled for the search or not.
|
boolean |
isTypeCODE()
Returns whether the object type CODE is enabled for the search or not.
|
boolean |
isTypeCONN()
Returns whether the object type CONN is enabled for the search or not.
|
boolean |
isTypeCPIT()
Returns whether the object type CPIT is enabled for the search or not.
|
boolean |
isTypeDASH()
Returns whether the object type DASH is enabled for the search or not.
|
boolean |
isTypeDOCU()
Returns whether the object type DOCU is enabled for the search or not.
|
boolean |
isTypeEVNT()
Returns whether the object type EVNT is enabled for the search or not.
|
boolean |
isTypeFILTER()
Returns whether the object type FILTER is enabled for the search or not.
|
boolean |
isTypeFOLD()
Returns whether the object type FOLD is enabled for the search or not.
|
boolean |
isTypeHOST()
Returns whether the object type HOST is enabled for the search or not.
|
boolean |
isTypeHOSTG()
Returns whether the object type HOSTG is enabled for the search or not.
|
boolean |
isTypeHSTA()
Returns whether the object type HSTA is enabled for the search or not.
|
boolean |
isTypeJOBF()
Returns whether the object type JOBF is enabled for the search or not.
|
boolean |
isTypeJOBG()
Returns whether the object type JOBG is enabled for the search or not.
|
boolean |
isTypeJOBI()
Returns whether the object type JOBI is enabled for the search or not.
|
boolean |
isTypeJOBP()
Returns whether the object type JOBP is enabled for the search or not.
|
boolean |
isTypeJOBQ()
Returns whether the object type JOBQ is enabled for the search or not.
|
boolean |
isTypeJOBS()
Returns whether the object type JOBS is enabled for the search or not.
|
boolean |
isTypeJSCH()
Returns whether the object type JSCH is enabled for the search or not.
|
boolean |
isTypeLOGIN()
Returns whether the object type LOGIN is enabled for the search or not.
|
boolean |
isTypePERIOD()
Returns whether the object type STORE is enabled for the search or not.
|
boolean |
isTypePRPT()
Returns whether the object type PRPT is enabled for the search or not.
|
boolean |
isTypeQUEUE()
Returns whether the object type QUEUE is enabled for the search or not.
|
boolean |
isTypeSCRI()
Returns whether the object type SCRI is enabled for the search or not.
|
boolean |
isTypeSERV()
Returns whether the object type SERV is enabled for the search or not.
|
boolean |
isTypeSLO()
Returns whether the object type SLO is enabled for the search or not.
|
boolean |
isTypeSTORE()
Returns whether the object type STORE is enabled for the search or not.
|
boolean |
isTypeSYNC()
Returns whether the object type SYNC is enabled for the search or not.
|
boolean |
isTypeTZ()
Returns whether the object type TZ is enabled for the search or not.
|
boolean |
isTypeUSER()
Returns whether the object type USER is enabled for the search or not.
|
boolean |
isTypeUSRG()
Returns whether the object type USER is enabled for the search or not.
|
boolean |
isTypeVARA()
Returns whether the object type VARA is enabled for the search or not.
|
boolean |
isTypeXSL()
Returns whether the object type XSL is enabled for the search or not.
|
java.util.Iterator<SearchResultItem> |
resultIterator()
Returns an iterator over
SearchResultItem . |
void |
searchCalendarKeyword(java.lang.String keywordPattern)
Sets a filter to return only CALE objects which contain the specified
keywordPattern
The default value is *. |
void |
searchInRAValues(java.lang.String pattern)
Search for RA values.
|
void |
selectAllObjectTypes()
Select all object types.
|
void |
setDateSelectionCreated(DateTime from,
DateTime to)
Select objects which are created within the specified date range.
|
void |
setDateSelectionModified(DateTime from,
DateTime to)
Select objects which are modified within the specified date range.
|
void |
setDateSelectionUsed(DateTime from,
DateTime to)
Select objects which are used within the specified date range.
|
void |
setIncludeLinks(boolean includeLinks)
If the parameter
includeLinks is set to true
links to objects are included in the result. |
void |
setIncludeUseInScripts(boolean scripts)
Enables or disables the content of Scripts in the search.
|
void |
setName(java.lang.String name)
Sets the object name filter.
|
void |
setNameAndTitle(java.lang.String name)
Sets the search pattern for the object name and/or the object title.
|
void |
setNoDateSelection()
Disables date selection.
|
void |
setSearchInVariable(java.lang.String pattern,
boolean key,
boolean value,
boolean allValueColumns,
SearchObject.VariableDataType dataType)
Searches in UC4 Variable Objects.
|
void |
setSearchLocation(java.lang.String path,
boolean includeSubfolder)
Sets the folder path.
|
void |
setSearchUseOfObjects(boolean searchUseOfObjects)
Enables or disables the search for use of objects.
|
void |
setTextSearch(java.lang.String pattern,
boolean process,
boolean documentation,
boolean objectTitle,
boolean archiveKeys)
Search for texts.
|
void |
setTypeCALE(boolean typeCALE)
Enables or disables the object type CALE.
|
void |
setTypeCALL(boolean typeCALL)
Enables or disables the object type CALL.
|
void |
setTypeCITC(boolean typeCITC)
Enables or disables the object type CITC.
|
void |
setTypeCLNT(boolean typeCLNT)
Enables or disables the object type CLNT.
|
void |
setTypeCODE(boolean typeCODE)
Enables or disables the object type CODE.
|
void |
setTypeCONN(boolean typeCONN)
Enables or disables the object type CONN.
|
void |
setTypeCPIT(boolean typeCPIT)
Enables or disables the object type CPIT.
|
void |
setTypeDASH(boolean typeDASH)
Enables or disables the object type DASH.
|
void |
setTypeDOCU(boolean typeDOCU)
Enables or disables the object type DOCU.
|
void |
setTypeEVNT(boolean typeEVNT)
Enables or disables the object type EVNT.
|
void |
setTypeExecuteable()
Selects all executable object types.
|
void |
setTypeFILTER(boolean typeFILTER)
Enables or disables the object type FILTER.
|
void |
setTypeFOLD(boolean typeFOLD)
Enables or disables the object type FOLD.
|
void |
setTypeHOST(boolean typeHOST)
Enables or disables the object type HOST.
|
void |
setTypeHOSTG(boolean typeHOSTG)
Enables or disables the object type HOSTG.
|
void |
setTypeHSTA(boolean typeHSTA)
Enables or disables the object type HSTA.
|
void |
setTypeJOBF(boolean typeJOBF)
Enables or disables the object type JOBF.
|
void |
setTypeJOBG(boolean typeJOBG)
Enables or disables the object type JOBG.
|
void |
setTypeJOBI(boolean typeJOBI)
Enables or disables the object type JOBI.
|
void |
setTypeJOBP(boolean typeJOBP)
Enables or disables the object type JOBP.
|
void |
setTypeJOBQ(boolean typeJOBQ)
Enables or disables the object type JOBQ.
|
void |
setTypeJOBS(boolean typeJOBS)
Enables or disables the object type JOBS.
|
void |
setTypeJSCH(boolean typeJSCH)
Enables or disables the object type JSCH.
|
void |
setTypeLOGIN(boolean typeLOGIN)
Enables or disables the object type LOGIN.
|
void |
setTypePERIOD(boolean typePERIOD)
Enables or disables the object type PERIOD.
|
void |
setTypePRPT(boolean typePRPT)
Enables or disables the object type PRPT.
|
void |
setTypeQUEUE(boolean typeQUEUE)
Enables or disables the object type QUEUE.
|
void |
setTypeSCRI(boolean typeSCRI)
Enables or disables the object type SCRI.
|
void |
setTypeSERV(boolean typeSERV)
Enables or disables the object type SERV.
|
void |
setTypeSLO(boolean typeSLO)
Enables or disables the object type SLO.
|
void |
setTypeSTORE(boolean typeSTORE)
Enables or disables the object type STORE.
|
void |
setTypeSYNC(boolean typeSYNC)
Enables or disables the object type SYNC.
|
void |
setTypeTZ(boolean typeTZ)
Enables or disables the object type TZ.
|
void |
setTypeUSER(boolean typeUSER)
Enables or disables the object type USER.
|
void |
setTypeUSRG(boolean typeUSRG)
Enables or disables the object type USERG.
|
void |
setTypeVARA(boolean typeVARA)
Enables or disables the object type VARA.
|
void |
setTypeXSL(boolean typeXSL)
Enables or disables the object type XSL.
|
int |
size()
Returns the number of objects in the search result.
|
void |
unselectAllObjectTypes()
Unselect all object types.
|
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, send, setMessageBox, showQuarantineNotification
public SearchObject()
Search
.
The default search path is / and the search definition is set to * (all Objects).
Version control is not include and no object type is selected.protected java.lang.String getSrc()
XMLRequest
getSrc
in class XMLRequest
protected void createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)
XMLRequest
createRequest
in class XMLRequest
doc
- Document, used to create new Elementsrequest
- Request Element - classes append information to this request elementsessionInfo
- Information about the sessionprotected void handleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
handleContent
in class XMLRequest
protected boolean ignoreMessageBox()
ignoreMessageBox
in class XMLRequest
public void setTypeExecuteable()
public java.util.Iterator<SearchResultItem> resultIterator()
SearchResultItem
.SearchResultItem
or null
if this request
does not contain a search resultpublic boolean isSearchUseOfObjects()
true
if the use of objects is selected.true
if the use of objects is selectedpublic void setSearchUseOfObjects(boolean searchUseOfObjects)
searchUseOfObjects
- Boolean containing true
if the use of objects is selectedpublic boolean isIncludeLinks()
true
if links to objects are included in the result.public void setIncludeLinks(boolean includeLinks)
includeLinks
is set to true
links to objects are included in the result.includeLinks
- true to include links in the search resultpublic void setIncludeUseInScripts(boolean scripts)
scripts
- Boolean containing true
if Scripts are includedpublic java.lang.String getSearchLocation()
public void setSearchLocation(java.lang.String path, boolean includeSubfolder)
path
- PathincludeSubfolder
- Include subfolderpublic boolean isIncludeSubfolder()
true
if subfolder are included.true
if subfolders are includedpublic java.lang.String getName()
public void setNameAndTitle(java.lang.String name)
name
- Pattern containing the object name or titlepublic void setName(java.lang.String name)
name
- Pattern containing the object namepublic boolean isTypeCALE()
true
if the object type CALE is enabledpublic void setTypeCALE(boolean typeCALE)
typeCALE
- Boolean which is set to true
if objects of type CALE should be returned.public boolean isTypeCITC()
true
if the object type CITC is enabledpublic void setTypeCITC(boolean typeCITC)
typeCITC
- Boolean which is set to true
if objects of type CITC should be returned.public boolean isTypeCONN()
true
if the object type CONN is enabledpublic void setTypeCONN(boolean typeCONN)
typeCONN
- Boolean which is set to true
if objects of type CONN should be returned.public boolean isTypeFILTER()
true
if the object type FILTER is enabledpublic boolean isTypeQUEUE()
true
if the object type QUEUE is enabledpublic void setTypeQUEUE(boolean typeQUEUE)
typeQUEUE
- Boolean which is set to true
if objects of type QUEUE should be returned.public void setTypeFILTER(boolean typeFILTER)
typeFILTER
- Boolean which is set to true
if objects of type FILTER should be returned.public boolean isTypeHSTA()
true
if the object type HSTA is enabledpublic void setTypeHSTA(boolean typeHSTA)
typeHSTA
- Boolean which is set to true
if objects of type HSTA should be returned.public boolean isTypeXSL()
true
if the object type XSL is enabledpublic void setTypeXSL(boolean typeXSL)
typeXSL
- Boolean which is set to true
if objects of type XSL should be returned.public boolean isTypeCALL()
true
if the object type CALL is enabledpublic void setTypeCALL(boolean typeCALL)
typeCALL
- Boolean which is set to true
if objects of type CALL should be returned.public boolean isTypeCLNT()
true
if the object type CLNT is enabledpublic void setTypeCLNT(boolean typeCLNT)
typeCLNT
- Boolean which is set to true
if objects of type CLNT should be returned.public boolean isTypeCODE()
true
if the object type CODE is enabledpublic void setTypeCODE(boolean typeCODE)
typeCODE
- Boolean which is set to true
if objects of type CODE should be returned.public boolean isTypeCPIT()
true
if the object type CPIT is enabledpublic void setTypeCPIT(boolean typeCPIT)
typeCPIT
- Boolean which is set to true
if objects of type CPIT should be returned.public boolean isTypeDOCU()
true
if the object type DOCU is enabledpublic void setTypeDOCU(boolean typeDOCU)
typeDOCU
- Boolean which is set to true
if objects of type DOCU should be returned.public boolean isTypeEVNT()
true
if the object type EVNT is enabledpublic void setTypeEVNT(boolean typeEVNT)
typeEVNT
- Boolean which is set to true
if objects of type EVNT should be returned.public boolean isTypeFOLD()
true
if the object type FOLD is enabledpublic void setTypeFOLD(boolean typeFOLD)
typeFOLD
- Boolean which is set to true
if objects of type FOLD should be returned.public boolean isTypeHOST()
true
if the object type HOST is enabledpublic void setTypeHOST(boolean typeHOST)
typeHOST
- Boolean which is set to true
if objects of type HOST should be returned.public boolean isTypeJOBF()
true
if the object type JOBF is enabledpublic void setTypeJOBF(boolean typeJOBF)
typeJOBF
- Boolean which is set to true
if objects of type JOBF should be returned.public boolean isTypeJOBG()
true
if the object type JOBG is enabledpublic void setTypeJOBG(boolean typeJOBG)
typeJOBG
- Boolean which is set to true
if objects of type JOBG should be returned.public boolean isTypeJOBI()
true
if the object type JOBI is enabledpublic boolean isTypeHOSTG()
true
if the object type HOSTG is enabledpublic void setTypeHOSTG(boolean typeHOSTG)
typeHOSTG
- Boolean which is set to true
if objects of type HOSTG should be returned.public void setTypeJOBI(boolean typeJOBI)
typeJOBI
- Boolean which is set to true
if objects of type JOBI should be returned.public boolean isTypeJOBP()
true
if the object type JOBP is enabledpublic void setTypeJOBP(boolean typeJOBP)
typeJOBP
- Boolean which is set to true
if objects of type JOBP should be returned.public boolean isTypeJOBS()
true
if the object type JOBS is enabledpublic void setTypeJOBS(boolean typeJOBS)
typeJOBS
- Boolean which is set to true
if objects of type JOBS should be returned.public boolean isTypeJSCH()
true
if the object type JSCH is enabledpublic void setTypeJSCH(boolean typeJSCH)
typeJSCH
- Boolean which is set to true
if objects of type JSCH should be returned.public boolean isTypeLOGIN()
true
if the object type LOGIN is enabledpublic void setTypeLOGIN(boolean typeLOGIN)
typeLOGIN
- Boolean which is set to true
if objects of type LOGIN should be returned.public boolean isTypeSCRI()
true
if the object type SCRI is enabledpublic void setTypeSCRI(boolean typeSCRI)
typeSCRI
- Boolean which is set to true
if objects of type SCRI should be returned.public boolean isTypeSERV()
true
if the object type SERV is enabledpublic void setTypeSERV(boolean typeSERV)
typeSERV
- Boolean which is set to true
if objects of type SERV should be returned.public boolean isTypeSYNC()
true
if the object type SYNC is enabledpublic void setTypeSYNC(boolean typeSYNC)
typeSYNC
- Boolean which is set to true
if objects of type SYNC should be returned.public boolean isTypeTZ()
true
if the object type TZ is enabledpublic void setTypeTZ(boolean typeTZ)
typeTZ
- Boolean which is set to true
if objects of type TZ should be returned.public boolean isTypeUSER()
true
if the object type USER is enabledpublic void setTypeUSER(boolean typeUSER)
typeUSER
- Boolean which is set to true
if objects of type USER should be returned.public boolean isTypePRPT()
true
if the object type PRPT is enabledpublic void setTypePRPT(boolean typePRPT)
typePRPT
- Boolean which is set to true
if objects of type PRPT should be returned.public boolean isTypeUSRG()
true
if the object type USER is enabledpublic void setTypeUSRG(boolean typeUSRG)
typeUSRG
- Boolean which is set to true
if objects of type USERG should be returned.public boolean isTypeVARA()
true
if the object type VARA is enabledpublic void setTypeVARA(boolean typeVARA)
typeVARA
- Boolean which is set to true
if objects of type VARA should be returned.public boolean isTypeJOBQ()
true
if the object type JOBQ is enabledpublic void setTypeJOBQ(boolean typeJOBQ)
typeJOBQ
- Boolean which is set to true
if objects of type JOBQ should be returned.public boolean isTypeDASH()
true
if the object type DASH is enabledpublic void setTypeSTORE(boolean typeSTORE)
typeSTORE
- Boolean which is set to true
if objects of type STORE should be returned.public void setTypePERIOD(boolean typePERIOD)
typePERIOD
- Boolean which is set to true
if objects of type PERIOD should be returned.public boolean isTypeSLO()
true
if the object type SLO is enabledpublic void setTypeSLO(boolean typeSLO)
typeSLO
- Boolean which is set to true
if objects of type SLO should be returned.public boolean isTypeSTORE()
true
if the object type STORE is enabledpublic boolean isTypePERIOD()
true
if the object type STORE is enabledpublic void setTypeDASH(boolean typeDASH)
typeDASH
- Boolean which is set to true
if objects of type DASH should be returned.public void selectAllObjectTypes()
public void unselectAllObjectTypes()
public void setNoDateSelection()
public boolean isNoDateSelection()
true
if the date selection is disabled.true
if date selection is not enabledpublic void setDateSelectionCreated(DateTime from, DateTime to)
from
- Begin of the date rangeto
- End of the date rangepublic boolean isDateSelectionCreated()
true
if the creation date of objects is used
in the selection for this search.public void setDateSelectionModified(DateTime from, DateTime to)
from
- Begin of the date rangeto
- End of the date rangepublic boolean isDateSelectionModified()
true
if the modification timestamp of objects is used
in the selection for this search.public void setDateSelectionUsed(DateTime from, DateTime to)
from
- Begin of the date rangeto
- End of the date rangepublic boolean isDateSelectionUsed()
true
if the last used timestamp of objects is used
in the selection for this search.public DateTime getFromDate()
public DateTime getToDate()
public void searchCalendarKeyword(java.lang.String keywordPattern)
keywordPattern
The default value is *.keywordPattern
- String containing a keyword patternpublic void setTextSearch(java.lang.String pattern, boolean process, boolean documentation, boolean objectTitle, boolean archiveKeys)
pattern
- text patternprocess
- Include Scriptsdocumentation
- Include documentation contentobjectTitle
- Include object titlearchiveKeys
- Include archive keyspublic void searchInRAValues(java.lang.String pattern)
pattern
- Text patternpublic void setSearchInVariable(java.lang.String pattern, boolean key, boolean value, boolean allValueColumns, SearchObject.VariableDataType dataType)
pattern
- Search patternkey
- Find pattern in key column?value
- Find pattern in value column?allValueColumns
- Find pattern in all value columnsdataType
- Type of a variablepublic void disableTextSearch()
protected boolean isAllowedInClientZero()
XMLRequest
XMLRequest
is allowed in client 0.
The default implementation returns false
, subclasses may override.isAllowedInClientZero
in class XMLRequest
true
if this request is allowed in client 0, false
otherwisepublic int size()