public class ResourceRepresentation extends Object
One or more resources that the resource server manages as a set of protected resources.
For more details, OAuth-resource-reg.
Constructor and Description |
---|
ResourceRepresentation()
Creates a new instance.
|
ResourceRepresentation(String name,
Set<ScopeRepresentation> scopes)
Creates a new instance.
|
ResourceRepresentation(String name,
Set<ScopeRepresentation> scopes,
String uri,
String type)
Creates a new instance.
|
ResourceRepresentation(String name,
Set<ScopeRepresentation> scopes,
String uri,
String type,
String iconUri)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addScope(ScopeRepresentation scopeRepresentation) |
boolean |
equals(Object o) |
String |
getIconUri() |
String |
getId() |
String |
getName() |
String |
getOwner() |
Set<ScopeRepresentation> |
getScopes() |
String |
getType() |
String |
getUri() |
int |
hashCode() |
void |
setIconUri(String iconUri) |
void |
setId(String id) |
void |
setName(String name) |
void |
setOwner(String owner) |
void |
setScopes(Set<ScopeRepresentation> scopes) |
void |
setType(String type) |
void |
setUri(String uri) |
String |
toString() |
public ResourceRepresentation(String name, Set<ScopeRepresentation> scopes, String uri, String type, String iconUri)
name
- a human-readable string describing a set of one or more resourcesuri
- a URI
that provides the network location for the resource set being registeredtype
- a string uniquely identifying the semantics of the resource setscopes
- the available scopes for this resource seticonUri
- a URI
for a graphic icon representing the resource setpublic ResourceRepresentation(String name, Set<ScopeRepresentation> scopes, String uri, String type)
name
- a human-readable string describing a set of one or more resourcesuri
- a URI
that provides the network location for the resource set being registeredtype
- a string uniquely identifying the semantics of the resource setscopes
- the available scopes for this resource setpublic ResourceRepresentation(String name, Set<ScopeRepresentation> scopes)
name
- a human-readable string describing a set of one or more resourcesserverUri
- a URI
that identifies this resource serverscopes
- the available scopes for this resource setpublic ResourceRepresentation()
public void setId(String id)
public String getId()
public String getName()
public String getUri()
public String getType()
public Set<ScopeRepresentation> getScopes()
public String getIconUri()
public void setName(String name)
public void setUri(String uri)
public void setType(String type)
public void setScopes(Set<ScopeRepresentation> scopes)
public void setIconUri(String iconUri)
public String getOwner()
public void setOwner(String owner)
public void addScope(ScopeRepresentation scopeRepresentation)
Copyright © 2019 JBoss by Red Hat. All rights reserved.