Class ResourceRepresentation
- java.lang.Object
- 
- org.keycloak.representations.idm.authorization.ResourceRepresentation
 
- 
- Direct Known Subclasses:
- AbstractResourceService.Resource,- UmaResourceRepresentation
 
 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. - Author:
- Pedro Igor
 
- 
- 
Constructor SummaryConstructors Constructor Description ResourceRepresentation()Creates a new instance.ResourceRepresentation(String name, String... scopes)ResourceRepresentation(String name, Set<ScopeRepresentation> scopes)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, 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.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddScope(String... scopeNames)voidaddScope(ScopeRepresentation scope)booleanequals(Object o)Map<String,List<String>>getAttributes()StringgetDisplayName()StringgetIconUri()StringgetId()StringgetName()ResourceOwnerRepresentationgetOwner()BooleangetOwnerManagedAccess()Set<ScopeRepresentation>getScopes()StringgetType()StringgetUri()Deprecated.Set<String>getUris()inthashCode()voidsetAttributes(Map<String,List<String>> attributes)voidsetDisplayName(String displayName)voidsetIconUri(String iconUri)voidsetId(String id)voidsetName(String name)voidsetOwner(String ownerId)voidsetOwner(ResourceOwnerRepresentation owner)voidsetOwnerManagedAccess(Boolean ownerManagedAccess)voidsetScopes(Set<ScopeRepresentation> scopes)voidsetType(String type)voidsetUri(String uri)Deprecated.voidsetUris(Set<String> uris)
 
- 
- 
- 
Constructor Detail- 
ResourceRepresentationpublic ResourceRepresentation(String name, Set<ScopeRepresentation> scopes, Set<String> uris, String type, String iconUri) Creates a new instance.- Parameters:
- name- a human-readable string describing a set of one or more resources
- uris- a- Listof- URIthat provides network locations for the resource set being registered
- type- a string uniquely identifying the semantics of the resource set
- scopes- the available scopes for this resource set
- iconUri- a- URIfor a graphic icon representing the resource set
 
 - 
ResourceRepresentationpublic ResourceRepresentation(String name, Set<ScopeRepresentation> scopes, String uri, String type, String iconUri) 
 - 
ResourceRepresentationpublic ResourceRepresentation(String name, Set<ScopeRepresentation> scopes, Set<String> uris, String type) Creates a new instance.- Parameters:
- name- a human-readable string describing a set of one or more resources
- uris- a- Listof- URIthat provides the network location for the resource set being registered
- type- a string uniquely identifying the semantics of the resource set
- scopes- the available scopes for this resource set
 
 - 
ResourceRepresentationpublic ResourceRepresentation(String name, Set<ScopeRepresentation> scopes, String uri, String type) 
 - 
ResourceRepresentationpublic ResourceRepresentation(String name, Set<ScopeRepresentation> scopes) Creates a new instance.- Parameters:
- name- a human-readable string describing a set of one or more resources
- serverUri- a- URIthat identifies this resource server
- scopes- the available scopes for this resource set
 
 - 
ResourceRepresentationpublic ResourceRepresentation() Creates a new instance.
 
- 
 - 
Method Detail- 
setIdpublic void setId(String id) 
 - 
getIdpublic String getId() 
 - 
getNamepublic String getName() 
 - 
getDisplayNamepublic String getDisplayName() 
 - 
getUri@Deprecated public String getUri() Deprecated.
 - 
getTypepublic String getType() 
 - 
getScopespublic Set<ScopeRepresentation> getScopes() 
 - 
getIconUripublic String getIconUri() 
 - 
setNamepublic void setName(String name) 
 - 
setDisplayNamepublic void setDisplayName(String displayName) 
 - 
setUri@Deprecated public void setUri(String uri) Deprecated.
 - 
setTypepublic void setType(String type) 
 - 
setScopespublic void setScopes(Set<ScopeRepresentation> scopes) 
 - 
setIconUripublic void setIconUri(String iconUri) 
 - 
getOwnerpublic ResourceOwnerRepresentation getOwner() 
 - 
setOwnerpublic void setOwner(ResourceOwnerRepresentation owner) 
 - 
setOwnerpublic void setOwner(String ownerId) 
 - 
getOwnerManagedAccesspublic Boolean getOwnerManagedAccess() 
 - 
setOwnerManagedAccesspublic void setOwnerManagedAccess(Boolean ownerManagedAccess) 
 - 
addScopepublic void addScope(String... scopeNames) 
 - 
addScopepublic void addScope(ScopeRepresentation scope) 
 
- 
 
-