public static <T extends AbstractOperationRequest> RefactorOperationBuilder<T> newResourceBasedInstance( String resourceName, ResourceType type, String newResourceName, OperationType operation) { RefactorOperationBuilder<T> builder = newInstance(operation); // TODO: info for new name?? return builder; }
public static <T extends AbstractOperationRequest> RefactorOperationBuilder<T> newResourcePartBasedInstance( String resourceName, String partName, PartType partType, String newPartName, OperationType operation) { // OCRAM: check that part type is NOT a shared-part type RefactorOperationBuilder<T> builder = newInstance(operation); // TODO: info for new name?? return builder; }
public static <T extends AbstractOperationRequest> RefactorOperationBuilder<T> newResourceBasedInstance( String resourceName, ResourceType type, OperationType operation) { RefactorOperationBuilder<T> builder = newInstance(operation); builder.getQueryTerms().add(new ValueReferenceIndexTerm(resourceName, type)); return builder; }
public static <T extends AbstractOperationRequest> RefactorOperationBuilder<T> newResourcePartBasedInstance( String resourceName, String partName, PartType partType, TermSearchType searchType, OperationType operation) { // OCRAM: check that part type is NOT a shared-part type RefactorOperationBuilder<T> builder = newInstance(operation); builder.getQueryTerms().add(new ValuePartReferenceIndexTerm(resourceName, partName, partType, searchType)); return builder; }
public static <T extends AbstractOperationRequest> RefactorOperationBuilder<T> newSharedPartBasedInstance( String sharedPartName, PartType type, OperationType operation) { // OCRAM: check that part type is a shared-part type RefactorOperationBuilder<T> builder = newInstance(operation); builder.getQueryTerms().add(new ValueSharedPartIndexTerm(sharedPartName, type)); return builder; }
public static <T extends AbstractOperationRequest> RefactorOperationBuilder<T> newSharedPartBasedInstance( String sharedPartName, PartType type, TermSearchType searchType, OperationType operation) { // OCRAM: check that part type is a shared-part type RefactorOperationBuilder<T> builder = newInstance(operation); builder.getQueryTerms().add(new ValueSharedPartIndexTerm(sharedPartName, type, searchType)); return builder; }
public static <T extends AbstractOperationRequest> RefactorOperationBuilder<T> newResourceBasedInstance( String resourceName, ResourceType type, TermSearchType searchType, OperationType operation) { RefactorOperationBuilder<T> builder = newInstance(operation); builder.getQueryTerms().add(new ValueReferenceIndexTerm(resourceName, type, searchType)); return builder; }