com.remedy.cmdb.api
Class CMDBUIComponentResult

java.lang.Object
  extended bycom.remedy.cmdb.api.CMDBUIComponentResult
All Implemented Interfaces:
java.lang.Comparable

public class CMDBUIComponentResult
extends java.lang.Object
implements java.lang.Comparable

Author:
mmehta Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
CMDBUIComponentResult()
          Default Constructor
CMDBUIComponentResult(java.lang.String aInstanceId, CMDBUIComponentInfo aCompInfo, java.lang.String aDataString, AttachmentInfo aAttachVal)
          Initialises member variables for CMDBUIComponentResult object
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares this object with the given CMDBUIComponentResult object.
 AttachmentInfo getAttachVal()
          It returns the attachVal for given CMDBUIComponentResult object
 CMDBUIComponentInfo getCompInfo()
          It returns the compInfo object for given CMDBUIComponentResult object
 java.lang.String getDataString()
          It returns the dataString for given CMDBUIComponentResult object
 java.lang.String getInstanceId()
          It returns the instanceid for given CMDBUIComponentResult object
 boolean runQualificationForInstance(ARServerUser context, CMDBInstanceBase instanceBase)
           
 void setAttachVal(AttachmentInfo aAttachVal)
          Sets AttachmentInfo object for given CMDBUIComponentResult object
 void setCompInfo(CMDBUIComponentInfo aCompInfo)
          Sets CMDBUIComponentInfo object for given CMDBUIComponentResult object
 void setDataString(java.lang.String aDataString)
          Sets Data String for given CMDBUIComponentResult object
 void setInstanceId(java.lang.String aInstanceId)
          Sets instance id for given CMDBUIComponentResult object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMDBUIComponentResult

public CMDBUIComponentResult()
Default Constructor


CMDBUIComponentResult

public CMDBUIComponentResult(java.lang.String aInstanceId,
                             CMDBUIComponentInfo aCompInfo,
                             java.lang.String aDataString,
                             AttachmentInfo aAttachVal)
Initialises member variables for CMDBUIComponentResult object

Parameters:
aInstanceId - is the instance id
aCompInfo - is CMDBUIComponentInfo object
aDataString - is data string
aAttachVal - is AttachmentInfo object
Method Detail

getInstanceId

public java.lang.String getInstanceId()
It returns the instanceid for given CMDBUIComponentResult object

Returns:
instanceId

getCompInfo

public CMDBUIComponentInfo getCompInfo()
It returns the compInfo object for given CMDBUIComponentResult object

Returns:
compInfo

getDataString

public java.lang.String getDataString()
It returns the dataString for given CMDBUIComponentResult object

Returns:
dataString

getAttachVal

public AttachmentInfo getAttachVal()
It returns the attachVal for given CMDBUIComponentResult object

Returns:
attachVal

setInstanceId

public void setInstanceId(java.lang.String aInstanceId)
Sets instance id for given CMDBUIComponentResult object

Parameters:
aInstanceId -

setCompInfo

public void setCompInfo(CMDBUIComponentInfo aCompInfo)
Sets CMDBUIComponentInfo object for given CMDBUIComponentResult object

Parameters:
aCompInfo -

setDataString

public void setDataString(java.lang.String aDataString)
Sets Data String for given CMDBUIComponentResult object

Parameters:
aDataString -

setAttachVal

public void setAttachVal(AttachmentInfo aAttachVal)
Sets AttachmentInfo object for given CMDBUIComponentResult object

Parameters:
aAttachVal -

runQualificationForInstance

public boolean runQualificationForInstance(ARServerUser context,
                                           CMDBInstanceBase instanceBase)
Returns:
true if this object is for the given instance, false otherwise

compareTo

public int compareTo(java.lang.Object o)
Compares this object with the given CMDBUIComponentResult object. First comparison is based on the component type. If types are same, then the actual comparison is done. For example, in case of icons first they are compared based on weight.

Specified by:
compareTo in interface java.lang.Comparable
See Also:
Comparable.compareTo(java.lang.Object)