public class ResourceRepresentation extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected List<RoleMappingRepresentation> |
roleMappings |
protected Set<String> |
roles |
protected List<ScopeMappingRepresentation> |
scopeMappings |
protected String |
self |
protected boolean |
surrogateAuthRequired |
Constructor and Description |
---|
ResourceRepresentation() |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
List<RoleMappingRepresentation> |
getRoleMappings() |
Set<String> |
getRoles() |
List<ScopeMappingRepresentation> |
getScopeMappings() |
String |
getSelf() |
boolean |
isSurrogateAuthRequired() |
ResourceRepresentation |
role(String role) |
RoleMappingRepresentation |
roleMapping(String username) |
ScopeMappingRepresentation |
scopeMapping(String username) |
void |
setName(String name) |
void |
setRoles(Set<String> roles) |
void |
setSelf(String self) |
void |
setSurrogateAuthRequired(boolean surrogateAuthRequired) |
protected String self
protected String name
protected boolean surrogateAuthRequired
protected List<RoleMappingRepresentation> roleMappings
protected List<ScopeMappingRepresentation> scopeMappings
public String getSelf()
public void setSelf(String self)
public String getName()
public void setName(String name)
public boolean isSurrogateAuthRequired()
public void setSurrogateAuthRequired(boolean surrogateAuthRequired)
public ResourceRepresentation role(String role)
public List<RoleMappingRepresentation> getRoleMappings()
public RoleMappingRepresentation roleMapping(String username)
public List<ScopeMappingRepresentation> getScopeMappings()
public ScopeMappingRepresentation scopeMapping(String username)
Copyright © 2013. All Rights Reserved.