Package | com.vmware.ui.relateditems.model |
Class | public class RelationSpec |
Inheritance | RelationSpec ![]() |
Note: Four constraint properties relation, conditionalProperty, targetType,
constraint
define how to retrieve the related items.
There are several ways you can combine them:
relation, conditionalProperty, targetType
Remember, if you do not specify the targetType
, the query will
be evaluated only in the default SearchProviderAdapter
, which is
SearchBasedAdapterImpl
. So, if you require other
SearchProviderAdapter
s to evaluate the query, you need to specify a
targetType
constraint
only. In fact, if you specify, other properties
along with this one, only the constraint
will be usedProperty | Defined By | ||
---|---|---|---|
conditionalProperty : String
A property name that is going to be wrapped into the PropertyConstraint. | RelationSpec | ||
icon : Class
Icon for the relation. | RelationSpec | ||
id : String
A unique identifier of the Relation. | RelationSpec | ||
label : String
Label for the relation. | RelationSpec | ||
listViewId : String
Id if a view which can display the items of the relation. | RelationSpec | ||
relation : String
A property name that is going to be wrapped into the RelationConstraint. | RelationSpec | ||
targetType : String
Name of a target type, which is going to be used in RelationalConstraint or
PropertyConstraint or simple Constraint. | RelationSpec |
conditionalProperty | property |
public var conditionalProperty:String
A property name that is going to be wrapped into the PropertyConstraint. Note, that along with the property name you can specify, if needed, the negation operator "!", for example, "!isVmTemplate". This logic operator is the only one allowed.
icon | property |
public var icon:Class
Icon for the relation.
id | property |
public var id:String
A unique identifier of the Relation. It preferrably should be in the format <Kind of related items>For<Kind of the object in the ObjectRelationSpecsInfo class>. For example, "hostsForCluster".
label | property |
public var label:String
Label for the relation.
listViewId | property |
public var listViewId:String
Id if a view which can display the items of the relation.
relation | property |
public var relation:String
A property name that is going to be wrapped into the RelationConstraint.
targetType | property |
public var targetType:String
Name of a target type, which is going to be used in RelationalConstraint or PropertyConstraint or simple Constraint.