org.rhq.enterprise.server.xmlschema.generated.serverplugin.perspective
Class ResourceActivatorsType

java.lang.Object
  extended by org.rhq.enterprise.server.xmlschema.generated.serverplugin.perspective.CommonActivatorsType
      extended by org.rhq.enterprise.server.xmlschema.generated.serverplugin.perspective.ResourceActivatorsType

public class ResourceActivatorsType
extends CommonActivatorsType

A set of activators that must evaluate to true for the resource-level extension to be active. In addition to the activators common to global and resource-level activatation, several more can be evaluated against the the resource in context. Facet Activators ensure the specified facet is implemented by the resource type of the resource in context. Resource-permission activators ensure the user has the specified permission on the resource in context. Trait Activators ensure that the specified trait value satisfies the specified pattern for the resource in context. Resource-type Activators can be used if the extension is active for one or more different resource types. In this situation resource-permission and trait activators can be set in a fine-grained way, differing for each resource type, if necessary.

Java class for ResourceActivatorsType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="ResourceActivatorsType">
   <complexContent>
     <extension base="{urn:xmlns:rhq-serverplugin.perspective}CommonActivatorsType">
       <choice>
         <sequence>
           <element name="facet" type="{urn:xmlns:rhq-serverplugin.perspective}FacetActivatorType" maxOccurs="unbounded"/>
           <element name="resource-permission" type="{urn:xmlns:rhq-serverplugin.perspective}ResourcePermissionActivatorType" maxOccurs="unbounded" minOccurs="0"/>
           <element name="trait" type="{urn:xmlns:rhq-serverplugin.perspective}TraitActivatorType" maxOccurs="unbounded" minOccurs="0"/>
         </sequence>
         <element name="resource-type" type="{urn:xmlns:rhq-serverplugin.perspective}InventoryActivatorType" maxOccurs="unbounded" minOccurs="0"/>
       </choice>
     </extension>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<FacetActivatorType> facet
           
protected  List<ResourcePermissionActivatorType> resourcePermission
           
protected  List<InventoryActivatorType> resourceType
           
protected  List<TraitActivatorType> trait
           
 
Fields inherited from class org.rhq.enterprise.server.xmlschema.generated.serverplugin.perspective.CommonActivatorsType
debugMode, globalPermission, licenseFeature, superuser
 
Constructor Summary
ResourceActivatorsType()
           
 
Method Summary
 List<FacetActivatorType> getFacet()
          Gets the value of the facet property.
 List<ResourcePermissionActivatorType> getResourcePermission()
          Gets the value of the resourcePermission property.
 List<InventoryActivatorType> getResourceType()
          Gets the value of the resourceType property.
 List<TraitActivatorType> getTrait()
          Gets the value of the trait property.
 
Methods inherited from class org.rhq.enterprise.server.xmlschema.generated.serverplugin.perspective.CommonActivatorsType
getDebugMode, getGlobalPermission, getLicenseFeature, getSuperuser, setDebugMode, setSuperuser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

facet

protected List<FacetActivatorType> facet

resourcePermission

protected List<ResourcePermissionActivatorType> resourcePermission

trait

protected List<TraitActivatorType> trait

resourceType

protected List<InventoryActivatorType> resourceType
Constructor Detail

ResourceActivatorsType

public ResourceActivatorsType()
Method Detail

getFacet

public List<FacetActivatorType> getFacet()
Gets the value of the facet property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the facet property.

For example, to add a new item, do as follows:

    getFacet().add(newItem);
 

Objects of the following type(s) are allowed in the list FacetActivatorType


getResourcePermission

public List<ResourcePermissionActivatorType> getResourcePermission()
Gets the value of the resourcePermission property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the resourcePermission property.

For example, to add a new item, do as follows:

    getResourcePermission().add(newItem);
 

Objects of the following type(s) are allowed in the list ResourcePermissionActivatorType


getTrait

public List<TraitActivatorType> getTrait()
Gets the value of the trait property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the trait property.

For example, to add a new item, do as follows:

    getTrait().add(newItem);
 

Objects of the following type(s) are allowed in the list TraitActivatorType


getResourceType

public List<InventoryActivatorType> getResourceType()
Gets the value of the resourceType property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the resourceType property.

For example, to add a new item, do as follows:

    getResourceType().add(newItem);
 

Objects of the following type(s) are allowed in the list InventoryActivatorType



Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.