Skip to main content
summaryrefslogtreecommitdiffstats
blob: dc80e16565aa2291ee01140d4cc8befcbd7acb9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*******************************************************************************
 * Copyright (c) 2012 Boeing.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Boeing - initial API and implementation
 *******************************************************************************/
package org.eclipse.osee.orcs.rest.client.internal.search;

import java.util.Collection;
import org.eclipse.osee.framework.core.data.IArtifactType;
import org.eclipse.osee.framework.core.data.IAttributeType;
import org.eclipse.osee.framework.core.data.IRelationType;
import org.eclipse.osee.framework.core.data.IRelationTypeSide;
import org.eclipse.osee.framework.core.data.Identity;
import org.eclipse.osee.framework.core.enums.Operator;
import org.eclipse.osee.framework.core.enums.QueryOption;
import org.eclipse.osee.orcs.rest.model.search.Predicate;

/**
 * @author John Misinco
 */
public interface PredicateFactory {

   Predicate createUuidSearch(Collection<String> ids);

   Predicate createLocalIdsSearch(Collection<Integer> ids);

   Predicate createIdSearch(Collection<? extends Identity<String>> ids);

   Predicate createTypeSearch(Collection<? extends IArtifactType> artifactType);

   Predicate createAttributeTypeSearch(Collection<? extends IAttributeType> attributeTypes, String value, QueryOption... options);

   Predicate createAttributeTypeSearch(Collection<? extends IAttributeType> attributeTypes, Operator operator, Collection<String> values);

   Predicate createAttributeExistsSearch(Collection<? extends IAttributeType> attributeTypes);

   Predicate createRelationExistsSearch(Collection<? extends IRelationType> relationTypes);

   Predicate createRelatedToSearch(IRelationTypeSide relationTypeSide, Collection<?> ids);

}

Back to the top