@Entity public class ResourceEntity extends Object implements Resource
| Constructor and Description |
|---|
ResourceEntity() |
| 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.
|
List<PolicyEntity> |
getPolicies() |
ResourceServerEntity |
getResourceServer()
Returns the
ResourceServer to where this resource belongs to. |
List<ScopeEntity> |
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 |
setId(String id) |
void |
setName(String name)
Sets a name for this resource.
|
void |
setOwner(String owner) |
void |
setPolicies(List<PolicyEntity> policies) |
void |
setResourceServer(ResourceServerEntity resourceServer) |
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> toUpdate) |
public String getId()
Resourcepublic void setId(String id)
public String getName()
Resourcepublic void setName(String name)
Resourcepublic String getUri()
ResourceURI that uniquely identify this resource.public void setUri(String uri)
ResourceURI that uniquely identify this resource.public String getType()
Resourcepublic void setType(String type)
Resourcepublic List<ScopeEntity> getScopes()
Resourcepublic String getIconUri()
ResourceURI for this resource.getIconUri in interface Resourcepublic void setIconUri(String iconUri)
ResourceURI for this resource.setIconUri in interface Resourcepublic ResourceServerEntity getResourceServer()
ResourceResourceServer to where this resource belongs to.getResourceServer in interface Resourcepublic void setResourceServer(ResourceServerEntity resourceServer)
public String getOwner()
Resourcepublic void setOwner(String owner)
public List<PolicyEntity> getPolicies()
public void updateScopes(Set<Scope> toUpdate)
updateScopes in interface Resourcepublic void setPolicies(List<PolicyEntity> policies)
Copyright © 2016 JBoss by Red Hat. All rights reserved.