org.rhq.core.domain.criteria
Class BundleResourceDeploymentCriteria

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

public class BundleResourceDeploymentCriteria
extends Criteria

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
BundleResourceDeploymentCriteria()
           
 
Method Summary
 void addFilterBundleDeploymentId(Integer filterBundleDeploymentId)
           
 void addFilterBundleDeploymentName(String filterBundleDeploymentName)
           
 void addFilterId(Integer filterId)
           
 void addFilterIds(Integer... filterIds)
           
 void addFilterResourceId(Integer filterResourceId)
           
 void addFilterResourceName(String filterResourceName)
           
 void addFilterStatus(BundleDeploymentStatus filterStatus)
           
 void fetchBundleDeployment(boolean fetchBundleDeployment)
           
 void fetchHistories(boolean fetchHistories)
           
 void fetchResource(boolean fetchResource)
          By setting this fetch to true, it will cause isInventoryManagerRequired() to return true as well.
 Class<BundleResourceDeployment> getPersistentClass()
           
 boolean isInventoryManagerRequired()
          subclasses should override as necessary
 
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, isSecurityManagerRequired, 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

BundleResourceDeploymentCriteria

public BundleResourceDeploymentCriteria()
Method Detail

getPersistentClass

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

addFilterId

public void addFilterId(Integer filterId)

addFilterIds

public void addFilterIds(Integer... filterIds)

addFilterBundleDeploymentId

public void addFilterBundleDeploymentId(Integer filterBundleDeploymentId)

addFilterBundleDeploymentName

public void addFilterBundleDeploymentName(String filterBundleDeploymentName)

addFilterResourceId

public void addFilterResourceId(Integer filterResourceId)

addFilterResourceName

public void addFilterResourceName(String filterResourceName)

addFilterStatus

public void addFilterStatus(BundleDeploymentStatus filterStatus)

fetchBundleDeployment

public void fetchBundleDeployment(boolean fetchBundleDeployment)

fetchResource

public void fetchResource(boolean fetchResource)
By setting this fetch to true, it will cause isInventoryManagerRequired() to return true as well. In practice, however, MANAGE_INVENTORY is too restrictive; a bundle manager who has MANAGE_BUNDLE but not MANAGE_INVENTORY would not be able to see any resource deployments. So, until it is possible to handle granular authorization checks on optionally fetched criteria data, a bundle manager will be allowed to see resource deployments to any platform.

See Also:
org.rhq.enterprise.server.bundle.BundleManagerBean#findBundleResourceDeploymentsByCriteria(org.rhq.core.domain.auth.Subject, BundleResourceDeploymentCriteria)

fetchHistories

public void fetchHistories(boolean fetchHistories)

isInventoryManagerRequired

public boolean isInventoryManagerRequired()
subclasses should override as necessary

Overrides:
isInventoryManagerRequired in class Criteria


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