Skip to content

Commit

Permalink
Used Google Java Codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
skabashnyuk committed Jul 31, 2017
1 parent 53c3842 commit b640524
Show file tree
Hide file tree
Showing 6,500 changed files with 793,878 additions and 785,311 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*******************************************************************************
/*
* Copyright (c) 2012-2017 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand All @@ -7,75 +7,72 @@
*
* Contributors:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
*/
package org.eclipse.che.api.agent.shared.dto;

import java.util.List;
import java.util.Map;
import org.eclipse.che.api.agent.shared.model.Agent;
import org.eclipse.che.api.workspace.shared.dto.ServerConf2Dto;
import org.eclipse.che.dto.shared.DTO;

import java.util.List;
import java.util.Map;

/**
* @author Anatoliy Bazko
*/
/** @author Anatoliy Bazko */
@DTO
public interface AgentDto extends Agent {

@Override
String getId();
@Override
String getId();

void setId(String id);
void setId(String id);

AgentDto withId(String id);
AgentDto withId(String id);

@Override
String getName();
@Override
String getName();

void setName(String name);
void setName(String name);

AgentDto withName(String name);
AgentDto withName(String name);

@Override
String getVersion();
@Override
String getVersion();

void setVersion(String version);
void setVersion(String version);

AgentDto withVersion(String version);
AgentDto withVersion(String version);

@Override
String getDescription();
@Override
String getDescription();

void setDescription(String description);
void setDescription(String description);

AgentDto withDescription(String description);
AgentDto withDescription(String description);

@Override
List<String> getDependencies();
@Override
List<String> getDependencies();

void setDependencies(List<String> dependencies);
void setDependencies(List<String> dependencies);

AgentDto withDependencies(List<String> dependencies);
AgentDto withDependencies(List<String> dependencies);

@Override
String getScript();
@Override
String getScript();

void setScript(String script);
void setScript(String script);

AgentDto withScript(String script);
AgentDto withScript(String script);

@Override
Map<String, String> getProperties();
@Override
Map<String, String> getProperties();

void setProperties(Map<String, String> properties);
void setProperties(Map<String, String> properties);

AgentDto withProperties(Map<String, String> properties);
AgentDto withProperties(Map<String, String> properties);

@Override
Map<String, ServerConf2Dto> getServers();
@Override
Map<String, ServerConf2Dto> getServers();

void setServers(Map<String, ServerConf2Dto> servers);
void setServers(Map<String, ServerConf2Dto> servers);

AgentDto withServers(Map<String, ServerConf2Dto> servers);
AgentDto withServers(Map<String, ServerConf2Dto> servers);
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*******************************************************************************
/*
* Copyright (c) 2012-2017 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand All @@ -7,27 +7,25 @@
*
* Contributors:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
*/
package org.eclipse.che.api.agent.shared.dto;

import org.eclipse.che.api.agent.shared.model.AgentKey;
import org.eclipse.che.dto.shared.DTO;

/**
* @author Anatolii Bazko
*/
/** @author Anatolii Bazko */
@DTO
public interface AgentKeyDto extends AgentKey {

String getName();
String getName();

void setName(String name);
void setName(String name);

AgentKeyDto withName(String name);
AgentKeyDto withName(String name);

String getVersion();
String getVersion();

void setVersion(String version);
void setVersion(String version);

AgentKeyDto withVersion(String version);
AgentKeyDto withVersion(String version);
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*******************************************************************************
/*
* Copyright (c) 2012-2017 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand All @@ -7,13 +7,12 @@
*
* Contributors:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
*/
package org.eclipse.che.api.agent.shared.model;

import org.eclipse.che.api.core.model.workspace.ServerConf2;

import java.util.List;
import java.util.Map;
import org.eclipse.che.api.core.model.workspace.ServerConf2;

/**
* An entity that might additionally injected into machine and brings functionality.
Expand All @@ -22,43 +21,27 @@
*/
public interface Agent {

/**
* Returns the id of the agent.
*/
String getId();
/** Returns the id of the agent. */
String getId();

/**
* Returns the name of the agent.
*/
String getName();
/** Returns the name of the agent. */
String getName();

/**
* Returns the version of the agent.
*/
String getVersion();
/** Returns the version of the agent. */
String getVersion();

/**
* Returns the description of the agent.
*/
String getDescription();
/** Returns the description of the agent. */
String getDescription();

/**
* Returns the depending agents, that must be applied before.
*/
List<String> getDependencies();
/** Returns the depending agents, that must be applied before. */
List<String> getDependencies();

/**
* Returns the script to be applied when machine is started.
*/
String getScript();
/** Returns the script to be applied when machine is started. */
String getScript();

/**
* Returns any machine specific properties.
*/
Map<String, String> getProperties();
/** Returns any machine specific properties. */
Map<String, String> getProperties();

/**
* Returns Che servers in the machine.
*/
Map<String, ? extends ServerConf2> getServers();
/** Returns Che servers in the machine. */
Map<String, ? extends ServerConf2> getServers();
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*******************************************************************************
/*
* Copyright (c) 2012-2017 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand All @@ -7,23 +7,18 @@
*
* Contributors:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
*/
package org.eclipse.che.api.agent.shared.model;

/**
* A pair of id and version of the agent.
* Version part is not mandatory.
* A pair of id and version of the agent. Version part is not mandatory.
*
* @author Anatolii Bazko
*/
public interface AgentKey {
/**
* @return the id of the agent
*/
String getId();
/** @return the id of the agent */
String getId();

/**
* @return the version of the agent
*/
String getVersion();
/** @return the version of the agent */
String getVersion();
}
Loading

0 comments on commit b640524

Please sign in to comment.