Filters the List of Deployments and returns the ones that are Managed deployments.

@param deployments
List to filter

@return Filtered list
183616
private List<Deployment> managedDeployments(List<Deployment> deployments) {
        List<Deployment> managed = new ArrayList<Deployment>();
        for (Deployment deployment : deployments) {
            if (deployment.getDescription().managed()) {
                managed.add(deployment);
            }
        }
        return managed;
    }
619968
public List<String> getWorkplaceServers(CmsSSLMode filterMode) {

        if (filterMode == null) {
            return getWorkplaceServers();
        }
        List<String> ret = new ArrayList<String>();
        for (String server : m_workplaceServers.keySet()) {
            if (m_workplaceServers.get(server).equals(filterMode)) {
                ret.add(server);
            }
        }
        return ret;
    }
1331244
private Collection<FrameworkMethod> filterAndSort(List<FrameworkMethod> fms, boolean isStatic) throws Exception
   {
      SortedMap<Integer, FrameworkMethod> m = new TreeMap<>();

      for (FrameworkMethod fm : fms)
      {
         SecurityActions.setAccessible(fm.getMethod());

         if (Modifier.isStatic(fm.getMethod().getModifiers()) == isStatic)
         {
            Deployment deployment = (Deployment)fm.getAnnotation(Deployment.class);
            int order = deployment.order();

            if (order <= 0 || m.containsKey(Integer.valueOf(order)))
               throw new Exception("Incorrect order definition '" + order + "' on " +
                                   fm.getDeclaringClass().getName() + "#" + fm.getName());
            
            m.put(Integer.valueOf(order), fm);
         }
      }

      return m.values();
   }
867419
public void setDeploymentStatusMessages(java.util.Collection<String> deploymentStatusMessages) {
        if (deploymentStatusMessages == null) {
            this.deploymentStatusMessages = null;
            return;
        }

        this.deploymentStatusMessages = new com.amazonaws.internal.SdkInternalList<String>(deploymentStatusMessages);
    }
1023680
public void setDeploymentGroupNames(java.util.Collection<String> deploymentGroupNames) {
        if (deploymentGroupNames == null) {
            this.deploymentGroupNames = null;
            return;
        }

        this.deploymentGroupNames = new com.amazonaws.internal.SdkInternalList<String>(deploymentGroupNames);
    }
427927
public static Operation createDeployOperation(final Set<DeploymentDescription> deployments) {
        Assertions.requiresNotNullOrNotEmptyParameter("deployments", deployments);
        final CompositeOperationBuilder builder = CompositeOperationBuilder.create(true);
        for (DeploymentDescription deployment : deployments) {
            addDeployOperationStep(builder, deployment);
        }
        return builder.build();
    }
129170
func (v *version) Deployments() DeploymentInformer {
	return &deploymentInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
}
1128717
public java.util.List<ManagedAction> getManagedActions() {
        if (managedActions == null) {
            managedActions = new com.amazonaws.internal.SdkInternalList<ManagedAction>();
        }
        return managedActions;
    }
748324
public static ModelNode createListDeploymentsOperation() {
        final ModelNode op = createOperation(READ_CHILDREN_NAMES);
        op.get(CHILD_TYPE).set(DEPLOYMENT);
        return op;
    }
578365
public static List<Service> getServices(List<ServiceId> ids) {
        ProviderList list = Providers.getProviderList();
        return list.getServices(ids);
    }
1031519
func (m *MockAppsV1Interface) Deployments(arg0 string) v11.DeploymentInterface {
	ret := m.ctrl.Call(m, "Deployments", arg0)
	ret0, _ := ret[0].(v11.DeploymentInterface)
	return ret0
}
265781
private FilterList getFilterList(Filter filters)
    {
        FilterList filterList = null;
        if (filters != null)
        {
            if (FilterList.class.isAssignableFrom(filters.getClass()))
            {
                filterList = (FilterList) filters;
            }
            else
            {
                filterList = new FilterList();
                filterList.addFilter(filters);
            }
        }
        return filterList;
    }
1249574
public static Set<String> listLinks(OperationContext context, PathAddress overlayAddress) {
        Resource overlayResource = context.readResourceFromRoot(overlayAddress);
        if (overlayResource.hasChildren(DEPLOYMENT)) {
            return overlayResource.getChildrenNames(DEPLOYMENT);
        }
        return Collections.emptySet();
    }
702910
public void setDeployments(java.util.Collection<Deployment> deployments) {
        if (deployments == null) {
            this.deployments = null;
            return;
        }

        this.deployments = new com.amazonaws.internal.SdkInternalList<Deployment>(deployments);
    }
1172243
public static void redeployDeployments(OperationContext context, PathAddress deploymentsRootAddress, Set<String> deploymentNames) throws OperationFailedException {
        for (String deploymentName : deploymentNames) {
            PathAddress address = deploymentsRootAddress.append(DEPLOYMENT, deploymentName);
            OperationStepHandler handler = context.getRootResourceRegistration().getOperationHandler(address, REDEPLOY);
            ModelNode operation = addRedeployStep(address);
            ServerLogger.AS_ROOT_LOGGER.debugf("Redeploying %s at address %s with handler %s", deploymentName, address, handler);
            assert handler != null;
            assert operation.isDefined();
            context.addStep(operation, handler, OperationContext.Stage.MODEL);
        }
    }
40760
public ListDeploymentTargetsRequest withTargetFilters(java.util.Map<String, java.util.List<String>> targetFilters) {
        setTargetFilters(targetFilters);
        return this;
    }
421673
public DeploymentCache deployments(long applicationId)
    {
        DeploymentCache cache = deployments.get(applicationId);
        if(cache == null)
            deployments.put(applicationId, cache = new DeploymentCache(applicationId));
        return cache;
    }