Examples of fetchResource()


Examples of org.rhq.core.domain.criteria.ResourceConfigurationUpdateCriteria.fetchResource()

            @Override
            protected ResourceConfigurationUpdateCriteria getFetchCriteria(final DSRequest request) {
                ResourceConfigurationUpdateCriteria criteria = new ResourceConfigurationUpdateCriteria();
                criteria
                    .addFilterGroupConfigurationUpdateId(HistoryGroupResourceConfigurationMembers.this.groupUpdateId);
                criteria.fetchResource(true);
                return criteria;
            }
        }
    }
}
View Full Code Here

Examples of org.rhq.core.domain.criteria.ResourceConfigurationUpdateCriteria.fetchResource()

        int updateId = viewPath.getCurrentAsInt();
        criteria.addFilterId(updateId);

        criteria.fetchConfiguration(true);
        criteria.fetchResource(true);
        criteria.fetchGroupConfigurationUpdate(true);

        GWTServiceLookup.getConfigurationService().findResourceConfigurationUpdatesByCriteria(criteria,
            new AsyncCallback<PageList<ResourceConfigurationUpdate>>() {
                public void onFailure(Throwable caught) {
View Full Code Here

Examples of org.rhq.core.domain.criteria.ResourceConfigurationUpdateCriteria.fetchResource()

    @Override
    protected ResourceConfigurationUpdateCriteria getFetchCriteria(final DSRequest request) {
        ResourceConfigurationUpdateCriteria criteria = super.getFetchCriteria(request);

        criteria.fetchResource(true);
        criteria.fetchGroupConfigurationUpdate(true);

        final Integer resourceId = getFilter(request, CriteriaField.RESOURCE_ID, Integer.class);
        if (resourceId != null) {
            criteria.addFilterResourceIds(resourceId);
View Full Code Here

Examples of org.rhq.core.domain.criteria.StorageNodeCriteria.fetchResource()

    @RequiredPermission(Permission.MANAGE_SETTINGS)
    @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
    public void deployStorageNode(Subject subject, StorageNode storageNode) {
        StorageNodeCriteria c = new StorageNodeCriteria();
        c.addFilterId(storageNode.getId());
        c.fetchResource(true);
        List<StorageNode> storageNodes = storageNodeManager.findStorageNodesByCriteria(subject, c);
        if (storageNodes.isEmpty()) {
            throw new RuntimeException("Storage node not found, can not undeploy " + storageNode);
        }
        storageNode = storageNodes.get(0);
View Full Code Here

Examples of org.rhq.core.domain.criteria.StorageNodeCriteria.fetchResource()

    @RequiredPermission(Permission.MANAGE_SETTINGS)
    @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
    public void undeployStorageNode(Subject subject, StorageNode storageNode) {
        StorageNodeCriteria c = new StorageNodeCriteria();
        c.addFilterId(storageNode.getId());
        c.fetchResource(true);
        List<StorageNode> storageNodes = storageNodeManager.findStorageNodesByCriteria(subject, c);
        if (storageNodes.isEmpty()) {
            throw new RuntimeException("Storage node not found, can not undeploy " + storageNode);
        }
        storageNode = storageNodes.get(0);
View Full Code Here

Examples of org.rhq.core.domain.criteria.StorageNodeCriteria.fetchResource()

        if (alerts) {
            return;
        }
        StorageNodeCriteria criteria = new StorageNodeCriteria();
        criteria.addFilterId(storageNodeId);
        criteria.fetchResource(true);
        GWTServiceLookup.getStorageService().findStorageNodesByCriteria(criteria,
            new AsyncCallback<PageList<StorageNode>>() {
                public void onSuccess(final PageList<StorageNode> storageNodes) {
                    if (storageNodes == null || storageNodes.isEmpty() || storageNodes.size() != 1) {
                        onFailure(new Exception("No storage nodes have been found."));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.