Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@irinaepshteyn
Copy link
Collaborator

No description provided.

this.uaaClientSecret = other.uaaClientSecret;
}

@ApiModelProperty(value = "URL to a remote attribute store adapter", required = true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be more clearly worded as "URL to retrieve attributes from"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then it sounds like it's a URL to attribute store itself. How about "Adapter URL to retrieve attributes from"?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works 👍

Copy link
Contributor

@anubhavi25 anubhavi25 Mar 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we decide to change this or leave it? Latest rebase (4a2f699) doesn't show this line being changed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed it. Try again now.

}

@ApiModelProperty(
value = "An OAuth client that coud be used to obtain an access token for this adapter",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: coud -> could. Also might be more clearly worded as "OAuth client used to obtain an access token for this adapter"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed

this.uaaClientId = uaaClientId;
}

@ApiModelProperty(value = "A secret for an OAuth client for this adapter", required = true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be more clearly worded as "OAuth client secret used to obtain an access token for this adapter"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description = "Connector configuration for external resource or subject atributes.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: atributes -> attributes

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.


private Set<AttributeAdapterConnection> adapters;

@ApiModelProperty(value = "A flag to enable or disable attribute connector. Disabled by default")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be more clearly worded as "A flag to enable or disable the retrieval of remote attributes. Disabled by default."?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed

}

@ApiOperation(
value = "Deletes connector configururation for external subject attributes for the given zone.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: configururation -> configuration

tags = { "Attribute Connector Management" },
response = AttributeConnector.class)
@ApiResponses(
value = { @ApiResponse(code = 404, message = "Connector configuration for the given zone is not found.") })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment above re. mentioning all possible response codes.

response = AttributeConnector.class)
@ApiResponses(
value = { @ApiResponse(
code = 201,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment above re. mentioning all possible response codes.

consumes = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<AttributeConnector> putSubjectConnector(@RequestBody final AttributeConnector connector) {
consumes = MediaType.APPLICATION_JSON_VALUE,
produces = MediaType.APPLICATION_JSON_VALUE)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment above re. redundant produces field

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. I changed return type from ResponseEntity to ResponseEntity<?>

this.maxCachedIntervalMinutes = maxCachedIntervalMinutes;
}

@ApiModelProperty(value = "A set of attribute store adapters associated with this connector", required = true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be more clearly worded as "A set of adapters used to retrieve attributes from"? Also should we mention here or in a controller-related Swagger annotation that only one adapter is currently supported?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed.

@irinaepshteyn
Copy link
Collaborator Author

Addressed pull request comments. Please review

import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra semicolon?

@anubhavi25
Copy link
Contributor

@irinaepshteyn please merge once PR integration tests pass

@irinaepshteyn irinaepshteyn merged commit 1372c8a into develop Mar 28, 2017
@irinaepshteyn irinaepshteyn deleted the US102307 branch March 28, 2017 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants