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,
Set<String> uris,
String type)
Creates a new instance.
|
ResourceRepresentation(String name,
Set<ScopeRepresentation> scopes,
Set<String> uris,
String type,
String iconUri)
Creates a new instance.
|
ResourceRepresentation(String name,
Set<ScopeRepresentation> scopes,
String uri,
String type) |
ResourceRepresentation(String name,
Set<ScopeRepresentation> scopes,
String uri,
String type,
String iconUri) |
ResourceRepresentation(String name,
String... scopes) |
Modifier and Type | Method and Description |
---|---|
void |
addScope(ScopeRepresentation scope) |
void |
addScope(String... scopeNames) |
boolean |
equals(Object o) |
Map<String,List<String>> |
getAttributes() |
String |
getDisplayName() |
String |
getIconUri() |
String |
getId() |
String |
getName() |
ResourceOwnerRepresentation |
getOwner() |
Boolean |
getOwnerManagedAccess() |
Set<ScopeRepresentation> |
getScopes() |
String |
getType() |
String |
getUri()
Deprecated.
|
Set<String> |
getUris() |
int |
hashCode() |
void |
setAttributes(Map<String,List<String>> attributes) |
void |
setDisplayName(String displayName) |
void |
setIconUri(String iconUri) |
void |
setId(String id) |
void |
setName(String name) |
void |
setOwner(ResourceOwnerRepresentation owner) |
void |
setOwner(String ownerId) |
void |
setOwnerManagedAccess(Boolean ownerManagedAccess) |
void |
setScopes(Set<ScopeRepresentation> scopes) |
void |
setType(String type) |
void |
setUri(String uri)
Deprecated.
|
void |
setUris(Set<String> uris) |
public ResourceRepresentation(String name, Set<ScopeRepresentation> scopes, Set<String> uris, String type, String iconUri)
name
- a human-readable string describing a set of one or more resourcesuris
- a List
of URI
that provides network locations 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, String iconUri)
public ResourceRepresentation(String name, Set<ScopeRepresentation> scopes, Set<String> uris, String type)
name
- a human-readable string describing a set of one or more resourcesuris
- a List
of 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, String uri, String type)
public 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 getDisplayName()
@Deprecated public String getUri()
public String getType()
public Set<ScopeRepresentation> getScopes()
public String getIconUri()
public void setName(String name)
public void setDisplayName(String displayName)
@Deprecated public void setUri(String uri)
public void setType(String type)
public void setScopes(Set<ScopeRepresentation> scopes)
public void setIconUri(String iconUri)
public ResourceOwnerRepresentation getOwner()
public void setOwner(ResourceOwnerRepresentation owner)
public void setOwner(String ownerId)
public Boolean getOwnerManagedAccess()
public void setOwnerManagedAccess(Boolean ownerManagedAccess)
public void addScope(String... scopeNames)
public void addScope(ScopeRepresentation scope)
Copyright © 2020 JBoss by Red Hat. All rights reserved.