Class ResourceRepresentation
java.lang.Object
org.keycloak.representations.idm.authorization.ResourceRepresentation
- Direct Known Subclasses:
 AbstractResourceService.Resource,UmaResourceRepresentation
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 Summary
ConstructorsConstructorDescriptionCreates 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 Summary
Modifier and TypeMethodDescriptionvoidvoidaddScope(ScopeRepresentation scope) booleangetId()getName()getOwner()getType()getUri()Deprecated.getUris()inthashCode()voidsetAttributes(Map<String, List<String>> attributes) voidsetDisplayName(String displayName) voidsetIconUri(String iconUri) voidvoidvoidvoidvoidsetOwnerManagedAccess(Boolean ownerManagedAccess) voidsetScopes(Set<ScopeRepresentation> scopes) voidvoidDeprecated.void 
- 
Constructor Details
- 
ResourceRepresentation
public 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 resourcesuris- aListofURIthat 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- aURIfor a graphic icon representing the resource set
 - 
ResourceRepresentation
 - 
ResourceRepresentation
public 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 resourcesuris- aListofURIthat 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 set
 - 
ResourceRepresentation
public ResourceRepresentation(String name, Set<ScopeRepresentation> scopes, String uri, String type)  - 
ResourceRepresentation
Creates a new instance.- Parameters:
 name- a human-readable string describing a set of one or more resourcesserverUri- aURIthat identifies this resource serverscopes- the available scopes for this resource set
 - 
ResourceRepresentation
 - 
ResourceRepresentation
public ResourceRepresentation()Creates a new instance. 
 - 
 - 
Method Details
- 
setId
 - 
getId
 - 
getName
 - 
getDisplayName
 - 
getUri
Deprecated. - 
getUris
 - 
getType
 - 
getScopes
 - 
getIconUri
 - 
setName
 - 
setDisplayName
 - 
setUri
Deprecated. - 
setUris
 - 
setType
 - 
setScopes
 - 
setIconUri
 - 
getOwner
 - 
setOwner
 - 
setOwner
 - 
getOwnerManagedAccess
 - 
setOwnerManagedAccess
 - 
addScope
 - 
addScope
 - 
getAttributes
 - 
setAttributes
 - 
equals
 - 
hashCode
public int hashCode() 
 -