private boolean isAutoGroup = false;
public void showContextMenu(final VLayout treeView, final TreeGrid treeGrid, final TreeNode node,
final ResourceGroup group) {
// we need the group composite to access permissions for context menu authz, so get it now
ResourceGroupCriteria criteria = new ResourceGroupCriteria();
criteria.addFilterId(group.getId());
// for autoclusters and private groups (autogroups) we need to add more criteria
isAutoCluster = (null != group.getClusterResourceGroup());
isAutoGroup = (null != group.getSubject());
if (isAutoCluster) {
criteria.addFilterVisible(false);
} else if (isAutoGroup) {
criteria.addFilterVisible(false);
criteria.addFilterPrivate(true);
}
GWTServiceLookup.getResourceGroupService().findResourceGroupCompositesByCriteria(criteria,
new AsyncCallback<PageList<ResourceGroupComposite>>() {
public void onFailure(Throwable caught) {