|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SoftwareSignature
Represents a set of rules to detect the existence of a specific software.
Method Summary | |
---|---|
ParsingRule |
addParsingRule(java.lang.String ruleId)
Creates and add a new ParsingRule that will be a part of the software's detection process. |
ProcessSignature |
addProcess(java.lang.String processName)
Creates and adds a new ProcessSignature that will be a part of the software's detection process. |
java.lang.String |
getAttributeValue(java.lang.String attName)
Returns value of the desired attribute. |
java.lang.String |
getCategory()
Returns the category of this software signature. |
java.util.Collection<java.lang.String> |
getConfigFilesPaths()
Returns the paths of the configuration files associated with this software. |
java.lang.String |
getName()
Returns the name of the software to be discovered. |
ParsingRule |
getParsingRule(java.lang.String ruleId)
Returns the ParsingRule with the specified ID. |
java.util.Collection<ParsingRule> |
getParsingRules()
Returns the parsing rules that are part of the detection process. |
java.util.Collection<ProcessSignature> |
getProcesses()
Returns the process signatures that are part of the detection process. |
java.util.Collection<ProcessSignature> |
getProcessesByName(java.lang.String processName)
Returns the process signatures that are part of the detection process. |
java.lang.String |
getSoftwareCiType()
Returns the type of CI used to represent the software if it is discovered. |
java.lang.String |
getSoftwareId()
Returns the software ID of this object |
java.lang.String |
getVendor()
Returns the vendor of this software signature. |
boolean |
isEnabled()
Checks whether this SoftwareSIgnature is enabled. |
void |
removeAttribute(java.lang.String attName)
Removes an attribute from the detection of this SoftwareSignature. |
void |
removeParsingRule(java.lang.String ruleId)
Removes a ParsingRule from the detection of this SoftwareSignature. |
void |
removeProcess(ProcessSignature processSignature)
Removes a ProcessSignature from the detection of this SoftwareSignature. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Adds or Updates an attribute that is part of the detection process. |
void |
setCategory(java.lang.String category)
Sets the category of this software signature. |
void |
setConfigFilesPaths(java.lang.String... paths)
Set the paths of the configuration files associated with this software. |
void |
setName(java.lang.String softwareName)
Sets the name of this SoftwareSignature object. |
void |
setSoftwareCiType(java.lang.String softwareCiType)
Sets the CI type used to represent the software if it is discovered. |
void |
setVendor(java.lang.String vendor)
Sets the vendor of this software signature. |
SoftwareSignature |
vendor(java.lang.String vendor)
Sets a vendor to this software signature. |
Method Detail |
---|
java.util.Collection<ProcessSignature> getProcesses()
java.util.Collection<ProcessSignature> getProcessesByName(java.lang.String processName)
processName
- the name.
java.util.Collection<ParsingRule> getParsingRules()
ParsingRule getParsingRule(java.lang.String ruleId)
ruleId
- the ID.
java.lang.String getSoftwareId()
java.lang.String getName()
void setSoftwareCiType(java.lang.String softwareCiType)
softwareCiType
- the type of CI used to represent the software.void setName(java.lang.String softwareName)
softwareName
- the name.java.lang.String getSoftwareCiType()
ProcessSignature addProcess(java.lang.String processName)
processName
- the name of the process to add.
ParsingRule addParsingRule(java.lang.String ruleId)
ruleId
- the ID of the rule to add.
void removeParsingRule(java.lang.String ruleId) throws ParsingRuleDoesNotExistException
ruleId
- the ID of the rule to be removed.
ParsingRuleDoesNotExistException
- if there is no ParsingRule with this name.void removeProcess(ProcessSignature processSignature) throws ProcessDoesNotExistException
processSignature
- the process to be removed.
ProcessDoesNotExistException
- if there is no ProcessSignature with this name.boolean isEnabled()
void setConfigFilesPaths(java.lang.String... paths)
paths
- the paths of the configuration files associated with this software.java.util.Collection<java.lang.String> getConfigFilesPaths()
void setAttribute(java.lang.String name, java.lang.String value)
name
- the name of the attributed to set.value
- the value of the attribute.void removeAttribute(java.lang.String attName) throws AttributeDoesNotExistException
attName
- the name of the attribute to remove.
AttributeDoesNotExistException
- if there is no attribute with this name.java.lang.String getAttributeValue(java.lang.String attName) throws AttributeDoesNotExistException
attName
- name of the desired attribute
AttributeDoesNotExistException
- if there isn't an attribute with this name.java.lang.String getCategory()
void setCategory(java.lang.String category)
category
- the category to be set.java.lang.String getVendor()
void setVendor(java.lang.String vendor)
vendor
- the vendor.SoftwareSignature vendor(java.lang.String vendor)
vendor
- the category should be sets
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |