org.rhq.core.domain.criteria
Class ResourceGroupCriteria

java.lang.Object
  extended by org.rhq.core.domain.criteria.Criteria
      extended by org.rhq.core.domain.criteria.TaggedCriteria
          extended by org.rhq.core.domain.criteria.ResourceGroupCriteria
All Implemented Interfaces:
Serializable, BaseCriteria

public class ResourceGroupCriteria
extends TaggedCriteria

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.rhq.core.domain.criteria.Criteria
Criteria.NonBindingOverrideFilter, Criteria.Restriction, Criteria.Type
 
Field Summary
 
Fields inherited from class org.rhq.core.domain.criteria.Criteria
filterOverrides, pageControlOverrides, sortOverrides
 
Constructor Summary
ResourceGroupCriteria()
           
 
Method Summary
 void addFilterAutoGroupParentResourceId(Integer filterAutoGroupParentResourceId)
           
 void addFilterBundleTargetableOnly(boolean filterBundleTargetableOnly)
          If true is passed in, only those groups that can be targeted for bundle deployments will be fetched.
 void addFilterDownMemberCount(Long filterDownMemberCount)
          Only returns groups with at least this many downed implicit resource members
 void addFilterExplicitResourceCategory(ResourceCategory filterExplicitResourceCategory)
          A somewhat special case filter that ensures that all explicit group members are of the specified category (e.g.
 void addFilterExplicitResourceIds(Integer... filterExplicitResourceIds)
           
 void addFilterExplicitResourceTypeId(Integer filterExplicitResourceTypeId)
          A somewhat special case filter that ensures that all explicit group members are of the specified resource type (id).
 void addFilterExplicitResourceTypeName(String filterExplicitResourceTypeName)
          A somewhat special case filter that ensures that all explicit group members are of the specified resource type (id).
 void addFilterGroupCategory(GroupCategory filterGroupCategory)
           
 void addFilterGroupDefinitionId(Integer filterGroupDefinitionId)
           
 void addFilterId(Integer filterId)
           
 void addFilterIds(Integer... filterIds)
           
 void addFilterImplicitResourceIds(Integer... filterImplicitResourceIds)
           
 void addFilterName(String filterName)
           
 void addFilterPluginName(String filterPluginName)
           
 void addFilterPrivate(Boolean filterPrivate)
           
 void addFilterRecursive(Boolean filterRecursive)
           
 void addFilterResourceTypeId(Integer filterResourceTypeId)
           
 void addFilterResourceTypeName(String filterResourceTypeName)
           
 void addFilterSubjectId(Integer filterSubjectId)
          Requires MANAGE_INVENTORY.
 void addFilterVisible(Boolean filterVisible)
           
 void addSortName(PageOrdering sortName)
           
 void addSortPluginName(PageOrdering sortPluginName)
           
 void addSortResourceTypeName(PageOrdering sortResourceTypeName)
           
 void fetchConfigurationUpdates(boolean fetchConfigurationUpdates)
           
 void fetchExplicitResources(boolean fetchExplicitResources)
           
 void fetchGroupDefinition(boolean fetchGroupDefinition)
           
 void fetchImplicitResources(boolean fetchImplicitResources)
           
 void fetchOperationHistories(boolean fetchOperationHistories)
           
 void fetchResourceType(boolean fetchResourceType)
           
 void fetchRoles(boolean fetchRoles)
          Requires MANAGE_SECURITY
 Class<ResourceGroup> getPersistentClass()
           
 boolean isFilterPrivate()
           
 boolean isFilterVisible()
           
 boolean isInventoryManagerRequired()
          subclasses should override as necessary
 boolean isSecurityManagerRequired()
          subclasses should override as necessary
 
Methods inherited from class org.rhq.core.domain.criteria.TaggedCriteria
addFilterTag, addFilterTagName, addFilterTagNamespace, addFilterTagSemantic, fetchTags, isTagFiltered
 
Methods inherited from class org.rhq.core.domain.criteria.Criteria
addRequiredPermissions, addSortField, clearPaging, getAlias, getJPQLFilterOverride, getJPQLSortOverride, getOrderingFieldNames, getPageControlOverrides, getPageNumber, getPageSize, getRequiredPermissions, getRestriction, getSearchExpression, hasCustomizedSorting, isCaseSensitive, isFiltersOptional, isStrict, setCaseSensitive, setFiltersOptional, setPageControl, setPaging, setRestriction, setSearchExpression, setStrict
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceGroupCriteria

public ResourceGroupCriteria()
Method Detail

getPersistentClass

public Class<ResourceGroup> getPersistentClass()
Specified by:
getPersistentClass in class Criteria

addFilterId

public void addFilterId(Integer filterId)

addFilterDownMemberCount

public void addFilterDownMemberCount(Long filterDownMemberCount)
Only returns groups with at least this many downed implicit resource members


addFilterName

public void addFilterName(String filterName)

addFilterRecursive

public void addFilterRecursive(Boolean filterRecursive)

addFilterResourceTypeId

public void addFilterResourceTypeId(Integer filterResourceTypeId)

addFilterResourceTypeName

public void addFilterResourceTypeName(String filterResourceTypeName)

addFilterSubjectId

public void addFilterSubjectId(Integer filterSubjectId)
Requires MANAGE_INVENTORY. Use addFilterPrivate(true) to filter on the caller's private groups.

Parameters:
filterSubjectId. -

addFilterAutoGroupParentResourceId

public void addFilterAutoGroupParentResourceId(Integer filterAutoGroupParentResourceId)

addFilterPluginName

public void addFilterPluginName(String filterPluginName)

addFilterGroupCategory

public void addFilterGroupCategory(GroupCategory filterGroupCategory)

addFilterExplicitResourceIds

public void addFilterExplicitResourceIds(Integer... filterExplicitResourceIds)

addFilterImplicitResourceIds

public void addFilterImplicitResourceIds(Integer... filterImplicitResourceIds)

addFilterExplicitResourceCategory

public void addFilterExplicitResourceCategory(ResourceCategory filterExplicitResourceCategory)
A somewhat special case filter that ensures that all explicit group members are of the specified category (e.g. PLATFORM). Useful for filtering Mixed groups.

Parameters:
filterExplicitResourceCategory -

addFilterExplicitResourceTypeId

public void addFilterExplicitResourceTypeId(Integer filterExplicitResourceTypeId)
A somewhat special case filter that ensures that all explicit group members are of the specified resource type (id). Useful for filtering Mixed groups.

Parameters:
filterExplicitResourceTypeId -

addFilterExplicitResourceTypeName

public void addFilterExplicitResourceTypeName(String filterExplicitResourceTypeName)
A somewhat special case filter that ensures that all explicit group members are of the specified resource type (id). Useful for filtering Mixed groups.

Parameters:
filterExplicitResourceTypeName -

addFilterGroupDefinitionId

public void addFilterGroupDefinitionId(Integer filterGroupDefinitionId)

addFilterPrivate

public void addFilterPrivate(Boolean filterPrivate)

isFilterPrivate

public boolean isFilterPrivate()

addFilterVisible

public void addFilterVisible(Boolean filterVisible)
Parameters:
filterVisible - not null. A single fetch may be for visible or invisible groups, but not both.

isFilterVisible

public boolean isFilterVisible()

addFilterIds

public void addFilterIds(Integer... filterIds)

addFilterBundleTargetableOnly

public void addFilterBundleTargetableOnly(boolean filterBundleTargetableOnly)
If true is passed in, only those groups that can be targeted for bundle deployments will be fetched. By definition, this means no mixed groups are ever fetched and only compatible groups with resource types that support bundle deployments are fetched. Technically, what this means is only those compatible groups whose resource types have non-null bundle configurations are fetched.

Parameters:
filterBundleTargetableOnly -

fetchExplicitResources

public void fetchExplicitResources(boolean fetchExplicitResources)

fetchImplicitResources

public void fetchImplicitResources(boolean fetchImplicitResources)

fetchOperationHistories

public void fetchOperationHistories(boolean fetchOperationHistories)

fetchConfigurationUpdates

public void fetchConfigurationUpdates(boolean fetchConfigurationUpdates)

fetchGroupDefinition

public void fetchGroupDefinition(boolean fetchGroupDefinition)

fetchResourceType

public void fetchResourceType(boolean fetchResourceType)

fetchRoles

public void fetchRoles(boolean fetchRoles)
Requires MANAGE_SECURITY

Parameters:
fetchRoles -

addSortName

public void addSortName(PageOrdering sortName)

addSortResourceTypeName

public void addSortResourceTypeName(PageOrdering sortResourceTypeName)

addSortPluginName

public void addSortPluginName(PageOrdering sortPluginName)

isSecurityManagerRequired

public boolean isSecurityManagerRequired()
subclasses should override as necessary

Overrides:
isSecurityManagerRequired in class Criteria

isInventoryManagerRequired

public boolean isInventoryManagerRequired()
Description copied from class: Criteria
subclasses should override as necessary

Overrides:
isInventoryManagerRequired in class Criteria


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