public interface Resource
Modifier and Type | Interface and Description |
---|---|
static class |
Resource.FilterOption |
static class |
Resource.SearchableFields |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAttribute(String name)
Returns the values of an attribute with the given
name |
Map<String,List<String>> |
getAttributes()
Returns the attributes associated with this resource.
|
String |
getDisplayName()
Returns the end user friendly name for this resource.
|
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.
|
String |
getResourceServer()
Returns the
ResourceServer to where this resource belongs to. |
List<Scope> |
getScopes()
|
String |
getSingleAttribute(String name)
Returns the first value of an attribute with the given
name |
String |
getType()
Returns a string representing the type of this resource.
|
Set<String> |
getUris()
|
boolean |
isOwnerManagedAccess()
Indicates if this resource can be managed by the resource owner.
|
void |
removeAttribute(String name) |
void |
setAttribute(String name,
List<String> values)
Sets an attribute with the given
name and values . |
void |
setDisplayName(String name)
Sets an end user friendly name for this resource.
|
void |
setIconUri(String iconUri)
Sets an icon
URI for this resource. |
void |
setName(String name)
Sets a name for this resource.
|
void |
setOwnerManagedAccess(boolean ownerManagedAccess)
Sets if this resource can be managed by the resource owner.
|
void |
setType(String type)
Sets a string representing the type of this resource.
|
void |
updateScopes(Set<Scope> scopes)
Update the set of scopes associated with this resource.
|
void |
updateUris(Set<String> uri)
Sets a list of
URI that uniquely identify this resource. |
String getId()
String getName()
void setName(String name)
name
- the name of this resourceString getDisplayName()
getName()
is returned.void setDisplayName(String name)
name
- the name of this resourcevoid updateUris(Set<String> uri)
URI
that uniquely identify this resource.uri
- an URI
for this resourceString getType()
void setType(String type)
String getResourceServer()
ResourceServer
to where this resource belongs to.String getOwner()
boolean isOwnerManagedAccess()
true
if this resource can be managed by the resource owner. Otherwise, false
.void setOwnerManagedAccess(boolean ownerManagedAccess)
ownerManagedAccess
- true
indicates that this resource can be managed by the resource owner.void updateScopes(Set<Scope> scopes)
scopes
- the list of scopes to updateMap<String,List<String>> getAttributes()
String getSingleAttribute(String name)
name
List<String> getAttribute(String name)
name
void setAttribute(String name, List<String> values)
name
and values
.name
- the attribute namevalue
- the attribute valuesvoid removeAttribute(String name)
Copyright © 2021 JBoss by Red Hat. All rights reserved.