1 package org.springframework.security.oauth.examples.sparklr.oauth;
2
3 import org.springframework.security.oauth.provider.BaseConsumerDetails;
4
5 /**
6 * @author Ryan Heaton
7 */
8 @SuppressWarnings("serial")
9 public class SparklrConsumerDetails extends BaseConsumerDetails {
10
11 private String displayName;
12 private String resourceName;
13 private String resourceDescription;
14
15 /**
16 * The display name of the consumer.
17 *
18 * @return The display name of the consumer.
19 */
20 public String getDisplayName() {
21 return displayName;
22 }
23
24 /**
25 * The display name of the consumer.
26 *
27 * @param displayName The display name of the consumer.
28 */
29 public void setDisplayName(String displayName) {
30 this.displayName = displayName;
31 }
32
33 /**
34 * The name of the resource that this consumer can be granted access to.
35 *
36 * @return The name of the resource that this consumer can be granted access to.
37 */
38 public String getResourceName() {
39 return resourceName;
40 }
41
42 /**
43 * The name of the resource that this consumer can be granted access to.
44 *
45 * @param resourceName The name of the resource that this consumer can be granted access to.
46 */
47 public void setResourceName(String resourceName) {
48 this.resourceName = resourceName;
49 }
50
51 /**
52 * The description of the resource that this consumer can be granted access to.
53 *
54 * @return The description of the resource that this consumer can be granted access to.
55 */
56 public String getResourceDescription() {
57 return resourceDescription;
58 }
59
60 /**
61 * The description of the resource that this consumer can be granted access to.
62 *
63 * @param resourceDescription The description of the resource that this consumer can be granted access to.
64 */
65 public void setResourceDescription(String resourceDescription) {
66 this.resourceDescription = resourceDescription;
67 }
68 }