| Chunk |
|---|
| Conflicting content |
|---|
UserEvaluationPermissions getUserEvaluationPermissions(String evalId) throws SynapseException; <<<<<<< HEAD /** * Create a new ColumnModel. If a column already exists with the same parameters, * that column will be returned. * @param model * @return * @throws SynapseException */ ColumnModel createColumnModel(ColumnModel model) throws SynapseException; /** * Get a ColumnModel from its ID. * * @param columnId * @return * @throws SynapseException */ ColumnModel getColumnModel(String columnId) throws SynapseException; ======= // Team services Team createTeam(Team team) throws SynapseException; Team getTeam(String id) throws SynapseException; PaginatedResults |
| Solution content |
|---|
*/ UserEvaluationPermissions getUserEvaluationPermissions(String evalId) throws SynapseException; /** * Create a new ColumnModel. If a column already exists with the same parameters, * that column will be returned. * @param model * @return * @throws SynapseException ColumnModel createColumnModel(ColumnModel model) throws SynapseException; /** * Get a ColumnModel from its ID. * * @param columnId * @return * @throws SynapseException */ ColumnModel getColumnModel(String columnId) throws SynapseException; // Team services Team createTeam(Team team) throws SynapseException; Team getTeam(String id) throws SynapseException; PaginatedResults |
| File |
|---|
| SynapseClient.java |
| Developer's decision |
|---|
| Concatenation |
| Kind of conflict |
|---|
| Comment |
| Method interface |
| Chunk |
|---|
| Conflicting content |
|---|
}
@Override
<<<<<<< HEAD
public ColumnModel createColumnModel(ColumnModel model) throws SynapseException {
if(model == null) throw new IllegalArgumentException("ColumnModel cannot be null");
String url = COLUMN;
return createJSONEntity(url, model);
}
@Override
public ColumnModel getColumnModel(String columnId) throws SynapseException {
if(columnId == null) throw new IllegalArgumentException("ColumnId cannot be null");
String url = COLUMN+"/"+columnId;
try {
return getJSONEntity(url, ColumnModel.class);
=======
public Team createTeam(Team team) throws SynapseException {
try {
JSONObject jsonObj = EntityFactory.createJSONObjectForEntity(team);
jsonObj = createJSONObject(TEAM, jsonObj);
return initializeFromJSONObject(jsonObj, Team.class);
} catch (JSONObjectAdapterException e) {
throw new SynapseException(e);
}
}
@Override
public Team getTeam(String id) throws SynapseException {
JSONObject jsonObj = getEntity(TEAM+"/"+id);
JSONObjectAdapter adapter = new JSONObjectAdapterImpl(jsonObj);
Team results = new Team();
try {
results.initializeFromJSONObject(adapter);
return results;
>>>>>>> 9e88f12d7d53878ceb81d5efc0ff265ef9d4a78a
} catch (JSONObjectAdapterException e) {
throw new SynapseException(e);
} |
| Solution content |
|---|
}
}
}
@Override
public ColumnModel createColumnModel(ColumnModel model) throws SynapseException {
if(model == null) throw new IllegalArgumentException("ColumnModel cannot be null");
String url = COLUMN;
return createJSONEntity(url, model);
}
@Override
public ColumnModel getColumnModel(String columnId) throws SynapseException {
if(columnId == null) throw new IllegalArgumentException("ColumnId cannot be null");
String url = COLUMN+"/"+columnId;
try {
return getJSONEntity(url, ColumnModel.class);
} catch (JSONObjectAdapterException e) {
throw new SynapseException(e);
}
}
@Override
public List |
| File |
|---|
| SynapseClientImpl.java |
| Developer's decision |
|---|
| Manual |
| Kind of conflict |
|---|
| Annotation |
| Attribute |
| If statement |
| Method declaration |
| Method invocation |
| Method signature |
| Return statement |
| Try statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
} @Override <<<<<<< HEAD public List |
| Solution content |
|---|
@Override public List |
| File |
|---|
| SynapseClientImpl.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Attribute |
| If statement |
| Method invocation |
| Method signature |
| Return statement |
| Try statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
}
@Override
<<<<<<< HEAD
public PaginatedColumnModels listColumnModels(String prefix, Long limit, Long offset) throws SynapseException {
String url = buildListColumnModelUrl(prefix, limit, offset);
try {
return getJSONEntity(url, PaginatedColumnModels.class);
=======
public PaginatedResults |
| Solution content |
|---|
}
@Override
public PaginatedColumnModels listColumnModels(String prefix, Long limit, Long offset) throws SynapseException {
String url = buildListColumnModelUrl(prefix, limit, offset);
try {
return getJSONEntity(url, PaginatedColumnModels.class);
} catch (JSONObjectAdapterException e) {
throw new SynapseException(e);
} |
| File |
|---|
| SynapseClientImpl.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Attribute |
| Method invocation |
| Method signature |
| Return statement |
| Try statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
}
}
<<<<<<< HEAD
/**
* Build up the URL for listing all ColumnModels
* @param prefix
* @param limit
* @param offset
* @return
*/
static String buildListColumnModelUrl(String prefix, Long limit, Long offset) {
StringBuilder builder = new StringBuilder();
builder.append(COLUMN);
int count =0;
if(prefix != null || limit != null || offset != null){
builder.append("?");
}
if(prefix != null){
builder.append("prefix=");
builder.append(prefix);
count++;
}
if(limit != null){
if(count > 0){
builder.append("&");
}
builder.append("limit=");
builder.append(limit);
count++;
}
if(offset != null){
if(count > 0){
builder.append("&");
}
builder.append("offset=");
builder.append(offset);
}
return builder.toString();
}
=======
@Override
public URL getTeamIcon(String teamId, Boolean redirect)
throws SynapseException {
String uri = null;
if (redirect==null) {
uri = TEAM+"/"+teamId+ICON;
} else {
uri = TEAM+"/"+teamId+ICON+"?"+REDIRECT_PARAMETER+redirect;
}
try {
return getUrl(getRepoEndpoint()+uri);
} catch (IOException e) {
throw new SynapseException(e);
}
}
@Override
public Team updateTeam(Team team) throws SynapseException {
JSONObjectAdapter toUpdateAdapter = new JSONObjectAdapterImpl();
JSONObject obj;
try {
obj = new JSONObject(team.writeToJSONObject(toUpdateAdapter).toJSONString());
JSONObject jsonObj = putJSONObject(TEAM, obj, new HashMap |
| Solution content |
|---|
static String buildListColumnModelUrl(String prefix, Long limit, Long offset) {
@Override
}
}
/**
* Build up the URL for listing all ColumnModels
* @param prefix
* @param limit
* @param offset
* @return
*/
StringBuilder builder = new StringBuilder();
builder.append(COLUMN);
int count =0;
if(prefix != null || limit != null || offset != null){
builder.append("?");
}
if(prefix != null){
builder.append("prefix=");
builder.append(prefix);
count++;
}
if(limit != null){
if(count > 0){
builder.append("&");
}
builder.append("limit=");
builder.append(limit);
count++;
}
if(offset != null){
if(count > 0){
builder.append("&");
}
builder.append("offset=");
builder.append(offset);
}
return builder.toString();
}
@Override
public Team createTeam(Team team) throws SynapseException {
try {
JSONObject jsonObj = EntityFactory.createJSONObjectForEntity(team);
jsonObj = createJSONObject(TEAM, jsonObj);
return initializeFromJSONObject(jsonObj, Team.class);
} catch (JSONObjectAdapterException e) {
throw new SynapseException(e);
}
}
@Override
public Team getTeam(String id) throws SynapseException {
JSONObject jsonObj = getEntity(TEAM+"/"+id);
JSONObjectAdapter adapter = new JSONObjectAdapterImpl(jsonObj);
Team results = new Team();
try {
results.initializeFromJSONObject(adapter);
return results;
} catch (JSONObjectAdapterException e) {
throw new SynapseException(e);
}
}
@Override
public PaginatedResults |
| File |
|---|
| SynapseClientImpl.java |
| Developer's decision |
|---|
| Manual |
| Kind of conflict |
|---|
| Annotation |
| Comment |
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
public static final String EVALUATION_WIKI_ID_ATTCHMENT_HANDLE =EVALUATION_OWNER_ID + WIKI_WITH_ID+ATTACHMENT_HANDLES;
public static final String EVALUATION_WIKI_ID_ATTCHMENT_FILE =EVALUATION_OWNER_ID + WIKI_WITH_ID+ATTACHMENT;
public static final String EVALUATION_WIKI_ID_ATTCHMENT_FILE_PREVIEW =EVALUATION_OWNER_ID + WIKI_WITH_ID+ATTACHMENT_PREVIEW;
<<<<<<< HEAD
// Tables
public static final String COLUMN = "/column";
public static final String COLUMN_ID = COLUMN+"/{columnId}";
public static final String ENTITY_COLUMNS = ENTITY_ID+COLUMN;
=======
// Team
public static final String TEAM = "/team";
public static final String TEAM_ID = TEAM+ID;
public static final String USER_TEAM = USER+ID+TEAM;
public static final String NAME_FRAGMENT_FILTER = "fragment";
public static final String TEAM_ID_ICON = TEAM_ID+"/icon";
private static final String MEMBER = "/member";
public static final String PRINCIPAL_ID_PATH_VARIABLE = "principalId";
public static final String PRINCIPAL_ID = "/{"+PRINCIPAL_ID_PATH_VARIABLE+"}";
public static final String TEAM_ID_MEMBER = TEAM_ID+MEMBER;
public static final String TEAM_ID_MEMBER_ID = TEAM_ID_MEMBER+PRINCIPAL_ID;
// membership invitation
public static final String MEMBERSHIP_INVITATION = "/membershipInvitation";
public static final String MEMBERSHIP_INVITATION_ID = MEMBERSHIP_INVITATION+ID;
public static final String OPEN_MEMBERSHIP_INVITATION = USER+ID+"/openInvitation";
public static final String TEAM_ID_REQUEST_PARAMETER = "teamId";
// membership request
public static final String MEMBERSHIP_REQUEST = "/membershipRequest";
public static final String MEMBERSHIP_REQUEST_ID = MEMBERSHIP_REQUEST+ID;
public static final String OPEN_MEMBERSHIP_REQUEST = TEAM_ID+"/openRequest";
public static final String REQUESTOR_ID_REQUEST_PARAMETER = "requestorId";
>>>>>>> 9e88f12d7d53878ceb81d5efc0ff265ef9d4a78a
/**
* APIs for DynamoDB related operations. |
| Solution content |
|---|
public static final String EVALUATION_WIKI_ID_ATTCHMENT_HANDLE =EVALUATION_OWNER_ID + WIKI_WITH_ID+ATTACHMENT_HANDLES;
public static final String EVALUATION_WIKI_ID_ATTCHMENT_FILE =EVALUATION_OWNER_ID + WIKI_WITH_ID+ATTACHMENT;
public static final String EVALUATION_WIKI_ID_ATTCHMENT_FILE_PREVIEW =EVALUATION_OWNER_ID + WIKI_WITH_ID+ATTACHMENT_PREVIEW;
// Tables
public static final String COLUMN = "/column";
public static final String COLUMN_ID = COLUMN+"/{columnId}";
public static final String ENTITY_COLUMNS = ENTITY_ID+COLUMN;
// Team
public static final String TEAM = "/team";
public static final String TEAM_ID = TEAM+ID;
public static final String USER_TEAM = USER+ID+TEAM;
public static final String NAME_FRAGMENT_FILTER = "fragment";
public static final String TEAM_ID_ICON = TEAM_ID+"/icon";
private static final String MEMBER = "/member";
public static final String PRINCIPAL_ID_PATH_VARIABLE = "principalId";
public static final String PRINCIPAL_ID = "/{"+PRINCIPAL_ID_PATH_VARIABLE+"}";
public static final String TEAM_ID_MEMBER = TEAM_ID+MEMBER;
public static final String TEAM_ID_MEMBER_ID = TEAM_ID_MEMBER+PRINCIPAL_ID;
// membership invitation
public static final String MEMBERSHIP_INVITATION = "/membershipInvitation";
public static final String MEMBERSHIP_INVITATION_ID = MEMBERSHIP_INVITATION+ID;
public static final String OPEN_MEMBERSHIP_INVITATION = USER+ID+"/openInvitation";
public static final String TEAM_ID_REQUEST_PARAMETER = "teamId";
// membership request
public static final String MEMBERSHIP_REQUEST = "/membershipRequest";
public static final String MEMBERSHIP_REQUEST_ID = MEMBERSHIP_REQUEST+ID;
public static final String OPEN_MEMBERSHIP_REQUEST = TEAM_ID+"/openRequest";
public static final String REQUESTOR_ID_REQUEST_PARAMETER = "requestorId";
/**
* APIs for DynamoDB related operations. |
| File |
|---|
| UrlHelpers.java |
| Developer's decision |
|---|
| Concatenation |
| Kind of conflict |
|---|
| Attribute |
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
@Autowired
private MigrationService migrationService;
@Autowired
<<<<<<< HEAD
private TableServices tableServices;
=======
private TeamService teamService;
@Autowired
private MembershipInvitationService membershipInvitationService;
@Autowired
private MembershipRequestService membershipRequestService;
>>>>>>> 9e88f12d7d53878ceb81d5efc0ff265ef9d4a78a
public AccessApprovalService getAccessApprovalService() {
return accessApprovalService; |
| Solution content |
|---|
@Autowired
private MigrationService migrationService;
@Autowired
private TableServices tableServices;
@Autowired
private TeamService teamService;
@Autowired
private MembershipInvitationService membershipInvitationService;
@Autowired
private MembershipRequestService membershipRequestService;
public AccessApprovalService getAccessApprovalService() {
return accessApprovalService; |
| File |
|---|
| ServiceProviderImpl.java |
| Developer's decision |
|---|
| Concatenation |
| Kind of conflict |
|---|
| Annotation |
| Attribute |
| Chunk |
|---|
| Conflicting content |
|---|
return migrationService;
}
@Override
<<<<<<< HEAD
public TableServices getTableServices() {
return tableServices;
}
=======
public TeamService getTeamService() {
return teamService;
}
@Override
public MembershipInvitationService getMembershipInvitationService() {
return membershipInvitationService;
}
@Override
public MembershipRequestService getMembershipRequestService() {
return membershipRequestService;
}
>>>>>>> 9e88f12d7d53878ceb81d5efc0ff265ef9d4a78a
} |
| Solution content |
|---|
return migrationService;
}
@Override
public TableServices getTableServices() {
return tableServices;
}
@Override
public TeamService getTeamService() {
return teamService;
}
@Override
public MembershipInvitationService getMembershipInvitationService() {
return membershipInvitationService;
}
@Override
public MembershipRequestService getMembershipRequestService() {
return membershipRequestService;
}
} |
| File |
|---|
| ServiceProviderImpl.java |
| Developer's decision |
|---|
| Concatenation |
| Kind of conflict |
|---|
| Annotation |
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
import java.util.HashSet; import java.util.LinkedList; import java.util.List; <<<<<<< HEAD import java.util.Set; ======= import java.util.Map; >>>>>>> 9e88f12d7d53878ceb81d5efc0ff265ef9d4a78a import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; |
| Solution content |
|---|
import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; |
| File |
|---|
| MigrationIntegrationAutowireTest.java |
| Developer's decision |
|---|
| Concatenation |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import org.sagebionetworks.repo.model.migration.RowMetadata; import org.sagebionetworks.repo.model.migration.RowMetadataResult; import org.sagebionetworks.repo.model.provenance.Activity; <<<<<<< HEAD import org.sagebionetworks.repo.model.table.ColumnModel; import org.sagebionetworks.repo.model.table.ColumnType; ======= import org.sagebionetworks.repo.model.v2.dao.V2WikiPageDao; import org.sagebionetworks.repo.model.v2.wiki.V2WikiPage; >>>>>>> 9e88f12d7d53878ceb81d5efc0ff265ef9d4a78a import org.sagebionetworks.repo.model.wiki.WikiPage; import org.sagebionetworks.repo.web.NotFoundException; import org.sagebionetworks.repo.web.controller.DispatchServletSingleton; |
| Solution content |
|---|
import org.sagebionetworks.repo.model.migration.RowMetadata; import org.sagebionetworks.repo.model.migration.RowMetadataResult; import org.sagebionetworks.repo.model.provenance.Activity; import org.sagebionetworks.repo.model.table.ColumnModel; import org.sagebionetworks.repo.model.table.ColumnType; import org.sagebionetworks.repo.model.v2.dao.V2WikiPageDao; import org.sagebionetworks.repo.model.v2.wiki.V2WikiPage; import org.sagebionetworks.repo.model.wiki.WikiPage; import org.sagebionetworks.repo.web.NotFoundException; import org.sagebionetworks.repo.web.controller.DispatchServletSingleton; |
| File |
|---|
| MigrationIntegrationAutowireTest.java |
| Developer's decision |
|---|
| Concatenation |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
private MembershipInvtnSubmissionDAO membershipInvtnSubmissionDAO; @Autowired <<<<<<< HEAD private ColumnModelDAO columnModelDao; ======= private V2WikiPageDao wikiPageDao; >>>>>>> 9e88f12d7d53878ceb81d5efc0ff265ef9d4a78a UserInfo userInfo; private String userName; |
| Solution content |
|---|
private MembershipInvtnSubmissionDAO membershipInvtnSubmissionDAO; @Autowired private ColumnModelDAO columnModelDao; @Autowired private V2WikiPageDao wikiPageDao; UserInfo userInfo; private String userName; |
| File |
|---|
| MigrationIntegrationAutowireTest.java |
| Developer's decision |
|---|
| Concatenation |
| Kind of conflict |
|---|
| Attribute |
| Chunk |
|---|
| Conflicting content |
|---|
@Override
<<<<<<< HEAD
public ColumnModel createColumnModel(ColumnModel model) {
=======
public Team createTeam(Team team) throws SynapseException {
>>>>>>> 9e88f12d7d53878ceb81d5efc0ff265ef9d4a78a
// TODO Auto-generated method stub
return null;
} |
| Solution content |
|---|
@Override
public ColumnModel createColumnModel(ColumnModel model)
throws SynapseException {
// TODO Auto-generated method stub
return null;
} |
| File |
|---|
| StubSynapseAdministration.java |
| Developer's decision |
|---|
| Manual |
| Kind of conflict |
|---|
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
@Override
<<<<<<< HEAD
public ColumnModel getColumnModel(String columnId) throws SynapseException {
=======
public Team getTeam(String id) throws SynapseException {
>>>>>>> 9e88f12d7d53878ceb81d5efc0ff265ef9d4a78a
// TODO Auto-generated method stub
return null;
} |
| Solution content |
|---|
@Override
public ColumnModel getColumnModel(String columnId) throws SynapseException {
// TODO Auto-generated method stub
return null;
} |
| File |
|---|
| StubSynapseAdministration.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
} @Override <<<<<<< HEAD public List |
| Solution content |
|---|
}
@Override
return null;
@Override
public Team createTeam(Team team) throws SynapseException {
// TODO Auto-generated method stub
return null;
}
@Override
public Team getTeam(String id) throws SynapseException {
// TODO Auto-generated method stub
return null;
}
@Override
public PaginatedResults |
| File |
|---|
| StubSynapseAdministration.java |
| Developer's decision |
|---|
| Manual |
| Kind of conflict |
|---|
| Annotation |
| Comment |
| Method declaration |
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
@Override
<<<<<<< HEAD
public PaginatedColumnModels listColumnModels(String prefix, Long limit,
Long offset) throws SynapseException {
=======
public void removeTeamMember(String teamId, String memberId)
throws SynapseException {
// TODO Auto-generated method stub
}
@Override
public MembershipInvtnSubmission createMembershipInvitation(
MembershipInvtnSubmission invitation) throws SynapseException {
>>>>>>> 9e88f12d7d53878ceb81d5efc0ff265ef9d4a78a
// TODO Auto-generated method stub
return null;
} |
| Solution content |
|---|
@Override
public void removeTeamMember(String teamId, String memberId)
throws SynapseException {
// TODO Auto-generated method stub
}
@Override
public MembershipInvtnSubmission createMembershipInvitation(
MembershipInvtnSubmission invitation) throws SynapseException {
// TODO Auto-generated method stub
return null;
} |
| File |
|---|
| StubSynapseAdministration.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Annotation |
| Method declaration |
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
return null;
}
<<<<<<< HEAD
=======
@Override
public MembershipInvtnSubmission getMembershipInvitation(String invitationId)
throws SynapseException {
// TODO Auto-generated method stub
return null;
}
@Override
public PaginatedResults |
| Solution content |
|---|
return null;
}
@Override
public MembershipInvtnSubmission getMembershipInvitation(String invitationId)
throws SynapseException {
// TODO Auto-generated method stub
return null;
}
@Override
public PaginatedResults |
| File |
|---|
| StubSynapseAdministration.java |
| Developer's decision |
|---|
| Manual |
| Kind of conflict |
|---|
| Annotation |
| Method declaration |