public interface Resource
Modifier and Type | Method and Description |
---|---|
String |
getIconUri()
Returns an icon
URI for this resource. |
String |
getId()
Returns the unique identifier for this instance.
|
String |
getName()
Returns the resource's name.
|
String |
getOwner()
Returns the resource's owner, which is usually an identifier that uniquely identifies the resource's owner.
|
<R extends ResourceServer> |
getResourceServer()
Returns the
ResourceServer to where this resource belongs to. |
<S extends Scope> |
getScopes()
|
String |
getType()
Returns a string representing the type of this resource.
|
String |
getUri()
Returns a
URI that uniquely identify this resource. |
void |
setIconUri(String iconUri)
Sets an icon
URI for this resource. |
void |
setName(String name)
Sets a name for this resource.
|
void |
setType(String type)
Sets a string representing the type of this resource.
|
void |
setUri(String uri)
Sets a
URI that uniquely identify this resource. |
void |
updateScopes(Set<Scope> scopes) |
String getId()
String getName()
void setName(String name)
name
- the name of this resourceString getUri()
URI
that uniquely identify this resource.URI
for this resource or null if not defined.void setUri(String uri)
URI
that uniquely identify this resource.uri
- an URI
for this resourceString getType()
void setType(String type)
<S extends Scope> List<S> getScopes()
<R extends ResourceServer> R getResourceServer()
ResourceServer
to where this resource belongs to.String getOwner()
Copyright © 2016 JBoss by Red Hat. All rights reserved.