org.surfnet.oaaas.model
Class ResourceServer
java.lang.Object
org.surfnet.oaaas.model.AbstractEntity
org.surfnet.oaaas.model.ResourceServer
- All Implemented Interfaces:
- Serializable
@Entity
public class ResourceServer
- extends AbstractEntity
Representation of the server hosting the protected resources, capable of
accepting and responding to protected resource requests using access tokens.
- See Also:
- Serialized Form
SCOPE_PATTERN
public static final String SCOPE_PATTERN
- See Also:
- Constant Field Values
ResourceServer
public ResourceServer()
getName
public String getName()
setName
public void setName(String name)
getScopes
public List<String> getScopes()
setScopes
public void setScopes(List<String> scopes)
getSecret
public String getSecret()
setSecret
public void setSecret(String secret)
getContactName
public String getContactName()
setContactName
public void setContactName(String contactName)
getContactEmail
public String getContactEmail()
setContactEmail
public void setContactEmail(String contactEmail)
getThumbNailUrl
public String getThumbNailUrl()
- Returns:
- the thumbNailUrl
setThumbNailUrl
public void setThumbNailUrl(String thumbNailUrl)
- Parameters:
thumbNailUrl - the thumbNailUrl to set
setOwner
public void setOwner(String owner)
getOwner
public String getOwner()
getKey
public String getKey()
- Returns:
- the key
setKey
public void setKey(String key)
- Parameters:
key - the key to set
getClients
public Set<Client> getClients()
- Returns:
- the clients
setClients
public void setClients(Set<Client> clients)
- Parameters:
clients - the clients to set
getDescription
public String getDescription()
- Returns:
- the description
setDescription
public void setDescription(String description)
- Parameters:
description - the description to set
containsClient
public boolean containsClient(Client client)
- Parameters:
client - the Client
- Returns:
- if the Client is part of this ResourceServer
validate
public boolean validate(javax.validation.ConstraintValidatorContext context)
- Description copied from class:
AbstractEntity
- Template method that validates the state of an
AbstractEntity. Can
be used prior to saving/ updating the AbstractEntity
- Overrides:
validate in class AbstractEntity
- Parameters:
context - the ConstraintValidatorContext
Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.