org.rhq.core.domain.criteria
Class BundleResourceDeploymentCriteria
java.lang.Object
org.rhq.core.domain.criteria.Criteria
org.rhq.core.domain.criteria.BundleResourceDeploymentCriteria
- All Implemented Interfaces:
- Serializable, BaseCriteria
public class BundleResourceDeploymentCriteria
- extends Criteria
- See Also:
- Serialized Form
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 |
BundleResourceDeploymentCriteria
public BundleResourceDeploymentCriteria()
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.