Пример #1
0
 public static Collection<Artifact> getTeamsActionArtifacts(
     Collection<String> pcrIds, Collection<IAtsTeamDefinition> teamDefs) throws OseeCoreException {
   LegacyPCRActionsWorldSearchItem search =
       new LegacyPCRActionsWorldSearchItem(pcrIds, teamDefs, true);
   Set<Artifact> actArts = new HashSet<>();
   for (Artifact art : search.performSearchGetResults()) {
     actArts.add(art);
   }
   return actArts;
 }
Пример #2
0
 public static Collection<ActionArtifact> getTeamsActionArtifacts(
     Collection<IAtsTeamDefinition> teamDefs) throws OseeCoreException {
   LegacyPCRActionsWorldSearchItem search = new LegacyPCRActionsWorldSearchItem(teamDefs, true);
   Set<ActionArtifact> actArts = new HashSet<>();
   for (Artifact art : search.performSearchGetResults()) {
     if (art.isOfType(AtsArtifactTypes.Action)) {
       actArts.add((ActionArtifact) art);
     }
   }
   return actArts;
 }
Пример #3
0
 public static Collection<TeamWorkFlowArtifact> getTeamsTeamWorkflowArtifacts(
     Collection<IAtsTeamDefinition> teamDefs) throws OseeCoreException {
   LegacyPCRActionsWorldSearchItem search = new LegacyPCRActionsWorldSearchItem(teamDefs, false);
   Set<TeamWorkFlowArtifact> teamArts = new HashSet<>();
   for (Artifact art : search.performSearchGetResults()) {
     if (art.isOfType(AtsArtifactTypes.TeamWorkflow)) {
       teamArts.add((TeamWorkFlowArtifact) art);
     }
   }
   return teamArts;
 }