-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michal Vala <mvala@redhat.com>
- Loading branch information
Showing
32 changed files
with
818 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...tory-shared/src/main/java/org/eclipse/che/api/factory/shared/dto/FactoryDevfileV2Dto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Copyright (c) 2012-2018 Red Hat, Inc. | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Red Hat, Inc. - initial API and implementation | ||
*/ | ||
package org.eclipse.che.api.factory.shared.dto; | ||
|
||
import static org.eclipse.che.api.core.factory.FactoryParameter.Obligation.MANDATORY; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
import org.eclipse.che.api.core.factory.FactoryParameter; | ||
import org.eclipse.che.api.core.rest.shared.dto.Hyperlinks; | ||
import org.eclipse.che.api.core.rest.shared.dto.Link; | ||
import org.eclipse.che.dto.shared.DTO; | ||
|
||
/** | ||
* Factory DTO for Devfile v2. As che-server don't know the structure of Devfile v2, we're using | ||
* just generic {@code Map<String, Object>} here. | ||
*/ | ||
@DTO | ||
public interface FactoryDevfileV2Dto extends FactoryMetaDto, Hyperlinks { | ||
|
||
@Override | ||
default FactoryMetaDto acceptVisitor(FactoryVisitor visitor) { | ||
return visitor.visit(this); | ||
} | ||
|
||
@Override | ||
FactoryDevfileV2Dto withV(String v); | ||
|
||
@FactoryParameter(obligation = MANDATORY) | ||
Map<String, Object> getDevfile(); | ||
|
||
void setDevfile(Map<String, Object> devfile); | ||
|
||
FactoryDevfileV2Dto withDevfile(Map<String, Object> devfile); | ||
|
||
@Override | ||
FactoryDevfileV2Dto withSource(String source); | ||
|
||
@Override | ||
FactoryDevfileV2Dto withLinks(List<Link> links); | ||
} |
Oops, something went wrong.