org.surfnet.oaaas.model
Class ResourceServer

java.lang.Object
  extended by org.surfnet.oaaas.model.AbstractEntity
      extended by 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

Field Summary
static String SCOPE_PATTERN
           
 
Constructor Summary
ResourceServer()
           
 
Method Summary
 boolean containsClient(Client client)
           
 Set<Client> getClients()
           
 String getContactEmail()
           
 String getContactName()
           
 String getDescription()
           
 String getKey()
           
 String getName()
           
 String getOwner()
           
 List<String> getScopes()
           
 String getSecret()
           
 String getThumbNailUrl()
           
 void setClients(Set<Client> clients)
           
 void setContactEmail(String contactEmail)
           
 void setContactName(String contactName)
           
 void setDescription(String description)
           
 void setKey(String key)
           
 void setName(String name)
           
 void setOwner(String owner)
           
 void setScopes(List<String> scopes)
           
 void setSecret(String secret)
           
 void setThumbNailUrl(String thumbNailUrl)
           
 boolean validate(javax.validation.ConstraintValidatorContext context)
          Template method that validates the state of an AbstractEntity.
 
Methods inherited from class org.surfnet.oaaas.model.AbstractEntity
equals, getCreationDate, getId, getModificationDate, hashCode, setId, toString, updateTimeStamps, violation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SCOPE_PATTERN

public static final String SCOPE_PATTERN
See Also:
Constant Field Values
Constructor Detail

ResourceServer

public ResourceServer()
Method Detail

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.